/* Video Portal Template - Spiegel Editorial Orange Edition */

:root {
    --sp-red: #c8390f;
    --sp-red-dk: #a52e0b;
    --sp-red-lt: #f5e8e4;
    --sp-red-grad: linear-gradient(135deg, #c8390f 0%, #a52e0b 100%);
    --sp-orange: #e05a20;
    --ink-hd: #ffffff;
    --bg-main: #f0f0f0;
    --bg-white: #ffffff;
    --bg-sub: #f7f7f7;
    --bg-nav2: #f5f5f5;
    --line: #dddddd;
    --line-dk: #c0c0c0;
    --txt-main: #111111;
    --txt-mid: #333333;
    --txt-soft: #666666;
    --txt-muted: #999999;
    --shd-card: rgba(0,0,0,0.06);
    --shd-hover: rgba(0,0,0,0.14);
    --shd-red: rgba(200,57,15,0.18);
    --r0: 0px;
    --r2: 2px;
    --r4: 4px;
    --tr: all 0.18s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--txt-main);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ── Brand Header (Spiegel orange-red bar) ───── */
.sp-header {
    background: var(--sp-red);
    padding: 0.55rem 0;
    border-bottom: 3px solid var(--sp-red-dk);
}

.sp-header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.brand-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logotype {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    line-height: 1;
    text-transform: uppercase;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(0,0,0,0.22);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: var(--r2);
    flex-shrink: 0;
}

.domain-lbl {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.80);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.domain-val {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: -0.2px;
}

/* ── Sub Nav bar (light gray like Spiegel nav row) ─── */
.subnav {
    background: var(--bg-nav2);
    border-bottom: 1px solid var(--line);
    padding: 0;
}

/* ── Layout ─────────────────────────────────── */
.sp-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.sp-seg {
    padding: 7px 0;
}

/* ── Category Navigation ─────────────────────── */
.navtable {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--sp-red);
    margin-bottom: 8px;
    box-shadow: 0 1px 3px var(--shd-card);
}

.navtable-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

.navtable-row:last-child {
    border-bottom: none;
}

.zone-hd {
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: var(--sp-red);
    letter-spacing: 0.3px;
}

.zone-cats {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--bg-white);
}

.zone-cats a {
    display: inline-block;
    color: var(--txt-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r2);
    transition: var(--tr);
    background: var(--bg-sub);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.zone-cats a:hover {
    background: var(--sp-red);
    color: #fff;
    border-color: var(--sp-red);
    box-shadow: 0 2px 6px var(--shd-red);
}

.zone-cats a.active {
    background: var(--sp-red);
    color: #fff;
    border-color: var(--sp-red);
    font-weight: 700;
}

/* ── Search ───────────────────────────────────── */
.srch-panel {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--sp-red);
    padding: 11px 13px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px var(--shd-card);
}

.srch-panel form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.srch-panel input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 1.5px solid var(--line-dk);
    border-radius: var(--r2);
    background: var(--bg-sub);
    color: var(--txt-main);
    font-size: 13px;
    transition: var(--tr);
    outline: none;
}

.srch-panel input[type="text"]:focus {
    border-color: var(--sp-red);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(200,57,15,0.10);
}

.srch-panel input[type="text"]::placeholder { color: var(--txt-muted); }

.srch-panel button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r2);
    background: var(--sp-red-grad);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.srch-panel button:hover {
    opacity: 0.88;
    box-shadow: 0 3px 8px var(--shd-red);
}

/* ── Hot Tags ─────────────────────────────────── */
.tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    margin-bottom: 8px;
    box-shadow: 0 1px 3px var(--shd-card);
}

.tag-pill {
    padding: 4px 12px;
    background: var(--bg-sub);
    border-radius: var(--r2);
    color: var(--txt-soft);
    text-decoration: none;
    font-size: 12px;
    transition: var(--tr);
    border: 1px solid var(--line);
}

.tag-pill:hover {
    background: var(--sp-red);
    color: #fff;
    border-color: var(--sp-red);
    box-shadow: 0 2px 6px var(--shd-red);
}

/* ── Content Block ────────────────────────────── */
.editorial-block {
    margin-bottom: 16px;
}

.editorial-hd {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sp-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.editorial-hd::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--sp-red);
    border-radius: var(--r2);
    flex-shrink: 0;
}

