:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #3f260c;
    --muted: #8b5e2f;
    --line: rgba(146, 64, 14, 0.16);
    --brand: #f59e0b;
    --brand-dark: #78350f;
    --accent: #fb923c;
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.95));
    color: #fffbeb;
    box-shadow: 0 18px 55px rgba(120, 53, 15, 0.28);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.34);
}

.logo-text strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    margin-top: 3px;
    color: #fde68a;
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.main-nav a {
    color: #fffbeb;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #fde68a;
}

.header-search {
    position: relative;
    width: min(300px, 26vw);
}

.header-search input,
.search-control input,
.search-control select {
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff7ed;
    outline: none;
    background: rgba(67, 20, 7, 0.36);
}

.header-search input::placeholder,
.search-control input::placeholder {
    color: rgba(253, 230, 138, 0.82);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 12px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fffbeb;
    background: #451a03;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52) saturate(1.14);
    transform: scale(1.04);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(251, 191, 36, 0.38), transparent 28rem),
        linear-gradient(90deg, rgba(69, 26, 3, 0.95) 0%, rgba(120, 53, 15, 0.74) 46%, rgba(67, 20, 7, 0.35) 100%),
        linear-gradient(0deg, #fff7ed 0%, rgba(255, 247, 237, 0) 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 110px 0 80px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(253, 230, 138, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.44);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.9rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.hero p {
    margin: 0;
    color: #ffedd5;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #451a03;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
}

.btn-soft {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(253, 230, 138, 0.35);
}

.hero-panel {
    padding: 22px;
    border: 1px solid rgba(253, 230, 138, 0.32);
    border-radius: 28px;
    background: rgba(69, 26, 3, 0.54);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
}

.hero-poster {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(253, 230, 138, 0.48);
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #f59e0b;
}

.section {
    padding: 64px 0 0;
}

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

.section-title {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(120, 53, 15, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

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

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

.card-badge,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #78350f;
    background: #fef3c7;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(254, 243, 199, 0.92);
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(120, 53, 15, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 1.1rem;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    color: #78522a;
    font-size: 0.92rem;
    line-height: 1.65;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.category-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 9rem),
        #ffffff;
    box-shadow: 0 16px 42px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 1.18rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.94rem;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.rank-number {
    color: #c2410c;
    font-size: 1.55rem;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 96px;
    height: 126px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-row h3 {
    margin: 0 0 8px;
    color: var(--brand-dark);
}

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

.page-hero {
    padding: 72px 0 54px;
    color: #fffbeb;
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.34), transparent 28rem),
        linear-gradient(135deg, #78350f, #9a3412 48%, #451a03);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #ffedd5;
    line-height: 1.85;
    font-size: 1.08rem;
}

.search-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin: 0 0 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 46px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.search-control input,
.search-control select {
    color: var(--ink);
    background: #fff7ed;
}

.search-control input::placeholder {
    color: #a16207;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    color: #7c2d12;
    font-weight: 700;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1c0a00;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #451a03;
    background:
        radial-gradient(circle at center, rgba(255, 251, 235, 0.16), transparent 20rem),
        rgba(28, 10, 0, 0.24);
}

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

.play-layer span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    font-size: 2rem;
    font-weight: 900;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 14px;
    color: var(--brand-dark);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-content h2 {
    margin: 28px 0 12px;
    color: #7c2d12;
    font-size: 1.35rem;
}

.detail-content p {
    color: #5b3a1d;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    color: var(--brand-dark);
    font-size: 1.25rem;
}

.related-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.related-item:last-child {
    border-bottom: 0;
}

.related-item img {
    width: 76px;
    height: 98px;
    border-radius: 14px;
    object-fit: cover;
}

.related-item h3 {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 0.98rem;
    line-height: 1.36;
}

.related-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.site-footer {
    margin-top: 72px;
    color: #fffbeb;
    background: linear-gradient(135deg, #78350f, #9a3412 52%, #451a03);
}

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

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 10px;
}

.footer-inner p {
    margin: 0;
    color: #ffedd5;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 14px;
    font-weight: 800;
}

.footer-links a {
    color: #fde68a;
}

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

@media (max-width: 1040px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 820px) {
    .main-nav,
    .header-search {
        display: none;
    }

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

    .hero {
        min-height: 720px;
    }

    .hero-content {
        min-height: 720px;
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 82px;
    }

    .hero-panel {
        max-width: 360px;
    }

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

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

    .rank-row {
        grid-template-columns: 54px 82px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 2 / 4;
        width: 100%;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    .container,
    .hero-content,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 22px, 1180px);
    }

    .logo-text span {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .rank-row {
        grid-template-columns: 46px 72px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-row img {
        width: 72px;
        height: 96px;
    }

    .detail-content {
        padding: 20px;
    }
}
