:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-strong: #fff0fa;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --pink-dark: #be185d;
    --purple: #8b5cf6;
    --violet: #6d28d9;
    --shadow-soft: 0 24px 80px rgba(190, 24, 93, 0.14);
    --shadow-card: 0 16px 45px rgba(17, 24, 39, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 28rem),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 32rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #fff7fb 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 247, 251, 0.82);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav a {
    color: #4b5563;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.10);
    transform: translateY(-1px);
}

.nav-cta,
.btn-primary,
.btn-secondary,
.section-more,
.hero-search-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn-primary,
.hero-search-card button {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.25);
}

.nav-cta {
    padding: 10px 18px;
}

.btn-primary,
.btn-secondary {
    padding: 13px 22px;
}

.btn-secondary,
.section-more {
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(236, 72, 153, 0.18);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover,
.hero-search-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.28);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.10);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--pink-dark);
}

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

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

.hero {
    position: relative;
    max-width: 1240px;
    margin: 28px auto 64px;
    padding: 0 24px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.85;
    pointer-events: none;
}

.hero-glow-one {
    width: 180px;
    height: 180px;
    right: 5%;
    top: -24px;
    background: rgba(236, 72, 153, 0.22);
}

.hero-glow-two {
    width: 130px;
    height: 130px;
    left: 2%;
    bottom: 20%;
    background: rgba(139, 92, 246, 0.18);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    border-radius: 36px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 36px;
    align-items: center;
    padding: 74px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.76) 45%, rgba(17, 24, 39, 0.38) 100%),
        var(--hero-image) center / cover no-repeat;
}

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

.hero-copy {
    color: #fff;
    max-width: 720px;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    color: var(--pink-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-label {
    color: #ffd7ec;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero h2 {
    margin-top: 16px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    color: #ffe6f4;
}

.hero p {
    margin-top: 18px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    padding: 7px 11px;
}

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

.hero-poster {
    justify-self: end;
    width: min(100%, 360px);
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 150px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.hero-search-card {
    position: relative;
    z-index: 5;
    margin: -72px auto 0;
    width: min(1080px, calc(100% - 40px));
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(236, 72, 153, 0.14);
}

.hero-search-card form,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.hero-search-card label,
.search-field {
    display: grid;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.hero-search-card input,
.search-field input,
.search-field select {
    width: 100%;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 18px;
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-card input:focus,
.search-field input:focus,
.search-field select:focus {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.hero-search-card button {
    height: 50px;
    padding: 0 24px;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.hero-chip-row a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #6b21a8;
    background: rgba(168, 85, 247, 0.10);
    font-weight: 800;
    font-size: 13px;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto 72px;
    padding: 0 24px;
}

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

.section-heading h2,
.ranking-title h2,
.page-hero h1 {
    margin-top: 10px;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.section-more {
    padding: 11px 18px;
    white-space: nowrap;
}

.section-more.full {
    width: 100%;
    margin-top: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(236, 72, 153, 0.32);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(139, 92, 246, 0.16));
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
}

.play-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    padding: 8px 11px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.78);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
}

.movie-card h3 a:hover {
    color: var(--pink-dark);
}

.movie-card p {
    margin-top: 8px;
    color: #6b7280;
    line-height: 1.65;
    font-size: 14px;
}

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

.tag-row span {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.10);
    padding: 5px 8px;
}

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    border-radius: var(--radius-md);
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 250, 0.86)),
        radial-gradient(circle at right top, rgba(168, 85, 247, 0.18), transparent 50%);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.07);
}

.category-tile span,
.category-card h2 {
    display: block;
    color: #111827;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 950;
}

.category-tile strong,
.category-card p {
    display: block;
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    color: var(--pink-dark);
    font-weight: 800;
    font-size: 14px;
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #fff1f8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.ranking-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.rank-row span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-row strong,
.rank-row em {
    grid-column: 2;
    min-width: 0;
}

.rank-row strong {
    color: #111827;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    max-width: 1240px;
    margin: 28px auto 48px;
    padding: 56px 24px;
}

.compact-hero,
.category-hero {
    border-radius: 34px;
    background:
        radial-gradient(circle at right top, rgba(236, 72, 153, 0.22), transparent 36%),
        linear-gradient(135deg, #ffffff, #fff0fa);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 54px;
}

.filter-panel {
    margin-top: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}

.filter-empty {
    margin-top: 18px;
    color: var(--pink-dark);
    font-weight: 800;
}

.detail-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
    margin: 10px 0 24px;
}

.breadcrumb a:hover {
    color: var(--pink-dark);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border-radius: 34px;
    background:
        radial-gradient(circle at right top, rgba(139, 92, 246, 0.18), transparent 42%),
        linear-gradient(135deg, #111827, #3b0f2e 52%, #111827);
    box-shadow: var(--shadow-soft);
}

.player-stage {
    position: relative;
    min-height: 360px;
    border-radius: 26px;
    overflow: hidden;
    background: #050505;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(190, 24, 93, 0.28));
    z-index: 3;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 36px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 54px rgba(236, 72, 153, 0.42);
}

.detail-copy {
    color: #fff;
    align-self: center;
    padding: 20px 10px;
}

.detail-copy .eyebrow {
    color: #ffe4f2;
    background: rgba(255, 255, 255, 0.10);
}

.detail-copy h1 {
    margin-top: 16px;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-copy p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.85;
}

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

.detail-article,
.detail-side,
.text-page article {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.detail-article,
.text-page article {
    padding: 34px;
}

.detail-article h2,
.text-page h2 {
    margin-top: 30px;
    color: #111827;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
}

.detail-article h2:first-child,
.text-page h2:first-child {
    margin-top: 0;
}

.detail-article p,
.text-page p {
    margin-top: 14px;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

.detail-side {
    padding: 18px;
    align-self: start;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4.1;
}

.detail-poster img {
    width: 100%;
    height: 100%;
}

.detail-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.10);
}

.detail-meta-list span {
    color: #9ca3af;
    font-weight: 800;
}

.detail-meta-list strong {
    color: #111827;
    text-align: right;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
    margin-top: 58px;
}

.site-footer {
    margin-top: 80px;
    padding: 46px 24px 32px;
    background: rgba(255, 255, 255, 0.74);
    border-top: 1px solid var(--line);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    color: #6b7280;
    font-weight: 800;
    padding: 8px 10px;
}

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

.footer-copy {
    max-width: 1240px;
    margin: 20px auto 0;
    color: #9ca3af;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .ranking-panel {
        position: static;
    }
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 38px 26px 110px;
        align-content: center;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 72vw);
    }

    .hero-dots {
        bottom: 174px;
    }

    .hero-search-card form,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .hero,
    .content-section,
    .page-hero,
    .detail-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo {
        font-size: 20px;
    }

    .hero {
        margin-top: 14px;
    }

    .hero-slider {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-search-card {
        width: calc(100% - 8px);
        border-radius: 22px;
        padding: 16px;
    }

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

    .compact-hero,
    .category-hero,
    .detail-hero,
    .detail-article,
    .text-page article {
        padding: 24px;
        border-radius: 24px;
    }

    .player-stage {
        min-height: 220px;
        border-radius: 18px;
    }

    .player-play-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
