:root {
    color-scheme: light;
    --bg: #fff8ed;
    --paper: #ffffff;
    --paper-soft: #fff3df;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.16);
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-soft: #fef3c7;
    --orange: #ea580c;
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
}

.hero-backdrop,
.hero-backdrop img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-shade {
    background:
        radial-gradient(circle at 72% 22%, rgba(245, 158, 11, 0.28), transparent 36%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 390px;
    align-items: center;
    gap: 46px;
    padding: 78px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 900;
}

.hero-copy .eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.82);
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    max-width: 760px;
    color: #fde68a;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.hero-lead {
    max-width: 720px;
    margin: 20px 0 0;
    color: #f3f4f6;
    font-size: 20px;
}

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

.hero-meta {
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.secondary-btn,
.more-link,
.primary-link,
.ghost-link,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-btn,
.search-box button {
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.32);
}

.secondary-btn {
    padding: 12px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

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

.hero-panel {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(21, 12, 3, 0.48);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hero-panel-head h2 {
    margin: 0;
    font-size: 20px;
}

.hero-panel-head span {
    color: #fde68a;
    font-size: 13px;
    font-weight: 900;
}

.hero-picks {
    display: grid;
    gap: 12px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 10px;
    color: #fff;
    text-align: left;
    background: rgba(255, 255, 255, 0.12);
    transition: 0.2s ease;
}

.hero-pick:hover {
    background: rgba(245, 158, 11, 0.4);
}

.hero-pick img {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-pick span {
    font-weight: 900;
}

.search-strip {
    margin-top: -44px;
    position: relative;
    z-index: 3;
}

.search-strip-inner {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-strip h2,
.section-heading h2,
.page-hero h1,
.detail-side h1,
.detail-article h2,
.detail-facts h2,
.category-overview-card h2 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.04em;
}

.search-strip h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
}

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

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 999px;
    padding: 13px 16px;
    color: #374151;
    background: #fff;
    outline: none;
}

.section-block {
    padding: 72px 0 0;
}

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

.more-link,
.primary-link,
.ghost-link {
    padding: 10px 16px;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

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

.listing-grid {
    padding-top: 28px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(120, 53, 15, 0.16);
}

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.56));
    opacity: 0;
    transition: 0.2s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(217, 119, 6, 0.92);
}

.rank-number {
    left: 12px;
    top: 12px;
    min-width: 36px;
    padding: 5px 9px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
}

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

.movie-meta {
    margin-bottom: 9px;
}

.movie-meta span {
    color: var(--brand-dark);
    background: #fffbeb;
}

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

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    border-radius: 999px;
    padding: 4px 9px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.movie-card-horizontal .poster-link {
    height: 100%;
    aspect-ratio: auto;
}

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

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

.category-card {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    color: #fff;
    background: #111827;
    align-content: end;
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.12);
}

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

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

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

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 20px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: #fef3c7;
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 90px 58px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.07);
}

.rank-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: #fef3c7;
}

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

.rank-index {
    color: var(--brand);
    font-size: 24px;
    font-weight: 950;
}

.rank-body h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-body p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 14px;
}

.page-main {
    padding: 34px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 44px;
    background:
        radial-gradient(circle at 84% 10%, rgba(245, 158, 11, 0.28), transparent 34%),
        linear-gradient(135deg, #fff7ed, #fffbeb);
    box-shadow: var(--shadow);
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 160px 160px;
    gap: 12px;
    margin-top: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.category-overview-grid {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    background: #fef3c7;
}

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

.category-overview-card p {
    color: var(--muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.inline-links a {
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--brand-dark);
    background: #fffbeb;
    font-size: 13px;
    font-weight: 800;
}

.detail-main {
    padding: 28px 0 76px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) 390px;
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050505;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: 0.22s ease;
}

.player-overlay:hover {
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.16), rgba(0, 0, 0, 0.66));
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 4px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.36);
    font-size: 34px;
}

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

.detail-side {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.detail-side > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-side-content {
    padding: 22px;
}

.detail-side h1 {
    font-size: 30px;
    line-height: 1.16;
}

.detail-side p {
    color: var(--muted);
}

.detail-meta span {
    color: var(--brand-dark);
    background: #fffbeb;
}

.detail-tags {
    margin-top: 16px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 32px;
}

.detail-article,
.detail-facts {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.detail-article h2:not(:first-child) {
    margin-top: 26px;
}

.detail-article p {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 17px;
}

.detail-facts dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 11px 14px;
    margin: 18px 0 0;
}

.detail-facts dt {
    color: var(--brand-dark);
    font-weight: 900;
}

.detail-facts dd {
    margin: 0;
    color: var(--muted);
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer p {
    max-width: 520px;
    color: #fde68a;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #fde68a;
}

.footer-logo {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px;
    color: #fde68a;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 12px;
        background: rgba(255, 251, 235, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .hero-content,
    .search-strip-inner,
    .detail-hero,
    .detail-content-grid,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
        padding: 90px 0 80px;
    }

    .hero-section {
        min-height: auto;
    }

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 220px 1fr;
    }

    .detail-side > img {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 22px, 1180px);
    }

    .site-logo,
    .footer-logo {
        font-size: 20px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy h2 {
        font-size: 28px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .search-strip {
        margin-top: 0;
    }

    .search-strip-inner,
    .page-hero,
    .detail-article,
    .detail-facts {
        padding: 22px;
        border-radius: 24px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 78px 1fr;
    }

    .rank-index {
        position: absolute;
        margin-left: 12px;
        margin-top: 12px;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    }

    .rank-row .ghost-link {
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .player-shell {
        border-radius: 22px;
    }

    .play-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}
