:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    color: var(--stone-100);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.28);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-400);
    border: 1px solid rgba(245, 158, 11, 0.32);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--stone-300);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link,
.mobile-link {
    position: relative;
    font-size: 15px;
    color: var(--stone-100);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--amber-400);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    height: 600px;
    min-height: 500px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-stage,
.hero-slide,
.hero-backdrop,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-backdrop img,
.page-hero-bg img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 50%, rgba(245, 158, 11, 0.18), transparent 34%);
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--amber-400);
    border: 1px solid rgba(245, 158, 11, 0.28);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.eyebrow.dark {
    color: var(--amber-700);
    background: var(--amber-100);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.btn-primary,
.btn-ghost,
.btn-plain,
.btn-small,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.search-box button {
    min-height: 46px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
    border: 0;
}

.btn-ghost {
    min-height: 46px;
    padding: 0 22px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-ghost.dark {
    color: var(--slate-900);
    border-color: rgba(15, 23, 42, 0.12);
    background: var(--white);
}

.btn-plain {
    color: var(--amber-100);
}

.btn-small {
    min-height: 32px;
    padding: 0 14px;
    background: var(--slate-900);
    color: var(--white);
    font-size: 13px;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-small:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.quick-search-section {
    margin-top: -46px;
    position: relative;
    z-index: 10;
}

.quick-search-panel,
.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.quick-search-panel h2,
.filter-panel h2 {
    margin: 0;
    font-size: 28px;
}

.search-box {
    display: flex;
    width: min(520px, 100%);
    padding: 6px;
    background: var(--stone-100);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.search-box input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 16px;
    color: var(--stone-900);
}

.section {
    padding: 76px 0;
}

.bg-warm {
    background: linear-gradient(180deg, var(--amber-50), var(--stone-50));
}

.dark-section {
    background: radial-gradient(circle at 25% 0%, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
    color: var(--white);
}

.section-head {
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    max-width: 720px;
    color: var(--stone-500);
}

.section-head.inverse p {
    color: rgba(255, 255, 255, 0.72);
}

.with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.text-link {
    color: var(--amber-700);
    font-weight: 700;
}

.text-link.light {
    color: var(--amber-400);
}

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

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

.category-tile {
    position: relative;
    display: grid;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow-card);
}

.tile-images {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    opacity: 0.55;
}

.tile-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.tile-content strong {
    font-size: 22px;
}

.tile-content em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 14px;
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--stone-700));
}

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

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

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber-500);
    color: var(--white);
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--stone-500);
    font-size: 13px;
}

.card-meta a {
    color: var(--amber-700);
    font-weight: 700;
}

.movie-card h2 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.25;
}

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

.movie-card p {
    min-height: 74px;
    margin: 0 0 14px;
    color: var(--stone-500);
    font-size: 14px;
}

.card-tags .tag {
    color: var(--stone-700);
    background: var(--amber-50);
    border-color: rgba(245, 158, 11, 0.22);
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.heat {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
}

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

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

.movie-card-compact p {
    min-height: 46px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-700));
}

.compact-hero {
    min-height: 320px;
}

.page-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.7));
}

.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

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

.breadcrumb a:hover {
    color: var(--amber-400);
}

.filter-section {
    padding: 34px 0 0;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    width: min(560px, 100%);
    color: var(--stone-500);
    font-weight: 700;
    font-size: 13px;
}

.filter-panel input {
    border-radius: 999px;
    background: var(--stone-100);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: end;
}

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

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

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

.detail-meta {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
}

.player-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.play-cover.hidden {
    display: none;
}

.play-cover span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-500);
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.34);
    font-size: 28px;
}

.play-cover strong {
    max-width: 80%;
    font-size: 22px;
}

.player-info {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.player-info h2 {
    margin: 0 0 12px;
}

.player-info p {
    margin: 0;
    color: var(--stone-500);
}

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

.detail-content article {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-content h2 {
    margin: 0 0 12px;
}

.detail-content p {
    margin: 0;
    color: var(--stone-700);
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 72px 96px 1fr 100px;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-no {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--slate-900);
    color: var(--amber-400);
    font-weight: 900;
}

.ranking-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: var(--slate-800);
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 5px 0 5px;
}

.ranking-info p {
    margin: 0;
    color: var(--stone-500);
}

.ranking-score {
    display: grid;
    place-items: center;
    color: var(--amber-700);
}

.ranking-score strong {
    font-size: 28px;
    line-height: 1;
}

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

.index-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.index-item span {
    font-weight: 800;
}

.index-item em {
    color: var(--stone-500);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    padding: 46px 0;
    color: var(--stone-300);
    background: var(--slate-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

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

.site-footer p {
    color: var(--stone-300);
}

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

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

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

[hidden],
.is-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .category-grid,
    .movie-grid,
    .small-grid,
    .index-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .menu-button {
        display: block;
    }

    .header-inner {
        min-height: 68px;
    }

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

    .brand-text small {
        font-size: 10px;
    }

    .hero {
        height: 560px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy .lead {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel,
    .filter-panel,
    .with-link {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        border-radius: 20px;
        flex-direction: column;
    }

    .category-grid,
    .category-grid.wide,
    .movie-grid,
    .small-grid,
    .spotlight-grid,
    .index-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(260px, 80%);
    }

    .ranking-row {
        grid-template-columns: 46px 76px 1fr;
    }

    .ranking-score {
        grid-column: 1 / -1;
        justify-items: start;
    }

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

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

    .category-grid,
    .category-grid.wide,
    .movie-grid,
    .small-grid,
    .spotlight-grid,
    .index-list {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost,
    .btn-plain {
        width: 100%;
    }
}
