:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(28, 25, 23, 0.16);
    --soft-shadow: 0 12px 34px rgba(28, 25, 23, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, #fafaf9 28rem, #f5f5f4 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 10, 9, 0.84);
    border-bottom: 1px solid rgba(251, 191, 36, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--white);
    background: rgba(245, 158, 11, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 18px 16px;
}

.hero {
    position: relative;
    min-height: 70vh;
    height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-900), #451a03, var(--stone-950));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-blur {
    position: absolute;
    inset: -42px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.46);
    transform: scale(1.12);
}

.hero-shade,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 52px;
}

.hero-copy {
    max-width: 820px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fde68a;
    background: rgba(217, 119, 6, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 20px 0 18px;
    color: var(--white);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-meta,
.detail-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.meta-row span,
.meta-row a {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.hero-meta .gold,
.detail-meta strong {
    color: var(--amber-400);
    font-weight: 800;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    padding: 5px 11px;
}

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

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

.primary-btn,
.ghost-btn,
.search-box button,
.category-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-box button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
    border: 0;
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
    display: block;
    border-radius: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

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

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

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

.band,
.content-section,
.page-hero,
.detail-wrap,
.player-section {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
}

.home-search {
    margin-top: -42px;
    position: relative;
    z-index: 8;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 22px;
}

.home-search h2,
.section-head h2,
.article-card h2,
.category-card h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.home-search p,
.section-head p,
.category-card p,
.article-card p {
    color: var(--stone-600);
    line-height: 1.8;
}

.search-box,
.filter-panel {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(68, 64, 60, 0.14);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--stone-800);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(217, 119, 6, 0.55);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.quick-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a,
.footer-links a {
    color: var(--stone-700);
    background: var(--stone-100);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}

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

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

.section-head .eyebrow {
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.12);
}

.section-more {
    color: var(--amber-700);
    font-weight: 800;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

.score,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    font-weight: 900;
}

.score {
    right: 12px;
    color: var(--stone-950);
    background: var(--amber-400);
    padding: 5px 10px;
}

.rank-badge {
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: var(--stone-600);
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-row span,
.meta-row a {
    color: var(--stone-600);
    background: var(--stone-100);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 13px;
}

.tag-row.large span {
    padding: 8px 12px;
}

.warm-panel {
    padding: 34px;
    margin-top: 62px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    box-shadow: var(--soft-shadow);
}

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

.category-chip,
.category-card a {
    display: block;
    height: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 119, 6, 0.13);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.08);
    overflow: hidden;
}

.category-chip {
    padding: 20px;
}

.category-chip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-chip span,
.category-card p {
    color: var(--stone-600);
}

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

.rank-list .movie-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.rank-list .movie-card.compact .poster img {
    height: 100%;
}

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

.page-hero {
    position: relative;
    margin-top: 34px;
    padding: 56px;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.4), transparent 30rem),
        linear-gradient(135deg, var(--stone-950), #431407 60%, var(--stone-900));
    box-shadow: var(--shadow);
}

.page-hero.compact-hero h1,
.page-hero.category-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--stone-900);
}

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

.category-card-body {
    padding: 22px;
}

.category-card span {
    margin-top: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.48);
    transform: scale(1.08);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    padding: 64px 0;
}

.detail-poster {
    align-self: start;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.66);
}

.breadcrumb a {
    color: #fde68a;
}

.player-section {
    padding-top: 48px;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.52));
    cursor: pointer;
}

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

.play-icon {
    width: 74px;
    height: 74px;
    display: block;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.32);
    position: relative;
}

.play-icon::after {
    position: absolute;
    top: 50%;
    left: 53%;
    content: "";
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid var(--white);
    transform: translate(-50%, -50%);
}

.article-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    margin-bottom: 22px;
}

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.7);
    background: var(--stone-950);
}

.footer-inner {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 28px;
}

.footer-inner p {
    max-width: 480px;
    line-height: 1.8;
}

.footer-links {
    justify-content: flex-end;
    align-content: start;
    margin-top: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-poster {
        display: none;
    }

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

    .card-grid.three,
    .rank-list.full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-search-inner,
    .detail-wrap,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .menu-button {
        display: block;
    }

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

    .mobile-link {
        display: block;
        color: var(--white);
    }

    .hero {
        height: 620px;
    }

    .hero-content,
    .band,
    .content-section,
    .page-hero,
    .detail-wrap,
    .player-section,
    .footer-inner {
        width: min(100% - 28px, 1240px);
    }

    .hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .home-search {
        margin-top: -24px;
        padding: 18px;
    }

    .search-box,
    .filter-panel {
        flex-direction: column;
    }

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

    .card-grid.four,
    .card-grid.three,
    .rank-list.full,
    .category-showcase,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-list .movie-card.compact {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .page-hero {
        padding: 34px 22px;
    }

    .detail-wrap {
        padding: 42px 0;
    }

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