* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: rgba(255, 255, 255, 0.92);
    --ink: #27140a;
    --muted: #7c5a36;
    --gold: #f59e0b;
    --gold-dark: #b45309;
    --orange: #ea580c;
    --amber: #fbbf24;
    --line: rgba(180, 83, 9, 0.16);
    --shadow: 0 24px 80px rgba(146, 64, 14, 0.18);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 40%, #fff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    min-height: 68vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 251, 235, 0.88);
    backdrop-filter: blur(22px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #facc15, #f97316, #b45309);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

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

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #b45309, #ea580c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #6b4321;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    transform: translateY(-1px);
}

.nav-link-soft {
    font-size: 14px;
    color: #8a5a28;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 10px;
    background: #92400e;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    background: rgba(251, 191, 36, 0.12);
}

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 36px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 34px;
    background: #431407;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.04fr 0.76fr;
    align-items: center;
    gap: 34px;
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(124, 45, 18, 0.74), rgba(67, 20, 7, 0.35)),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(67, 20, 7, 0.84), transparent);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.58);
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff7ed;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 16px 0 0;
    color: #fef3c7;
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.08;
}

.hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: #ffedd5;
    font-size: 17px;
    line-height: 1.86;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 38px rgba(234, 88, 12, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(234, 88, 12, 0.36);
}

.btn.ghost {
    color: #fff7ed;
    border: 1px solid rgba(253, 230, 138, 0.42);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hero-poster {
    align-self: stretch;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(253, 230, 138, 0.26);
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.hero-dots {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.42);
}

.hero-dot.active {
    background: #fbbf24;
}

.section,
.page-hero,
.detail-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 42px;
}

.page-hero {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 10%, rgba(251, 191, 36, 0.28), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.86));
    box-shadow: var(--shadow);
}

.page-hero h1,
.section-title h1,
.section-title h2,
.detail-title h1 {
    margin: 0;
    color: #451a03;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.page-hero p,
.section-title p,
.detail-title p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.85;
}

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

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 210px 210px;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(180, 83, 9, 0.10);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    background: #fff7ed;
}

.search-box input,
.filter-panel select {
    width: 100%;
    min-height: 52px;
    border: 0;
    outline: none;
    color: var(--ink);
    background: transparent;
}

.filter-panel select {
    padding: 0 16px;
    border-radius: 18px;
    background: #fff7ed;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 46px rgba(146, 64, 14, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 24px 62px rgba(146, 64, 14, 0.20);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #78350f;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(67, 20, 7, 0.46));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 42px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #b45309);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

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

.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9a5f18;
    font-size: 13px;
    font-weight: 800;
}

.card-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
}

.movie-card h2 {
    margin: 12px 0 8px;
    color: #451a03;
    font-size: 20px;
    line-height: 1.25;
}

.movie-card p {
    min-height: 68px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}

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

.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 28px;
    color: #fff7ed;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(234, 88, 12, 0.74)),
        var(--cat-image) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 30px;
}

.category-card p {
    margin: 14px 0 22px;
    color: #ffedd5;
    line-height: 1.74;
}

.category-card span {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    color: #78350f;
    background: #fde68a;
    font-weight: 900;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.10);
}

.ranking-index {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.ranking-row img {
    width: 120px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-row h2,
.ranking-row h3 {
    margin: 0 0 8px;
    color: #451a03;
    font-size: 20px;
}

.ranking-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card,
.info-card,
.prose-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1c0a03;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1c0a03;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(28, 10, 3, 0.38);
}

.player-cover.is-hidden {
    display: none;
}

.play-core {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 36px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.player-caption {
    padding: 20px 22px;
}

.player-caption h2 {
    margin: 0 0 8px;
    color: #451a03;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.info-card {
    padding: 22px;
}

.info-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    object-fit: cover;
}

.info-card h2 {
    margin: 18px 0 10px;
    color: #451a03;
    font-size: 26px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(180, 83, 9, 0.12);
    color: var(--muted);
}

.info-list strong {
    color: #451a03;
}

.prose-card {
    margin-top: 26px;
    padding: 28px;
}

.prose-card h2 {
    margin: 0 0 14px;
    color: #451a03;
    font-size: 28px;
}

.prose-card p {
    margin: 0 0 18px;
    color: #5f3f21;
    font-size: 16px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 60px;
    color: #ffedd5;
    background: linear-gradient(135deg, #431407, #7c2d12, #92400e);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand p {
    max-width: 420px;
    margin: 10px 0 0;
    color: #fed7aa;
    line-height: 1.76;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 9px 13px;
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 999px;
    color: #ffedd5;
}

.hidden-card {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 820px;
    }

    .hero-slide {
        padding: 42px;
    }

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

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

    .ranking-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 68px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero,
    .section,
    .page-hero,
    .detail-section {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        min-height: 780px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px;
        gap: 22px;
    }

    .hero-poster {
        min-height: 300px;
    }

    .hero-dots {
        left: 28px;
        right: 28px;
        bottom: 24px;
    }

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

    .section-title {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

    .ranking-row {
        grid-template-columns: 46px 88px 1fr;
        gap: 12px;
    }

    .ranking-index {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .ranking-row img {
        width: 88px;
        height: 64px;
    }

    .play-core {
        width: 78px;
        height: 78px;
        font-size: 30px;
    }
}
