:root {
    --candy-pink: #ffb3d9;
    --candy-rose: #ff6b9d;
    --candy-yellow: #ffe66d;
    --candy-orange: #ffb347;
    --candy-mint: #a8e6ce;
    --candy-blue: #87ceeb;
    --ink: #1f2937;
    --muted: #667085;
    --line: rgba(255, 179, 217, 0.28);
    --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 18px 50px rgba(255, 107, 157, 0.18);
    --deep-shadow: 0 24px 80px rgba(31, 41, 55, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 179, 217, 0.38), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(168, 230, 206, 0.42), transparent 32%),
        linear-gradient(135deg, #fff7fb 0%, #fffdf1 45%, #f4fffb 100%);
    min-height: 100vh;
}

body.lock-scroll {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.page-bg span {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.35;
    animation: float 9s ease-in-out infinite;
}

.page-bg span:nth-child(1) {
    top: 12%;
    left: 4%;
    background: var(--candy-pink);
}

.page-bg span:nth-child(2) {
    top: 36%;
    right: 8%;
    background: var(--candy-mint);
    animation-delay: -2s;
}

.page-bg span:nth-child(3) {
    bottom: 4%;
    left: 34%;
    background: var(--candy-yellow);
    animation-delay: -4s;
}

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

.gradient-text {
    background-image: linear-gradient(135deg, var(--candy-rose), var(--candy-orange), var(--candy-yellow), var(--candy-mint), var(--candy-blue));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(255, 179, 217, 0.2);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.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;
    color: #ffffff;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-yellow), var(--candy-mint));
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.28);
}

.brand-text {
    font-size: 26px;
    letter-spacing: 0.02em;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--candy-pink), var(--candy-yellow), var(--candy-mint));
    box-shadow: 0 10px 24px rgba(255, 179, 217, 0.34);
}

.header-search,
.mobile-search,
.page-search,
.quick-search-card form,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.page-search input,
.quick-search-card input,
.inline-filter input {
    border: 2px solid rgba(255, 179, 217, 0.38);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    color: var(--ink);
    min-width: 220px;
    transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.quick-search-card input:focus,
.inline-filter input:focus {
    border-color: var(--candy-rose);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.header-search button,
.mobile-search button,
.page-search button,
.quick-search-card button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--candy-rose), var(--candy-orange));
    box-shadow: 0 12px 26px rgba(255, 107, 157, 0.25);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    color: var(--candy-rose);
    background: rgba(255, 179, 217, 0.16);
    font-size: 24px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

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

.hero-section {
    padding-top: 34px;
}

.hero-shell {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.88), rgba(255, 230, 109, 0.65), rgba(168, 230, 206, 0.82));
    box-shadow: var(--deep-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 400px;
    gap: 44px;
    align-items: center;
    padding: 62px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px) scale(0.985);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16;
    filter: blur(3px) saturate(1.15);
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 0 12px 32px rgba(31, 41, 55, 0.28);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--candy-rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(255, 179, 217, 0.18);
}

.hero-copy h1,
.page-hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
    max-width: 720px;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.94);
}

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #9f2b5b;
    font-weight: 800;
    font-size: 12px;
}

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

.btn-primary,
.btn-ghost,
.btn-soft,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--candy-rose), var(--candy-orange), var(--candy-yellow));
    box-shadow: 0 18px 32px rgba(255, 107, 157, 0.28);
}

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

.btn-primary.full {
    width: 100%;
}

.btn-ghost {
    color: #ffffff;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.16);
}

.btn-soft {
    color: var(--candy-rose);
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(255, 179, 217, 0.16);
}

.text-link {
    color: var(--candy-rose);
    padding: 10px 0;
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(31, 41, 55, 0.26);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.5);
}

.hero-poster.small {
    width: min(300px, 100%);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span,
.play-badge,
.player-start span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.18);
    font-size: 28px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.quick-search-card,
.page-hero {
    margin-top: 40px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--shadow);
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    gap: 28px;
}

