:root {
    --page-bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #0f172a;
    --panel-soft: #111c32;
    --line: rgba(148, 163, 184, 0.18);
    --muted: #94a3b8;
    --text: #e2e8f0;
    --text-strong: #f8fafc;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
                radial-gradient(circle at top right, rgba(79, 70, 229, 0.18), transparent 36rem),
                var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 26px;
}

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

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

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--text-strong);
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-dropdown:hover > a,
.nav-link.is-active,
.nav-dropdown > a.is-active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: grid;
    min-width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: #cbd5e1;
}

.dropdown-panel a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: white;
}

.quick-search {
    display: flex;
    align-items: center;
    width: 270px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
}

.quick-search input,
.hero-search input,
.filter-bar input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-strong);
}

.quick-search input {
    padding: 8px 12px;
}

.quick-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    padding: 8px 14px;
    white-space: nowrap;
}

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #cbd5e1;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px 18px;
    background: rgba(2, 6, 23, 0.92);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: #cbd5e1;
}

.mobile-nav a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: white;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-image,
.page-hero > img,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.2) 100%),
                linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 340px;
    gap: 58px;
    align-items: center;
    padding: 100px 0 80px;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    color: var(--text-strong);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-copy p,
.page-hero p,
.lead-text {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #cbd5e1;
}

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

.hero-tags span,
.detail-meta span,
.card-meta span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
}

.hero-tags span,
.detail-meta span,
.detail-tags span {
    padding: 7px 11px;
}

.card-meta span,
.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.primary-btn {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.24);
}

.ghost-btn {
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.58);
    color: var(--text-strong);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover,
.rank-feature-card:hover {
    transform: translateY(-4px);
}

.hero-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: rgba(15, 23, 42, 0.72);
}

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

.hero-poster span,
.detail-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(34, 211, 238, 0.92);
    color: white;
    font-weight: 800;
}

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

.hero-dots button {
    overflow: hidden;
    width: 46px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.28);
    color: transparent;
}

.hero-dots button[aria-current="true"] {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-block,
.category-band,
.rank-feature {
    padding: 70px 0;
}

.alt-section {
    background: rgba(15, 23, 42, 0.46);
}

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

.section-head h2 {
    margin: 12px 0 0;
    color: var(--text-strong);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-head a {
    color: #67e8f9;
    font-weight: 800;
}

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

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
    scroll-snap-align: start;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
    box-shadow: 0 16px 45px rgba(2, 6, 23, 0.28);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.44);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
}

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

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.rank-feature-card:hover img {
    transform: scale(1.06);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: rgba(34, 211, 238, 0.88);
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.card-body {
    padding: 17px;
}

.card-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 18px;
    line-height: 1.25;
}

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #a8b3c7;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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

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

.category-tile,
.category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.08)), rgba(15, 23, 42, 0.76);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile {
    display: grid;
    min-height: 158px;
    align-content: center;
    gap: 10px;
    padding: 22px;
}

.category-tile span,
.category-card h2 {
    color: var(--text-strong);
    font-size: 21px;
    font-weight: 900;
}

.category-tile small,
.category-card p {
    color: #a8b3c7;
}

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
}

.category-cover {
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

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

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(2, 6, 23, 0.75);
    color: white;
    font-weight: 800;
}

.category-card-body {
    padding: 22px;
}

.category-card h2 {
    margin: 0 0 10px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mini-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: #cbd5e1;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.page-hero {
    min-height: 360px;
    display: grid;
    align-items: center;
}

.compact-hero {
    min-height: 360px;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent 34rem),
                linear-gradient(135deg, #020617, #0f172a 70%, #172554);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 82px 0;
}

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

.filter-bar {
    margin-bottom: 22px;
}

.filter-bar input,
.hero-search input {
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.82);
    padding: 0 18px;
}

.hero-search {
    display: flex;
    max-width: 680px;
    gap: 10px;
    margin-top: 28px;
}

.hero-search button {
    padding: 0 24px;
}

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

.rank-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    transition: transform 0.22s ease;
}

.rank-feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.35s ease;
}

.rank-feature-card span,
.rank-feature-card strong,
.rank-feature-card small {
    position: absolute;
    z-index: 2;
    left: 16px;
}

.rank-feature-card span {
    top: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    color: white;
    font-weight: 900;
}

.rank-feature-card strong {
    right: 16px;
    bottom: 44px;
    color: white;
    font-size: 18px;
}

.rank-feature-card small {
    bottom: 18px;
    color: #dbeafe;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) 90px;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    padding: 12px;
}

.rank-num {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    font-weight: 900;
}

.rank-thumb img {
    width: 86px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-size: 19px;
}

.rank-info p {
    margin: 0 0 8px;
    color: #a8b3c7;
}

.rank-play {
    justify-self: end;
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    font-weight: 800;
}

.detail-hero {
    min-height: 650px;
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 92px 0 72px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #93c5fd;
    font-size: 14px;
}

.detail-meta,
.detail-tags {
    margin: 20px 0;
}

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

.player-section {
    padding: 70px 0 52px;
    background: #020617;
}

.player-section h2 {
    margin: 0 0 18px;
    color: var(--text-strong);
    font-size: clamp(26px, 4vw, 38px);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    font-size: 32px;
    box-shadow: 0 20px 55px rgba(34, 211, 238, 0.3);
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-text-section {
    background: rgba(15, 23, 42, 0.38);
}

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

.story-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    padding: 28px;
}

.story-panel h2 {
    margin: 0 0 14px;
    color: var(--text-strong);
}

.story-panel p {
    margin: 0;
    color: #cbd5e1;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
    padding: 54px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--text-strong);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .hero-slider,
    .hero-stage {
        min-height: 640px;
    }

    .hero-content {
        padding-top: 80px;
        gap: 28px;
    }

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

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.three-columns,
    .category-grid,
    .category-page-grid,
    .rank-feature-grid,
    .text-layout,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-play {
        grid-column: 3;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-copy small {
        display: none;
    }

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

    .hero-copy p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .hero-actions,
    .page-actions,
    .hero-search {
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.three-columns,
    .category-grid,
    .category-page-grid,
    .rank-feature-grid,
    .text-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-info p {
        display: none;
    }

    .detail-grid {
        gap: 26px;
        padding-top: 62px;
    }

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
