*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d4d7;
    --rose: #e11d48;
    --pink: #db2777;
    --orange: #f97316;
    --amber: #f59e0b;
    --shadow: 0 24px 80px rgba(190, 18, 60, 0.16);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(244, 63, 94, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.14), transparent 26rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 34%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(244, 63, 94, 0.16);
    background: rgba(255, 247, 237, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 38px rgba(244, 63, 94, 0.10);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    color: var(--rose);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose);
    background: rgba(225, 29, 72, 0.10);
    transform: translateY(-1px);
}

.nav-toggle {
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 14px;
    background: rgba(225, 29, 72, 0.10);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--rose);
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 36px auto 0;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(136, 19, 55, 0.92), rgba(219, 39, 119, 0.82), rgba(249, 115, 22, 0.78)),
        #9f1239;
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.26), transparent 20rem),
        radial-gradient(circle at 82% 18%, rgba(254, 215, 170, 0.45), transparent 26rem),
        radial-gradient(circle at 70% 95%, rgba(244, 114, 182, 0.22), transparent 22rem);
    pointer-events: none;
}

.hero-slides {
    position: relative;
    z-index: 1;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 48px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

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

.hero p {
    width: min(720px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    color: var(--rose);
    background: rgba(225, 29, 72, 0.09);
}

.large-tags span {
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    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(--rose), var(--pink), var(--orange));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

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

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, #fb7185, #f97316);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-poster img,
.poster img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster img.is-missing,
.poster img.is-missing,
.category-cover-stack img.is-missing {
    display: none;
}

.hero-poster::after,
.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.44));
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 42px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

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

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

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

.section-tight {
    padding-top: 54px;
}

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

.section-head h2,
.content-card h2,
.side-card h2,
.category-sidebar h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-link,
.text-link {
    color: var(--rose);
    font-weight: 900;
}

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

.category-card,
.category-overview,
.content-card,
.side-card,
.player-card,
.filter-panel,
.search-count,
.sitemap-group {
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 50px rgba(225, 29, 72, 0.08);
}

.category-card {
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.32);
    box-shadow: 0 24px 70px rgba(225, 29, 72, 0.14);
}

.category-count {
    width: max-content;
    padding: 5px 10px;
    color: var(--rose);
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.category-card h3 {
    margin: 22px 0 8px;
    font-size: 23px;
    font-weight: 950;
}

.category-card p,
.category-card strong,
.movie-card p,
.content-card p,
.side-card p,
.page-hero p,
.detail-one-line,
.footer-grid p {
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 46px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.45), transparent 9rem),
        linear-gradient(135deg, #fb7185, #f97316);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

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

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
}

.movie-card p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.hot-section {
    width: 100%;
    max-width: none;
    margin-top: 76px;
    padding: 72px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #9f1239, #db2777, #f97316);
}

.light-head h2,
.light-head .section-kicker,
.light-head .section-link {
    color: #ffffff;
}

.hot-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 26px;
}

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

.compact-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 13px;
    color: #ffffff;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.small-list .compact-item {
    color: var(--text);
    background: rgba(225, 29, 72, 0.06);
    border-color: rgba(225, 29, 72, 0.12);
}

.rank-number {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 950;
}

.compact-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.compact-meta {
    color: currentColor;
    opacity: 0.72;
    font-size: 12px;
}

.hot-cards {
    grid-template-columns: repeat(4, 1fr);
}

.cta-strip,
.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 72px auto 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.26), transparent 20rem),
        linear-gradient(135deg, rgba(225, 29, 72, 0.92), rgba(219, 39, 119, 0.82), rgba(249, 115, 22, 0.82));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.cta-strip {
    padding: 56px;
    text-align: center;
}

.cta-strip h2,
.cta-strip p {
    margin: 0 auto 16px;
}

.cta-strip h2 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 950;
}

.cta-strip p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 56px;
}

.slim-hero {
    min-height: 220px;
}

.page-hero .section-kicker {
    color: #ffe4e6;
}

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

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

.category-overview {
    padding: 18px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
    position: relative;
    min-height: 190px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-overview span {
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
}

.category-overview h2 {
    margin: 8px 0;
    font-size: 28px;
    line-height: 1.16;
}

.category-layout,
.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.category-sidebar,
.detail-sidebar {
    position: sticky;
    top: 96px;
}

.category-sidebar,
.side-card {
    padding: 22px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 150px;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 14px;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(225, 29, 72, 0.58);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

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

.detail-poster {
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.detail-info .section-kicker,
.detail-info .detail-meta,
.detail-info .detail-one-line {
    color: rgba(255, 255, 255, 0.86);
}

.detail-one-line {
    max-width: 820px;
    font-size: 20px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 22px;
}

.player-card,
.content-card,
.side-card {
    padding: 24px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.48), rgba(225, 29, 72, 0.20));
    transition: opacity 0.2s ease;
}

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

.player-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 42px rgba(225, 29, 72, 0.35);
    font-size: 28px;
}

.player-status {
    margin: 14px 0 0;
    color: var(--muted);
}

.content-card h2,
.side-card h2,
.category-sidebar h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

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

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(225, 29, 72, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(225, 29, 72, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.10);
    text-align: left;
}

th {
    color: var(--rose);
    background: rgba(225, 29, 72, 0.05);
    font-size: 13px;
}

.search-app {
    display: grid;
    gap: 18px;
}

.search-panel {
    margin-bottom: 0;
}

.search-count {
    padding: 16px 18px;
    color: var(--muted);
    font-weight: 800;
}

.sitemap-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.sitemap-group {
    padding: 22px;
}

.sitemap-group h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.sitemap-group ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-group a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #374151;
    font-size: 14px;
}

.sitemap-group span {
    color: var(--muted);
    white-space: nowrap;
}

.site-footer {
    margin-top: 86px;
    padding: 54px 0;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #fb7185;
}

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

    .movie-grid,
    .hot-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-poster,
    .detail-poster {
        max-width: 340px;
    }

    .hot-layout,
    .category-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar,
    .detail-sidebar {
        position: static;
    }

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

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

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: grid;
    }

    .hero {
        min-height: 760px;
    }

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

    .hero-slide {
        padding: 30px;
        gap: 28px;
    }

    .hero-dots {
        left: 30px;
        bottom: 28px;
    }

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

    .category-grid,
    .movie-grid,
    .compact-grid,
    .hot-cards,
    .category-overview-grid,
    .related-grid,
    .sitemap-section,
    .sitemap-group ul,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero,
    .cta-strip {
        padding: 28px;
        border-radius: 26px;
    }

    .detail-hero {
        margin-top: 28px;
    }
}
