:root {
    --bg: #fff7ed;
    --bg-soft: #fffbf5;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-soft: #ffedd5;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.15), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 245, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.78);
}

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

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

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #facc15);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--accent-soft);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--accent-dark);
    margin: 5px 0;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    padding: 120px 0 92px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fed7aa;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(38px, 8vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero h2 {
    margin: 28px 0 12px;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #9a3412;
    background: #ffedd5;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.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 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

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

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost.light {
    color: var(--accent-dark);
    border-color: rgba(249, 115, 22, 0.24);
    background: #ffffff;
}

.btn-soft {
    color: #9a3412;
    background: #ffedd5;
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: 0.25s ease;
}

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

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.feature-strip div {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(254, 215, 170, 0.7);
}

.feature-strip strong,
.feature-strip span {
    display: block;
}

.feature-strip strong {
    font-size: 20px;
    color: var(--dark);
}

.feature-strip span {
    color: var(--muted);
    margin-top: 4px;
}

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

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

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

.category-card a {
    display: block;
    height: 100%;
    padding: 24px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 65px rgba(124, 45, 18, 0.18);
}

.category-accent {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    color: #9a3412;
    background: var(--accent-soft);
    font-weight: 900;
    font-size: 12px;
}

.category-card h2 {
    margin: 16px 0 8px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

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

.category-samples {
    display: grid;
    gap: 4px;
    margin-top: 16px;
}

.category-samples a,
.large-category li a {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 14px;
}

.large-category ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.search-panel input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 18px;
    padding: 0 18px;
    outline: none;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.search-panel input:focus {
    border-color: var(--accent);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
    color: #ffffff;
    background: var(--accent);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.2);
}

.movie-card[hidden],
.rank-item[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fed7aa;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.72));
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-weight: 900;
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #facc15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

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

.movie-card h2 {
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card-compact h2 {
    font-size: 16px;
}

.movie-card-compact p {
    display: none;
}

.page-hero {
    color: #ffffff;
    padding: 98px 0 80px;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.84)),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.55), transparent 32rem);
}

.page-hero .eyebrow {
    color: #fed7aa;
}

.page-hero .hero-actions {
    margin-top: 24px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--accent-dark);
    font-weight: 800;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.35);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    z-index: 2;
}

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

.big-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #facc15);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
    font-size: 36px;
}

.player-overlay strong {
    max-width: 90%;
    text-align: center;
    font-size: clamp(22px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.player-overlay em {
    font-style: normal;
    color: #fed7aa;
    font-weight: 900;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
    padding: 42px 0 0;
}

.detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border-radius: 28px;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

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

.detail-info {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: var(--shadow);
}

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

.detail-info h2 {
    margin: 30px 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-info p {
    margin: 0;
    color: #374151;
}

.detail-info .lead {
    margin-top: 16px;
    color: #4b5563;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

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

.related-block {
    padding-bottom: 70px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 74px 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.1);
}

.rank-num {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #facc15);
    font-size: 22px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 18px;
    background: #fed7aa;
}

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

.rank-content h2 {
    margin: 6px 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.rank-content p {
    margin: 0 0 8px;
    color: var(--muted);
}

.site-footer {
    margin-top: 72px;
    padding: 54px 0 24px;
    color: #ffffff;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

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

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #fed7aa;
    font-weight: 800;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 72px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: 640px;
    }

    .hero-copy {
        padding-top: 92px;
    }

    .feature-strip,
    .category-grid,
    .category-grid-wide,
    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .footer-grid,
    .search-panel,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .detail-info {
        padding: 24px;
    }

    .rank-item {
        grid-template-columns: 54px 82px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .rank-content p {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dot {
        width: 24px;
    }

    .hero-dot.is-active {
        width: 42px;
    }

    .page-hero {
        padding: 72px 0 58px;
    }
}
