:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 26%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--amber-dark));
    box-shadow: 0 14px 40px rgba(217, 119, 6, 0.25);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--white);
    font-weight: 700;
}

.main-nav a {
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: var(--white);
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 8px 12px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.32), transparent 36%), linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 72px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 420px;
    gap: 52px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 18px;
    color: var(--white);
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 560px;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span,
.poster-play,
.player-cover span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.content-section,
.filter-panel,
.detail-layout,
.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

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

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

.section-heading p {
    margin: 10px 0 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-more,
.text-link,
.filter-panel button {
    color: var(--amber-dark);
    background: #fff7ed;
    padding: 10px 16px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-900);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

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

.poster-play {
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--slate-900);
    font-size: 20px;
    line-height: 1.32;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--amber-dark);
}

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.65;
}

.movie-line {
    margin: 10px 0 16px;
    color: var(--gray-700);
}

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

.category-tile a {
    display: block;
    min-height: 250px;
    padding: 28px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-tile a:hover {
    transform: translateY(-6px);
}

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

.category-tile p,
.category-tile .mini-list a {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.category-tile .mini-list {
    display: grid;
    gap: 7px;
    margin: 22px 0;
}

.category-tile span {
    color: var(--amber);
    font-weight: 900;
}

.page-hero {
    padding-top: 72px;
    padding-bottom: 56px;
}

.page-hero > div {
    overflow: hidden;
    border-radius: 30px;
    padding: 54px;
    color: var(--white);
    background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    padding-top: 8px;
    display: grid;
    grid-template-columns: 1fr 160px 160px 160px auto;
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
}

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

.detail-layout {
    padding-top: 42px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--gray-500);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--amber-dark);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--slate-950);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: var(--slate-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--slate-950);
    display: none;
}

.player-cover.is-visible {
    display: block;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
}

.player-cover span {
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

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

.detail-poster img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-copy {
    padding: 32px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.detail-copy h1 {
    color: var(--slate-900);
    font-size: clamp(32px, 5vw, 58px);
}

.detail-one-line {
    color: var(--slate-700);
    font-size: 18px;
    line-height: 1.75;
}

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

.movie-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.movie-info div {
    padding: 16px;
    border-radius: 18px;
    background: var(--gray-50);
}

.movie-info dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.movie-info dd {
    margin: 6px 0 0;
    color: var(--slate-900);
    font-weight: 900;
}

.detail-copy h2 {
    margin: 28px 0 12px;
    color: var(--slate-900);
    font-size: 24px;
    font-weight: 900;
}

.detail-copy p {
    line-height: 1.9;
}

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

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

.site-footer {
    margin-top: 88px;
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-links {
    columns: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding: 20px 24px;
    text-align: center;
    color: #94a3b8;
}

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

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

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

    .hero-poster {
        display: none;
    }

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

@media (max-width: 820px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        align-items: flex-start;
        padding: 14px 18px;
    }

    .brand {
        font-size: 18px;
        max-width: calc(100% - 62px);
        white-space: normal;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 18px;
        background: var(--amber-dark);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-radius: 12px;
        padding: 12px;
    }

    .hero-slider,
    .hero-content {
        min-height: 620px;
    }

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

    .hero-copy p {
        font-size: 16px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero > div {
        padding: 34px 24px;
    }

    .movie-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .detail-copy {
        padding: 22px;
    }
}

.info-panel {
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.info-panel h2 {
    margin: 22px 0 10px;
    color: var(--slate-900);
    font-size: 24px;
    font-weight: 900;
}

.info-panel h2:first-child {
    margin-top: 0;
}

.info-panel p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}
