:root {
    color-scheme: light;
    --page-bg: #fff8ee;
    --surface: #ffffff;
    --surface-soft: #fff2df;
    --surface-strong: #fffaf3;
    --text: #24211c;
    --muted: #6f675c;
    --line: rgba(180, 114, 41, 0.18);
    --brand: #f97316;
    --brand-deep: #d97706;
    --brand-soft: #fed7aa;
    --amber: #f59e0b;
    --shadow: 0 18px 50px rgba(119, 67, 15, 0.13);
    --shadow-soft: 0 10px 28px rgba(119, 67, 15, 0.09);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.88), transparent 32rem), var(--page-bg);
    color: var(--text);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%, rgba(251, 191, 36, 0.08));
    z-index: -1;
}

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

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

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 248, 238, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand {
    font-size: 22px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.desktop-nav,
.mobile-nav,
.footer-links,
.footer-chips,
.category-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #574e43;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-soft);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

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

.hero-section {
    padding: 34px 22px 0;
}

.hero-shell,
.ranking-hero,
.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.hero-shell {
    min-height: 620px;
    background: linear-gradient(135deg, #241005, #8a3b08 45%, #f59e0b);
}

.hero-shell::before,
.ranking-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 24rem), linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.04));
    pointer-events: none;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 56px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-copy {
    color: #fff;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-heading span,
.page-hero span,
.ranking-copy span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.ranking-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.ranking-copy p {
    font-size: 19px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    max-width: 760px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.92);
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.detail-copy .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.small-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 15px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.36);
}

.ghost-button {
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.92);
    color: #7c2d12;
}

.small-button {
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster,
.ranking-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img,
.ranking-poster img,
.detail-poster img,
.player-cover img,
.movie-cover img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 56px;
    right: 56px;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    backdrop-filter: blur(14px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.section-block {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 22px;
}

.section-overlap {
    margin-top: -42px;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    padding-top: 34px;
    padding-bottom: 34px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.center {
    text-align: center;
}

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

.section-heading.split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
}

.section-heading span {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fed7aa;
}

.section-heading h2 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
}

.text-link {
    color: #c2410c;
    background: #ffedd5;
    padding: 10px 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    margin: 24px auto 0;
    max-width: 860px;
}

.search-box,
.select-box {
    display: grid;
    gap: 8px;
    color: #7c2d12;
    font-weight: 900;
}

.search-box input,
.select-box select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    min-height: 54px;
    border-radius: 18px;
    padding: 0 18px;
    color: var(--text);
    font: inherit;
    outline: none;
    box-shadow: var(--shadow-soft);
}

.search-box input:focus,
.select-box select:focus {
    border-color: var(--brand);
}

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

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

.movie-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: var(--shadow);
}

.movie-cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.movie-cover img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.meta-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 40px;
    min-height: 32px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(194, 65, 12, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

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

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

.movie-card h3 a:hover {
    color: var(--brand);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 999px;
    padding: 5px 9px;
}

.warm-panel {
    max-width: none;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 247, 237, 0.92));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.warm-panel > * {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    padding: 22px;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
    z-index: -1;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.58;
    transition: transform 0.35s ease;
}

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

.category-icon {
    font-size: 34px;
    line-height: 1;
}

.category-icon.large {
    font-size: 52px;
}

.category-card strong {
    margin-top: 14px;
    font-size: 24px;
}

.category-card em {
    margin-top: 8px;
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.page-hero,
.ranking-hero {
    margin-top: 34px;
    padding: 70px 56px;
    color: #fff;
    background: linear-gradient(135deg, #7c2d12, #f97316 64%, #fbbf24);
}

.page-hero > div,
.ranking-copy,
.ranking-poster {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.ranking-copy h1 {
    max-width: 920px;
}

.category-chip-row {
    margin-bottom: 22px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(119, 67, 15, 0.06);
    font-weight: 900;
}

.category-chip:hover,
.category-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.ranking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 42px;
}

.detail-hero {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 22px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #9a3412;
    font-weight: 800;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(135deg, #431407, #9a3412 52%, #f97316);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.detail-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 28rem);
    pointer-events: none;
}

.detail-poster,
.detail-copy {
    position: relative;
    z-index: 2;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    margin: 22px 0 18px;
    letter-spacing: -0.06em;
}

.detail-copy p {
    font-size: 19px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    max-width: 820px;
}

.player-section {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0f0a06;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #120904;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.38);
    font-size: 34px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
    gap: 22px;
}

.article-card,
.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.article-card h2,
.info-card h2,
.site-footer h2 {
    margin: 0 0 14px;
}

.article-card p {
    margin: 0;
    line-height: 1.95;
    color: var(--muted);
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.info-card dt {
    color: #9a3412;
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 42px;
    background: #241005;
    color: #fff7ed;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
}

.footer-brand {
    font-size: 24px;
    margin-bottom: 14px;
}

.site-footer p {
    color: rgba(255, 247, 237, 0.72);
    line-height: 1.8;
    margin: 0;
}

.footer-links a,
.footer-chips a {
    color: rgba(255, 247, 237, 0.86);
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 9px 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 22px;
    text-align: center;
    color: rgba(255, 247, 237, 0.68);
}

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

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

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

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

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

    .hero-slide {
        padding: 36px 24px 96px;
        gap: 26px;
    }

    .hero-shell,
    .hero-slide {
        min-height: 760px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
    }

    .hero-poster,
    .ranking-poster,
    .detail-poster {
        max-width: 360px;
        width: 100%;
    }

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

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

    .category-overview-head {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .section-block,
    .page-hero,
    .ranking-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section,
    .detail-hero,
    .player-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-copy h1,
    .page-hero h1,
    .ranking-copy h1,
    .detail-copy h1 {
        font-size: 38px;
    }

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

    .detail-layout {
        padding: 22px;
    }
}
