:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0d9488;
    --rose: #e11d48;
    --blue: #2563eb;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #1e293b, #334155 48%, #1e293b);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.brand-mark,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.42rem;
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 0.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    font-size: 0.95rem;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: #34d399;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-section {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hero-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.hero-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.7s ease, opacity 0.3s ease;
}

.hero-tile:hover img,
.hero-tile.is-active img {
    transform: scale(1.08);
    opacity: 0.95;
}

.hero-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 3;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-tile:hover span,
.hero-tile.is-active span {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 35%, rgba(5, 150, 105, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.22) 38%, rgba(2, 6, 23, 0.78));
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: #a7f3d0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-lead,
.page-hero p {
    max-width: 820px;
    margin: 22px auto 0;
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
}

.button-primary {
    color: #ffffff;
    background: var(--emerald);
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.28);
}

.button-primary:hover {
    background: var(--emerald-dark);
}

.button-ghost,
.button-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.button-glass {
    background: rgba(5, 150, 105, 0.18);
}

.hero-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(850px, 100%);
    margin-top: 42px;
}

.hero-focus-list a {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    text-align: left;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.hero-focus-list small {
    color: #cbd5e1;
    font-size: 0.78rem;
}

.content-section {
    padding: 72px 0;
}

.content-section--white {
    background: #ffffff;
}

.content-section--soft {
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.section-icon {
    display: inline-flex;
    margin-right: 10px;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.movie-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.movie-grid--mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.movie-card {
    min-width: 0;
}

.movie-card__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card__link:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.25);
    box-shadow: var(--shadow-md);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.34), transparent 30%),
        linear-gradient(135deg, #0f172a, #064e3b);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card__link:hover .poster-frame img {
    transform: scale(1.08);
}

img.is-missing-image {
    opacity: 0.04;
}

.movie-card__year,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--emerald);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: var(--rose);
}

.movie-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(2, 6, 23, 0.36);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card__link:hover .movie-card__play {
    opacity: 1;
}

.movie-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.movie-card--compact .movie-card__body {
    padding: 14px;
}

.movie-card__body h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: #64748b;
    font-size: 0.78rem;
}

.movie-card__tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-card__tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.channel-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.channel-card,
.category-overview-card,
.prose-card {
    display: block;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.channel-card {
    min-height: 176px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.channel-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.25rem;
}

.channel-card span {
    display: inline-flex;
    margin: 10px 0;
    color: var(--emerald);
    font-weight: 800;
}

.channel-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.channel-preview-list {
    display: grid;
    gap: 40px;
}

.channel-preview__top,
.category-overview-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.channel-preview h3,
.category-overview-card h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.6rem;
}

.channel-preview p,
.category-overview-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.text-link,
.category-overview-card__meta a {
    color: var(--emerald);
    font-weight: 800;
}

.section-more {
    margin-top: 34px;
    text-align: center;
}

.page-hero {
    color: #ffffff;
    padding: 70px 0;
}

.page-hero--green {
    background: linear-gradient(120deg, #059669, #0d9488);
}

.page-hero--rose {
    background: linear-gradient(120deg, #be123c, #e11d48);
}

.page-hero--blue {
    background: linear-gradient(120deg, #1d4ed8, #0f766e);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
    gap: 24px;
    align-items: center;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.filter-input,
.filter-select,
.filter-reset {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.filter-reset {
    color: #ffffff;
    background: var(--emerald);
    border-color: var(--emerald);
    cursor: pointer;
    font-weight: 800;
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.ranking-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.ranking-table th {
    color: #334155;
    background: #f8fafc;
}

.ranking-table a {
    color: var(--emerald);
    font-weight: 800;
}

.detail-shell {
    padding: 30px 0 72px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.detail-breadcrumb {
    color: #64748b;
}

.detail-breadcrumb a:hover {
    color: var(--emerald);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.player-card {
    margin-bottom: 22px;
    background: #000000;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.14), rgba(2, 6, 23, 0.45));
    cursor: pointer;
}

.player-start span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--emerald);
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.38);
    font-size: 2rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.player-start:hover span {
    transform: scale(1.08);
    background: var(--emerald-dark);
}

.video-player.is-playing .player-start {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 4;
    margin: 0;
    padding: 7px 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 0.82rem;
}

.video-player.is-playing .player-status {
    display: none;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.detail-one-line {
    margin: 0 0 26px;
    padding: 16px 18px;
    color: #334155;
    background: #f8fafc;
    border-left: 5px solid var(--emerald);
    border-radius: 14px;
    font-size: 1.08rem;
    font-style: italic;
}

.detail-card section + section {
    margin-top: 24px;
}

.detail-card h2,
.sidebar-card h2,
.prose-card h2 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 1.36rem;
}

.detail-card p,
.sidebar-card p,
.prose-card p {
    margin: 0;
    color: #475569;
}

.detail-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card--dark {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #064e3b);
    border: 0;
}

.sidebar-card--dark h2,
.sidebar-card--dark p {
    color: #ffffff;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-list .movie-card__link {
    display: grid;
    grid-template-columns: 128px 1fr;
    border-radius: 16px;
}

.related-list .poster-frame {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.related-list .movie-card__tags,
.related-list .movie-card__play,
.related-list .rank-badge {
    display: none;
}

.related-list .movie-card__body {
    padding: 12px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.35rem;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.05rem;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    padding: 18px 0;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prose-card {
    max-width: 900px;
    margin: 0 auto;
}

.prose-card h2:not(:first-child) {
    margin-top: 28px;
}

@media (max-width: 1060px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-block;
    }

    .movie-grid,
    .channel-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-overview-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 1.18rem;
    }

    .hero-backdrop {
        grid-template-columns: 1fr;
    }

    .hero-tile:nth-child(n + 2) {
        display: none;
    }

    .hero-content,
    .hero-section {
        min-height: 72vh;
    }

    .hero-focus-list {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 50px 0;
    }

    .movie-grid,
    .movie-grid--compact,
    .movie-grid--mini,
    .channel-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card__body {
        padding: 14px;
    }

    .movie-card__body p,
    .movie-card__tags {
        display: none;
    }

    .filter-panel {
        position: static;
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 48px 0;
    }

    .detail-card {
        padding: 20px;
    }

    .related-list .movie-card__link {
        grid-template-columns: 112px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid--compact,
    .movie-grid--mini,
    .channel-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
    }
}
