:root {
    color-scheme: light;
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff1f7;
    --text: #1f2937;
    --muted: #667085;
    --line: #f3d9e6;
    --pink: #db2777;
    --pink-dark: #be185d;
    --yellow: #facc15;
    --green: #86efac;
    --shadow: 0 24px 60px rgba(219, 39, 119, 0.16);
    --soft-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fffaf0 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(243, 217, 230, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ca8a04, #db2777, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #f9a8d4 52%, #86efac);
    box-shadow: 0 12px 22px rgba(219, 39, 119, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--pink);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--pink);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: #4b5563;
    font-weight: 700;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 12% 20%, rgba(250, 204, 21, 0.34), transparent 28%), radial-gradient(circle at 80% 18%, rgba(134, 239, 172, 0.34), transparent 30%), linear-gradient(135deg, #fef3c7 0%, #fce7f3 52%, #dcfce7 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image: linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
    max-width: 670px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    color: #111827;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    color: #4b5563;
    font-size: 18px;
}

.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.primary-btn,
.hero-search button {
    color: #ffffff;
    background: var(--pink);
    box-shadow: 0 15px 32px rgba(219, 39, 119, 0.26);
}

.primary-btn:hover,
.hero-search button:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

.ghost-btn,
.section-link {
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(219, 39, 119, 0.16);
}

.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(380px, 100%);
    aspect-ratio: 3 / 4;
    margin-left: auto;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.36));
}

.hero-poster img,
.poster-wrap img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 116px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.26);
}

.hero-dots button.is-active {
    background: var(--pink);
}

.hero-search {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    display: flex;
    gap: 12px;
    max-width: 720px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
    color: #111827;
}

.content-section,
.page-main,
.detail-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.section-head h2 {
    margin: 8px 0 6px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-head.small {
    margin-bottom: 18px;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fdf2f8;
}

.poster-wrap img {
    transition: transform 0.5s ease;
}

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

.region-badge,
.score-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.region-badge {
    left: 10px;
    color: #ffffff;
    background: var(--pink);
}

.score-badge {
    right: 10px;
    color: #1f2937;
    background: var(--yellow);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-title {
    margin: 0 0 8px;
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-title {
    font-size: 15px;
}

.movie-card-body p {
    margin: 0 0 12px;
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.soft-panel {
    margin-top: 72px;
    padding: 46px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.74), rgba(252, 231, 243, 0.82), rgba(220, 252, 231, 0.72));
}

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

.category-card,
.category-overview-card,
.info-card {
    display: block;
    border: 1px solid rgba(219, 39, 119, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
    padding: 22px;
}

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

.category-card span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7fb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    background: #fce7f3;
    transform: translateX(4px);
}

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

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #fdf2f8;
}

.rank-item h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item p {
    margin: 0 0 6px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.page-main,
.detail-main {
    padding-bottom: 76px;
}

.page-hero {
    margin-top: 34px;
    padding: 58px;
    border-radius: 34px;
    background: radial-gradient(circle at 8% 20%, rgba(250, 204, 21, 0.28), transparent 24%), linear-gradient(135deg, #fdf2f8, #fffbeb 58%, #ecfdf5);
    box-shadow: var(--soft-shadow);
}

.slim-hero,
.category-hero,
.ranking-hero {
    min-height: 280px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #f3d9e6;
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
    color: #111827;
}

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

.category-main-link {
    display: block;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #db2777, #86efac);
    font-size: 22px;
    font-weight: 900;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f3d9e6;
}

.category-samples a {
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-samples a:hover {
    color: var(--pink);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fef3c7, #fce7f3 58%, #dcfce7);
    box-shadow: var(--soft-shadow);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 62px);
}

.detail-one-line {
    margin: 0;
}

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #111827;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.48));
}

.player-start span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    font-size: 32px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    margin-top: 38px;
}

.detail-article,
.info-card {
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-article h2,
.info-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-article p {
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 17px;
}

.detail-article p:last-child {
    margin-bottom: 0;
}

.info-rows {
    display: grid;
    gap: 12px;
}

.info-rows div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3d9e6;
}

.info-rows span {
    color: var(--muted);
}

.info-rows strong {
    color: #111827;
    text-align: right;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 82px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
}

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

.site-footer p {
    margin: 12px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-content: start;
    color: #4b5563;
    font-weight: 700;
}

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
    color: #9ca3af;
    font-size: 13px;
}

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

@media (max-width: 1180px) {
    .featured-grid,
    .compact-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

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

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

    .hero-inner {
        min-height: 760px;
        align-items: start;
        padding-top: 58px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(270px, 80vw);
        margin: 0;
    }

    .hero-dots {
        bottom: 128px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .large-rank-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(260px, 100%);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .content-section,
    .page-main,
    .detail-main,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1240px);
    }

    .hero-section,
    .hero-inner {
        min-height: 760px;
    }

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

    .hero-search,
    .filter-bar {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        width: 100%;
    }

    .section-head {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .overview-grid,
    .large-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .soft-panel,
    .page-hero,
    .detail-hero,
    .detail-article,
    .info-card {
        padding: 24px;
        border-radius: 24px;
    }

    .rank-item a {
        grid-template-columns: 34px 52px minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

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