:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.24);
    --orange: #f97316;
    --amber: #f59e0b;
    --deep: #111827;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(124, 45, 18, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
    width: 100%;
    height: auto;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 247, 237, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 8px 30px rgba(124, 45, 18, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    color: #ea580c;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    background: #ffedd5;
    color: #ea580c;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 22px;
}

main {
    min-height: 60vh;
}

.hero-carousel {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.primary-button {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ghost-button.light {
    background: rgba(255, 255, 255, 0.16);
}

.ghost-dark {
    margin-top: 18px;
    color: #ea580c;
    background: #ffedd5;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.25s ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: #ffffff;
}

.intro-band,
.content-section,
.category-section,
.cta-panel,
.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.intro-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.intro-band span {
    color: #ea580c;
    font-weight: 900;
}

.intro-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-section h2 {
    margin: 10px 0;
    color: #1f2937;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.intro-band p,
.section-heading p,
.page-hero p,
.article-section p,
.detail-info p {
    color: var(--muted);
    line-height: 1.9;
}

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

.section-heading span,
.page-hero span {
    background: #ffedd5;
    color: #ea580c;
}

.compact-heading {
    margin-bottom: 18px;
}

.compact-heading h2 {
    font-size: 28px;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 220px) minmax(140px, 180px);
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.search-box span {
    color: #ea580c;
    font-weight: 900;
}

.search-box input,
.filter-toolbar select {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: #374151;
    font-size: 15px;
}

.filter-toolbar select {
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 40px rgba(124, 45, 18, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(124, 45, 18, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #431407, #f97316);
}

.movie-card:not(.compact) .poster {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.62) 100%);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.56);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #ea580c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.category-overview-card h2 a:hover,
.ranking-card h2 a:hover {
    color: #ea580c;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.75;
}

.movie-card .tag-row span {
    background: #fff7ed;
    color: #c2410c;
}

.category-section {
    max-width: none;
    padding-left: max(24px, calc((100% - 1200px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1200px) / 2 + 24px));
    background: linear-gradient(90deg, #ffedd5, #fef3c7);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 24px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.14);
}

.category-card img,
.category-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-glow {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 23px;
    font-weight: 950;
}

.category-card em {
    margin-top: 8px;
    color: #fde68a;
    font-size: 13px;
    line-height: 1.7;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    transition: all 0.2s ease;
}

.rank-row:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-num {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-weight: 950;
}

.rank-title {
    font-weight: 900;
    color: #1f2937;
}

.rank-info {
    color: #6b7280;
    font-size: 13px;
}

.cta-panel {
    margin-bottom: 72px;
    border-radius: 34px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 22px 60px rgba(249, 115, 22, 0.26);
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
}

.cta-panel p {
    margin: 0 auto 28px;
    max-width: 620px;
    color: #fffbeb;
    font-size: 18px;
}

.cta-panel div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.page-hero {
    max-width: 1200px;
    margin: 42px auto 0;
    padding: 56px 24px;
}

.slim-hero > div {
    padding: 52px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(254, 243, 199, 0.96));
    box-shadow: var(--shadow);
}

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

.category-overview-grid,
.ranking-list-page {
    display: grid;
    gap: 20px;
}

.category-overview-card,
.ranking-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-cover,
.ranking-cover {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 20px;
    background: #431407;
}

.category-cover img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-cover span,
.ranking-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #ffffff;
    font-weight: 900;
}

.category-overview-card h2,
.ranking-card h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    font-weight: 950;
}

.category-overview-card p,
.ranking-card p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.8;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-samples a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
}

.wide-meta {
    margin-bottom: 18px;
}

.detail-page {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #c2410c;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 40px;
    padding: 28px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #431407;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.18);
}

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

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

.lead-text {
    margin-bottom: 20px;
    font-size: 18px;
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-tags span {
    background: #ffedd5;
    color: #c2410c;
}

.player-section,
.article-section,
.related-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.player-cover span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #ea580c;
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transition: transform 0.24s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
}

.player-shell.is-playing .player-cover {
    display: none;
}

.article-section {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

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

.article-section p {
    margin-bottom: 24px;
    font-size: 17px;
}

.site-footer {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    padding: 56px 24px 28px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #fdba74;
    font-size: 18px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 10px;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-grid a:hover {
    color: #fdba74;
}

.footer-bottom {
    max-width: 1200px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-inner {
        align-items: flex-end;
        padding-bottom: 88px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .intro-band,
    .filter-toolbar,
    .detail-hero,
    .category-overview-card,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .intro-band {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .movie-card:not(.compact) .poster {
        aspect-ratio: 3 / 4;
    }

    .slim-hero > div {
        padding: 34px 24px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-poster {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .brand,
    .footer-brand {
        font-size: 17px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

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

    .content-section,
    .category-section,
    .detail-page,
    .intro-band,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .player-cover span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
