:root {
    --bg: #fffaf2;
    --panel: #ffffff;
    --panel-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --shadow: 0 20px 50px rgba(180, 83, 9, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fffaf2 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

.brand-title {
    font-size: 1.35rem;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--orange-dark);
    background: #ffedd5;
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    border: 2px solid #fed7aa;
    border-radius: 999px;
    padding: 11px 15px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    background: #ffedd5;
    color: var(--orange-dark);
    width: 44px;
    height: 44px;
    font-weight: 900;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #fed7aa;
    background: #fff;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.mobile-search input {
    flex: 1;
}

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

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

.hero-stage {
    position: relative;
    min-height: 720px;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 96px 0 72px;
    color: #fff;
}

.hero-copy h1 {
    margin: 14px 0 12px;
    max-width: 820px;
    font-size: clamp(2.35rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fed7aa;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.content-card p,
.category-detail-card p,
.site-footer p {
    color: #6b7280;
    line-height: 1.8;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ea580c;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

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

.hero-tags {
    margin: 22px 0;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
    display: inline-flex;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 5px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 237, 213, 0.16);
    border-color: rgba(254, 215, 170, 0.46);
    color: #fff7ed;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.ghost-button,
.text-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    padding: 13px 22px;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.ghost-button {
    padding: 12px 20px;
    border: 2px solid rgba(254, 215, 170, 0.78);
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.08);
}

.detail-actions .ghost-button,
.category-detail-card .ghost-button {
    color: var(--orange-dark);
    background: #fff7ed;
}

.text-button,
.text-link {
    color: var(--orange-dark);
    background: #ffedd5;
    padding: 11px 16px;
}

.hero-poster,
.detail-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

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

.hero-dots button {
    width: 42px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.section-block {
    margin-top: 56px;
}

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

.section-heading h2 {
    margin: 8px 0 4px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
}

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

.category-card,
.category-detail-card,
.content-card,
.player-card,
.soft-block {
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 22px;
    min-height: 176px;
    transition: 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(180, 83, 9, 0.18);
}

.category-card span,
.category-card-head span,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    font-weight: 900;
}

.category-card h3,
.category-detail-card h2 {
    margin: 15px 0 8px;
    font-size: 1.28rem;
}

.category-card p,
.category-detail-card p {
    margin: 0;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(180, 83, 9, 0.1);
    transition: 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border-radius: 14px;
    color: #fff;
    background: rgba(234, 88, 12, 0.92);
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: #9a3412;
    font-size: 0.76rem;
    font-weight: 800;
}

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

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

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.tag-row span {
    font-size: 0.72rem;
    padding: 4px 8px;
}

.rank-section {
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(255, 255, 255, 0.78));
    border: 1px solid #fed7aa;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    transition: 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: #fb923c;
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.92rem;
}

.rank-row > span:last-child {
    color: #c2410c;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    padding: 78px 0 60px;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.28), transparent 28rem),
        linear-gradient(135deg, #fff7ed, #ffffff 65%, #ffedd5);
    border-bottom: 1px solid #fed7aa;
}

.small-hero {
    padding: 62px 0 48px;
}

.page-hero h1,
.detail-intro h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1.06rem;
}

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

.breadcrumb a {
    color: #c2410c;
    font-weight: 800;
}

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

.category-detail-card {
    padding: 24px;
    transition: 0.2s ease;
}

.category-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sample-line {
    color: #9a3412;
    font-weight: 700;
}

.small-button {
    padding: 10px 16px;
    margin-top: 16px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #9a3412;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select {
    border-radius: 16px;
    width: 100%;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #fdba74;
    border-radius: 24px;
    background: #fff7ed;
}

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

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

.lead-text {
    max-width: 860px;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.85;
}

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

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

.detail-body {
    margin-top: 44px;
}

.player-card {
    padding: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: 0.2s ease;
}

.play-layer span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.34);
    font-size: 1.8rem;
}

.play-layer strong {
    font-size: 1.1rem;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.content-card {
    margin-top: 24px;
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.content-card h2:not(:first-child) {
    margin-top: 28px;
}

.content-card p {
    margin: 0;
    font-size: 1.02rem;
}

.tag-cloud.wide {
    align-items: flex-start;
}

.search-panel {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin-top: 26px;
}

.search-panel input {
    flex: 1;
    border-radius: 18px;
    padding: 14px 18px;
}

.site-footer {
    margin-top: 74px;
    padding: 48px 0;
    border-top: 1px solid #fed7aa;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #c2410c;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.site-footer a:hover {
    color: var(--orange-dark);
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr 260px;
        gap: 30px;
    }

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

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

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

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

    .brand-subtitle {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 76px;
    }

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

    .section-heading,
    .rank-row,
    .rank-row.large {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .category-detail-grid,
    .footer-grid,
    .detail-hero-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .search-panel,
    .mobile-search {
        flex-direction: column;
    }
}
