:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --indigo: #6366f1;
    --pink: #fb7185;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.18), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(1440px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    color: white;
    box-shadow: 0 14px 30px rgba(34, 211, 238, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link,
.mobile-link,
.footer-links a {
    color: var(--soft);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.footer-links a:hover {
    color: var(--cyan);
}

.header-search,
.mobile-search,
.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
    outline: none;
    padding: 12px 14px;
}

.header-search input {
    width: 240px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button,
.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #031320;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.filter-bar button,
.section-more {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.76);
    color: var(--text);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82), rgba(2, 6, 23, 0.98));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-inner,
.content-section,
.footer-inner,
.page-hero,
.detail-hero-inner {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 76px 0 48px;
}

.hero-topline,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-topline {
    justify-content: center;
    width: 100%;
    margin-bottom: 26px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.1);
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    gap: 54px;
    align-items: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.99);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hero-copy h1 {
    max-width: 980px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #a78bfa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 900;
}

.hero-copy p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-badge,
.hero-tags span,
.hero-tag-row span,
.detail-tags span,
.tag-row span,
.poster-year {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.42);
    color: #bae6fd;
}

.hero-badge {
    padding: 8px 14px;
    font-weight: 800;
}

.hero-tags,
.hero-tag-row,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 22px 0;
}

.hero-tags span,
.hero-tag-row span,
.detail-tags span,
.tag-row span {
    padding: 6px 10px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 20px;
}

.hero-poster {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 34px;
    background:
        radial-gradient(circle at 40% 25%, rgba(34, 211, 238, 0.28), transparent 18rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    opacity: 0.9;
}

.hero-poster::after,
.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.74));
    pointer-events: none;
}

.hero-poster-glow {
    position: absolute;
    inset: auto 24px 24px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--indigo));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.62);
}

.hero-controls {
    display: grid;
    grid-template-columns: auto minmax(280px, 560px);
    gap: 20px;
    align-items: center;
    margin-top: 28px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.38);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--indigo));
}

.hero-category-row,
.hero-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-category-row a,
.hero-mini-card,
.category-tile,
.category-overview-card,
.article-card,
.sidebar-card,
.rank-panel,
.player-panel,
.movie-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(12px);
}

.hero-category-row a {
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--soft);
}

.hero-mini-card {
    display: grid;
    gap: 3px;
    min-width: 190px;
    border-radius: 18px;
    padding: 14px;
}

.hero-mini-card span,
.rank-no,
.table-rank {
    color: var(--cyan);
    font-weight: 950;
}

.hero-mini-card strong {
    color: white;
}

.hero-mini-card small {
    color: var(--muted);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-card h2,
.sidebar-card h2 {
    margin: 8px 0 0;
    color: white;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 42px);
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.site-footer p {
    max-width: 820px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-tile,
.category-overview-card {
    display: grid;
    gap: 10px;
    min-height: 160px;
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.hero-mini-card:hover {
    border-color: rgba(34, 211, 238, 0.48);
    transform: translateY(-3px);
}

.category-tile span,
.category-overview-title {
    color: white;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong,
.category-count {
    color: var(--cyan);
    font-size: 28px;
}

.category-tile small {
    color: var(--muted);
    line-height: 1.7;
}

.category-preview-links {
    display: grid;
    gap: 6px;
    color: var(--soft);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-wrap {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 38% 22%, rgba(34, 211, 238, 0.3), transparent 7rem),
        linear-gradient(145deg, #0f172a, #1e293b);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.poster-fallback {
    display: none;
    position: absolute;
    z-index: 1;
    padding: 16px;
    color: white;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.is-fallback .poster-fallback {
    display: block;
}

.poster-year {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.94);
    color: #031320;
    font-weight: 950;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.movie-card h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    border-radius: var(--radius);
    padding: 18px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: white;
    font-weight: 900;
}

.rank-panel-head a {
    color: var(--cyan);
    font-size: 13px;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.28);
}

.rank-list strong,
.rank-list small {
    grid-column: 2;
}

.rank-no {
    grid-row: span 2;
    font-size: 20px;
}

.rank-list small {
    color: var(--muted);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 76px 0 36px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 64px);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
}

.crumbs a {
    color: var(--cyan);
}

.filter-bar {
    position: sticky;
    top: 74px;
    z-index: 20;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
}

.filter-bar input {
    min-width: min(520px, 100%);
}

.filter-bar select {
    max-width: 180px;
}

.filter-bar span {
    margin-left: auto;
    color: var(--cyan);
    font-weight: 900;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

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

.rank-table th {
    color: var(--cyan);
    font-size: 13px;
}

.rank-table td {
    color: var(--soft);
}

.rank-table a {
    color: white;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    filter: blur(18px);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 34px 0 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.poster-detail {
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 66px);
}

.detail-one-line {
    max-width: 860px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-grid span {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.58);
    color: var(--muted);
}

.detail-meta-grid strong {
    color: white;
}

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

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-panel,
.article-card,
.sidebar-card {
    border-radius: var(--radius);
    padding: 18px;
}

.player-screen {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.player-screen video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.72)),
        rgba(2, 6, 23, 0.4);
    color: white;
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    color: white;
    font-size: 30px;
    box-shadow: 0 20px 52px rgba(34, 211, 238, 0.36);
}

.player-start strong {
    font-size: 22px;
}

.player-start small,
.player-caption span {
    color: var(--muted);
}

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

.player-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
}

.article-card h2,
.sidebar-card h2 {
    font-size: 24px;
}

.article-card p {
    color: var(--soft);
    line-height: 2;
}

.sidebar-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.sidebar-card div {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
}

.sidebar-card dt {
    color: var(--muted);
}

.sidebar-card dd {
    margin: 0;
    color: white;
}

.sidebar-card a {
    color: var(--cyan);
}

.sitemap-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
}

.sitemap-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 26px;
    padding: 0;
    list-style: none;
}

.movie-sitemap-list {
    columns: 3 260px;
    display: block;
}

.movie-sitemap-list li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.sitemap-list a {
    color: var(--soft);
}

.sitemap-list a:hover {
    color: var(--cyan);
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    padding: 34px 0;
}

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

.hidden-card,
tr.hidden-card {
    display: none !important;
}

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

    .menu-button {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

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

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

@media (max-width: 980px) {
    .hero-slide,
    .split-layout,
    .detail-content-grid,
    .detail-layout,
    .sitemap-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-poster {
        min-height: 360px;
    }

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

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

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

@media (max-width: 760px) {
    .header-search {
        display: none;
    }

    .hero-inner,
    .content-section,
    .footer-inner,
    .page-hero,
    .detail-hero-inner {
        width: min(100% - 22px, 1440px);
    }

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 46px;
    }

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

    .hero-copy h2 {
        font-size: 28px;
    }

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

    .filter-bar {
        position: static;
        display: grid;
    }

    .filter-bar select {
        max-width: 100%;
    }

    .filter-bar span {
        margin-left: 0;
    }

    .detail-layout {
        gap: 22px;
    }

    .poster-detail {
        max-width: 260px;
    }

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

@media (max-width: 460px) {
    .brand-text strong {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-actions,
    .hero-search,
    .mobile-search {
        display: grid;
    }
}
