:root {
    --bg: #fff7f8;
    --surface: #ffffff;
    --surface-soft: #fff1f4;
    --text: #17131c;
    --muted: #6e6476;
    --line: rgba(139, 92, 246, 0.16);
    --primary: #e11d48;
    --secondary: #a855f7;
    --accent: #f97316;
    --teal: #14b8a6;
    --dark: #111827;
    --shadow: 0 24px 70px rgba(225, 29, 72, 0.16);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 30rem),
        linear-gradient(135deg, #fff7f8 0%, #fff 44%, #fff7ed 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(22px);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
}

.header-inner {
    width: min(1200px, 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.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.32);
}

.brand-text {
    font-size: 1.12rem;
}

.desktop-nav,
.mobile-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b4453;
    font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active,
.footer-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 10px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

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

.hero-shell {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 690px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(83, 35, 93, 0.86)),
        linear-gradient(135deg, #fb7185, #a855f7);
    color: #fff;
    box-shadow: 0 34px 90px rgba(225, 29, 72, 0.28);
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.32), transparent 18rem),
        radial-gradient(circle at 84% 22%, rgba(20, 184, 166, 0.22), transparent 18rem),
        linear-gradient(120deg, rgba(244, 63, 94, 0.36), transparent 42%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    gap: 48px;
    align-items: center;
    padding: 62px;
    opacity: 0;
    transform: translateX(34px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

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

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(2.6rem, 8vw, 5.8rem);
}

.hero-copy h2 {
    margin-top: 14px;
    font-size: clamp(1.8rem, 4.2vw, 3.6rem);
    background: linear-gradient(135deg, #fff, #ffe4e6, #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 700px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-shell .eyebrow,
.detail-hero .eyebrow {
    color: #fecdd3;
}

.hero-tags,
.tag-list,
.movie-meta-line,
.detail-tags,
.filter-pills,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.movie-meta-line span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card .movie-meta-line span,
.ranking-item .movie-meta-line span,
.detail-text-section .movie-meta-line span {
    background: #fff1f2;
    border-color: #ffe4e6;
    color: #9f1239;
}

.hero-actions {
    margin-top: 30px;
}

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.32);
}

.ghost-btn,
.section-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.section-link {
    color: #9f1239;
    background: #fff1f2;
    border-color: #ffe4e6;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 32px;
    transform: rotate(2deg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58));
}

.hero-poster img,
.movie-card img,
.category-cover img,
.ranking-poster img,
.detail-poster img,
.detail-backdrop img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 62px;
    bottom: 118px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.hero-dots button.active {
    width: 54px;
    background: #fff;
}

.hero-category-panel {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 26px;
    z-index: 4;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.hero-category-panel p {
    margin: 0;
    font-weight: 900;
    color: #fff;
}

.hero-category-panel div {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.hero-category-panel a {
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-category-panel span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

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

.soft-section {
    padding: 30px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

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

.section-heading h2,
.detail-text-section h2,
.player-section h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--muted);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #ffe4e6;
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.09);
}

.search-box span {
    color: #be123c;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.filter-pills button {
    border: 0;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    color: #7f1d1d;
    background: #fff1f2;
    cursor: pointer;
    font-weight: 800;
}

.filter-pills button.active,
.filter-pills button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(255, 228, 230, 0.92);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(225, 29, 72, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #faf5ff);
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.74);
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list span {
    color: #9f1239;
    background: #fff1f2;
    border-color: #ffe4e6;
}

.movie-meta-line {
    gap: 7px;
}

.movie-meta-line span {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 0.72rem;
}

.ranking-preview {
    padding: 34px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #4c1d95 52%, #be123c);
    box-shadow: 0 30px 80px rgba(76, 29, 149, 0.25);
}

.ranking-preview .section-heading p,
.ranking-preview .eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px minmax(160px, 1fr) 150px minmax(220px, 1.8fr) 54px;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 10px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.rank-row img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.rank-title {
    font-weight: 900;
}

.rank-meta,
.rank-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

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

.rank-row strong {
    color: #fef3c7;
    font-size: 1.15rem;
}

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: clamp(44px, 8vw, 86px);
    overflow: hidden;
    border-radius: 38px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.32), transparent 18rem),
        linear-gradient(135deg, #111827, #6d28d9 56%, #e11d48);
    box-shadow: 0 30px 80px rgba(109, 40, 217, 0.22);
}

.slim-hero h1,
.category-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

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

.category-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #ffe4e6;
    box-shadow: var(--shadow);
}

.category-cover {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mini-link-row a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 0.82rem;
    font-weight: 800;
}

.ranking-list-page {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 96px minmax(0, 1fr) 70px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #ffe4e6;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.07);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 1.2rem;
    font-weight: 900;
}

.ranking-poster {
    height: 128px;
    overflow: hidden;
    border-radius: 20px;
}

.ranking-copy h2 {
    margin: 8px 0;
    font-size: 1.25rem;
}

.ranking-copy p {
    margin: 0;
    color: var(--muted);
}

.ranking-score {
    color: #be123c;
    font-size: 1.45rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(4px);
    transform: scale(1.05);
}

.detail-backdrop:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.66)),
        linear-gradient(0deg, #111827, transparent 60%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 900;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 62px);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.detail-copy h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
}

.strong-meta {
    margin: 18px 0;
}

.detail-one-line {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.12rem;
}

.detail-tags {
    margin-top: 20px;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-section h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #05050a;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.26);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #05050a;
    object-fit: contain;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle, rgba(225, 29, 72, 0.28), rgba(5, 5, 10, 0.36)),
        rgba(5, 5, 10, 0.18);
    cursor: pointer;
}

.video-cover.hidden {
    display: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 22px 50px rgba(225, 29, 72, 0.44);
    font-size: 2rem;
}

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
}

.detail-columns article,
.detail-columns aside {
    padding: 30px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #ffe4e6;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
}

.detail-columns p {
    color: #51495a;
}

.site-footer {
    margin-top: 70px;
    padding: 38px 0;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #111827, #251047);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #fff;
    font-size: 1.2rem;
}

.site-footer p {
    max-width: 520px;
    margin: 10px 0 0;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

[data-movie-card].filtered-out {
    display: none;
}

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

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

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

    .rank-meta,
    .rank-desc {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-shell {
        min-height: 760px;
        border-radius: 28px;
    }

    .hero-slider {
        min-height: 640px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 34px 24px 190px;
    }

    .hero-poster {
        width: min(260px, 74vw);
        justify-self: center;
    }

    .hero-dots {
        left: 26px;
        bottom: 132px;
    }

    .hero-category-panel {
        left: 16px;
        right: 16px;
        bottom: 16px;
        grid-template-columns: 1fr;
    }

    .search-panel,
    .category-grid,
    .detail-columns,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 78vw);
    }

    .footer-inner,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-item {
        grid-template-columns: 48px 80px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2 / 4;
    }
}

@media (max-width: 620px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .content-section {
        margin-top: 38px;
    }

    .soft-section,
    .ranking-preview {
        padding: 20px;
        border-radius: 26px;
    }

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

    .movie-card h3 {
        font-size: 0.96rem;
    }

    .movie-card p,
    .rank-desc {
        font-size: 0.84rem;
    }

    .category-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .ranking-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ranking-poster {
        height: 102px;
    }

    .page-hero {
        padding: 36px 24px;
        border-radius: 28px;
    }

    .player-shell {
        border-radius: 22px;
    }
}
