:root {
    color-scheme: light;
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff0f8;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --orange: #f97316;
    --shadow: 0 20px 60px rgba(190, 24, 93, 0.14);
    --radius: 24px;
    --max: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28rem),
        linear-gradient(180deg, #fff7fb 0%, #fff 48%, #fff7fb 100%);
    color: var(--text);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

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

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

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

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 30vw);
    padding: 4px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 12px;
    background: transparent;
}

.header-search button,
.primary-btn,
.secondary-btn,
.ghost-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.26);
}

.secondary-btn {
    padding: 10px 18px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.92);
}

.ghost-btn {
    padding: 10px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.1);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--pink-dark);
}

.main-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.hero {
    position: relative;
    width: min(100% - 32px, var(--max));
    margin: 28px auto 42px;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(135deg, #1f1130 0%, #a21caf 44%, #ec4899 100%);
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    right: -90px;
    top: -100px;
    background: rgba(255, 255, 255, 0.2);
}

.hero::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -140px;
    background: rgba(249, 115, 22, 0.24);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 36px;
    align-items: center;
    padding: 76px 72px 64px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(1.12) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 12, 35, 0.9) 0%, rgba(91, 33, 182, 0.56) 52%, rgba(236, 72, 153, 0.35) 100%),
        radial-gradient(circle at 68% 34%, rgba(255, 255, 255, 0.2), transparent 30rem);
}

.hero-copy,
.hero-poster-panel {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink-dark);
}

.hero .eyebrow {
    color: #ffd6ea;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.45rem, 6vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero-desc {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.9;
}

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

.hero-meta,
.detail-meta,
.movie-meta,
.tag-row,
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span,
.tag-row span,
.category-pills a,
.category-pills span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-meta span {
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster-panel {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-poster-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-panel-body {
    padding: 22px;
}

.hero-panel-body h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.hero-panel-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 72px;
    bottom: 34px;
    display: flex;
    gap: 9px;
}

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

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

.content-section,
.detail-layout,
.category-hero,
.search-panel,
.ranking-hero {
    margin: 34px 0;
}

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

.section-title-row h2,
.category-hero h1,
.ranking-hero h1,
.search-panel h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    letter-spacing: -0.04em;
}

.section-title-row p,
.category-hero p,
.ranking-hero p,
.search-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--pink-dark);
    font-weight: 900;
    background: rgba(236, 72, 153, 0.1);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(148, 24, 94, 0.09);
    border: 1px solid rgba(236, 72, 153, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(148, 24, 94, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-year {
    right: 12px;
    background: rgba(0, 0, 0, 0.46);
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

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

.movie-info p {
    min-height: 3.1em;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.movie-meta span {
    padding: 5px 9px;
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.1);
}

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

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

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

.category-card {
    position: relative;
    min-height: 196px;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: stretch;
    margin: 42px 0;
}

.hot-entry {
    padding: 32px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.24), transparent 16rem),
        linear-gradient(135deg, #111827, #581c87 54%, #be185d);
    box-shadow: var(--shadow);
}

.hot-entry h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    letter-spacing: -0.04em;
}

.hot-entry p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

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

.mini-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(148, 24, 94, 0.09);
}

.mini-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.mini-card span {
    display: block;
    padding: 10px 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.category-hero,
.search-panel,
.ranking-hero {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 18px 50px rgba(148, 24, 94, 0.08);
}

.category-pills {
    margin-top: 20px;
}

.category-pills a,
.category-pills span {
    padding: 8px 13px;
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.09);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(140px, 190px));
    gap: 12px;
    margin: 22px 0;
}

.filter-bar input,
.filter-bar select,
.search-input {
    width: 100%;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 16px;
    outline: 0;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin: 34px 0;
    padding: 28px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 22rem),
        linear-gradient(135deg, #111827 0%, #581c87 52%, #db2777 100%);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
}

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

.breadcrumb {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.detail-copy .lead {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    background: #050816;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.05), rgba(5, 8, 22, 0.62));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.36);
    font-size: 2rem;
    transform: translateZ(0);
}

.player-caption {
    padding: 22px 24px;
    color: #fff;
}

.player-caption h2 {
    margin: 0 0 8px;
}

.player-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.article-panel {
    margin: 28px 0;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 16px 42px rgba(148, 24, 94, 0.08);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.article-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.95;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 12px 34px rgba(148, 24, 94, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    width: 88px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-main h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

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

.rank-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.rank-heat {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--pink-dark);
    font-weight: 900;
    background: rgba(236, 72, 153, 0.09);
    white-space: nowrap;
}

.search-results {
    margin-top: 22px;
}

.empty-results {
    padding: 36px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.site-footer {
    margin-top: 70px;
    padding: 38px 0;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
}

.footer-inner nav {
    display: flex;
    gap: 14px;
    color: #4b5563;
    font-weight: 800;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 68px 52px;
    }

    .hero-poster-panel {
        max-width: 560px;
    }

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

@media (max-width: 840px) {
    .header-inner {
        min-height: 64px;
    }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 14px;
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 760px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 44px 26px 74px;
    }

    .hero-control {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .hero-control.prev {
        left: auto;
        right: 76px;
    }

    .hero-control.next {
        right: 24px;
    }

    .hero-dots {
        left: 28px;
        bottom: 34px;
    }

    .section-title-row,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-heat {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .main-wrap,
    .hero,
    .footer-inner,
    .header-inner {
        width: min(100% - 22px, var(--max));
    }

    .hero {
        margin-top: 16px;
    }

    .movie-grid {
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .detail-hero,
    .category-hero,
    .search-panel,
    .ranking-hero,
    .article-panel {
        padding: 22px;
        border-radius: 24px;
    }
}
