:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --shadow-card: 0 18px 35px rgba(41, 37, 36, 0.12);
    --shadow-hover: 0 28px 60px rgba(41, 37, 36, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-800);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 251, 235, 0.94);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 6px 22px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    max-width: 80rem;
    height: 4.25rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #78350f;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand {
    font-size: 1.24rem;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
    font-size: 0.82rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link,
.mobile-link {
    color: #92400e;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #78350f;
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--amber-100);
}

.mobile-link {
    display: block;
    padding: 0.7rem 0;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 72vh;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    min-height: 72vh;
    margin: 0 auto;
    padding: 6.5rem 1rem 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.eyebrow,
.section-heading span,
.category-overview-copy span,
.page-hero span {
    color: var(--amber-300);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-content h1 {
    max-width: 46rem;
    margin: 0.8rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.16);
    padding: 0.28rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-content .hero-tags span {
    color: #fde68a;
    border-color: rgba(252, 211, 77, 0.36);
    background: rgba(146, 64, 14, 0.38);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.primary-btn,
.ghost-btn,
.home-search button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button,
.rank-action {
    color: white;
    border: 0;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 16px 26px rgba(217, 119, 6, 0.26);
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-btn.dark {
    color: var(--amber-700);
    border-color: rgba(217, 119, 6, 0.24);
    background: var(--amber-50);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.rank-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(217, 119, 6, 0.32);
}

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

.hero-dot {
    width: 2rem;
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--amber-300);
}

.quick-search,
.section-wrap,
.footer-grid,
.footer-bottom,
.detail-wrap,
.category-overview-list {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.quick-search {
    margin-top: -3.4rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.4rem;
    align-items: center;
    border-radius: var(--radius-2xl);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background: rgba(255, 251, 235, 0.95);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.quick-search h2 {
    margin: 0 0 0.35rem;
    color: var(--stone-900);
    font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.quick-search p {
    margin: 0;
    color: var(--stone-600);
}

.home-search {
    display: flex;
    gap: 0.7rem;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: white;
    color: var(--stone-800);
    outline: none;
}

.home-search input {
    padding: 0.86rem 1rem;
}

.section-wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-wrap.compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-band {
    background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    margin: 0.25rem 0 0;
    color: var(--stone-900);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

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

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: white;
    box-shadow: var(--shadow-card);
}

.featured-poster {
    position: relative;
    min-height: 26rem;
    overflow: hidden;
}

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

.featured-poster span,
.play-circle,
.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.featured-poster span {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.featured-poster:hover img {
    transform: scale(1.05);
}

.featured-copy {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.featured-copy h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.featured-copy p {
    color: var(--stone-600);
}

.movie-grid {
    display: grid;
    gap: 1.1rem;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 1.15rem;
    background: white;
    box-shadow: 0 12px 24px rgba(41, 37, 36, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--stone-200);
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
    opacity: 0.95;
}

.play-circle {
    position: absolute;
    right: 0.72rem;
    bottom: 0.72rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transform: scale(0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-circle {
    opacity: 1;
    transform: scale(1);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 0.7rem;
    top: 0.7rem;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    color: white;
    background: rgba(180, 83, 9, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.card-body {
    padding: 0.9rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.42rem;
    color: var(--stone-500);
    font-size: 0.8rem;
    font-weight: 700;
}

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

.movie-card h3,
.rank-content h3 {
    margin: 0 0 0.45rem;
    color: var(--stone-900);
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.featured-copy h2 a:hover {
    color: var(--amber-700);
}

.movie-card p,
.rank-content p {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 0.7rem;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.88rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span {
    color: var(--stone-700);
    background: var(--amber-50);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.category-card,
.category-overview {
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: 0 12px 26px rgba(41, 37, 36, 0.07);
}

.category-card {
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 0.7rem;
    object-fit: cover;
}

.category-card h3,
.category-overview-copy h2 {
    margin: 0 0 0.4rem;
    color: var(--stone-900);
}

.category-card p,
.category-overview-copy p {
    margin: 0;
    color: var(--stone-600);
}

.ranking-strip,
.ranking-list {
    display: grid;
    gap: 0.9rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 7rem 1fr auto;
    gap: 1rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.85rem;
    background: white;
    box-shadow: 0 10px 20px rgba(41, 37, 36, 0.07);
}

.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.8rem;
    aspect-ratio: 2 / 3;
}

.rank-cover span {
    position: absolute;
    z-index: 2;
    left: 0.45rem;
    top: 0.45rem;
    border-radius: 999px;
    min-width: 2rem;
    padding: 0.15rem 0.4rem;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    text-align: center;
    font-weight: 900;
}

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

.rank-action {
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-hero {
    color: white;
    background:
        radial-gradient(circle at top left, rgba(252, 211, 77, 0.28), transparent 34%),
        linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.page-hero > div {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4.5rem 1rem;
}

.page-hero h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
}

.page-hero p {
    max-width: 50rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 1.2rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: var(--stone-700);
    font-weight: 800;
    font-size: 0.85rem;
}

.filter-panel input,
.filter-panel select {
    padding: 0.75rem 0.9rem;
}

.category-overview-list {
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: grid;
    gap: 1.25rem;
}

.category-overview {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
}

.category-overview-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.8rem;
}

.detail-wrap {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--stone-600);
    font-weight: 700;
}

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

.detail-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: white;
    box-shadow: var(--shadow-card);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
    cursor: pointer;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-overlay span {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 1.4rem;
}

.detail-main {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 1.7rem;
    padding: 2rem;
}

.detail-poster img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.detail-copy h1 {
    margin: 0.35rem 0 0.8rem;
    color: var(--stone-900);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.one-line {
    color: var(--stone-600);
    font-size: 1.05rem;
}

.movie-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.4rem 0 0;
}

.movie-info div {
    border-radius: 1rem;
    padding: 0.8rem;
    background: var(--stone-50);
}

.movie-info dt {
    color: var(--stone-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-info dd {
    margin: 0.2rem 0 0;
    color: var(--stone-900);
    font-weight: 800;
}

.movie-info a {
    color: var(--amber-700);
}

.story-section {
    padding: 0 2rem 2rem;
}

.story-section h2 {
    margin: 0 0 0.8rem;
    color: var(--stone-900);
    font-size: 1.5rem;
}

.story-section p {
    margin: 0;
    color: var(--stone-700);
    font-size: 1rem;
}

.tag-row.large span {
    padding: 0.42rem 0.85rem;
}

.related-wrap {
    padding-top: 2rem;
}

.site-footer {
    margin-top: 2rem;
    color: var(--stone-300);
    background: var(--stone-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer-logo {
    color: var(--amber-100);
    font-size: 1.2rem;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
    color: var(--stone-400);
}

.site-footer h3 {
    margin: 0 0 0.85rem;
    color: var(--amber-100);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.45rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(231, 229, 228, 0.12);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 1180px) {
    .six-col {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

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

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

    .mobile-nav.open {
        display: block;
    }

    .quick-search,
    .featured-card,
    .category-overview,
    .detail-main,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .ranking-item {
        grid-template-columns: 5.5rem 1fr;
    }

    .rank-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .site-nav {
        height: 3.85rem;
    }

    .brand {
        font-size: 1rem;
    }

    .hero-slider,
    .hero-image,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        padding-top: 4.4rem;
        padding-bottom: 4.4rem;
    }

    .home-search {
        flex-direction: column;
    }

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

    .six-col,
    .mini-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .card-body {
        padding: 0.72rem;
    }

    .movie-card p,
    .tag-row {
        display: none;
    }

    .ranking-item {
        grid-template-columns: 4.5rem 1fr;
        gap: 0.7rem;
    }

    .detail-main,
    .story-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .player-overlay span {
        width: 4rem;
        height: 4rem;
    }
}
