/* FilmStation - Dark Editorial Theme */

:root {
    --clr-red: #e8222e;
    --clr-red-deep: #b91c26;
    --clr-blue: #1a6fb5;
    --clr-bg: #0f0f12;
    --clr-surface: #1a1a20;
    --clr-surface2: #242430;
    --clr-surface3: #2e2e3c;
    --clr-border: #333344;
    --clr-text: #e8e8f0;
    --clr-text-dim: #9090a8;
    --clr-text-muted: #5a5a72;
    --clr-link: #c8c8e0;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --r: 6px;
    --r-sm: 4px;
    --ease: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ─── Site Header ─── */
.fs-topbar {
    background: var(--clr-surface);
    border-bottom: 2px solid var(--clr-red);
    padding: 10px 0;
}

.fs-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fs-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-brand-name {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.fs-brand-name::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 28px;
    background: var(--clr-red);
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 2px;
}

.fs-domain-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(232, 34, 46, 0.12);
    border: 1px solid rgba(232, 34, 46, 0.4);
    border-radius: 3px;
    padding: 5px 12px;
}

.fs-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fs-domain-val {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

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

.content {
    padding: 12px 0;
}

/* ─── Navigation ─── */
.fs-nav-wrap {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
}

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

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

.nav-row .nav-label {
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    background: var(--clr-surface2);
    border-right: 2px solid var(--clr-red);
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-text);
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.nav-row .nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--clr-text-dim);
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    padding: 5px 4px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--ease);
    /* PC: 8 links per row filling full width */
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: #fff;
}

.nav-row .nav-links a.active {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: #fff;
    font-weight: 700;
}

/* ─── Search ─── */
.fs-search-bar {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    padding: 10px;
    margin-bottom: 12px;
}

.fs-search-bar form {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
}

.fs-search-bar input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 14px;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    color: var(--clr-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.fs-search-bar input[type="text"]:focus {
    border-color: var(--clr-red);
    box-shadow: 0 0 0 2px rgba(232,34,46,0.15);
}

.fs-search-bar input[type="text"]::placeholder {
    color: var(--clr-text-muted);
}

.fs-search-bar button {
    padding: 9px 16px;
    background: var(--clr-red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    letter-spacing: 0.5px;
}

.fs-search-bar button:hover {
    background: var(--clr-red-deep);
}

/* ─── Hot Tags ─── */
.grid-container {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    margin-bottom: 12px;
}

.grid-item {
    text-decoration: none;
    color: var(--clr-text-dim);
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 13px;
    transition: var(--ease);
}

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

/* ─── Section Blocks ─── */
.mhlleset {
    margin-bottom: 22px;
}

.mhlleset-heading {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--clr-red);
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: 0.3px;
}

.mhlleset-title a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease);
}

.mhlleset-title a:hover {
    color: var(--clr-red);
}

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

.thumbnail2-group li {
    animation: fadeUp 0.5s ease both;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
}

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

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 40px;
    height: 40px;
    background: rgba(232,34,46,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
}

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

.fs-card-info {
    padding: 8px 0 4px;
}

.fs-card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.fs-card-info h5 a {
    color: var(--clr-link);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}

.fs-card-info h5 a:hover {
    color: var(--clr-red);
}

/* ─── Detail Page Title ─── */
.fs-detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 18px;
    margin: 16px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-red);
    border-radius: var(--r);
}

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

/* ─── Torrent Info Panel ─── */
.fs-torrent-meta {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px 24px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    margin: 16px 0;
}

/* ─── Torrent Capture ─── */
.torrent-capture-grid {
    margin-top: 12px;
}

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

.torrent-capture-grid .img_item {
    width: 100%;
}

/* ─── Download Buttons ─── */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    text-align: center;
    padding: 16px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    margin: 14px 0;
}

.down_btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--clr-red);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.down_btn:hover {
    background: var(--clr-red-deep);
    box-shadow: 0 4px 14px rgba(232,34,46,0.4);
}

/* ─── Share Section ─── */
.share-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--clr-text-dim);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--clr-red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.share-copy-btn:hover {
    background: var(--clr-red-deep);
}

.share-icon {
    font-size: 16px;
}

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

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

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

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

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

/* ─── Friendly Links ─── */
.txtguanggao2 {
    padding: 10px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r);
}

.txtguanggao2 dl { margin: 0; }

.txtguanggao2 dd {
    display: inline-block;
    margin: 3px 4px;
}

.txtguanggao2 a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.txtguanggao2 a:hover {
    color: var(--clr-red);
}

/* ─── Footer ─── */
.footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 28px;
}

.footer p {
    margin: 6px 0;
    color: var(--clr-text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--ease);
}

.footer a:hover {
    color: var(--clr-red);
}

/* ─── Utilities ─── */
.clearfix::after { content: ""; display: table; clear: both; }

.hide_mobile { display: block; }
.hide_pc { display: block; }

@media (max-width: 768px) {
    .hide_mobile { display: none !important; }
}

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

img[data-original] {
    background: var(--clr-surface2);
}

/* ─── Video Container ─── */
.MacPlayer,
.video-container {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-lg);
}

.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    position: relative;
}

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

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .thumbnail2-group {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

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

    .content {
        padding: 8px 0;
    }

    .fs-topbar-inner {
        gap: 10px;
    }

    .fs-brand-name {
        font-size: 20px;
    }

    .fs-domain-badge {
        padding: 4px 10px;
    }

    .fs-domain-tag {
        font-size: 10px;
    }

    .fs-domain-val {
        font-size: 13px;
    }

    /* Mobile nav: label 15%, links 85%; 8 links split into 2 rows of 4 */
    .nav-row {
        align-items: stretch;
    }

    .nav-row .nav-label {
        width: 15%;
        flex-shrink: 0;
        font-size: 11px;
        padding: 6px 2px;
        line-height: 1.3;
        word-break: break-all;
        white-space: normal;
        /* Force 4 Chinese chars to wrap into 2×2 layout inside 15% */
        letter-spacing: 0;
    }

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 5px 2px;
        /* Exactly 4 per row: (100% - 3 gaps × 3px) / 4 */
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mhlleset-title {
        font-size: 16px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 380px;
    }

    .share-section {
        padding: 10px;
        gap: 7px;
    }

    .share-url-display {
        padding: 8px 10px;
    }

    .download {
        padding: 12px 8px;
        gap: 7px;
        flex-wrap: nowrap;
    }

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

    .page_info_div {
        padding: 12px 0;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .fs-brand-name {
        font-size: 17px;
    }

    .fs-brand-name::before {
        width: 5px;
        height: 20px;
        margin-right: 6px;
    }

    /* Small phone: same 15/85 split, 4 chars visible, 4 links per row */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
        word-break: break-all;
        white-space: normal;
    }

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
    }

    .video-container {
        height: 56.25vw;
        max-height: 280px;
    }

    .mhlleset-title {
        font-size: 15px;
    }

    .share-url { font-size: 10px; }
    .share-label { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
}