.quick-search-card h2,
.section-title-row h2,
.channel-card h2,
.detail-article h1,
.detail-article h2,
.site-footer h2 {
    margin: 0;
}

.quick-search-card p,
.channel-card p,
.movie-card p,
.rank-body p,
.detail-article p,
.side-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.quick-search-card form input,
.page-search input {
    flex: 1;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 64px 0 24px;
}

.section-title-row h2 {
    margin-top: 10px;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

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

.category-card,
.channel-card,
.movie-card,
.rank-item,
.side-card,
.detail-article,
.player-shell,
.side-poster {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.category-card {
    position: relative;
    min-height: 224px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    isolation: isolate;
}

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

.category-glow,
.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: -1;
}

.category-card::after {
    background: linear-gradient(to top, rgba(31, 41, 55, 0.78), rgba(255, 107, 157, 0.2), rgba(168, 230, 206, 0.08));
}

.category-glow {
    background: radial-gradient(circle at 30% 20%, rgba(255, 230, 109, 0.32), transparent 44%);
}

.category-card strong {
    font-size: 23px;
}

.category-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
}

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

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.rank-item:hover,
.channel-card:hover,
.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(255, 107, 157, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.4), rgba(168, 230, 206, 0.36));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.64), transparent 58%);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-badge {
    width: 56px;
    height: 56px;
    font-size: 20px;
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

.corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 107, 157, 0.9);
}

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

.movie-meta-line,
.score-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #8890a4;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line a,
.movie-meta-line strong,
.score-row strong {
    color: var(--candy-rose);
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.score-row {
    justify-content: space-between;
    margin-top: 12px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 88px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.rank-num.small {
    font-size: 13px;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 179, 217, 0.16);
}

.rank-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-body p {
    margin: 0 0 8px;
}

.channel-grid {
    display: grid;
    gap: 20px;
}

.channel-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-cover {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.3), rgba(168, 230, 206, 0.3));
}

.channel-cover img {
    z-index: 0;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 179, 217, 0.16);
    font-weight: 800;
    font-size: 13px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.88), rgba(255, 230, 109, 0.64), rgba(168, 230, 206, 0.78));
}

.page-hero p {
    color: rgba(255, 255, 255, 0.95);
}

.page-search {
    min-width: min(520px, 100%);
}

.pager-links {
    display: flex;
    gap: 10px;
}

.pager-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.76);
    font-weight: 900;
}

.breadcrumbs {
    margin: 32px 0 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-weight: 800;
}

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

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-shell {
    position: relative;
    background: #111827;
    min-height: 480px;
    isolation: isolate;
}

.player-shell video {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    background: #111827;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(17, 24, 39, 0.46));
}

.player-start span {
    position: absolute;
    width: 88px;
    height: 88px;
    font-size: 32px;
}

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

.detail-article {
    padding: 28px;
}

.detail-article h1 {
    margin-top: 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-article .lead {
    font-size: 20px;
    color: #4b5563;
}

.detail-article h2 {
    margin-top: 28px;
    font-size: 26px;
}

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

.detail-meta-grid span {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 179, 217, 0.12);
    color: var(--muted);
    line-height: 1.5;
}

.detail-meta-grid strong {
    display: block;
    color: var(--candy-rose);
    margin-bottom: 4px;
}

.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 94px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-card {
    padding: 22px;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.16), rgba(255, 230, 109, 0.08), rgba(168, 230, 206, 0.16));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.is-hidden {
    display: none !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
}

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

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 220px 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-panel.open {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 30px;
    }

    .hero-poster {
        width: min(280px, 100%);
        transform: none;
    }

    .hero-dots {
        left: 30px;
    }

    .quick-search-card,
    .page-hero,
    .footer-grid,
    .channel-card,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

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

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

    .player-shell,
    .player-shell video {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .section-container {
        width: min(100% - 20px, 1280px);
    }

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

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

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: auto 72px 1fr;
        gap: 12px;
    }

    .rank-body h2 {
        font-size: 17px;
    }

    .rank-body p {
        display: none;
    }

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

    .detail-article {
        padding: 20px;
    }
}
