:root {
    --rose: #e11d48;
    --pink: #ec4899;
    --orange: #f97316;
    --amber-soft: #fff7ed;
    --rose-soft: #fff1f2;
    --pink-soft: #fdf2f8;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 114, 182, 0.18);
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 20px 60px rgba(190, 18, 60, 0.12);
    --shadow-strong: 0 30px 80px rgba(136, 19, 55, 0.22);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.16), transparent 32rem),
        linear-gradient(135deg, var(--amber-soft) 0%, var(--rose-soft) 48%, var(--pink-soft) 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.26);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: #4b5563;
}

.nav-links a {
    padding: 10px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--rose);
    transform: translateY(-1px);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: var(--rose);
}

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

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(136, 19, 55, 0.62), rgba(249, 115, 22, 0.24)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 48%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    gap: 48px;
    align-items: center;
    color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

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

.hero-desc {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: rgba(255, 241, 242, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 14px 36px rgba(225, 29, 72, 0.28);
}

.button-secondary {
    color: var(--rose);
    background: #fff;
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.25);
}

.button-light {
    color: var(--rose);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(225, 29, 72, 0.28);
}

.hero-panel {
    padding: 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow-strong);
}

.hero-poster {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -120px 80px rgba(0, 0, 0, 0.38);
    position: relative;
    overflow: hidden;
}

.hero-poster-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.hero-poster-info strong {
    display: block;
    font-size: 28px;
    line-height: 1.15;
}

.hero-poster-info span {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.section {
    padding: 72px 0 0;
}

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

.section-title {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
}

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

.movie-card {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-card {
    display: block;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background-color: #ffe4e6;
    background-size: cover;
    background-position: center;
}

.poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.55)),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 44%);
    opacity: 0.92;
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.32);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

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

.category-card {
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(136, 19, 55, 0.78)),
        linear-gradient(135deg, rgba(225, 29, 72, 0.44), rgba(249, 115, 22, 0.28));
}

.category-name,
.category-desc,
.category-action {
    position: relative;
    z-index: 2;
}

.category-name {
    font-size: 23px;
    font-weight: 900;
}

.category-desc {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    font-size: 14px;
}

.category-action {
    width: max-content;
    margin-top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
}

.rank-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--rose);
    text-align: center;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #ffe4e6;
}

.rank-title {
    font-weight: 900;
    font-size: 18px;
}

.rank-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.rank-heat {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 12px;
    font-weight: 900;
}

.page-hero {
    padding: 74px 0 42px;
}

.page-hero-card {
    border-radius: 36px;
    padding: clamp(28px, 6vw, 56px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(225, 29, 72, 0.92), rgba(236, 72, 153, 0.86), rgba(249, 115, 22, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26rem);
    box-shadow: var(--shadow-strong);
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.85;
    font-size: 18px;
}

.filter-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 160px 160px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.filter-card input,
.filter-card select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.filter-card input:focus,
.filter-card select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
}

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

.detail-hero {
    padding: 44px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    box-shadow: var(--shadow-strong);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(225, 29, 72, 0.42), transparent 26%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--rose);
    background: #fff;
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

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

.detail-main-card,
.detail-side-card {
    margin-top: 22px;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.detail-main-card h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-copy h2 {
    margin: 26px 0 10px;
    font-size: 24px;
}

.detail-copy p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    background-color: #ffe4e6;
    box-shadow: inset 0 -130px 90px rgba(0, 0, 0, 0.34);
}

.side-title {
    margin: 0 0 14px;
    font-size: 22px;
}

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

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

.side-link-poster {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #ffe4e6;
}

.side-link strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.side-link span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.pagination-links a {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.74);
    font-weight: 900;
}

.pagination-links a:hover {
    background: #fff;
}

[hidden] {
    display: none !important;
}

.site-footer {
    margin-top: 82px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.footer-inner p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #4b5563;
    font-weight: 800;
}

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

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

    .hero-panel {
        display: none;
    }

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

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

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

@media (max-width: 760px) {
    .site-nav {
        min-height: 68px;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .nav-links a {
        padding: 13px 12px;
    }

    .hero-section,
    .hero-content {
        min-height: 580px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 82px;
    }

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

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

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

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

    .rank-heat {
        grid-column: 3;
        width: max-content;
    }

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

    .detail-main-card,
    .detail-side-card {
        padding: 20px;
    }

    .pagination-links {
        flex-direction: column;
    }
}
