/* Media Portal — Sohu Video Full Dark Style */

:root {
    --sv-red: #e8321c;
    --sv-red-dark: #c42812;
    --sv-red-glow: rgba(232,50,28,0.25);
    --sv-page: #141414;
    --sv-surface: #1e1e1e;
    --sv-surface-2: #262626;
    --sv-surface-3: #2e2e2e;
    --sv-header: #0f0f0f;
    --sv-nav: #1a1a1a;
    --sv-border: #333333;
    --sv-border-soft: #2a2a2a;
    --sv-text: #f0f0f0;
    --sv-text-sub: #b0b0b0;
    --sv-text-muted: #666666;
    --sv-text-dim: #888888;
    --sv-link: #e8321c;
    --shadow-glow: 0 0 0 1px rgba(232,50,28,0.3);
    --shadow-xs: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 10px;
    --t: all 0.2s ease;
}

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

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', Arial, sans-serif;
    background: var(--sv-page);
    color: var(--sv-text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TOP HEADER ===== */
.site-topbar {
    background: var(--sv-header);
    border-bottom: 1px solid var(--sv-border-soft);
    padding: 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

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

.brand-sitename {
    font-size: 24px;
    font-weight: 900;
    color: var(--sv-text);
    letter-spacing: 0.5px;
    border-bottom: none;
    font-style: normal;
    text-decoration: none;
}

.brand-sitename em {
    font-style: normal;
    background: var(--sv-red);
    color: #fff;
    padding: 1px 5px;
    border-radius: var(--r-xs);
    font-size: 0.75em;
    font-weight: 800;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0;
}

.header-domain-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.domain-lbl {
    font-size: 11px;
    color: var(--sv-text-muted);
    white-space: nowrap;
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    padding: 2px 7px;
    border-radius: var(--r-xs);
    letter-spacing: 0.3px;
}

.domain-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--sv-red);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content { padding: 5px 0; }

/* ===== BANNER ===== */
.promo-strip {
    margin: 5px 0;
    overflow: hidden;
    border-radius: var(--r-md);
    border: 1px solid var(--sv-border-soft);
}

.promo-strip img { display: block; width: 100%; }

/* ===== CATEGORY NAV ===== */
.catnav-panel {
    background: var(--sv-nav);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--sv-border);
}

.catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--sv-border-soft);
}

.catrow:last-child { border-bottom: none; }

.catrow-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--sv-text-muted);
    background: rgba(255,255,255,0.03);
    white-space: nowrap;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    text-align: center;
    flex-shrink: 0;
    border-right: 1px solid var(--sv-border-soft);
    letter-spacing: 0.5px;
}

.catrow-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    align-items: center;
}

.catrow-items a {
    display: inline-block;
    color: var(--sv-text-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--r-xs);
    border: 1px solid var(--sv-border);
    background: var(--sv-surface-2);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--t);
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.catrow-items a:hover {
    background: var(--sv-red);
    border-color: var(--sv-red);
    color: #fff;
}

.catrow-items a.active {
    background: var(--sv-red);
    border-color: var(--sv-red);
    color: #fff;
    font-weight: 600;
}

/* ===== SEARCH BAR ===== */
.searchbar-box {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 6px;
}

.searchbar-box form {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
}

.searchbar-box input[type="text"] {
    flex: 1;
    min-width: 50px;
    padding: 8px 13px;
    border: 1px solid var(--sv-border);
    border-radius: var(--r-sm);
    background: var(--sv-surface-2);
    color: var(--sv-text);
    font-size: 13px;
    outline: none;
    transition: var(--t);
}

.searchbar-box input[type="text"]:focus {
    border-color: var(--sv-red);
    background: var(--sv-surface-3);
    box-shadow: 0 0 0 2px var(--sv-red-glow);
}

.searchbar-box input[type="text"]::placeholder { color: var(--sv-text-muted); }

.searchbar-box button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--sv-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.searchbar-box button:hover { background: var(--sv-red-dark); }

/* ===== TAG CLOUD ===== */
.tagcloud-box {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-md);
    padding: 8px 12px;
    margin-bottom: 6px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tagcloud-box a {
    padding: 4px 11px;
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    border-radius: 18px;
    color: var(--sv-text-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--t);
}

.tagcloud-box a:hover {
    background: var(--sv-red);
    border-color: var(--sv-red);
    color: #fff;
}

/* ===== SECTION PANEL ===== */
.mhlleset { margin-bottom: 8px; }

.mhlleset-main {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.mhlleset-heading {
    display: flex;
    align-items: center;
    padding: 12px 14px 10px;
    background: var(--sv-surface);
    border-bottom: 1px solid var(--sv-border-soft);
}

.mhlleset-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--sv-red);
    border-radius: 2px;
    margin-right: 9px;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--sv-red-glow);
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--sv-text);
    margin: 0;
    letter-spacing: -0.2px;
}

.mhlleset-title a { color: var(--sv-text); text-decoration: none; }
.mhlleset-title a:hover { color: var(--sv-red); }

/* ===== FILM GRID ===== */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 12px;
    background: var(--sv-surface);
}

.thumbnail2-group li { min-width: 0; }

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 600 / 350;
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.thumbnail2:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--sv-red);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.22s ease;
}

.thumbnail2:hover::after { opacity: 0.9; }

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 28px;
    z-index: 2;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.thumbnail2:hover::before { transform: translate(-50%, -50%) scale(1); }

.video-info { padding: 7px 2px 4px; }

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sv-text);
}

