:root {
    color-scheme: light;
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(249, 115, 22, 0.16);
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-red: #ef4444;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --shadow: 0 24px 60px rgba(127, 29, 29, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.narrow-container {
    max-width: 920px;
}

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

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
    font-size: 0.84rem;
}

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

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

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: var(--accent-soft);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--accent-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

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

.hero-stage,
.hero-slide {
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.88)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.35), transparent 22rem),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 64px;
    padding: 72px 0;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: #fed7aa;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-site-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 4.9rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #ffedd5;
    font-size: clamp(1.6rem, 3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.30);
}

.btn-ghost {
    color: #9a3412;
    background: rgba(255, 237, 213, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.38);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

.quick-search {
    margin-top: -48px;
    position: relative;
    z-index: 4;
}

.quick-search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
}

.quick-search p {
    margin: 0;
    color: var(--muted);
}

.search-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-search-input {
    width: min(360px, 70vw);
    min-height: 46px;
    padding: 0 18px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.large-input {
    width: min(620px, 90vw);
}

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

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.6rem, 2.4vw, 2.45rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-more,
.text-link {
    color: var(--accent-dark);
    font-weight: 900;
}

.category-strip,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip,
.filter-pills button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    color: #9a3412;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.08);
}

.filter-pills {
    margin-top: 22px;
}

.filter-pills button.is-active,
.category-chip:hover,
.filter-pills button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(127, 29, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.34);
    box-shadow: 0 24px 55px rgba(249, 115, 22, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3,
.rank-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 950;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
    color: var(--accent-dark);
}

.movie-card p,
.rank-info p,
.category-card p,
.feature-panel p,
.page-hero p,
.detail-one-line,
.detail-article p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-card p {
    min-height: 72px;
    margin: 0;
    font-size: 0.92rem;
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.movie-card-compact h3 {
    font-size: 0.98rem;
}

.movie-card-compact p {
    min-height: 62px;
    font-size: 0.86rem;
}

.split-section {
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.42), rgba(255, 255, 255, 0));
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 70px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
}

.rank-num {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border-radius: 14px;
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.rank-thumb img {
    width: 70px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-info p {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.rank-score {
    color: var(--accent-dark);
    font-size: 1.4rem;
    font-weight: 950;
    text-align: right;
}

.rank-list-large .rank-row {
    grid-template-columns: 68px 92px minmax(0, 1fr) 72px;
}

.rank-list-large .rank-thumb img {
    width: 92px;
}

.feature-panel,
.category-card,
.detail-side,
.detail-article {
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-panel {
    position: sticky;
    top: 100px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.20), transparent 12rem),
        #ffffff;
}

.feature-panel h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 78px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.70)), var(--page-hero-image, linear-gradient(135deg, #111827, #7c2d12));
    background-size: cover;
    background-position: center;
}

.small-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.42), transparent 18rem),
        linear-gradient(135deg, #111827, #7c2d12 56%, #111827);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
}

.page-search {
    margin-top: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

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

.category-card-title {
    display: inline-flex;
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card-title:hover {
    color: var(--accent-dark);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    padding: 7px 11px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.detail-top {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 20%, rgba(249, 115, 22, 0.28), transparent 24rem);
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    padding: 82px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
}

.detail-tags span {
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.24);
    border-color: rgba(251, 146, 60, 0.42);
}

.player-section {
    padding-top: 56px;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.62));
    z-index: 2;
}

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

.play-icon {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border-radius: 999px;
    box-shadow: 0 22px 55px rgba(249, 115, 22, 0.35);
    font-size: 2rem;
}

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

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.55rem;
    font-weight: 950;
}

.detail-article p + h2 {
    margin-top: 34px;
}

.detail-side dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.detail-side dd {
    margin: -8px 0 6px;
    color: #111827;
    font-weight: 850;
}

.detail-side a {
    color: var(--accent-dark);
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 40px;
    padding: 48px 0 0;
    color: #4b5563;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-grid p {
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 900;
}

.footer-links a:hover {
    color: var(--accent-dark);
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 0;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid var(--line);
}

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

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

    .hero-poster {
        max-width: 280px;
    }

    .feature-panel {
        position: static;
    }
}

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

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

    .hero-slider,
    .hero-stage,
    .hero-slide {
        min-height: 720px;
    }

    .hero-inner {
        min-height: 720px;
        gap: 28px;
        padding: 48px 0 86px;
    }

    .hero-poster {
        max-width: 210px;
        transform: none;
    }

    .hero-control {
        display: none;
    }

    .quick-search {
        margin-top: -24px;
    }

    .quick-search-box,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .search-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .site-search-input {
        width: 100%;
    }

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

    .content-section {
        padding: 52px 0;
    }

    .rank-row,
    .rank-list-large .rank-row {
        grid-template-columns: 44px 64px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

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

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

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

    .movie-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .poster-link img {
        height: 100%;
        min-height: 168px;
    }

    .movie-card p {
        min-height: 0;
    }

    .hero-copy h1,
    .hero-site-title {
        font-size: 2.35rem;
    }

    .page-hero,
    .detail-grid {
        padding: 58px 0;
    }

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