:root {
    color-scheme: light;
    --bg: #fff7fb;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-solid: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f9fafb;
    --line: rgba(244, 114, 182, 0.18);
    --pink: #ec4899;
    --rose: #ef4444;
    --orange: #f97316;
    --purple: #a855f7;
    --blue: #60a5fa;
    --shadow: 0 22px 60px rgba(236, 72, 153, 0.18);
    --soft-shadow: 0 12px 34px rgba(31, 41, 55, 0.10);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #eff6ff 0%, #fff1f7 46%, #faf5ff 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 10%, rgba(248, 113, 113, 0.18), transparent 28rem),
        radial-gradient(circle at 84% 8%, rgba(168, 85, 247, 0.16), transparent 30rem),
        radial-gradient(circle at 46% 70%, rgba(96, 165, 250, 0.12), transparent 32rem);
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.22);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav > a,
.nav-dropdown > button,
.mobile-toggle {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover,
.mobile-toggle:hover {
    background: #ffffff;
    color: var(--pink);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    width: 20rem;
    padding: 0.65rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, #fff1f2, #faf5ff);
}

.dropdown-menu strong {
    display: block;
    color: #111827;
    margin-bottom: 0.15rem;
}

.dropdown-menu span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.76);
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mobile-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.74);
    color: #374151;
    font-weight: 650;
}

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

.home-hero,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 1rem 3.6rem;
}

.hero-shell,
.page-hero-inner,
.section-block,
.detail-shell,
.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
    gap: 2rem;
    align-items: center;
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.45rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--pink);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-heading h1,
.page-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.7rem, 7vw, 6.4rem);
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-heading p,
.page-hero p {
    margin-top: 1.25rem;
    max-width: 46rem;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-search,
.filter-panel {
    margin-top: 1.65rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0 1rem;
    color: #111827;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
    outline: none;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.hero-search button,
.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.ghost-button,
.section-link {
    color: #374151;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow);
}

.hero-mini-stats,
.chip-row,
.hero-tags,
.movie-tags,
.detail-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hero-mini-stats {
    margin-top: 1.2rem;
}

.hero-mini-stats span,
.chip-row a,
.hero-tags span,
.movie-tags span,
.detail-tags span,
.detail-meta span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 30rem;
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.72fr);
    gap: 1.5rem;
    padding: 1.5rem;
    opacity: 0;
    transform: translateX(1.5rem) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
    align-self: end;
    padding: 1rem;
}

.hero-copy h2 {
    margin-top: 0.9rem;
    font-size: clamp(1.8rem, 3.5vw, 3.7rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #111827;
}

.hero-copy p {
    margin-top: 1rem;
    color: #4b5563;
    line-height: 1.85;
}

.hero-tags,
.hero-actions {
    margin-top: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-poster {
    position: relative;
    min-height: 25rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(31, 41, 55, 0.22);
}

.hero-poster::after,
.movie-cover::after,
.compact-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.hero-poster img,
.movie-cover img,
.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fee2e2, #fce7f3, #ede9fe);
}

.hero-dots {
    position: absolute;
    left: 2rem;
    bottom: 1.2rem;
    display: flex;
    gap: 0.45rem;
    z-index: 5;
}

.hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.22);
    border: 0;
}

.hero-dot.is-active {
    width: 1.8rem;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.34;
    animation: floaty 9s ease-in-out infinite;
}

.blob-one {
    width: 17rem;
    height: 17rem;
    left: 3rem;
    top: 4rem;
    background: #fecaca;
}

.blob-two {
    width: 19rem;
    height: 19rem;
    right: 5rem;
    top: 3rem;
    background: #fed7aa;
    animation-delay: 1.6s;
}

.blob-three {
    width: 21rem;
    height: 21rem;
    left: 42%;
    bottom: -4rem;
    background: #fbcfe8;
    animation-delay: 3s;
}

@keyframes floaty {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -1.25rem, 0) scale(1.08);
    }
}

.page-hero-inner {
    position: relative;
    border-radius: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 242, 0.76));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
}

.section-block {
    padding: 3.2rem 1rem;
}

.soft-section {
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.38);
}

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

.section-head h2 {
    margin-top: 0.65rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

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

.category-card {
    position: relative;
    min-height: 12.5rem;
    padding: 1.35rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 241, 242, 0.88));
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow);
}

