:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffaf5;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #ffffff;
    --line: rgba(251, 146, 60, 0.18);
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #facc15;
    --shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
    --shadow-soft: 0 14px 36px rgba(249, 115, 22, 0.12);
    --radius: 28px;
    --radius-card: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 30rem),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
    color: var(--text);
}

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #111827;
}

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

.brand-text {
    font-size: 21px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.hero-carousel {
    margin: 28px auto 46px;
    min-height: 610px;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(249, 115, 22, 0.90) 55%, rgba(250, 204, 21, 0.86)),
        var(--hero-cover);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-carousel::before,
.hero-carousel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(5px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-carousel::before {
    width: 360px;
    height: 360px;
    left: -110px;
    top: -110px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-carousel::after {
    width: 300px;
    height: 300px;
    right: -90px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 38px;
    padding: 70px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

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

.hero-title {
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
    text-shadow: 0 12px 30px rgba(127, 29, 29, 0.26);
}

.hero-desc {
    width: min(680px, 100%);
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    min-height: 48px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.25);
}

.btn-gradient {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

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

.hero-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    color: #9f1239;
    background: rgba(255, 255, 255, 0.82);
}

.hero-poster-card {
    position: relative;
    z-index: 2;
    min-height: 460px;
    border-radius: 32px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(88, 28, 135, 0.18);
}

.hero-poster {
    height: 100%;
    min-height: 424px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.68) 100%),
        var(--cover-url),
        linear-gradient(135deg, rgba(236, 72, 153, 0.36), rgba(249, 115, 22, 0.42));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-poster-info {
    padding: 22px;
    color: #ffffff;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 70px;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

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

.section {
    margin: 48px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.36);
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.18);
}

.movie-card.is-hidden {
    display: none;
}

.movie-cover,
.rank-cover,
.detail-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.02) 0%, rgba(17, 24, 39, 0.62) 100%),
        var(--cover-url),
        linear-gradient(135deg, rgba(236, 72, 153, 0.24), rgba(249, 115, 22, 0.30));
    background-size: cover;
    background-position: center;
}

.movie-cover {
    aspect-ratio: 3 / 4.25;
}

.movie-badge,
.score-badge,
.type-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(12px);
}

.movie-badge {
    left: 12px;
}

.score-badge {
    right: 12px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.type-badge {
    left: 12px;
    top: auto;
    bottom: 12px;
}

.play-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.48);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: 0.22s ease;
    backdrop-filter: blur(10px);
}

.movie-card:hover .play-symbol,
.rank-item:hover .play-symbol {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-body {
    padding: 15px 15px 17px;
}

.movie-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    min-height: 43px;
    font-weight: 900;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.movie-desc {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    color: #be123c;
    background: #fff1f2;
}

.filter-panel {
    position: relative;
    z-index: 10;
    margin: 18px 0 26px;
    padding: 18px;
    border-radius: 26px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.22fr));
    gap: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.22);
    outline: none;
    border-radius: 999px;
    padding: 13px 16px;
    color: #374151;
    background: #ffffff;
}

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

.result-count {
    color: var(--muted);
    font-weight: 800;
}

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

.category-card {
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange) 62%, var(--amber));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    right: -58px;
    bottom: -58px;
    background: rgba(255, 255, 255, 0.22);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-count {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #9f1239;
    background: #ffffff;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: var(--shadow-soft);
    transition: 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.16);
}

.rank-cover {
    height: 142px;
    border-radius: 18px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 950;
}

.rank-title {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.rank-summary {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    margin: 28px 0 34px;
    padding: 46px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange) 58%, var(--yellow));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    right: -120px;
    top: -130px;
    background: rgba(255, 255, 255, 0.22);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 16px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-head {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
    margin: 28px 0 34px;
}

.detail-cover {
    min-height: 450px;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.detail-info {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-line {
    margin: 18px 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

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

.info-box {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.info-box b {
    display: block;
    color: #be123c;
    font-size: 12px;
    margin-bottom: 6px;
}

.content-card {
    margin: 24px 0;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    color: #4b5563;
    line-height: 1.95;
    font-size: 16px;
}

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

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(88, 28, 135, 0.72)),
        var(--cover-url),
        #111827;
    background-size: cover;
    background-position: center;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(17, 24, 39, 0.52));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.32);
    font-weight: 950;
    cursor: pointer;
}

.player-start span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.player-caption {
    padding: 18px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer {
    margin-top: 64px;
    padding: 44px 0;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--rose);
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 26px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.16);
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 52px;
    }

    .hero-poster-card {
        display: none;
    }

    .detail-head {
        grid-template-columns: 260px minmax(0, 1fr);
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-links a {
        text-align: center;
    }

    .hero-carousel {
        min-height: 580px;
        border-radius: 28px;
    }

    .hero-slide {
        padding: 36px 28px 82px;
    }

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

    .section-head,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

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

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

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

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

    .detail-cover {
        min-height: 520px;
    }
}

@media (max-width: 520px) {
    .main,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .page-hero,
    .detail-info,
    .content-card {
        padding: 24px;
        border-radius: 24px;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .rank-cover {
        height: 126px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
