:root {
    color-scheme: light;
    --bg: #fff8ed;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.18);
    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --cream: #fff7ed;
    --shadow: 0 18px 48px rgba(154, 52, 18, 0.12);
    --shadow-strong: 0 24px 68px rgba(154, 52, 18, 0.24);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.16), transparent 32rem),
        radial-gradient(circle at 96% 16%, rgba(245, 158, 11, 0.14), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff8ed 100%);
    color: var(--ink);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 10px 36px rgba(154, 52, 18, 0.08);
}

.header-inner,
.mobile-panel,
.footer-grid,
.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb923c, #f97316, #f59e0b);
    color: #fff;
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
    font-size: 14px;
}

.brand-text {
    font-size: 24px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    align-items: center;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.select-row select {
    border: 1px solid rgba(251, 146, 60, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    outline: none;
    border-radius: 999px;
    padding: 11px 15px;
    min-width: 240px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.select-row select:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.filter-search button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.player-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.filter-search button,
.btn-primary,
.player-button {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.filter-search button {
    padding: 12px 18px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.btn-secondary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid rgba(251, 146, 60, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.header-search button:hover,
.mobile-search button:hover,
.filter-search button:hover,
.player-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.30);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff7ed;
    border-radius: 14px;
    margin-left: auto;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #9a3412;
    margin: 5px 0;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

.mobile-panel.open {
    display: block;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.mobile-nav {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.72s ease;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.24) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.74)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 46px;
    color: #fff;
    position: relative;
    z-index: 2;
    padding: 92px 0 88px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fed7aa;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 20px 0 12px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.2vw, 42px);
}

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

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

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

.hero-tags {
    margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-card {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 16px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
}

.hero-poster {
    min-height: 420px;
    border-radius: 24px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46)),
        var(--poster);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    color: #fff;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.94);
    border-radius: 999px;
    padding: 8px 14px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: #fb923c;
}

.main-section,
.page-section {
    padding: 70px 0;
}

.section-heading {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h1,
.section-heading h2,
.page-title h1 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.045em;
}

.section-heading h1,
.page-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.section-heading p,
.page-title p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 12px 0 0;
    max-width: 760px;
}

.page-title {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0 18px;
}

.movie-grid,
.category-grid,
.rank-grid,
.related-grid {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

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

.movie-card {
    background: var(--paper);
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster {
    display: block;
    position: relative;
    min-height: 270px;
    background-image:
        linear-gradient(180deg, rgba(124, 45, 18, 0.02), rgba(124, 45, 18, 0.38)),
        var(--poster);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 237, 213, 0.24), transparent 36%), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
}

.year-badge,
.play-badge {
    position: absolute;
    top: 14px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 14px;
    color: #9a3412;
    background: rgba(255, 247, 237, 0.92);
}

.play-badge {
    right: 14px;
    color: #fff;
    background: rgba(249, 115, 22, 0.94);
}

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

.movie-meta-line,
.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span,
.info-pills span {
    background: #fff7ed;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 999px;
    padding: 5px 9px;
}

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

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

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.72;
    min-height: 74px;
}

.tag-row span,
.detail-tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.category-card {
    min-height: 210px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
    font-size: 22px;
    color: #111827;
}

.category-card p {
    color: var(--muted);
    line-height: 1.75;
    margin: 12px 0 18px;
}

.category-card div {
    display: grid;
    gap: 7px;
}

.category-card span {
    color: #9a3412;
    font-weight: 700;
    font-size: 13px;
}

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

.rank-list {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 12px 28px rgba(154, 52, 18, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    font-weight: 900;
}

.rank-cover {
    width: 58px;
    height: 72px;
    border-radius: 12px;
    background-image: var(--poster);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(124, 45, 18, 0.16);
}

.rank-text {
    min-width: 0;
}

.rank-text strong,
.rank-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-text small {
    margin-top: 5px;
    color: var(--muted);
}

.rank-score {
    color: var(--brand-dark);
    font-weight: 900;
}

.filter-panel {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: var(--shadow);
}

.filter-search input {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-row button {
    border: 1px solid rgba(251, 146, 60, 0.20);
    color: #9a3412;
    background: #fff7ed;
    padding: 9px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.filter-row button.active,
.filter-row button:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.select-row {
    margin-top: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.select-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.empty-state {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 30px;
    padding: 24px;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    color: #9a3412;
    font-weight: 800;
    text-align: center;
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding-top: 26px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

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

.detail-hero {
    width: min(var(--container), calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: stretch;
}

.detail-poster {
    min-height: 520px;
    border-radius: 32px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.40)),
        var(--poster);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 237, 213, 0.22), transparent 34%);
}

.detail-info {
    border-radius: 32px;
    padding: clamp(24px, 4vw, 42px);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.17);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 16px 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.detail-info .lead {
    color: #4b5563;
    font-size: 19px;
    line-height: 1.9;
}

.detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

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

.player-shell {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.74)),
        var(--poster);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 26px;
    font-size: 18px;
}

.player-button span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.detail-body {
    width: min(var(--container), calc(100% - 32px));
    margin: 46px auto 0;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 30px;
}

.article-panel,
.side-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 26px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.article-panel p {
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

.side-links {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.side-link .mini-cover {
    width: 58px;
    height: 72px;
    border-radius: 12px;
    background-image: var(--poster);
    background-size: cover;
    background-position: center;
}

.side-link strong,
.side-link small {
    display: block;
}

.side-link small {
    color: var(--muted);
    margin-top: 5px;
}

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

.site-footer {
    margin-top: 70px;
    padding: 54px 0 30px;
    background: #111827;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
}

.site-footer p {
    line-height: 1.85;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fed7aa;
}

.copyright {
    width: min(var(--container), calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-card {
        max-width: 420px;
    }

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

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

@media (max-width: 760px) {
    .brand-text {
        font-size: 20px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding: 86px 0 70px;
    }

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

    .section-heading {
        display: block;
    }

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

    .movie-grid,
    .related-grid,
    .rank-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .poster {
        min-height: 330px;
    }

    .filter-search,
    .mobile-search {
        align-items: stretch;
    }

    .filter-search input,
    .mobile-search input {
        min-width: 0;
    }

    .rank-item {
        grid-template-columns: 38px 52px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

    .detail-poster {
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .mobile-panel,
    .footer-grid,
    .container,
    .section-heading,
    .movie-grid,
    .category-grid,
    .rank-grid,
    .rank-list,
    .page-title,
    .breadcrumb,
    .detail-hero,
    .player-section,
    .detail-body,
    .related-grid,
    .filter-panel,
    .empty-state,
    .copyright {
        width: min(100% - 22px, var(--container));
    }

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

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }

    .poster {
        min-height: 280px;
    }
}
