:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
    --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 46%, #fffbeb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
    font-size: 15px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #c2410c;
    background: #ffedd5;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 22px;
    padding: 7px 12px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    align-items: center;
    gap: 48px;
    padding: 92px max(28px, calc((100vw - 1280px) / 2 + 24px)) 108px;
    transition: opacity 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.38;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 68% 42%, rgba(249, 115, 22, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(136, 19, 55, 0.72));
}

.hero-content {
    color: white;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(253, 186, 116, 0.45);
    color: #fed7aa;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.tag-row span {
    color: #ea580c;
    background: #fff7ed;
}

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

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

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span,
.play-dot {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(244, 63, 94, 0.95));
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.26);
}

.hero-poster:hover img,
.card-cover:hover img {
    transform: scale(1.07);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.search-band {
    max-width: 1280px;
    margin: -36px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(254, 215, 170, 0.86);
    backdrop-filter: blur(18px);
}

.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid #fed7aa;
    outline: 0;
    border-radius: 16px;
    background: #fff7ed;
    color: #374151;
    font-size: 15px;
    padding: 13px 15px;
}

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

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

.section-more {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffedd5;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(254, 215, 170, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
}

.play-dot {
    width: 42px;
    height: 42px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
}

.card-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.62);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    min-height: 52px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title:hover,
.rank-title:hover {
    color: #ea580c;
}

.card-body p {
    min-height: 45px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7ed;
}

.soft-panel {
    max-width: 1232px;
    margin-top: 68px;
    padding: 40px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(254, 215, 170, 0.86);
    box-shadow: var(--soft-shadow);
}

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

.category-tile,
.category-overview-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    padding: 20px;
    color: #7c2d12;
    background: linear-gradient(135deg, #ffedd5, #fff7ed);
    border: 1px solid #fed7aa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-title-link {
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 10px 0 0;
    color: #9a3412;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 60px;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.score-badge {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 900;
    font-size: 20px;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 44px;
}

.page-hero > div,
.prose-card,
.detail-text {
    border-radius: 34px;
    padding: 42px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.86), rgba(136, 19, 55, 0.9));
    color: white;
    box-shadow: var(--shadow);
}

.page-search {
    margin-top: 0;
}

.category-overview-card {
    background: white;
    color: var(--ink);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sample-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #9a3412;
    font-weight: 800;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    gap: 30px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
    min-height: 420px;
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.55));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
    font-size: 34px;
}

.play-overlay.hidden {
    display: none;
}

.detail-info {
    border-radius: 30px;
    padding: 34px;
    color: white;
    background: linear-gradient(135deg, #111827, #7c2d12, #881337);
    box-shadow: var(--shadow);
}

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

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: white;
    font-weight: 800;
}

.detail-text {
    background: white;
    color: #111827;
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-text h2:not(:first-child) {
    margin-top: 30px;
}

.detail-text p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.info-table div {
    padding: 15px;
    border-radius: 18px;
    background: #fff7ed;
}

.info-table span {
    display: block;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.info-table strong {
    display: block;
    margin-top: 5px;
}

.prose-card {
    max-width: 900px;
    background: white;
    color: #111827;
}

.prose-card p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 17px;
}

.site-footer {
    margin-top: 90px;
    color: white;
    background: linear-gradient(135deg, #111827, #7c2d12, #881337);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand,
.site-footer h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
}

.site-footer p,
.site-footer a,
.site-footer span {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.is-hidden {
    display: none !important;
}

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

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

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

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

@media (max-width: 780px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        align-items: flex-start;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

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

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 14px;
    }

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

    .nav-link {
        border-radius: 14px;
    }

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

    .hero-slide {
        padding: 60px 20px 112px;
        gap: 28px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .hero-content p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-hero,
    .detail-hero,
    .breadcrumb {
        padding-left: 18px;
        padding-right: 18px;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-overview-grid,
    .info-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .score-badge {
        grid-column: 1 / -1;
        width: auto;
        height: 42px;
        border-radius: 14px;
    }

    .soft-panel,
    .page-hero > div,
    .detail-text,
    .prose-card,
    .detail-info {
        padding: 26px;
        border-radius: 26px;
    }

    .player-shell,
    .movie-player {
        min-height: 260px;
    }
}
