:root {
    --amber-950: #431407;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --orange-900: #7c2d12;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 10px 28px rgba(17, 24, 39, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--orange-900));
    box-shadow: 0 12px 30px rgba(67, 20, 7, 0.28);
}

.nav-wrap {
    max-width: 1240px;
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, var(--amber-500));
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
}

.nav-link {
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fde68a;
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.mobile-panel {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-link {
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-link:hover,
.mobile-link.active {
    color: #fde68a;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--gray-950);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.05);
    transform: scale(1.08);
    opacity: 0.52;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(245, 158, 11, 0.36), transparent 34%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.72), rgba(67, 20, 7, 0.62));
}

.hero-inner {
    position: relative;
    max-width: 1240px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 86px 20px 66px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    color: var(--white);
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-button {
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, var(--amber-500));
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.32);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    width: min(380px, 100%);
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
    transform: rotate(1.5deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

.hero-dots button {
    width: 28px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
    background: var(--amber-500);
}

.main-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 20px 72px;
}

.section-block {
    margin-bottom: 56px;
}

.surface-block {
    border-radius: var(--radius-xl);
    padding: 30px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.section-heading h1,
.section-heading h2 {
    margin: 4px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-heading a,
.text-button {
    color: var(--amber-800);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--amber-900));
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-year,
.poster-type {
    position: absolute;
    top: 10px;
    z-index: 1;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.poster-year {
    right: 10px;
    background: var(--amber-500);
}

.poster-type {
    left: 10px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

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

.movie-card-body h2 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
}

.movie-card-body h2 a:hover {
    color: var(--amber-800);
}

.movie-card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 13px;
}

.tag-row span {
    color: var(--amber-800);
    background: #fef3c7;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    padding: 22px;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(253, 230, 138, 0.38), transparent 38%),
        linear-gradient(135deg, var(--amber-900), var(--orange-900));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
}

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

.category-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.category-card span {
    margin-top: 18px;
    color: #fde68a;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-900);
    background: var(--gray-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 72px 1fr auto;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-md);
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-900));
}

.rank-item img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.rank-item h2 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 900;
}

.rank-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-950);
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px) saturate(1.05);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(67, 20, 7, 0.76));
}

.detail-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.meta-list span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 800;
    font-size: 13px;
}

.detail-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--gray-950);
    box-shadow: var(--shadow-soft);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62));
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, var(--amber-500));
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 20px 46px rgba(245, 158, 11, 0.38);
}

.player-card.is-playing .play-cover {
    display: none;
}

.content-card {
    margin-top: 30px;
    border-radius: var(--radius-xl);
    padding: 32px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.content-card p {
    color: var(--gray-700);
    font-size: 17px;
}

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

.mini-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.mini-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.mini-card span {
    display: block;
    padding: 12px;
    font-weight: 900;
    font-size: 14px;
}

.empty-state {
    display: none;
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-900), #000000);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 20px 28px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    max-width: 450px;
    color: var(--gray-500);
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--gray-300);
}

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0;
    }

    .hero-control {
        display: none;
    }

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

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

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

@media (max-width: 640px) {
    .nav-wrap {
        height: 60px;
    }

    .brand-text {
        font-size: 17px;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 58px 18px 74px;
    }

    .main-shell,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .surface-block,
    .content-card {
        padding: 22px;
    }

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

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

    .rank-item .text-button {
        display: none;
    }
}
