:root {
    --bg: #fff7fb;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --brand: #ec4899;
    --brand-2: #ef4444;
    --brand-3: #f97316;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.16);
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff7fb 0%, #fff1f2 44%, #fff7ed 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.08);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--dark);
}

.logo-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.logo-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.2);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    height: min(72vh, 720px);
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(236, 72, 153, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 38%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 96px;
    width: min(640px, calc(100% - 64px));
    color: #fff;
}

.hero-kicker,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-kicker span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-content h2 {
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.07em;
}

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

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.28);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(236, 72, 153, 0.28);
}

.hero-dots {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 64px;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.24s ease;
}

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

.intro-strip,
.search-panel,
.page-hero,
.content-card,
.ranking-feature,
.category-card.detail-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -44px;
    position: relative;
    z-index: 3;
    padding: 28px;
    border-radius: 28px;
}

.intro-strip h1,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.intro-strip p,
.page-hero p,
.section-heading p,
.content-card p,
.category-card p,
.detail-one-line,
.ranking-feature p {
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    margin: 34px 0;
    padding: 18px;
    border-radius: 26px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.search-icon {
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    outline: none;
    color: var(--dark);
    font-weight: 700;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    padding: 8px 14px;
    border-radius: 999px;
    color: #6b7280;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.content-section,
.category-panel {
    padding: 44px 0;
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--brand-2);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.11);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

.poster-link img,
.detail-poster img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.66);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    color: var(--brand-2);
    margin-bottom: 10px;
}

.movie-meta-line span {
    background: #fff1f2;
}

.movie-card h2 {
    font-size: 18px;
    line-height: 1.34;
    font-weight: 950;
}

.movie-card h2 a:hover,
.rank-list a:hover,
.category-samples a:hover,
.breadcrumb a:hover {
    color: var(--brand-2);
}

.movie-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-list span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-card {
    display: block;
    min-height: 142px;
    padding: 22px;
    border-radius: 26px;
    color: var(--dark);
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 241, 242, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card span,
.category-title {
    display: block;
    color: var(--dark);
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin-top: 12px;
}

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

.category-samples a {
    color: #4b5563;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 28px;
    align-items: start;
}

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

.rank-list li {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(244, 63, 94, 0.08);
}

.rank-num {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 950;
}

.rank-list a {
    font-weight: 900;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.compact-card .movie-card-body {
    padding: 13px;
}

.compact-card h2 {
    font-size: 16px;
}

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

.page-hero {
    margin-top: 38px;
    padding: 42px;
    border-radius: 32px;
}

.compact-page-hero {
    margin-bottom: 20px;
}

.eyebrow {
    color: var(--brand-2) !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: start;
    margin-top: 30px;
}

.ranking-feature {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: 30px;
}

.ranking-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px;
}

.ranking-feature h2 {
    margin: 12px 0;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 950;
    line-height: 1.05;
}

.ranking-feature .primary-button {
    margin-top: 22px;
}

.detail-hero {
    position: relative;
    padding: 58px 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.22), transparent 30%),
        linear-gradient(135deg, #111827, #2f172b 52%, #4a151f);
    color: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta {
    color: #fff;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.14);
}

.tag-list.wide span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-info .primary-button {
    margin-top: 26px;
}

.player-section {
    padding: 46px 0 20px;
}

.player-section h2 {
    margin-bottom: 18px;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 950;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 28px 68px rgba(17, 24, 39, 0.25);
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.66), rgba(236, 72, 153, 0.34));
    font-size: 18px;
    font-weight: 950;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
    display: inline-flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.36);
    font-size: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 0;
}

.content-card {
    padding: 28px;
    border-radius: 30px;
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
    font-weight: 950;
}

.pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 18px 0;
}

.pager-row a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--brand-2);
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 900;
}

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

.site-footer {
    margin-top: 48px;
    padding: 48px 0;
    background: #111827;
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    margin-top: 14px;
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.site-footer a {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: #fff;
}

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

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

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

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

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

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

    .mobile-menu-button {
        display: flex;
    }

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

    .hero-content {
        left: 20px;
        bottom: 84px;
        width: calc(100% - 40px);
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-dots {
        left: 20px;
        right: auto;
        bottom: 40px;
    }

    .intro-strip {
        flex-direction: column;
        align-items: start;
    }

    .movie-grid,
    .mini-grid,
    .category-grid,
    .category-grid.large,
    .footer-grid,
    .ranking-feature,
    .detail-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        align-items: start;
    }

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

    .page-hero,
    .content-card {
        padding: 24px;
        border-radius: 24px;
    }

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