.editorial-ttl {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--txt-main);
    letter-spacing: -0.2px;
}

.editorial-ttl a {
    color: var(--txt-main);
    text-decoration: none;
    transition: var(--tr);
}

.editorial-ttl a:hover { color: var(--sp-red); }

/* ── Media Grid ───────────────────────────────── */
.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    list-style: none;
    padding: 0;
}

.pgrid li { animation: riseIn 0.38s ease backwards; }
.pgrid li:nth-child(1) { animation-delay: 0.03s; }
.pgrid li:nth-child(2) { animation-delay: 0.07s; }
.pgrid li:nth-child(3) { animation-delay: 0.11s; }
.pgrid li:nth-child(4) { animation-delay: 0.15s; }
.pgrid li:nth-child(5) { animation-delay: 0.19s; }
.pgrid li:nth-child(6) { animation-delay: 0.23s; }
.pgrid li:nth-child(7) { animation-delay: 0.27s; }
.pgrid li:nth-child(8) { animation-delay: 0.31s; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pthumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r2);
    aspect-ratio: 600 / 350;
    background: var(--bg-sub);
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px var(--shd-card);
}

.pthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.pthumb:hover {
    border-color: var(--sp-red);
    box-shadow: 0 4px 12px var(--shd-red);
}

.pthumb:hover img { transform: scale(1.05); }

.pthumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(200,57,15,0.52) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.pthumb:hover::after { opacity: 1; }

.pmeta { padding: 6px 0 2px; }

.pmeta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.pmeta h5 a {
    color: var(--txt-soft);
    text-decoration: none;
    transition: var(--tr);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pmeta h5 a:hover { color: var(--sp-red); }

/* ── Video Player ─────────────────────────────── */
.vid-stage {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r2);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    position: relative;
}

.vid-stage iframe,
.vid-stage video,
.vid-stage #video-container { width: 100%; height: 100%; border: none; }

.MacPlayer {
    background: #000;
    border-radius: var(--r2);
    overflow: hidden;
    margin-bottom: 11px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

/* ── Preview Image ────────────────────────────── */
.preview-shots { width: 100%; }

.preview-shots img,
.preview-shots .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    border: 1px solid var(--line);
    display: block;
}

.preview-shots .img_item { width: 100%; }

/* ── Download Buttons ─────────────────────────── */
.action-bar {
    text-align: center;
    padding: 13px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sp-red);
    margin: 11px 0;
    box-shadow: 0 1px 3px var(--shd-card);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--sp-red-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r2);
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    margin: 0;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.action-btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 10px var(--shd-red);
}

/* ── Share Row ────────────────────────────────── */
.link-share {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sp-red);
    padding: 12px 13px;
    margin: 11px 0;
    box-shadow: 0 1px 3px var(--shd-card);
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-display {
    background: var(--bg-sub);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--sp-red);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--txt-mid);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.copy-link-btn {
    padding: 9px 16px;
    background: var(--sp-red-grad);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-link-btn:hover { opacity: 0.88; box-shadow: 0 3px 8px var(--shd-red); }
.copy-link-btn:active { transform: scale(0.97); }
.share-icon { font-size: 14px; line-height: 1; }

/* ── Pagination ───────────────────────────────── */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r2);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--tr);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--bg-white);
    color: var(--txt-main);
    border: 1px solid var(--line-dk);
}

.a_page_info:hover {
    background: var(--sp-red);
    border-color: var(--sp-red);
    color: #fff;
    box-shadow: 0 2px 6px var(--shd-red);
}

.page_info_focus {
    background: var(--sp-red-grad);
    color: #fff;
    border: 1px solid var(--sp-red-dk);
    cursor: default;
}

/* ── Footer ───────────────────────────────────── */
.sp-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--sp-red);
    margin-top: 18px;
    background: var(--txt-main);
}

