:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #06b6d4;
    --cyan-deep: #0891b2;
    --orange: #f97316;
    --gold: #fbbf24;
    --card: rgba(15, 23, 42, 0.82);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.24), transparent 32rem),
        radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(51, 65, 85, 0.82);
    box-shadow: 0 14px 46px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--orange));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.brand-text {
    white-space: nowrap;
    font-size: 1.18rem;
}

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

.site-nav a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.footer-links a:hover {
    color: #fff;
    background: rgba(6, 182, 212, 0.14);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.46);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search button,
.primary-btn,
.secondary-btn,
.filter-chip,
.hero-control,
.player-overlay,
.section-link {
    border: 0;
    cursor: pointer;
}

.nav-search button,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    color: #001018;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(6, 182, 212, 0.32);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: clamp(620px, 82vh, 820px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.72s ease, transform 0.72s ease, visibility 0.72s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.72);
    transform: scale(1.06);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.36) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%, rgba(2, 6, 23, 0.34) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    padding: 96px 0 112px;
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.35rem, 5.8vw, 5.6rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.meta-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.12);
}

.hero-card {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.52);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.hero-card-caption {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
}

.hero-card-caption strong {
    display: block;
    font-size: 1.05rem;
}

.hero-card-caption span {
    color: var(--gold);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    bottom: 42px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-control {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(6, 182, 212, 0.28);
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--cyan);
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: rgba(15, 23, 42, 0.38);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-head h2,
.detail-section h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 920;
    letter-spacing: -0.04em;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 42px 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(6, 182, 212, 0.46);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.3);
}

.movie-card.is-hidden {
    display: none;
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster img {
    transform: scale(1.07);
    filter: saturate(1.12) brightness(1.04);
}

.poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.poster-glow {
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.score,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #020617;
    font-size: 0.82rem;
    font-weight: 900;
}

.score {
    right: 12px;
    background: var(--gold);
}

.rank-badge {
    left: 12px;
    color: #fff;
    background: rgba(249, 115, 22, 0.86);
}

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

.movie-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 880;
    line-height: 1.35;
}

.movie-title:hover {
    color: #67e8f9;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.6);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0;
    overflow: hidden;
    color: #cbd5e1;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), transparent 52%),
        rgba(15, 23, 42, 0.74);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -56px;
    bottom: -56px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.44);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(6, 182, 212, 0.42);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #020617;
    font-weight: 950;
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-thumb img {
    width: 76px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.rank-copy h3 {
    margin: 0 0 6px;
}

.rank-copy p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
}

.rank-score {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 920;
}

.page-hero,
.detail-hero {
    padding: 72px 0 36px;
}

.page-hero .hero-panel,
.detail-panel {
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at right top, rgba(6, 182, 212, 0.22), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.8));
    box-shadow: var(--shadow);
}

.page-hero p,
.detail-info p {
    max-width: 780px;
    color: #dbeafe;
    line-height: 1.9;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.filter-input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: #fff;
    outline: 0;
    background: rgba(15, 23, 42, 0.76);
}

.filter-input:focus {
    border-color: rgba(6, 182, 212, 0.58);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.filter-chip {
    color: #cbd5e1;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #020617;
    background: var(--cyan);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-panel {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
}

.player-section {
    padding: 32px 0 72px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 34px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #020617;
    font-size: 2.2rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--cyan), #a5f3fc);
    box-shadow: 0 22px 58px rgba(6, 182, 212, 0.35);
}

.player-overlay strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.player-overlay small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 1rem;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.prose,
.side-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.prose p {
    margin: 14px 0 0;
    color: #dbeafe;
    line-height: 2;
}

.side-card h3 {
    margin: 0 0 18px;
}

.side-card a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: #cbd5e1;
}

.side-card a:hover {
    color: #67e8f9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.footer-brand {
    font-size: 1.2rem;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

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

.copyright {
    grid-column: 1 / -1;
    margin: 0;
}

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

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

    .hero-card {
        max-width: 340px;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        min-height: 64px;
        flex-wrap: wrap;
    }

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

    .site-nav,
    .nav-search {
        display: none;
        width: 100%;
    }

    .site-header.nav-open .site-nav,
    .site-header.nav-open .nav-search {
        display: flex;
    }

    .site-header.nav-open .site-nav {
        flex-wrap: wrap;
        order: 3;
        padding-bottom: 8px;
    }

    .site-header.nav-open .nav-search {
        order: 4;
        margin-bottom: 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 720px;
    }

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

    .hero-inner {
        padding: 88px 0 108px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 28px;
    }

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

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

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

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

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

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

    .filter-chips {
        justify-content: flex-start;
    }

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

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

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

    .brand-text {
        font-size: 1rem;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.035em;
    }

    .hero-card {
        max-width: 260px;
        border-radius: 24px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-thumb img {
        width: 58px;
        border-radius: 12px;
    }

    .player-start {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }
}