.video-info h5 a { color: var(--sv-text); text-decoration: none; }
.video-info h5 a:hover { color: var(--sv-red); }

/* ===== ACTION BUTTONS ===== */
.download {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    flex-wrap: wrap;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-lg);
    margin: 8px 0;
}

.down_btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--sv-red);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--t);
    letter-spacing: 0.3px;
}

.down_btn:hover { background: var(--sv-red-dark); box-shadow: 0 4px 14px var(--sv-red-glow); }

/* ===== TORRENT PREVIEW ===== */
.torrent-capture-grid { margin-top: 12px; }

.torrent-capture-grid picture img,
.torrent-capture-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
    border: 1px solid var(--sv-border);
}

/* ===== SHARE ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    margin: 8px 0;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border-soft);
    border-radius: var(--r-sm);
    padding: 7px 10px;
    min-width: 0;
}

.share-label {
    font-size: 11px;
    color: var(--sv-text-muted);
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--sv-red);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    background: var(--sv-red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--t);
}

.share-copy-btn:hover { background: var(--sv-red-dark); }
.share-icon { font-size: 13px; }

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 13px 0;
}

.a_page_info, .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--t);
    min-width: 34px;
}

.a_page_info {
    background: var(--sv-surface-2);
    color: var(--sv-text);
    border: 1px solid var(--sv-border);
}

.a_page_info:hover {
    background: var(--sv-red);
    color: #fff;
    border-color: var(--sv-red);
}

.page_info_focus {
    background: var(--sv-red);
    color: #fff;
    border: 1px solid var(--sv-red);
    font-weight: 800;
    cursor: default;
}

.p_c { pointer-events: none; }

/* ===== FRIENDLY LINKS ===== */
.txtguanggao2 {
    padding: 10px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-md);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 4px; }
.txtguanggao2 a { color: var(--sv-text-sub); text-decoration: none; font-size: 13px; transition: var(--t); }
.txtguanggao2 a:hover { color: var(--sv-red); }
.pd5 { padding: 2px 4px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--sv-header);
    border-top: 1px solid var(--sv-border);
    padding: 18px 0;
    text-align: center;
    margin-top: 10px;
}

.footer p { color: var(--sv-text-muted); font-size: 12px; margin: 4px 0; }
.footer a { color: var(--sv-text-dim); text-decoration: none; transition: var(--t); }
.footer a:hover { color: var(--sv-red); }

/* ===== UTILS ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.hide_mobile { display: block; }
.hide_pc { display: block; }
img[data-original] { background: var(--sv-surface-2); }

.sec-head-row { margin-bottom: 5px; }
.sec-head-row h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sv-text-dim);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sec-head-row h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: var(--sv-red);
    border-radius: 2px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 8px 12px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-md);
    margin-bottom: 6px;
}

.grid-item {
    padding: 4px 11px;
    background: var(--sv-surface-2);
    border-radius: 18px;
    color: var(--sv-text-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--t);
    border: 1px solid var(--sv-border);
}

.grid-item:hover {
    background: var(--sv-red);
    color: #fff;
    border-color: var(--sv-red);
}

/* ===== DETAIL TITLE BAR ===== */
.detail-title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 13px 18px;
    font-size: 16px;
    margin: 7px 0;
    word-break: break-all;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-left: 4px solid var(--sv-red);
    border-radius: var(--r-lg);
    box-shadow: var(--sv-red-glow) 0 0 0 1px;
}

.detail-title-strip a {
    color: var(--sv-red);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== TORRENT INFO BOX ===== */
.torrent-info-block {
    font-size: 14px;
    line-height: 2;
    padding: 16px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--r-lg);
    margin: 7px 0;
    color: var(--sv-text-sub);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 0 8px; }

    .topbar-inner { padding: 8px 0; gap: 12px; }
    .brand-sitename { font-size: 19px; }
    .domain-val { font-size: 14px; }
    .domain-lbl { font-size: 10px; }
    .content { padding: 4px 0; }

    /* Nav: 15% label + 85% links, 4 per row × 2 rows */
    .catrow-lbl { width: 15%; font-size: 10px; padding: 6px 2px; }
    .catrow-items { width: 85%; gap: 3px; padding: 5px 4px; }
    .catrow-items a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
    }

    /* Grid: 2 per row */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
        padding: 9px;
    }

    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 16px; }
    .mhlleset { margin-bottom: 7px; }

    /* Search: single row, no wrap */
    .searchbar-box form { flex-wrap: nowrap; }
    .searchbar-box input[type="text"] { min-width: 50px; font-size: 12px; padding: 7px 9px; }
    .searchbar-box button { padding: 7px 9px; font-size: 11px; }

    .down_btn { padding: 9px 16px; font-size: 13px; }

    .share-section { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 6px 9px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }

    .download { padding: 10px; gap: 8px; }

    .hide_mobile { display: none !important; }
}

/* Large mobile 481–768: nav links min 13px */
@media (min-width: 481px) and (max-width: 768px) {
    .catrow-items a { font-size: 13px; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
}

@media (max-width: 480px) {
    .brand-sitename { font-size: 17px; }
    .domain-val { font-size: 13px; }

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

    .searchbar-box input[type="text"] { padding: 6px 7px; font-size: 11px; }
    .searchbar-box button { padding: 6px 7px; font-size: 10px; }

    .thumbnail2-group { gap: 7px; padding: 7px; }
    .mhlleset-title { font-size: 15px; }
}
