:root {
    --bg: #030712;
    --panel: rgba(17, 24, 39, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f9fafb;
    --muted: #9ca3af;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --pink: #f472b6;
    --purple: #c084fc;
    --yellow: #facc15;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.14), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(244, 114, 182, 0.16), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(16px);
}

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

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

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #07111f;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    color: #d1d5db;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 9px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.14);
}

.menu-button {
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    height: 2px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
}

.mobile-link {
    padding: 12px 14px;
}

.hero {
    min-height: 86vh;
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: stretch;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg .poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.55);
    transform: scale(1.02);
}

.hero-bg {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(236, 72, 153, 0.2));
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 46%, rgba(3, 7, 18, 0.24) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.95) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 86vh;
    margin: 0 auto;
    padding: 150px 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #d1d5db;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

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

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

.primary-button {
    color: #06111f;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.section-link {
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.66);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.58);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-controls [data-hero-prev],
.hero-controls [data-hero-next] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
    width: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.section,
.page-hero,
.detail-main,
.page-main {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 72px 0;
}

.section-head,
.rank-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.detail-article h2,
.detail-side h2,
.rank-title h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 24px 70px rgba(6, 182, 212, 0.12);
}

.poster-frame,
.rank-cover,
.ranking-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(236, 72, 153, 0.18));
}

.poster-frame {
    aspect-ratio: 2 / 3;
}

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

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(3, 7, 18, 0.72);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 14px;
}

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

.movie-card h3 {
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.compact-card:hover .compact-title {
    color: var(--cyan);
}

.movie-card p {
    min-height: 64px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.6fr);
    gap: 26px;
    align-items: start;
}

.feature-panel,
.rank-panel,
.category-card-large,
.detail-article,
.detail-side,
.player-section,
.filter-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.feature-panel,
.rank-panel,
.category-card-large,
.detail-article,
.detail-side,
.player-section {
    padding: 26px;
}

.feature-panel p,
.category-card-large p,
.page-hero p,
.detail-one-line,
.detail-article p {
    color: #cbd5e1;
    line-height: 1.85;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 14px;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

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

.category-tile,
.category-card-large {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile {
    min-height: 120px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(236, 72, 153, 0.08));
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.42);
}

.category-tile span,
.category-card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 800;
}

.category-tile em,
.compact-meta,
.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.rank-list,
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item,
.compact-card {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.32);
}

.rank-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
}

.rank-num {
    color: var(--yellow);
    font-weight: 900;
}

.rank-cover {
    width: 56px;
    height: 74px;
    border-radius: 12px;
}

.rank-copy strong,
.compact-title {
    display: block;
    line-height: 1.35;
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

.page-main {
    padding-top: 104px;
}

.page-hero {
    min-height: 280px;
    padding: 58px 0 34px;
    display: flex;
    align-items: center;
}

.slim-hero,
.category-hero {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero-copy {
    max-width: 820px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 190px;
    gap: 14px;
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    color: #ffffff;
    background: rgba(3, 7, 18, 0.52);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.ranking-poster {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #06111f;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.ranking-card p {
    color: var(--muted);
    line-height: 1.7;
}

.detail-main {
    padding-top: 104px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    padding: 22px 0;
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(236, 72, 153, 0.08)),
        rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 24px;
}

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

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

.detail-meta-grid span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    color: #e5e7eb;
    background: rgba(3, 7, 18, 0.32);
}

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

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 18rem),
        rgba(3, 7, 18, 0.48);
    backdrop-filter: blur(2px);
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #06111f;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.36);
    font-size: 28px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    margin-top: 34px;
}

.detail-article h2,
.detail-side h2,
.player-section h2 {
    font-size: 28px;
}

.detail-article p {
    margin: 16px 0 28px;
    text-align: justify;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 52px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(3, 7, 18, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.footer-inner p,
.footer-bottom {
    color: var(--muted);
}

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

.footer-links a {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #d1d5db;
}

.footer-links a:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.4);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 30px;
    font-size: 14px;
}

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

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .menu-button {
        display: flex;
    }

    body.menu-open .mobile-nav {
        display: flex;
    }

    .hero-content {
        padding-top: 120px;
    }

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

    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .filter-panel,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 540px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

    .section,
    .page-hero,
    .detail-main,
    .page-main {
        width: min(100% - 24px, 1280px);
    }

    .movie-grid {
        gap: 12px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card p {
        min-height: 58px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .feature-panel,
    .rank-panel,
    .category-card-large,
    .detail-article,
    .detail-side,
    .player-section,
    .detail-hero {
        padding: 18px;
    }

    .ranking-card {
        grid-template-columns: 92px 1fr;
    }
}
