:root {
    --bg: #fff8f2;
    --bg-soft: #fff1e4;
    --card: #ffffff;
    --ink: #201411;
    --muted: #75635d;
    --line: rgba(132, 68, 42, 0.16);
    --brand: #dc2626;
    --brand-dark: #991b1b;
    --accent: #f97316;
    --green: #14532d;
    --green-dark: #052e16;
    --shadow: 0 22px 55px rgba(61, 24, 12, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff9f4 0%, #fff 32%, #fff8f2 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.container-wide {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

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

.site-nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.12rem;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
}

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

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

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

.nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #fff0e8;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--brand-dark);
}

.hero-carousel {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    background: #200b08;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 45%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(90deg, rgba(20, 6, 3, 0.92) 0%, rgba(70, 21, 9, 0.76) 48%, rgba(20, 6, 3, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
    align-items: center;
    gap: 56px;
    padding-block: 72px;
}

.hero-copy {
    color: #fff;
}

.hero-kicker,
.section-head p,
.page-hero p,
.ranking-copy p,
.detail-kicker {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 6.7rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.07em;
    background: linear-gradient(90deg, #fff, #ffd4bd 45%, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h3 {
    margin: 24px 0 12px;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    font-weight: 900;
}

.hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    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: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 35px rgba(220, 38, 38, 0.28);
}

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

.btn-text {
    color: #fed7aa;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 2.2rem;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.search-strip {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: -38px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.movie-search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fffaf7;
    outline: none;
}

.quick-search button {
    min-width: 110px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-weight: 900;
}

.quick-links,
.footer-links,
.category-switch,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.footer-links a,
.category-switch a,
.filter-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    color: #6b2d1e;
    background: #fff7f1;
    font-weight: 800;
}

.filter-chip {
    cursor: pointer;
}

.filter-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.section-block {
    padding-block: 76px;
}

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

.section-head h2,
.page-hero h1,
.ranking-copy h2,
.detail-copy h1,
.story-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head a {
    color: var(--brand);
    font-weight: 900;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 14px 35px rgba(50, 18, 8, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(67, 23, 10, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #3a140d;
}

.movie-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 6px 9px;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.rank-badge {
    left: 10px;
    right: auto;
    background: rgba(20, 83, 45, 0.94);
}

.movie-info {
    padding: 14px;
}

.movie-info h2 {
    min-height: 44px;
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-line {
    min-height: 42px;
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta span,
.tag-row span {
    color: #7a3826;
    background: #fff1e6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    background: #280c07;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card span {
    position: absolute;
    inset: auto 16px 16px 16px;
    color: #fff;
}

.category-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 1.25rem;
    font-weight: 950;
}

.category-card em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ranking-band {
    padding-block: 74px;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.36), transparent 26%), linear-gradient(135deg, var(--green-dark), var(--green));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.ranking-copy span {
    display: block;
    max-width: 430px;
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.mini-card img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 13px;
}

.mini-card-body {
    min-width: 0;
    color: #fff;
}

.mini-card-body strong,
.mini-card-body em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card-body strong {
    font-weight: 900;
}

.mini-card-body em {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-style: normal;
}

.mini-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-size: 0.8rem;
    font-weight: 900;
}

.page-main {
    min-height: 60vh;
    padding-top: 36px;
}

.page-hero {
    margin-bottom: 34px;
    padding: 54px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.2), transparent 28%), linear-gradient(135deg, #fff7ed, #fff);
    box-shadow: var(--shadow);
}

.page-hero span {
    display: block;
    max-width: 760px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 78px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(60, 20, 8, 0.08);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 950;
}

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

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

.category-samples a {
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(60, 20, 8, 0.07);
}

.search-page-panel {
    display: grid;
    gap: 14px;
}

.filter-empty {
    display: block;
    min-height: 22px;
    margin-top: 8px;
    color: var(--brand);
    font-weight: 800;
}

.category-movie-grid,
.search-results,
.ranking-grid {
    padding-bottom: 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
    padding: 28px;
    border-radius: 32px;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, var(--green-dark), #250d08);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    max-width: 860px;
}

.detail-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-tags span,
.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    margin-bottom: 34px;
}

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

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: #000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1), rgba(0, 0, 0, 0.72));
}

.player-button-core {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 22px 45px rgba(220, 38, 38, 0.38);
    font-size: 2.1rem;
    text-indent: 5px;
}

.player-button-text {
    position: relative;
    z-index: 3;
    font-size: 1.08rem;
    font-weight: 900;
}

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

.story-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(60, 20, 8, 0.08);
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.site-footer {
    margin-top: 40px;
    padding-top: 56px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

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

.footer-brand {
    font-size: 1.2rem;
}

.site-footer p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.footer-links a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero-content,
    .ranking-layout,
    .detail-hero,
    .detail-content,
    .footer-grid,
    .overview-grid,
    .search-strip {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .hero-control {
        display: none;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

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

@media (max-width: 620px) {
    .container-wide {
        width: min(100% - 22px, 1200px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 3.1rem;
    }

    .hero-content {
        min-height: 620px;
        padding-block: 42px 76px;
    }

    .quick-search {
        flex-direction: column;
    }

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

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

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

    .detail-hero {
        padding: 18px;
    }

    .player-button-core {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}