.sp-footer p { margin: 5px 0; color: #aaaaaa; font-size: 12px; }
.sp-footer a { color: #aaaaaa; text-decoration: none; transition: var(--tr); }
.sp-footer a:hover { color: var(--sp-orange); }

/* ── Friend Links ─────────────────────────────── */
.flinks-area {
    padding: 10px 12px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--sp-red);
    box-shadow: 0 1px 3px var(--shd-card);
}

.flinks-area dl { margin: 0; }
.flinks-area dd { display: inline-block; margin: 3px; }

.flinks-area a {
    color: var(--sp-red);
    text-decoration: none;
    font-size: 13px;
    transition: var(--tr);
}

.flinks-area a:hover { color: var(--sp-red-dk); text-decoration: underline; }

/* ── Utility ──────────────────────────────────── */
.pc-only  { display: block; }
.mob-only { display: block; }

@media (max-width: 768px)  { .pc-only  { display: none !important; } }
@media (min-width: 769px)  { .mob-only { display: none !important; } }

.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--bg-sub); }

/* ── Responsive 768px ─────────────────────────── */
@media (max-width: 768px) {
    .sp-wrap  { padding: 0 8px; }
    .sp-header { padding: 0.4rem 0; }
    .brand-row { gap: 10px; flex-wrap: nowrap; }
    .brand-logotype { font-size: 20px; }
    .domain-badge { padding: 4px 10px; gap: 6px; }
    .domain-lbl { font-size: 10px; }
    .domain-val { font-size: 16px; }
    .sp-seg { padding: 5px 0; }

    /* mobile nav: 15% / 85%, 4 per row × 2 rows */
    .navtable-row { display: flex; align-items: stretch; }
    .zone-hd {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        word-break: keep-all;
        line-height: 1.4;
    }
    .zone-cats {
        width: 85%;
        font-size: 12px;
        gap: 3px;
        padding: 6px 4px;
    }
    .zone-cats a {
        padding: 4px 2px;
        font-size: 12px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* search same row, no wrap */
    .srch-panel form { flex-wrap: nowrap; gap: 5px; }
    .srch-panel input[type="text"] { min-width: 80px; padding: 8px 10px; font-size: 12px; }
    .srch-panel button { padding: 8px 10px; font-size: 11px; }

    /* 2-col grid */
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pmeta h5 { font-size: 12px; }
    .editorial-block { margin-bottom: 12px; }
    .editorial-ttl { font-size: 16px; }
    .editorial-hd::before { height: 17px; }

    .tag-strip { padding: 8px 10px; gap: 5px; }
    .tag-pill { padding: 4px 10px; font-size: 11px; }

    .action-bar { flex-wrap: nowrap; gap: 6px; padding: 10px 8px; }
    .action-btn { padding: 9px 12px; font-size: 12px; }

    .link-share { padding: 9px; gap: 6px; flex-wrap: nowrap; margin: 10px 0; }
    .url-display { padding: 7px 10px; gap: 5px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url   { font-size: 10px; }
    .copy-link-btn { padding: 8px 10px; font-size: 11px; flex-shrink: 0; }
    .share-icon  { font-size: 13px; }

    .vid-stage { height: 56.25vw; max-height: 380px; margin-bottom: 11px; }
    .sp-footer { padding: 14px 0; margin-top: 14px; }
    .page_info_div { padding: 10px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

/* ── Responsive 480px ─────────────────────────── */
@media (max-width: 480px) {
    .brand-row { gap: 8px; flex-wrap: nowrap; }
    .brand-logotype { font-size: 18px; }
    .domain-badge { padding: 3px 9px; }
    .domain-lbl { font-size: 9px; }
    .domain-val { font-size: 15px; }

    .zone-hd   { width: 15%; font-size: 10px; padding: 5px 2px; }
    .zone-cats { width: 85%; gap: 3px; padding: 5px 3px; }
    .zone-cats a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .srch-panel input[type="text"] { min-width: 70px; padding: 7px 9px; font-size: 12px; }
    .srch-panel button { padding: 7px 8px; font-size: 11px; }

    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pmeta h5 { font-size: 12px; }
    .editorial-ttl { font-size: 15px; }

    .action-bar { padding: 8px 5px; gap: 5px; }
    .action-btn { padding: 8px 11px; font-size: 12px; }

    .link-share { padding: 7px; gap: 5px; flex-wrap: nowrap; }
    .url-display { padding: 6px 9px; }
    .share-label { font-size: 10px; }
    .share-url   { font-size: 10px; }
    .copy-link-btn { padding: 7px 9px; font-size: 11px; }

    .vid-stage { height: 56.25vw; max-height: 300px; }
}
