:root {
    --candy-pink: #ff6fb5;
    --candy-rose: #f43f7f;
    --candy-orange: #ff8a3d;
    --candy-yellow: #ffd166;
    --candy-mint: #69e3c2;
    --candy-blue: #60a5fa;
    --candy-purple: #a78bfa;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7fb;
    --card: rgba(255, 255, 255, 0.78);
    --border: rgba(244, 63, 127, 0.16);
    --shadow: 0 20px 60px rgba(244, 63, 127, 0.16);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 111, 181, 0.22), transparent 34rem),
        radial-gradient(circle at 75% 15%, rgba(105, 227, 194, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #fff8ed 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.glass-effect {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(244, 63, 127, 0.12);
    backdrop-filter: blur(20px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
    box-shadow: 0 10px 26px rgba(244, 63, 127, 0.3);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    padding: 9px 12px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--candy-rose);
    background: rgba(255, 111, 181, 0.12);
}

.nav-search,
.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(244, 63, 127, 0.16);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(244, 63, 127, 0.08);
}

.nav-search input,
.hero-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: var(--ink);
    background: transparent;
}

.nav-search button,
.hero-search button,
.candy-button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
    box-shadow: 0 14px 28px rgba(244, 63, 127, 0.25);
    transition: 0.25s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.candy-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(244, 63, 127, 0.32);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 111, 181, 0.15);
    color: var(--candy-rose);
    font-size: 22px;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.hero-stack {
    position: relative;
    height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(29, 14, 34, 0.83), rgba(29, 14, 34, 0.48) 52%, rgba(244, 63, 127, 0.2)),
        linear-gradient(0deg, #fff7fb 0%, rgba(255, 247, 251, 0) 30%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 116px;
    width: min(620px, calc(100% - 64px));
    color: white;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--candy-rose);
    font-size: 14px;
    font-weight: 900;
    background: rgba(255, 111, 181, 0.13);
}

.hero-content .eyebrow {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.7;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
}

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

.hero-bottom {
    position: relative;
    margin-top: -82px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: end;
    z-index: 5;
}

.hero-search-card {
    padding: 26px;
    border-radius: var(--radius);
}

.hero-search-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero-search-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-category-links,
.category-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-category-links a,
.category-mini-links a,
.detail-tags a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--candy-rose);
    font-weight: 800;
    background: rgba(255, 111, 181, 0.12);
}

.hero-dots {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(244, 63, 127, 0.25);
    transition: 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
}

.content-section {
    padding: 58px 0;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.heading-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
    box-shadow: 0 12px 24px rgba(244, 63, 127, 0.24);
}

.section-more {
    color: var(--candy-rose);
    font-weight: 900;
}

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

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

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

.horizontal-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .video-card {
    width: 270px;
    flex: 0 0 270px;
    scroll-snap-align: start;
}

.video-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 127, 0.13);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(244, 63, 127, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe3f1, #fff3c4);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .poster-wrap img {
    transform: scale(1.09);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65));
    transition: opacity 0.3s ease;
}

.video-card:hover .poster-shade {
    opacity: 1;
}

.category-pill,
.duration-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(8px);
}

.category-pill {
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
}

.duration-pill {
    right: 12px;
    padding: 6px 10px;
}

.rank-badge {
    left: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--candy-yellow), var(--candy-orange));
}

.play-circle,
.play-mark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.88);
    opacity: 0;
    transition: 0.28s ease;
}

.video-card:hover .play-circle,
.movie-list-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

.card-body {
    display: block;
    padding: 18px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 52px;
    margin-bottom: 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body em {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta span {
    background: rgba(255, 111, 181, 0.1);
}

.soft-band {
    background: linear-gradient(90deg, rgba(255, 111, 181, 0.08), rgba(255, 209, 102, 0.12), rgba(105, 227, 194, 0.1));
}

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

.category-card,
.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    color: white;
    box-shadow: var(--shadow);
}

.category-card img,
.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card::after,
.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
}

