:root {
    --bg: #fff7fb;
    --bg-soft: #fff0f7;
    --text: #1f2937;
    --muted: #6b7280;
    --pink: #ec4899;
    --rose: #fb7185;
    --rose-soft: #ffe4ee;
    --line: rgba(236, 72, 153, 0.18);
    --shadow: 0 24px 70px rgba(236, 72, 153, 0.16);
    --shadow-strong: 0 30px 90px rgba(244, 63, 94, 0.28);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.13), transparent 32rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff8fb 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    position: relative;
    z-index: 2;
}

.page-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cherry-blossom {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50% 0 50% 50%;
    background: radial-gradient(circle, #ffb7c5, #ff7eb3);
    opacity: 0.68;
    animation: fall linear infinite;
}

.cherry-blossom::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: -6px;
    left: 6px;
    border-radius: 0 50% 50% 50%;
    background: radial-gradient(circle, #ffd2dd, #ff9fc3);
}

.bloom-a {
    left: 8%;
    animation-duration: 15s;
}

.bloom-b {
    left: 47%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.bloom-c {
    left: 83%;
    animation-duration: 20s;
    animation-delay: 6s;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 60px rgba(236, 72, 153, 0.1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-left: 0;
    border-right: 0;
}

.header-inner {
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.3);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--pink);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 2px solid rgba(236, 72, 153, 0.18);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.09);
}

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

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    padding: 12px 20px;
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.25);
}

.ghost-button,
.section-more {
    color: var(--pink);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 12px 20px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-panel.is-open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    border-bottom-left-radius: 46px;
    border-bottom-right-radius: 46px;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 247, 251, 0.96) 0%, rgba(255, 247, 251, 0.82) 40%, rgba(255, 247, 251, 0.18) 100%),
        linear-gradient(0deg, rgba(31, 41, 55, 0.52), rgba(31, 41, 55, 0.12));
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin-left: max(24px, calc((100vw - 1240px) / 2));
    padding: 140px 24px 160px;
    animation: fadeIn 0.8s ease;
}

.eyebrow {
    display: inline-flex;
    color: var(--pink);
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.hero-copy h1 {
    font-size: clamp(44px, 7vw, 82px);
    max-width: 900px;
    background: linear-gradient(90deg, #1f2937, var(--pink), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 700px;
    color: #4b5563;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.movie-card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.88);
    font-weight: 700;
    font-size: 13px;
}

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

.hero-panel {
    position: absolute;
    z-index: 5;
    right: max(22px, calc((100vw - 1240px) / 2));
    bottom: 34px;
    width: min(380px, calc(100vw - 44px));
    border-radius: 28px;
    padding: 22px;
}

.hero-panel strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-panel span {
    color: var(--muted);
    line-height: 1.7;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 46px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
}

.quick-links,
.category-strip,
.home-section,
.category-overview,
.movie-list-section,
.detail-content,
.player-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 22px 0;
}

.quick-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -38px;
    position: relative;
    z-index: 8;
}

.quick-card {
    min-height: 142px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.quick-card:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.quick-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-card span,
.section-heading p,
.category-card p,
.story-card p,
.page-hero p,
.detail-line {
    color: var(--muted);
    line-height: 1.8;
}

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

.compact-heading {
    margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.story-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
}

.chip-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip-row a,
.tag-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 9px 14px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.75);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chip-row a:hover {
    transform: translateY(-2px);
    background: rgba(251, 207, 232, 0.92);
}

.soft-section {
    max-width: none;
    padding: 80px max(22px, calc((100vw - 1240px) / 2)) 76px;
    margin-top: 70px;
    background: linear-gradient(120deg, rgba(252, 231, 243, 0.72), rgba(255, 255, 255, 0.8), rgba(224, 242, 254, 0.46));
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 18px 50px rgba(236, 72, 153, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--rose-soft);
}

.movie-card-compact .movie-poster {
    aspect-ratio: 16 / 10;
}

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

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

.poster-type,
.poster-score,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    padding: 7px 11px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.poster-type {
    left: 14px;
    top: 14px;
}

.poster-score {
    right: 14px;
    top: 14px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-badge {
    left: 14px;
    bottom: 14px;
    background: linear-gradient(135deg, #f59e0b, var(--rose));
}

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

.movie-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    min-height: 54px;
}

.movie-card-meta {
    margin-top: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span {
    padding: 6px 10px;
    font-size: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 120px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.52);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.rank-row img {
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title strong,
.rank-title em {
    display: block;
}

.rank-title em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-score {
    color: var(--pink);
    font-weight: 900;
    font-size: 20px;
}

.page-hero {
    padding: 96px 22px 62px;
    background: linear-gradient(120deg, rgba(252, 231, 243, 0.72), rgba(255, 255, 255, 0.5));
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
}

.page-hero-content {
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: 19px;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-thumbs img {
    height: 118px;
    border-radius: 18px;
    object-fit: cover;
}

.category-card-body {
    padding: 22px;
}

.category-card h2 {
    margin: 0;
    font-size: 26px;
}

.filter-bar {
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    border-radius: 24px;
}

.wide-filter {
    grid-template-columns: 1fr 160px 160px 170px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 22px 58px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.32;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 247, 251, 0.82), #fff7fb 95%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 800;
}

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

.detail-poster,
.detail-info {
    border-radius: 30px;
    overflow: hidden;
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: clamp(26px, 5vw, 52px);
}

.detail-info h1 {
    font-size: clamp(40px, 6vw, 68px);
}

.detail-line {
    margin: 20px 0 0;
    font-size: 20px;
}

.detail-tags {
    margin: 20px 0 28px;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

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

.player-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.1), rgba(17, 24, 39, 0.62));
    cursor: pointer;
}

.player-trigger span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 22px 60px rgba(236, 72, 153, 0.38);
    font-size: 34px;
    padding-left: 5px;
}

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

.player-trigger.is-hidden {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.story-card {
    border-radius: 28px;
    padding: 28px;
}

.story-card:first-child {
    grid-row: span 2;
}

.story-card h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.info-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.site-footer {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 100px auto 0;
    padding: 0 22px 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: var(--shadow);
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

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

.footer-bottom {
    color: var(--muted);
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

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

    .rank-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

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

    .hero-carousel {
        min-height: 720px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .hero-copy {
        padding-top: 120px;
        padding-bottom: 220px;
    }

    .hero-panel {
        left: 22px;
        right: 22px;
        bottom: 22px;
        width: auto;
    }

    .quick-inner,
    .three-columns,
    .four-columns,
    .category-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-inner {
        margin-top: 24px;
    }

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

    .rank-row {
        grid-template-columns: 44px 88px 1fr;
    }

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

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

    .detail-poster img {
        max-height: 520px;
    }

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