:root {
    --cherry-pink: #ffb7c5;
    --rose: #ff7ea8;
    --deep-rose: #ec4899;
    --soft-pink: #ffe4e9;
    --light-yellow: #fff4e6;
    --tender-green: #a8d5ba;
    --ink: #2f2430;
    --muted: #7c6b76;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.76);
    --shadow: 0 20px 44px rgba(255, 183, 197, 0.32);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.84), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(168, 213, 186, 0.48), transparent 30%),
        linear-gradient(135deg, var(--light-yellow), var(--soft-pink) 48%, #ffd4e0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    z-index: -2;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.glass-effect {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 16px 38px rgba(184, 115, 140, 0.14);
    backdrop-filter: blur(14px);
}

.card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.petal-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.petal-layer i {
    position: absolute;
    top: -40px;
    display: block;
    border-radius: 50% 0 50% 50%;
    background: radial-gradient(circle, #ffe0ea, var(--cherry-pink));
    opacity: 0.68;
    animation-name: petalFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, -8vh, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(42px, 110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-width: 0 0 1px;
}

.header-inner {
    width: min(1240px, calc(100% - 28px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--deep-rose);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    border-radius: 15px 15px 15px 4px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.26);
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.nav-link {
    color: #5b4b56;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--deep-rose);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

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

.header-search button,
.primary-btn,
.ghost-btn,
.section-link,
.text-link {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
    color: var(--white);
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.ghost-btn,
.section-link,
.text-link {
    color: var(--deep-rose);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 183, 197, 0.62);
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--deep-rose);
    background: rgba(255, 255, 255, 0.72);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--deep-rose);
    font-weight: 800;
}

.mobile-nav.is-open {
    display: grid;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg,
.detail-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) blur(1px);
    opacity: 0.42;
}

.hero-backdrop span,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 244, 230, 0.96), rgba(255, 228, 233, 0.7), rgba(255, 183, 197, 0.32)),
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.72), transparent 34%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 86px 0 108px;
}

.hero-copy {
    padding: 42px;
    border-radius: var(--radius-xl);
}

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    color: var(--deep-rose);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-line {
    color: #493741;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.6;
}

.hero-summary {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.9;
    max-width: 760px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #7b3f5d;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 183, 197, 0.45);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-poster {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 26px 70px rgba(236, 72, 153, 0.22);
}

.hero-poster-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.hero-poster strong {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 15px 18px;
    border-radius: 18px;
    color: var(--white);
    background: rgba(47, 36, 48, 0.58);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-controls button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--deep-rose);
    font-size: 30px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.18);
}

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

.hero-dots .hero-dot {
    width: 34px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-dots .hero-dot.is-active {
    background: var(--deep-rose);
}

.quick-search,
.content-section,
.split-section,
.page-main,
.player-section,
.detail-content {
    position: relative;
    z-index: 2;
}

.quick-search,
.content-section,
.split-section {
    margin-top: 54px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    margin-bottom: 32px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(255, 183, 197, 0.58);
    outline: 0;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
}

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

.section-heading h2,
.page-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.section-heading p,
.page-hero p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-card,
.category-block,
.page-hero,
.story-card,
.ranking-card,
.rank-list {
    border-radius: var(--radius-lg);
}

.category-card {
    padding: 18px;
}

.category-card strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
}

.category-card p,
.movie-info p,
.story-card p,
.ranking-card p {
    color: var(--muted);
    line-height: 1.75;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-thumbs span {
    overflow: hidden;
    min-height: 92px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 14px 34px rgba(184, 115, 140, 0.13);
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 255px;
    background: linear-gradient(135deg, #ffe4e9, #fff4e6 58%, #d8f0e2);
}

.poster-img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(to top, rgba(47, 36, 48, 0.66), transparent);
}

.play-mini,
.rank-badge {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.26);
}

.play-mini {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 34px;
    padding: 0 9px;
    border-radius: 999px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.32;
}

.movie-info h3 a:hover,
.ranking-card h2 a:hover,
.breadcrumb a:hover,
.detail-side a:hover {
    color: var(--deep-rose);
}

.movie-meta {
    gap: 6px;
}

.movie-meta span {
    padding: 5px 9px;
    font-size: 12px;
}

.tag-row {
    margin-top: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

.rank-list {
    padding: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.58);
}

.rank-row span {
    color: var(--deep-rose);
    font-size: 24px;
    font-weight: 900;
}

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

.rank-row em,
.movie-meta-line {
    color: var(--muted);
    font-style: normal;
}

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

.page-main {
    padding-top: 44px;
}

.page-hero {
    padding: 38px;
    margin-bottom: 32px;
}

.category-overview {
    display: grid;
    gap: 26px;
}

.category-block {
    padding: 24px;
}

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

.category-block h2,
.ranking-card h2,
.story-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.ranking-list {
    display: grid;
    gap: 18px;
    margin-bottom: 60px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 210px;
    background: linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.ranking-poster img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    color: var(--white);
    font-weight: 900;
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
}

.ranking-card .text-link {
    display: inline-flex;
    margin-top: 14px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    min-height: 460px;
}

.detail-poster-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.detail-copy {
    padding: 34px;
    border-radius: var(--radius-xl);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-one-line {
    color: #493741;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.65;
}

.detail-meta {
    margin-top: 18px;
}

.player-section {
    margin-top: 48px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #1f1822;
    aspect-ratio: 16 / 9;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #161118;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background: linear-gradient(135deg, rgba(47, 36, 48, 0.55), rgba(236, 72, 153, 0.22));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    color: var(--white);
    font-size: 38px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
}

.player-overlay strong {
    font-size: 22px;
}

.video-shell.is-playing .player-overlay,
.video-shell.is-ready .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 42px;
}

.story-card {
    padding: 24px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.site-footer {
    position: relative;
    z-index: 2;
    margin-top: 72px;
    padding: 36px 0;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
}

.footer-links {
    display: flex;
    gap: 14px;
    font-weight: 800;
    color: var(--deep-rose);
}

.no-image {
    display: none;
}

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

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

    .header-search input {
        width: 180px;
    }

    .hero-content,
    .detail-hero-inner,
    .detail-content,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .logo span:last-child {
        max-width: 7em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-search {
        flex: 1;
    }

    .header-search input {
        width: 100%;
        min-width: 0;
    }

    .header-search button {
        padding: 9px 12px;
    }

    .hero-slider,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 64px 0 110px;
    }

    .hero-copy,
    .detail-copy,
    .page-hero {
        padding: 24px;
    }

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

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

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

    .poster-img {
        height: 235px;
    }

    .movie-info {
        padding: 13px;
    }

    .rank-row,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .ranking-poster {
        min-height: 260px;
    }

    .ranking-poster img {
        height: 260px;
    }

    .detail-hero-inner {
        padding: 42px 0;
    }

    .detail-poster {
        display: none;
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

    .header-search button {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn,
    .section-link,
    .text-link {
        text-align: center;
    }
}
