:root {
    --page-bg: #fff7fb;
    --text-main: #16151f;
    --text-muted: #6b6477;
    --pink: #ec4899;
    --blue: #3b82f6;
    --green: #22c55e;
    --amber: #f59e0b;
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-soft: rgba(236, 72, 153, 0.16);
    --shadow-soft: 0 20px 55px rgba(63, 46, 104, 0.14);
    --shadow-card: 0 18px 40px rgba(63, 46, 104, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(236, 72, 153, 0.22), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.18), transparent 32%),
        linear-gradient(135deg, #fff7fb 0%, #eff6ff 48%, #f0fdf4 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px 54px;
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(90deg, rgba(255, 241, 248, 0.94), rgba(239, 246, 255, 0.94), rgba(240, 253, 244, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 34px rgba(63, 46, 104, 0.1);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

.brand-text {
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.primary-nav a,
.nav-panel a {
    color: #4b445c;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.nav-panel a:hover,
.primary-nav a.is-active,
.nav-panel a.is-active {
    color: var(--pink);
}

.header-search {
    position: relative;
    min-width: 230px;
}

.header-search input {
    width: 100%;
    border: 2px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    padding: 11px 44px 11px 18px;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: rgba(236, 72, 153, 0.56);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pink);
    font-size: 22px;
    cursor: pointer;
}

.nav-panel {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 18px;
}

.nav-panel.is-open {
    display: grid;
    gap: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    margin-bottom: 38px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(59, 130, 246, 0.88), rgba(34, 197, 94, 0.82));
    box-shadow: var(--shadow-soft);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 33px;
    background: rgba(255, 255, 255, 0.86);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 34px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    transform: translateX(24px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    opacity: 0.88;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    color: #be185d;
    border-radius: 999px;
    background: rgba(252, 231, 243, 0.9);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 620px;
    color: #4b445c;
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 28px;
}

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

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

.btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.22);
}

.btn-soft {
    color: #be185d;
    background: rgba(252, 231, 243, 0.92);
}

.btn-ghost {
    color: #2563eb;
    background: rgba(239, 246, 255, 0.92);
}

.btn:hover,
.btn-soft:hover,
.btn-ghost:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(63, 46, 104, 0.14);
}

.hero-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 4 / 5.4;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
    box-shadow: 0 30px 65px rgba(41, 35, 70, 0.22);
    transform: rotate(1.2deg);
}

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

.hero-mini {
    position: absolute;
    z-index: 4;
    left: 58px;
    right: 58px;
    bottom: 24px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.22);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
}

.section-block {
    margin: 34px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-lead {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

.movie-card,
.category-card,
.info-card,
.rank-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.movie-card {
    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.28);
    box-shadow: 0 28px 58px rgba(63, 46, 104, 0.18);
}

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.5), transparent 28%),
        linear-gradient(135deg, rgba(236, 72, 153, 0.28), rgba(59, 130, 246, 0.26), rgba(34, 197, 94, 0.2));
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    background: linear-gradient(135deg, var(--pink), var(--amber));
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-line {
    color: #5e5871;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-list span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(219, 234, 254, 0.8);
    font-size: 12px;
    font-weight: 800;
}

.category-card {
    position: relative;
    padding: 22px;
    min-height: 214px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -34px;
    bottom: -42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(59, 130, 246, 0.18));
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px rgba(63, 46, 104, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p,
.info-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
}

.category-links {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-links a {
    color: #2563eb;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    padding: 34px;
    margin-bottom: 28px;
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(236, 72, 153, 0.14), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.12), transparent 30%);
    pointer-events: none;
}

.page-hero > *,
.detail-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.detail-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.page-hero p,
.detail-hero p {
    margin: 0;
    max-width: 820px;
    color: var(--text-muted);
    line-height: 1.78;
    font-size: 17px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin: 22px 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 28px rgba(63, 46, 104, 0.1);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 2px solid rgba(59, 130, 246, 0.14);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
    color: var(--text-main);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(236, 72, 153, 0.48);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 26px;
    align-items: start;
}

.player-panel {
    overflow: hidden;
    border-radius: 30px;
    background: #0f1220;
    box-shadow: 0 28px 60px rgba(15, 18, 32, 0.28);
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1220;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #0f1220;
    z-index: 1;
}

.play-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(15, 18, 32, 0.46), rgba(15, 18, 32, 0.22)),
        rgba(15, 18, 32, 0.3);
}

.play-mask.is-hidden {
    display: none;
}

.play-inner {
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.32);
    font-size: 28px;
}

.detail-side {
    display: grid;
    gap: 16px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(59, 130, 246, 0.18));
    box-shadow: var(--shadow-card);
}

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

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

.info-card {
    padding: 18px;
}

.info-label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 18px;
    font-weight: 900;
}

.article-panel {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
}

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

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

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 26px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
}

.empty-state {
    display: none;
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-muted);
    box-shadow: var(--shadow-card);
}

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

.search-card-list {
    margin-top: 22px;
}

@media (max-width: 1120px) {
    .grid.cards-6,
    .grid.cards-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .header-inner {
        min-height: auto;
        padding: 14px 20px;
    }

    .primary-nav,
    .header-search {
        display: none;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px 24px 74px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-mini {
        left: 24px;
        right: 24px;
    }

    .grid.cards-6,
    .grid.cards-5,
    .grid.cards-4,
    .grid.cards-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .site-main {
        padding: 20px 14px 40px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

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

    .hero::before {
        border-radius: 25px;
    }

    .hero-slide {
        padding: 28px 18px 68px;
        gap: 22px;
    }

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

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

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

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

    .grid.cards-6,
    .grid.cards-5,
    .grid.cards-4,
    .grid.cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .page-hero,
    .detail-hero,
    .article-panel {
        padding: 22px;
        border-radius: 22px;
    }

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

@media (max-width: 420px) {
    .grid.cards-6,
    .grid.cards-5,
    .grid.cards-4,
    .grid.cards-3 {
        grid-template-columns: 1fr;
    }
}
