:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #111827;
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --cyan-soft: rgba(6, 182, 212, 0.18);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(8, 145, 178, 0.26), transparent 32rem),
        radial-gradient(circle at 80% 0%, rgba(14, 116, 144, 0.18), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    color: white;
    box-shadow: 0 14px 30px rgba(8, 145, 178, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted-strong);
}

.desktop-nav > a,
.mobile-nav a,
.nav-more-button {
    color: var(--muted-strong);
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active,
.nav-more:hover .nav-more-button {
    color: #67e8f9;
}

.nav-more {
    position: relative;
}

.nav-more-button,
.mobile-menu-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-more-panel {
    position: absolute;
    top: 32px;
    right: 0;
    display: none;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

.nav-more:hover .nav-more-panel {
    display: grid;
    gap: 10px;
}

.mobile-menu-button {
    display: none;
    color: var(--text);
    font-size: 26px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
}

.mobile-nav.open {
    display: grid;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 620px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.72);
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.1) 42%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    padding-top: 32px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 999px;
    background: var(--cyan-soft);
    color: #67e8f9;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-side h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-side p {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
}

.hero-meta,
.movie-meta,
.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 24px;
    color: var(--muted);
}

.hero-meta span,
.hero-tags span,
.movie-tags span,
.detail-tags a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
}

.hero-meta span {
    padding: 5px 11px;
}

.hero-tags {
    margin-top: 16px;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
    padding: 4px 10px;
    color: #a5f3fc;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.secondary-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, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    color: white;
    box-shadow: 0 18px 36px rgba(8, 145, 178, 0.28);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 86px;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.active {
    background: #67e8f9;
}

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
}

.hero-category-bar a {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 999px;
    color: var(--muted-strong);
}

.hero-category-bar a:hover {
    background: var(--cyan-soft);
    color: #67e8f9;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

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

.section-heading h2,
.rank-panel-title h2,
.article-panel h2,
.detail-rank-mini h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

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

.section-heading a,
.rank-panel-title a {
    color: #67e8f9;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-card,
.category-overview-card a,
.rank-panel,
.article-panel,
.detail-rank-mini,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-card {
    display: grid;
    gap: 8px;
    min-height: 168px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover,
.movie-card:hover {
    border-color: rgba(103, 232, 249, 0.35);
    transform: translateY(-4px);
}

.category-card span,
.category-overview-card h2 {
    font-size: 22px;
    font-weight: 800;
}

.category-card strong {
    color: #67e8f9;
    font-size: 28px;
}

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

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: rgba(2, 6, 23, 0.72);
    color: var(--text);
    padding: 0 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(103, 232, 249, 0.54);
}

.filter-empty {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.filter-empty.show {
    display: block;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-card[hidden] {
    display: none;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    display: block;
    background: #0f172a;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.06);
}

.poster-badge,
.poster-play {
    position: absolute;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(12px);
}

.poster-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-info h3 {
    margin: 8px 0 7px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-tags {
    margin-top: 12px;
}

.movie-card-compact .movie-info p {
    min-height: 0;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 20px;
}

.rank-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: rgba(148, 163, 184, 0.08);
}

.rank-row img {
    width: 58px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
}

.rank-number {
    color: #67e8f9;
    font-weight: 900;
}

.rank-content {
    display: grid;
    min-width: 0;
}

.rank-content strong,
.rank-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-content em,
.rank-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-main,
.detail-main {
    padding-top: 28px;
}

.page-hero {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 360px;
    margin: 0 auto;
    overflow: hidden;
    display: grid;
    align-items: end;
    padding: 52px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.64)),
        var(--hero-cover, linear-gradient(135deg, rgba(8, 145, 178, 0.4), rgba(15, 23, 42, 0.1)));
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 280px;
}

.compact-actions {
    margin-top: 24px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.category-overview-card a {
    display: grid;
    min-height: 200px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-index {
    color: #67e8f9;
    font-size: 14px;
    font-weight: 900;
}

.category-overview-card strong {
    align-self: end;
    color: #67e8f9;
}

.rank-card-list {
    display: grid;
    gap: 12px;
}

.rank-card-link {
    display: grid;
    grid-template-columns: 70px 84px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.rank-card-link img {
    width: 84px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.rank-number.large {
    font-size: 22px;
    text-align: center;
}

.rank-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.breadcrumbs {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.breadcrumbs a {
    color: #67e8f9;
}

.detail-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: stretch;
}

.detail-player-card,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.detail-player-card {
    overflow: hidden;
    padding: 14px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    color: white;
    cursor: pointer;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(8, 145, 178, 0.36);
}

.play-layer strong {
    font-size: 20px;
}

.video-shell.is-playing .play-layer {
    display: none;
}

.detail-side {
    overflow: hidden;
}

.detail-side > img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.detail-side > div {
    padding: 22px;
}

.detail-side h1 {
    font-size: 34px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.detail-meta-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.detail-meta-list dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-list dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.article-panel,
.detail-rank-mini {
    padding: 26px;
}

.article-panel p {
    margin: 14px 0 28px;
    color: var(--muted-strong);
    font-size: 17px;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
    padding: 44px 0;
    color: var(--muted);
}

.footer-logo {
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: flex-end;
}

.footer-links a:hover {
    color: #67e8f9;
}

@media (max-width: 1120px) {
    .category-grid,
    .wide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .two-column-section,
    .detail-content,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-rank-mini {
        position: static;
    }

    .hero-content {
        grid-template-columns: 1fr 260px;
    }
}

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

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

    .hero-carousel {
        min-height: 720px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 70px 0 140px;
    }

    .hero-poster {
        max-width: 220px;
    }

    .hero-category-bar {
        border-radius: 22px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .wide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .page-hero {
        padding: 28px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .mobile-nav,
    .content-section,
    .page-hero,
    .detail-hero,
    .detail-content,
    .breadcrumbs,
    .footer-inner {
        width: min(100% - 22px, 1280px);
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-side p {
        font-size: 16px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .wide-grid {
        grid-template-columns: 1fr;
    }

    .rank-card-link {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .detail-meta-list {
        grid-template-columns: 1fr;
    }

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