.category-card span,
.category-card strong {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.category-card span {
    bottom: 56px;
    font-weight: 900;
    font-size: 24px;
}

.category-card strong {
    bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-tile {
    display: grid;
    min-height: 260px;
    padding: 24px;
}

.category-tile div {
    position: relative;
    z-index: 2;
    align-self: end;
}

.category-tile h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-tile p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.category-tile div div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile div div span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

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

.promo-panel {
    position: sticky;
    top: 92px;
    padding: 32px;
    border-radius: 28px;
}

.promo-panel span {
    color: var(--candy-rose);
    font-weight: 900;
}

.promo-panel h2 {
    margin: 12px 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.promo-panel p {
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-list-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(244, 63, 127, 0.12);
    transition: 0.25s ease;
}

.movie-list-card:hover {
    transform: translateX(4px);
    background: rgba(255, 111, 181, 0.08);
}

.list-poster {
    position: relative;
    overflow: hidden;
    height: 104px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe3f1, #fff3c4);
}

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

.list-info h3 {
    margin: 2px 0 7px;
    font-size: 18px;
}

.list-info p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    color: var(--candy-rose);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 78px 0 34px;
}

.page-hero h1 {
    color: #111827;
}

.page-hero p {
    width: min(780px, 100%);
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.narrow-search {
    width: min(650px, 100%);
    margin-top: 24px;
}

.narrow-search input {
    width: 100%;
    flex: 1;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pager a {
    min-width: 42px;
    padding: 10px 14px;
    text-align: center;
    border-radius: 14px;
    color: var(--candy-rose);
    font-weight: 900;
    background: rgba(255, 111, 181, 0.12);
}

.pager a.is-current {
    color: white;
    background: linear-gradient(135deg, var(--candy-pink), var(--candy-orange));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 34px 0 70px;
}

.detail-main {
    min-width: 0;
}

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

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

.player-card,
.detail-card,
.sidebar-card {
    border-radius: 28px;
}

.player-card {
    padding: 14px;
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #0f172a;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-large-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 138px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: 0.25s ease;
}

.player-large-button span {
    font-size: 24px;
}

.player-large-button:hover {
    transform: scale(1.05);
}

.player-large-button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    color: white;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.7);
}

.detail-card {
    padding: 30px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.score-pill {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: white;
    font-size: 26px;
    background: linear-gradient(135deg, var(--candy-yellow), var(--candy-orange));
    box-shadow: 0 16px 32px rgba(255, 138, 61, 0.24);
}

.detail-meta {
    margin: 18px 0 24px;
    color: var(--muted);
}

.detail-meta span {
    background: rgba(255, 111, 181, 0.11);
}

.lead-text {
    font-size: 20px;
    line-height: 1.75;
    color: #374151;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.article-block {
    padding-top: 22px;
    border-top: 1px solid rgba(244, 63, 127, 0.14);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.article-block p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.related-section {
    padding-bottom: 0;
}

.detail-sidebar {
    min-width: 0;
}

.sidebar-card {
    position: sticky;
    top: 94px;
    padding: 22px;
}

.sidebar-card h2 {
    margin: 0 0 16px;
}

.compact-list .movie-list-card {
    grid-template-columns: 108px minmax(0, 1fr);
    padding: 10px;
}

.compact-list .list-poster {
    height: 72px;
}

.compact-list .list-info p,
.compact-list .movie-meta,
.compact-list .tag-row {
    display: none;
}

.compact-list .list-info h3 {
    font-size: 15px;
    line-height: 1.45;
}

.site-footer {
    margin-top: 48px;
    padding: 38px 0;
    color: #6b7280;
    border-top: 1px solid rgba(244, 63, 127, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 10px;
}

.site-footer p {
    max-width: 680px;
    line-height: 1.7;
}

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

.footer-links a {
    color: var(--candy-rose);
    font-weight: 800;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-panel {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(244, 63, 127, 0.16);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        display: block;
    }

    .nav-search input {
        width: 100%;
        flex: 1;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-stack {
        height: 560px;
    }

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

    .hero-dots {
        justify-self: start;
    }

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

    .detail-sidebar,
    .promo-panel,
    .sidebar-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .section-container {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 820px;
    }

    .hero-stack {
        height: 610px;
    }

    .hero-content {
        bottom: 92px;
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero-content p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .hero-bottom {
        margin-top: -62px;
    }

    .hero-search,
    .nav-search {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button,
    .nav-search button {
        border-radius: 18px;
        margin: 4px;
    }

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

    .movie-list-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
    }

    .list-poster {
        height: 86px;
    }

    .detail-title-row,
    .section-heading,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-card {
        padding: 22px;
    }
}
