:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    --dark-soft: #0f172a;
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #06b6d4;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--ink);
    font-family: 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;
    width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid rgba(20, 184, 166, 0.18);
    backdrop-filter: blur(16px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
}

.site-nav a {
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #5eead4;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.spotlight {
    position: relative;
    height: 680px;
    min-height: 560px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.spotlight-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    filter: blur(6px) saturate(1.2);
    transform: scale(1.04);
    opacity: 0.45;
}

.spotlight-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 45%, rgba(20, 184, 166, 0.25), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72) 52%, rgba(2, 6, 23, 0.94)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 42%);
}

.spotlight-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    align-items: center;
    gap: 56px;
    padding-top: 18px;
}

.spotlight-slide__copy {
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.spotlight-slide h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.spotlight-slide p {
    max-width: 650px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

.spotlight-slide__chips,
.detail-tags,
.movie-card__tags,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spotlight-slide__chips {
    margin-top: 24px;
}

.spotlight-slide__chips span,
.detail-tags span,
.movie-card__tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.spotlight-slide__chips span {
    background: rgba(255, 255, 255, 0.12);
    color: #ccfbf1;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.spotlight-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 38px rgba(20, 184, 166, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.spotlight-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.spotlight-poster img {
    aspect-ratio: 3 / 4.25;
    object-fit: cover;
}

.spotlight-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.spotlight-control--prev {
    left: 24px;
}

.spotlight-control--next {
    right: 24px;
}

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

.spotlight-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.spotlight-dots button.is-active {
    background: var(--teal);
}

.search-band {
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.search-band__inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.article-card h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.search-band h2,
.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.search-band p,
.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-box--small {
    width: min(100%, 360px);
}

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

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

.section-link {
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-weight: 800;
}

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

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

.category-card {
    display: grid;
    min-height: 150px;
    align-content: space-between;
    padding: 22px;
    border: 1px solid rgba(20, 184, 166, 0.14);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card strong {
    color: var(--ink);
    font-size: 22px;
}

.category-card span {
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-card__media {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.movie-card__media img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__media img {
    transform: scale(1.07);
}

.movie-card__year,
.movie-card__play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.movie-card__year {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
}

.movie-card__play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.35);
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-card__meta {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.movie-card p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.movie-card__tags {
    margin-top: auto;
}

.movie-card--compact h3 {
    font-size: 17px;
}

.movie-card--compact p {
    display: none;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.rank-item__num {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    background: #ecfeff;
    color: var(--teal-dark);
    font-weight: 900;
}

.rank-item__title {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    padding: 72px 0 28px;
    background:
        radial-gradient(circle at 86% 20%, rgba(20, 184, 166, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.page-hero--dark {
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.25), transparent 34%),
        linear-gradient(135deg, #020617, #0f172a);
}

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

.page-hero--dark h1,
.page-hero--dark p {
    color: #ffffff;
}

.detail-head {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #020617;
}

.detail-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    opacity: 0.36;
    filter: blur(7px) saturate(1.1);
    transform: scale(1.04);
}

.detail-head__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(20, 184, 166, 0.24), transparent 35%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 50%);
}

.detail-head__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 48px;
    align-items: center;
    min-height: 620px;
    padding: 56px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.detail-poster img {
    aspect-ratio: 3 / 4.25;
    object-fit: cover;
}

.detail-copy {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #99f6e4;
    font-size: 14px;
    font-weight: 700;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.detail-copy p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-tags {
    margin-top: 22px;
}

.detail-tags span {
    color: #ccfbf1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 850px;
    padding: 0;
    margin: 28px 0 30px;
    list-style: none;
}

.detail-meta li {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta strong,
.detail-meta span {
    display: block;
}

.detail-meta strong {
    color: #99f6e4;
    font-size: 13px;
}

.detail-meta span {
    color: #ffffff;
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover__icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 24px 50px rgba(20, 184, 166, 0.35);
}

.article-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.article-card h2:not(:first-child) {
    margin-top: 32px;
}

.article-card p {
    margin: 12px 0 0;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    margin-top: 80px;
    padding: 44px 0;
    background: #020617;
    color: #94a3b8;
}

.site-footer__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    margin: 8px 0 0;
}

.site-footer__links {
    display: flex;
    gap: 18px;
    color: #ccfbf1;
    font-weight: 700;
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1040px) {
    .site-nav {
        position: fixed;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .spotlight-slide__content,
    .detail-head__inner {
        grid-template-columns: 1fr;
    }

    .spotlight-poster,
    .detail-poster {
        display: none;
    }

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

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

    .rank-panel,
    .rank-panel--large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container,
    .site-header__inner {
        width: min(100% - 24px, 1180px);
    }

    .site-logo {
        font-size: 20px;
    }

    .spotlight {
        height: 620px;
    }

    .spotlight-slide__content {
        gap: 20px;
        padding-top: 0;
    }

    .spotlight-slide h1,
    .detail-copy h1 {
        font-size: 42px;
    }

    .spotlight-control {
        display: none;
    }

    .search-band__inner,
    .section-head,
    .site-footer__grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .content-section {
        padding-top: 44px;
    }

    .movie-grid,
    .movie-grid--tight,
    .category-cards,
    .category-cards--large,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-item__meta {
        grid-column: 2;
    }

    .detail-head,
    .detail-head__inner {
        min-height: 540px;
    }
}
