:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --rose: #fb7185;
    --yellow: #facc15;
    --shadow: 0 20px 60px rgba(194, 65, 12, 0.16);
    --shadow-soft: 0 12px 30px rgba(194, 65, 12, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #eff6ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.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,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

.brand-name {
    font-size: 22px;
    background: linear-gradient(135deg, #ea580c, #db2777);
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 10px 16px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--orange-dark);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    gap: 8px;
    flex-wrap: wrap;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.75), transparent 38%), linear-gradient(135deg, #f97316 0%, #ec4899 48%, #4f46e5 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.42;
}

.hero::before {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 80px;
    background: #fde68a;
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -140px;
    bottom: -140px;
    background: #f0abfc;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 120px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 44px;
}

.hero-slide.active {
    display: grid;
}

.hero-copy {
    max-width: 740px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
}

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

.btn-primary,
.btn-ghost,
.card-actions a,
.play-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-primary {
    background: #fff;
    color: var(--orange-dark);
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.card-actions a:hover,
.play-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(194, 65, 12, 0.28);
}

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

.hero-poster {
    position: relative;
    border-radius: 34px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 28px 80px rgba(88, 28, 135, 0.38);
    backdrop-filter: blur(18px);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.hero-card-float {
    position: absolute;
    left: -24px;
    bottom: 30px;
    width: min(280px, 82%);
    border-radius: 22px;
    padding: 16px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.hero-card-float strong {
    display: block;
    margin-bottom: 6px;
}

.hero-card-float span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: -58px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.section,
.category-page,
.detail-shell {
    padding: 58px 0;
}

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

.section-kicker {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    color: #c2410c;
    background: rgba(255, 237, 213, 0.88);
    font-weight: 900;
    margin-bottom: 10px;
}

.section h1,
.section h2,
.page-headline h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head p,
.page-headline p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.view-more {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px 16px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

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

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(10px);
}

.duration {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.card-body {
    padding: 18px;
}

.meta-line,
.detail-meta,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.meta-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.movie-card h2,
.category-card h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.movie-card h2 a:hover,
.category-card a:hover,
.breadcrumb a:hover {
    color: var(--orange-dark);
}

.movie-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
    color: #c2410c;
    background: #ffedd5;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.card-actions a {
    padding: 9px 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.compact-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
}

.compact-card .poster-link img {
    height: 100%;
    min-height: 178px;
}

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

.category-card {
    min-height: 188px;
    border-radius: var(--radius);
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    margin-bottom: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0 0 30px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
    margin: 0;
    font-size: 24px;
}

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

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 160px 130px 150px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}

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

.no-results {
    display: none;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
}

.no-results.show {
    display: block;
}

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

.breadcrumb {
    margin-bottom: 20px;
}

.detail-title {
    padding: 30px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
    margin-bottom: 24px;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(157, 23, 77, 0.32));
    transition: 0.25s ease;
}

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

.play-trigger {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    cursor: pointer;
    padding: 16px 24px;
    font-size: 18px;
}

.detail-content,
.side-card {
    border-radius: var(--radius);
    padding: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.detail-content h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-content p {
    color: #374151;
    line-height: 1.95;
    margin: 0 0 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
    margin-bottom: 18px;
}

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

.side-card {
    position: sticky;
    top: 94px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-item img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.side-item strong {
    display: block;
    line-height: 1.35;
}

.side-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 60%, #3b0764);
}

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

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

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
    margin: 0;
}

.site-footer h2 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 14px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

    .side-card {
        position: static;
    }
}

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

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

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 54px 0 90px;
    }

    .hero-slide,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(38px, 13vw, 60px);
    }

    .hero-poster {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-card-float {
        left: 16px;
    }

    .movie-grid,
    .movie-grid.two-col,
    .movie-grid.three-col,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head,
    .page-headline {
        display: block;
    }

    .view-more {
        margin-top: 16px;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .main-shell,
    .hero-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 18px;
    }

    .movie-grid,
    .movie-grid.two-col,
    .movie-grid.three-col,
    .category-grid,
    .filter-controls {
        grid-template-columns: 1fr;
    }

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

    .card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-title,
    .detail-content,
    .side-card,
    .filter-panel {
        padding: 20px;
    }
}