.category-card:hover::after {
    transform: scale(1.4);
}

.category-card span {
    position: relative;
    z-index: 1;
    color: var(--pink);
    font-weight: 800;
    font-size: 0.82rem;
}

.category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 0.6rem;
    font-size: 1.35rem;
    color: #111827;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin-top: 0.75rem;
    color: #6b7280;
    line-height: 1.75;
    font-size: 0.95rem;
}

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

.movie-card,
.compact-card,
.content-card,
.player-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--soft-shadow);
}

.movie-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-0.4rem);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.movie-cover img,
.compact-cover img {
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img,
.compact-card:hover .compact-cover img,
.hero-poster:hover img {
    transform: scale(1.07);
}

.movie-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
}

.movie-duration {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    left: 0.75rem;
    top: 0.75rem;
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.movie-body {
    padding: 1rem;
}

.movie-title,
.compact-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #111827;
    font-weight: 850;
    line-height: 1.35;
}

.movie-title:hover,
.compact-title:hover {
    color: var(--pink);
}

.movie-desc {
    margin-top: 0.55rem;
    min-height: 2.9rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.78rem;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 0.45rem;
    color: #d1d5db;
}

.movie-tags {
    margin-top: 0.75rem;
}

.movie-tags span,
.detail-tags span {
    background: #fdf2f8;
    color: #be185d;
    font-size: 0.75rem;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}

.rank-list,
.side-list {
    display: grid;
    gap: 0.8rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.55rem;
    border-radius: 1rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-0.18rem);
    box-shadow: var(--shadow);
}

.compact-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 0.8rem;
    overflow: hidden;
}

.compact-body p {
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-meta {
    margin-top: 0.4rem;
    color: #9ca3af;
    font-size: 0.75rem;
}

.detail-page {
    padding: 2.4rem 1rem 4rem;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 23rem;
    gap: 1.5rem;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 1.2rem;
}

.back-link {
    width: fit-content;
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #4b5563;
    font-weight: 750;
}

.back-link:hover {
    color: var(--pink);
}

.player-card,
.content-card {
    border-radius: 1.35rem;
    padding: 1rem;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #050505;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.66));
    border: 0;
    font-weight: 850;
    font-size: 1rem;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    font-size: 2.2rem;
    text-indent: 0.25rem;
}

.movie-detail-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-meta {
    margin-top: 1rem;
}

.detail-tags {
    margin-top: 1rem;
}

.movie-detail-content h2,
.movie-review h2,
.sticky-card h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #111827;
    font-weight: 850;
}

.lead-text {
    color: #374151;
    font-size: 1.06rem;
    line-height: 1.9;
}

.article-text {
    display: grid;
    gap: 0.9rem;
    color: #4b5563;
    line-height: 1.95;
}

.genre-line {
    margin-top: 1.2rem;
    color: #4b5563;
}

.sticky-card {
    position: sticky;
    top: 6rem;
}

.filter-panel {
    max-width: 58rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem 10rem;
}

[hidden] {
    display: none !important;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
}

.footer-shell {
    padding: 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-shell p {
    margin-top: 0.75rem;
    max-width: 44rem;
    color: #6b7280;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.footer-links a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    font-weight: 700;
}

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

.footer-bottom {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(236, 72, 153, 0.1);
}

@media (max-width: 1100px) {
    .hero-shell,
    .detail-shell,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 28rem;
    }

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

    .detail-side {
        order: 2;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-shell,
    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 47rem;
    }

    .hero-poster {
        min-height: 22rem;
    }

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

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

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

@media (max-width: 560px) {
    .home-hero,
    .page-hero {
        padding: 2.6rem 0.85rem 2rem;
    }

    .page-hero-inner {
        padding: 1.35rem;
        border-radius: 1.35rem;
    }

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

    .hero-carousel {
        min-height: 45rem;
        border-radius: 1.35rem;
    }

    .hero-slide {
        padding: 1rem;
    }

    .hero-copy {
        padding: 0.25rem;
    }

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

    .compact-card {
        grid-template-columns: 7rem minmax(0, 1fr);
    }

    .section-block {
        padding: 2.2rem 0.85rem;
    }

    .player-card,
    .content-card {
        padding: 0.85rem;
        border-radius: 1rem;
    }
}
