:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --sky: #38bdf8;
    --emerald: #34d399;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 8% 8%, rgba(236, 72, 153, 0.18), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.18), transparent 32%),
        linear-gradient(180deg, #fff7fb 0%, #f8fbff 48%, #ffffff 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.no-scroll {
    overflow: hidden;
}

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

img {
    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(229, 231, 235, 0.8);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

.logo-text {
    background: linear-gradient(90deg, var(--pink), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--pink);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(290px, 26vw);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: none;
    border-radius: 999px;
    padding: 11px 46px 11px 18px;
    background: #f3f4f6;
    color: #111827;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
}

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

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

.mobile-panel a {
    display: block;
    padding: 12px 6px;
    font-weight: 800;
    color: #374151;
}

.mobile-panel .header-search {
    width: 100%;
    margin-top: 10px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 247, 251, 0.96), rgba(248, 251, 255, 0.70) 50%, rgba(255, 255, 255, 0.92)),
        radial-gradient(circle at 60% 30%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 30% 72%, rgba(236, 72, 153, 0.16), transparent 34%);
}

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

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    gap: 52px;
    align-items: center;
    min-height: 560px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.99);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--pink-dark);
    font-size: 14px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.hero-title {
    margin: 22px 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, #111827, var(--pink), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tag-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(229, 231, 235, 0.9);
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(56, 189, 248, 0.24);
}

.btn-ghost {
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    color: var(--pink-dark);
    border-color: rgba(236, 72, 153, 0.28);
}

.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-card {
    position: absolute;
    inset: 18px 0 0 auto;
    width: min(360px, 100%);
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.88));
}

.hero-card-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: #ffffff;
}

.hero-card-caption strong {
    display: block;
    font-size: 20px;
    line-height: 1.3;
}

.hero-card-caption small {
    color: rgba(255, 255, 255, 0.78);
}

.float-card {
    position: absolute;
    left: 0;
    bottom: 42px;
    width: 230px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.float-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.float-card span {
    color: var(--muted);
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #374151;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(156, 163, 175, 0.58);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.section {
    padding: 68px 0;
}

.section-soft {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.08), rgba(56, 189, 248, 0.08), rgba(52, 211, 153, 0.08));
}

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

.section-kicker {
    color: var(--pink-dark);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title,
.page-title {
    margin: 4px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.16));
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.card-body {
    padding: 16px;
}

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

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

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -28px -38px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.18));
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    max-width: 86%;
    color: var(--muted);
}

.category-preview {
    position: relative;
    display: flex;
    margin-top: 18px;
}

.category-preview img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.category-preview img + img {
    margin-left: -16px;
}

.page-hero {
    padding: 58px 0 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 230px) minmax(140px, 190px);
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    padding: 12px 16px;
    background: #ffffff;
    color: #111827;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(236, 72, 153, 0.52);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.rank-num {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    font-weight: 950;
}

.rank-poster {
    width: 92px;
    height: 122px;
    overflow: hidden;
    border-radius: 18px;
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 950;
}

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

.rank-desc {
    margin: 0 0 12px;
    color: var(--muted);
}

.rank-hot {
    color: var(--pink-dark);
    font-weight: 950;
    white-space: nowrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-core {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    font-weight: 950;
}

.detail-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-card-body {
    padding: 20px;
}

.detail-card-body h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 950;
}

.detail-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.article-box {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.article-box h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 950;
}

.article-box p {
    margin: 0 0 22px;
    color: #374151;
    font-size: 17px;
}

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

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

.site-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(229, 231, 235, 0.86);
    background: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 38px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 950;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0 28px;
    color: #94a3b8;
    font-size: 13px;
}

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

.empty-state {
    display: none;
    padding: 42px;
    border: 1px dashed rgba(236, 72, 153, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 980px) {
    .nav-links,
    .nav-wrap > .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-stage,
    .hero-slide {
        min-height: auto;
    }

    .hero {
        min-height: auto;
        padding: 34px 0 96px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-card {
        inset: 0 0 0 auto;
        width: min(330px, 88%);
    }

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

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

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

    .rank-hot {
        grid-column: 3;
    }

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

@media (max-width: 640px) {
    .nav-wrap,
    .container,
    .hero-stage,
    .mobile-panel {
        width: min(100% - 22px, 1180px);
    }

    .logo-text {
        font-size: 17px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-card {
        width: 78%;
        border-radius: 26px;
    }

    .hero-card img {
        height: 340px;
    }

    .float-card {
        width: 190px;
        bottom: 14px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-poster {
        width: 74px;
        height: 98px;
    }

    .rank-title {
        font-size: 17px;
    }

    .article-box {
        padding: 22px;
    }
}
