:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow-soft: 0 18px 50px rgba(41, 37, 36, 0.16);
    --shadow-card: 0 14px 32px rgba(41, 37, 36, 0.14);
    --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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--stone-50), rgba(254, 243, 199, 0.34));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.82), rgba(120, 53, 15, 0));
}

.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(120, 53, 15, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(41, 37, 36, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--amber-50);
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--amber-300);
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--amber-100);
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--amber-300);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(146, 64, 14, 0.5);
    color: var(--amber-50);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 10px 24px 20px;
    background: rgba(120, 53, 15, 0.98);
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

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

.mobile-nav a {
    color: var(--amber-100);
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(146, 64, 14, 0.26);
}

.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 18%, rgba(245, 158, 11, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(28, 25, 23, 0.1), rgba(28, 25, 23, 0.85)),
        linear-gradient(90deg, rgba(28, 25, 23, 0.78), rgba(28, 25, 23, 0.2));
}

.hero-content {
    position: absolute;
    left: max(28px, calc((100vw - 1200px) / 2 + 24px));
    bottom: 84px;
    z-index: 2;
    max-width: 760px;
    color: white;
}

.hero-tag,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-kicker {
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber-700);
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-content p {
    margin: 0 0 20px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
    color: var(--stone-100);
    max-width: 680px;
}

.hero-meta,
.movie-card-tags,
.detail-tags,
.page-actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.movie-card-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(255, 251, 235, 0.13);
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-link,
.quick-search-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.quick-search-card button {
    color: white;
    background: var(--amber-600);
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover,
.quick-search-card button:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
}

.ghost-btn {
    color: white;
    background: rgba(255, 251, 235, 0.14);
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.24);
}

.ghost-btn.dark {
    color: var(--amber-800);
    background: rgba(217, 119, 6, 0.1);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18);
}

.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 38px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.54);
    transform: translateY(-1px);
}

.hero-prev {
    left: 26px;
}

.hero-next {
    right: 26px;
}

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

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

.hero-dot.is-active {
    width: 28px;
    background: var(--amber-300);
}

.quick-search {
    max-width: 1200px;
    margin: -44px auto 28px;
    padding: 0 24px;
    position: relative;
    z-index: 6;
}

.quick-search-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-search-card span {
    color: var(--amber-800);
    font-weight: 900;
}

.quick-search-card input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--stone-800);
    background: white;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.content-section,
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
}

.warm-section {
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.7), rgba(250, 250, 249, 0.72));
}

.section-head,
.category-overview-head,
.player-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.section-head h2,
.category-overview-head h2,
.player-title-row h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
    margin: 10px 0 8px;
    color: var(--stone-800);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head h2,
.category-overview-head h2,
.player-title-row h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.section-head p,
.category-overview-head p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--stone-600);
    line-height: 1.8;
}

.section-link {
    color: var(--amber-800);
    background: rgba(217, 119, 6, 0.1);
    min-height: 42px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--stone-900);
    box-shadow: var(--shadow-card);
    transform: translateZ(0);
}

.category-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0.66;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.78;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.88));
}

.category-card div {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px;
    color: white;
}

.category-card span {
    color: var(--amber-300);
    font-size: 13px;
    font-weight: 800;
}

.category-card h3 {
    margin: 6px 0;
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--stone-200);
    font-size: 13px;
    line-height: 1.6;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
    border-radius: var(--radius-md);
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(41, 37, 36, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.poster-badge,
.rank-num {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-num {
    left: 10px;
    right: auto;
    background: rgba(28, 25, 23, 0.74);
}

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

.movie-card-meta {
    margin-bottom: 5px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 7px;
    color: var(--stone-800);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-tags {
    gap: 6px;
}

.movie-card-tags span {
    color: var(--amber-800);
    background: rgba(217, 119, 6, 0.1);
    box-shadow: none;
    font-size: 11px;
    padding: 4px 7px;
}

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

.page-shell {
    padding-top: 118px;
}

.page-hero {
    padding: 44px;
    margin-bottom: 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(135deg, white, rgba(254, 243, 199, 0.72));
    box-shadow: 0 16px 42px rgba(41, 37, 36, 0.08);
}

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

.page-actions {
    margin-top: 24px;
}

.filter-panel {
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: white;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 16px;
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.08);
}

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

.filter-panel .wide {
    grid-column: 1 / -1;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: var(--stone-600);
    background: white;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.category-overview-block {
    margin-bottom: 34px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 38px rgba(41, 37, 36, 0.08);
}

.movie-detail-main {
    padding-top: 96px;
}

.detail-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 26px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--stone-200);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--stone-500);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-tag {
    margin-bottom: 4px;
}

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

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: var(--stone-600);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span {
    color: var(--amber-800);
    background: rgba(217, 119, 6, 0.1);
    box-shadow: none;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.detail-facts div {
    padding: 14px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.07);
}

.detail-facts span {
    display: block;
    margin-bottom: 6px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 800;
}

.detail-facts strong {
    color: var(--stone-800);
    font-size: 14px;
}

.player-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 24px 44px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--stone-900);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(28, 25, 23, 0.1), rgba(28, 25, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    font-size: 36px;
    box-shadow: 0 22px 50px rgba(217, 119, 6, 0.45);
    padding-left: 6px;
}

.player-box.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    padding-top: 0;
}

.detail-article {
    padding: 34px;
    border-radius: 28px;
    background: white;
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.08);
}

.detail-article h2 {
    font-size: 28px;
}

.detail-article p {
    color: var(--stone-700);
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 50px;
    padding: 46px 24px 24px;
    color: var(--stone-300);
    background: linear-gradient(180deg, var(--stone-900), #0c0a09);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-grid p {
    max-width: 420px;
    color: var(--stone-400);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: var(--amber-100);
    font-size: 18px;
}

.footer-grid a {
    display: block;
    width: fit-content;
    margin: 8px 0;
    color: var(--stone-400);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(231, 229, 228, 0.08);
    color: var(--stone-500);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-wrap {
        height: 66px;
        padding: 0 16px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-carousel {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 74px;
    }

    .hero-arrow {
        top: auto;
        bottom: 24px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .hero-dots {
        bottom: 34px;
    }

    .quick-search {
        margin: 20px auto;
    }

    .quick-search-card {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head,
    .category-overview-head,
    .player-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .category-card {
        min-height: 190px;
    }

    .page-shell {
        padding-top: 92px;
    }

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

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    .detail-poster {
        max-width: 250px;
        margin: 0 auto;
    }

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

    .movie-detail-main {
        padding-top: 84px;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .movie-card p {
        font-size: 12px;
        min-height: 48px;
        -webkit-line-clamp: 2;
    }

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

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
