@charset "utf-8";

:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --rose: #fb7185;
    --orange: #f97316;
    --yellow: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: #f3d5dd;
    --shadow: 0 20px 45px rgba(190, 24, 93, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #fff7fb;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    flex: 0 0 auto;
}

.header-search input,
.mobile-search input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--pink-dark);
    font-weight: 700;
    background: #fff;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    font-size: 26px;
    background: transparent;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    display: block;
    border-radius: 14px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide,
.hero-image,
.hero-gradient {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-pill,
.pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

.hero h1,
.hero h2 {
    max-width: 740px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--pink);
}

.page-stack {
    padding: 56px 0 0;
}

.page-stack > section,
.inner-page > section {
    margin-bottom: 66px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.14);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.section-line {
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.45), transparent);
}

.section-more {
    color: var(--pink-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

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

.movie-card:hover .poster-link img,
.movie-card:hover .horizontal-media img {
    transform: scale(1.1);
}

.poster-category,
.poster-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.poster-category {
    top: 10px;
    left: 10px;
    padding: 5px 11px;
    background: var(--pink);
}

.poster-duration {
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.poster-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.25s ease;
}

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

.poster-mask span,
.play-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--pink);
}

.card-body {
    padding: 16px;
}

.card-body h3,
.horizontal-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a,
.horizontal-body h3 a {
    transition: color 0.2s ease;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--pink-dark);
    font-size: 12px;
    background: #ffe4ef;
}

.card-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
}

.feature-band {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(90deg, #ffe4ef, #ffe4e6, #ffedd5);
}

.horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 168px;
}

.horizontal-media {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    background: #f3f4f6;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

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

.horizontal-body {
    padding: 16px;
}

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

.ranking-box {
    position: sticky;
    top: 88px;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-head h2 {
    margin: 0;
    font-size: 24px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    padding: 10px;
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: #fff1f2;
}

.ranking-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item em {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.ranking-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.category-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 142px;
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(236, 72, 153, 0.28);
}

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

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.category-large {
    min-height: 168px;
}

.inner-page {
    padding-top: 36px;
}

.page-hero {
    border-radius: 30px;
    padding: clamp(28px, 5vw, 52px);
    overflow: hidden;
}

.soft-hero {
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34%), linear-gradient(135deg, #fff, #fff1f2 62%, #ffedd5);
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.12);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.inline-filter,
.large-search {
    margin-top: 24px;
}

.inline-filter input,
.large-search input {
    width: min(560px, 100%);
    border: 1px solid #ffd0dd;
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
    background: #fff;
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.12);
}

.inline-filter input:focus,
.large-search input:focus {
    border-color: var(--pink);
}

.search-hero .large-search {
    max-width: 720px;
}

.search-hero .large-search input {
    flex: 1 1 auto;
}

.movie-detail {
    background: #fff;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 0.72;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 38px 0 52px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    background: #f3f4f6;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
}

.lead-text {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

.detail-content {
    padding: 42px 0 0;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.34), rgba(0, 0, 0, 0.52));
}

.player-cover.is-hidden {
    display: none;
}

.player-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #fff;
    font-size: 38px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.42);
}

.player-cover strong {
    font-size: 22px;
}

.content-card {
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 26px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

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

.site-footer {
    margin-top: 76px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink-dark), var(--rose), var(--orange));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 46px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.84);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 18px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .header-search input {
        width: 190px;
    }

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

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

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

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

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

    .mobile-search input {
        width: 100%;
        flex: 1 1 auto;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        padding-right: 26px;
    }

    .hero-arrow {
        display: none;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .ranking-box {
        position: static;
    }

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

    .detail-poster {
        width: min(280px, 80vw);
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        height: 520px;
    }

    .hero p,
    .lead-text {
        font-size: 17px;
    }

    .hero-actions,
    .large-search {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .large-search input {
        width: 100%;
    }

    .page-stack > section,
    .inner-page > section {
        margin-bottom: 46px;
    }

    .card-grid,
    .wide-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .horizontal-card {
        grid-template-columns: 1fr;
    }

    .horizontal-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .feature-band,
    .page-hero,
    .content-card {
        border-radius: 20px;
        padding: 22px;
    }

    .detail-hero {
        min-height: auto;
    }

    .player-shell {
        border-radius: 18px;
    }

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

@media (max-width: 480px) {
    .card-grid,
    .wide-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .scroll-row {
        grid-auto-columns: 82%;
    }

    .hero h1,
    .hero h2,
    .detail-info h1,
    .page-hero h1 {
        font-size: 34px;
    }
}
