:root {
    --cake-cream: #fff5e1;
    --cake-rose: #ffc0cb;
    --cake-strawberry: #ffb6c1;
    --bow-pink: #ff69b4;
    --bow-hotpink: #ff1493;
    --cake-coral: #ff7f50;
    --ink: #2b2230;
    --muted: #756372;
    --card: rgba(255, 255, 255, 0.88);
    --line: rgba(255, 182, 193, 0.48);
    --shadow: 0 18px 40px rgba(255, 105, 180, 0.18);
    --shadow-strong: 0 28px 80px rgba(255, 20, 147, 0.24);
    --radius: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 105, 180, 0.22), transparent 28rem),
        radial-gradient(circle at 90% 16%, rgba(152, 216, 200, 0.22), transparent 24rem),
        linear-gradient(135deg, #fff5e1 0%, #fff9ee 42%, #ffeaf3 100%);
    min-height: 100vh;
}

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

img {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 182, 193, 0.38);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
    box-shadow: 0 12px 22px rgba(255, 20, 147, 0.25);
}

.logo-title {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink), var(--bow-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: -3px;
    color: var(--cake-coral);
    font-size: 12px;
    font-weight: 700;
}

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

.main-nav a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #5f4f5f;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.main-nav a.is-active {
    color: var(--bow-hotpink);
    background: rgba(255, 192, 203, 0.55);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 2px solid rgba(255, 182, 193, 0.52);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 6px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 42px;
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, #ffb6c1, #fffacd, #ffc0cb);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.52), transparent 14rem),
        radial-gradient(circle at 88% 12%, rgba(255, 105, 180, 0.28), transparent 20rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.13) 12px, transparent 12px, transparent 24px);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
    align-items: center;
    gap: 42px;
    padding: 64px;
    opacity: 0;
    transform: translateX(26px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #ff1493;
    font-size: 14px;
    font-weight: 900;
    border: 1px solid rgba(255, 20, 147, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero h1,
.page-title h1,
.detail-title {
    margin: 16px 0 14px;
    font-size: clamp(34px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
    color: #251520;
}

.hero h1 span,
.gradient-title {
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink), var(--bow-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    color: #6b5363;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta,
.meta-row,
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #6b3250;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 182, 193, 0.46);
    font-size: 13px;
    font-weight: 800;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    box-shadow: 0 14px 28px rgba(255, 20, 147, 0.24);
}

.btn-soft {
    color: var(--bow-hotpink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 20, 147, 0.14);
}

.hero-poster-wrap {
    position: relative;
    z-index: 2;
    min-height: 420px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-width: 370px;
    margin-left: auto;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 38px;
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 192, 203, 0.42));
}

.hero-poster img,
.poster-link img,
.related-card img,
.rank-mini img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster::after,
.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent);
    pointer-events: none;
}

.hero-float-card {
    position: absolute;
    left: 0;
    bottom: 34px;
    width: min(280px, 76%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-float-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bow-hotpink);
}

.hero-controls {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--bow-hotpink);
}

.hero-arrows {
    display: flex;
    gap: 8px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 16px;
    color: var(--bow-hotpink);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(255, 20, 147, 0.16);
}

.section {
    margin-top: 44px;
}

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

.section-kicker {
    margin-bottom: 6px;
    color: var(--bow-hotpink);
    font-weight: 900;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc,
.page-title p,
.category-intro,
.detail-lead {
    color: var(--muted);
    line-height: 1.85;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.52);
    border-radius: 30px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(255, 182, 193, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 20, 147, 0.32);
    box-shadow: 0 20px 44px rgba(255, 20, 147, 0.18);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.card-title a:hover,
.text-link:hover {
    color: var(--bow-hotpink);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: #8b6d7f;
    font-size: 12px;
    font-weight: 800;
}

.card-summary {
    color: #6b5d68;
    font-size: 14px;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #8a2558;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 192, 203, 0.58);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(255, 182, 193, 0.52);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(255, 182, 193, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(255, 20, 147, 0.18);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -40px;
    bottom: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.24), transparent 70%);
}

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

.category-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.7;
}

.page-title {
    margin: 16px 0 26px;
    padding: 30px;
    border: 1px solid rgba(255, 182, 193, 0.52);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
}

.page-title h1 {
    margin-top: 0;
    font-size: clamp(34px, 4.5vw, 58px);
}

.filter-bar {
    position: sticky;
    top: 90px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(255, 182, 193, 0.18);
    backdrop-filter: blur(12px);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    outline: none;
    border: 1px solid rgba(255, 182, 193, 0.62);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255, 20, 147, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 182, 193, 0.52);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(255, 182, 193, 0.16);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
}

.rank-mini {
    overflow: hidden;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    background: #ffeaf3;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.rank-score {
    color: var(--bow-hotpink);
    font-size: 18px;
    font-weight: 950;
}

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

.detail-card,
.side-card {
    border: 1px solid rgba(255, 182, 193, 0.52);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.detail-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.site-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
}

.player-cover img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    filter: blur(1px) saturate(1.08);
}

.player-cover span {
    position: relative;
    z-index: 1;
}

.play-mark {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
    box-shadow: 0 16px 36px rgba(255, 20, 147, 0.34);
    font-size: 30px;
}

.play-text {
    font-size: 18px;
    font-weight: 950;
}

.player-shell.is-playing .player-cover {
    display: none;
}

.detail-content {
    padding: 28px;
}

.breadcrumbs {
    margin-bottom: 16px;
    color: #8b6d7f;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: var(--bow-hotpink);
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
}

.detail-lead {
    margin: 0 0 18px;
    font-size: 18px;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.detail-section p {
    margin: 0;
    color: #5f4f5f;
    line-height: 1.95;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 950;
}

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

.related-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 245, 225, 0.58);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    background: rgba(255, 192, 203, 0.42);
    transform: translateX(3px);
}

.related-card img {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.related-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.related-card small {
    color: var(--muted);
    font-weight: 800;
}

.detail-poster {
    overflow: hidden;
    margin-top: 18px;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #ffeaf3;
}

.site-footer {
    margin-top: 56px;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 182, 193, 0.46);
    color: #806d7b;
}

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

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

@media (max-width: 1040px) {
    .header-search {
        display: none;
    }

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

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

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

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

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

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .header-inner {
        min-height: 68px;
    }

    .logo-title {
        font-size: 20px;
    }

    .hero {
        min-height: 620px;
        border-radius: 30px;
    }

    .hero-slide {
        padding: 32px 24px 92px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .hero-controls {
        left: 24px;
        right: 24px;
    }

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

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

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

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

    .rank-score {
        grid-column: 3;
    }

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-main {
        width: min(100% - 20px, 1180px);
    }

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

    .hero {
        min-height: 660px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
