:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1e293b;
    --muted: #64748b;
    --line: rgba(146, 64, 14, 0.16);
    --card: rgba(255, 255, 255, 0.88);
    --dark: #0f172a;
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #ec4899;
    --shadow: 0 20px 55px rgba(124, 45, 18, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(1180px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    gap: 0.15rem;
}

.brand-text strong {
    color: #7c2d12;
    font-size: 1.08rem;
    line-height: 1.1;
}

.brand-text small {
    color: #b45309;
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-weight: 700;
    color: #7c2d12;
}

.main-nav a {
    position: relative;
    padding: 0.35rem 0;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--amber), var(--rose));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    border: 0;
    color: #7c2d12;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-size: 1.1rem;
}

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

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

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08);
    transform: scale(1.04);
}

.hero-overlay,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.26) 100%),
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.28), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 360px;
    align-items: center;
    gap: 4rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 7rem 0 6rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h1,
.detail-info h1 {
    color: #ffffff;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.hero-line {
    max-width: 780px;
    margin: 1.35rem 0 1.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags span,
.tag-row span {
    padding: 0.35rem 0.72rem;
    color: #92400e;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span,
.tag-row--light span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    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(--amber), var(--orange));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.32);
}

.btn-ghost {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.52);
}

.btn-small {
    min-height: 40px;
    padding: 0.6rem 1rem;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(1.6deg);
}

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

.hero-poster span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.55rem 0.85rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.64);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 2rem;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.hero-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
}

.hero-dot.is-active {
    background: var(--amber);
}

.home-search-panel {
    width: min(980px, calc(100% - 2rem));
    margin: -36px auto 2rem;
    position: relative;
    z-index: 8;
}

.search-panel {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.search-panel label {
    display: block;
    margin: 0 0 0.45rem 0.2rem;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 900;
}

.search-panel div,
.inline-search {
    display: flex;
    gap: 0.75rem;
}

.search-panel input,
.inline-search input {
    width: 100%;
    min-height: 52px;
    color: var(--text);
    border: 1px solid rgba(245, 158, 11, 0.24);
    outline: none;
    background: #ffffff;
    border-radius: 999px;
    padding: 0 1.15rem;
    font-size: 1rem;
}

.search-panel button {
    min-width: 128px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-weight: 900;
}

.section-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
}

.section-wrap--narrow {
    width: min(980px, calc(100% - 2rem));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.text-link {
    color: #b45309;
    font-weight: 900;
}

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

.category-pill {
    min-height: 118px;
    padding: 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.84)),
        radial-gradient(circle at right top, rgba(236, 72, 153, 0.16), transparent 12rem);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-pill strong,
.category-pill span {
    display: block;
}

.category-pill strong {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.category-pill span {
    color: var(--amber);
    font-weight: 900;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 2rem;
}

.movie-grid {
    display: grid;
    gap: 1rem;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.poster-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.28rem 0.55rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-card-body {
    padding: 0.95rem;
}

.movie-title {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin: 0.45rem 0;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-line {
    display: -webkit-box;
    min-height: 3.8em;
    margin: 0 0 0.85rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hot-panel {
    position: sticky;
    top: 96px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.hot-panel-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hot-panel-head h2 {
    margin: 0;
}

.hot-panel-head a {
    color: #fbbf24;
    font-weight: 900;
}

.rank-list {
    display: grid;
    gap: 0.7rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.rank-num {
    color: #fbbf24;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 12px;
    background: #fef3c7;
}

.rank-cover img {
    width: 52px;
    height: 68px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small {
    color: rgba(255, 255, 255, 0.62);
}

.rank-score {
    color: #fbbf24;
    font-weight: 900;
}

.rank-list--page .rank-row {
    color: #ffffff;
    background: #0f172a;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem max(1rem, calc((100% - 1180px) / 2)) 4rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 0%, rgba(236, 72, 153, 0.28), transparent 28rem),
        linear-gradient(135deg, #0f172a 0%, #7c2d12 100%);
}

.page-hero--light {
    color: var(--text);
    background:
        radial-gradient(circle at 86% 0%, rgba(245, 158, 11, 0.28), transparent 24rem),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.page-hero--dark {
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.32), transparent 26rem),
        linear-gradient(135deg, #111827 0%, #0f172a 58%, #431407 100%);
}

.page-hero h1 {
    max-width: 980px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 1rem 0 0;
    font-size: 1.1rem;
    line-height: 1.85;
    color: currentColor;
    opacity: 0.82;
}

.inline-search {
    max-width: 680px;
    margin-top: 1.6rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.filter-chips button {
    cursor: pointer;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 900;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.result-state {
    margin: 0 0 1rem;
    color: var(--muted);
}

.empty-state {
    padding: 2rem;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    text-align: center;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #fef3c7;
    border-radius: 14px;
}

.category-overview-body h2 {
    margin: 0;
}

.category-overview-body p {
    color: var(--muted);
    line-height: 1.7;
}

.category-preview-links {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.category-preview-links a {
    overflow: hidden;
    color: #92400e;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.detail-main {
    background: linear-gradient(180deg, #0f172a 0%, #111827 420px, #fff7ed 421px, #ffffff 100%);
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 2.4rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0;
}

.detail-poster {
    overflow: hidden;
    background: #fef3c7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-meta {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: -72px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 18rem),
        rgba(2, 6, 23, 0.34);
}

.player-start span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.38);
}

.player-start.is-hidden {
    display: none;
}

.detail-content {
    display: grid;
    gap: 1rem;
}

.content-card {
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(124, 45, 18, 0.06);
}

.content-card h2 {
    margin: 0 0 0.75rem;
}

.content-card p {
    margin: 0;
    color: #475569;
    line-height: 1.95;
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 14px;
}

.sitemap-list span {
    color: var(--muted);
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #0f172a;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0;
}

.footer-brand {
    display: flex;
    gap: 1rem;
}

.footer-brand p {
    max-width: 520px;
    margin: 0.4rem 0 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem 1.1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1100px) {
    .hero-content,
    .split-layout,
    .detail-wrap,
    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(320px, 70vw);
    }

    .hot-panel {
        position: relative;
        top: auto;
    }

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

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

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

    .main-nav {
        position: absolute;
        top: 72px;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(245, 158, 11, 0.18);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.8rem 0.9rem;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        gap: 2rem;
        padding: 5rem 0 7rem;
    }

    .hero-poster {
        width: min(240px, 74vw);
    }

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

    .search-panel button {
        min-height: 48px;
    }

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

    .category-grid,
    .movie-grid--catalog,
    .movie-grid--home,
    .category-overview-grid,
    .sitemap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-wrap {
        padding: 3rem 0;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-text small {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 2.25rem;
    }

    .category-grid,
    .movie-grid--catalog,
    .movie-grid--home,
    .sitemap-list {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 30px 46px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }
}
