:root {
    color-scheme: light;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #a855f7;
    --blue: #38bdf8;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fdf2f8;
    --soft-blue: #eff6ff;
    --shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff1f8 0%, #ffffff 38%, #eff6ff 100%);
}

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

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

.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.82);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
}

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

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

.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fce7f3;
    color: var(--pink-dark);
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(115deg, #f9a8d4 0%, #c084fc 52%, #7dd3fc 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.36), transparent 28%),
        radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.28), transparent 25%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.28));
}

.hero-inner {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 44px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1,
.sub-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 21px;
    line-height: 1.7;
}

.hero-actions,
.detail-meta,
.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.34);
}

.btn-glass {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--pink-dark);
    background: #fce7f3;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.tag-row span,
.detail-meta span {
    color: #be185d;
    background: #fce7f3;
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.26);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85));
}

.search-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: -36px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
}

.search-band strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pink-dark);
    font-size: 20px;
}

.quick-search,
.global-search-panel,
.filter-toolbar {
    display: flex;
    gap: 10px;
}

.quick-search input,
.global-search-panel input,
.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

.quick-search button,
.global-search-panel button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    cursor: pointer;
}

.home-section,
.page-content {
    padding: 56px 0;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.section-title-row p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

.category-card,
.category-overview-card,
.movie-card,
.side-card,
.text-panel,
.player-panel {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.category-card {
    position: relative;
    min-height: 220px;
    color: #ffffff;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    filter: saturate(1.1);
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.74));
}

.category-card span,
.category-overview-body span {
    color: #fdf2f8;
    font-size: 13px;
    font-weight: 900;
}

.category-card h3 {
    margin: 8px 0;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.6;
}

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

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

.movie-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(236, 72, 153, 0.86);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
}

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

.movie-card h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 7px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 17px;
    line-height: 1.3;
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--pink-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.hot-strip {
    padding: 56px 0;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.92), rgba(219, 234, 254, 0.92));
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: #ffffff;
    background: linear-gradient(115deg, #f9a8d4 0%, #c084fc 54%, #7dd3fc 100%);
}

.sub-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.7;
}

.filter-toolbar {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.result-count {
    margin: 0 0 20px;
    color: var(--muted);
    font-weight: 800;
}

.category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 56px 0;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}

.category-mini-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: #f3f4f6;
}

.category-mini-posters img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body span {
    color: var(--pink-dark);
}

.category-overview-body h2 {
    margin: 8px 0;
}

.category-overview-body p {
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    padding: 70px 0;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.28;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.08);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.52));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.7;
}

.detail-tags {
    margin: 18px 0 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 56px 0 0;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #030712;
}

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

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.video-start span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.38);
}

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

.text-panel,
.player-panel,
.side-card {
    padding: 24px;
}

.text-panel h2,
.side-card h2 {
    margin: 0 0 14px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

.side-card a {
    display: block;
    margin: 10px 0;
    color: var(--pink-dark);
    font-weight: 900;
}

.global-search-panel {
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 64px;
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr 1.2fr;
    gap: 28px;
}

.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer a {
    display: block;
    margin-bottom: 7px;
}

.footer-link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link-cloud a {
    margin: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: #f3f4f6;
}

[hidden],
.is-hidden {
    display: none !important;
}

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

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

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 280px;
    }

    .search-band,
    .section-title-row,
    .filter-toolbar,
    .global-search-panel,
    .quick-search {
        flex-direction: column;
        align-items: stretch;
    }

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

    .category-overview-card,
    .detail-hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .hero p,
    .detail-one-line {
        font-size: 17px;
    }

    .movie-grid,
    .rank-grid,
    .small-grid {
        gap: 12px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-desc {
        display: none;
    }

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