:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: rgba(148, 163, 184, 0.28);
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 20px 50px rgba(79, 70, 229, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.16), transparent 32rem),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #f8fafc 36%, #ffffff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 35px rgba(148, 163, 184, 0.14);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.45);
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 11px;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    color: white;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero-slider {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 64px;
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    background:
        linear-gradient(120deg, rgba(17, 24, 39, 0.86), rgba(88, 28, 135, 0.7), rgba(236, 72, 153, 0.42)),
        var(--hero-image) center / cover no-repeat;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 18rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.28));
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 390px;
    gap: 42px;
    align-items: center;
    padding: 64px;
    color: white;
}

.hero-copy {
    max-width: 720px;
}

.section-kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.9);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.hero-kicker {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
    max-width: 680px;
}

.hero-actions,
.detail-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

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

.article-card .btn-ghost,
.detail-actions .btn-ghost {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.22);
    background: rgba(255, 255, 255, 0.82);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4.18;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1;
    color: white;
    font-size: 15px;
    font-weight: 900;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.88);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 64px;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

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

.hero-dots button.is-active {
    width: 34px;
    background: white;
}

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

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 950;
    background: linear-gradient(90deg, #be185d, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p,
.page-hero p,
.detail-copy p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 16px;
}

.link-more {
    color: #7c3aed;
    font-weight: 900;
    white-space: nowrap;
}

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

.category-chip {
    min-height: 122px;
    border-radius: 26px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 45px rgba(148, 163, 184, 0.17);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(124, 58, 237, 0.2);
}

.category-chip strong {
    display: block;
    font-size: 19px;
    margin-bottom: 8px;
}

.category-chip span {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

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

.movie-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(148, 163, 184, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 65px rgba(124, 58, 237, 0.22);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 22;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(59, 130, 246, 0.18));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
}

.year-badge,
.score-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 10px;
    backdrop-filter: blur(10px);
}

.year-badge {
    left: 12px;
    top: 12px;
    background: rgba(17, 24, 39, 0.62);
}

.score-badge {
    right: 12px;
    top: 12px;
    background: rgba(236, 72, 153, 0.86);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.movie-meta span,
.movie-meta a {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f5f3ff;
}

.movie-title {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 10px;
    font-weight: 950;
}

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

.movie-desc {
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
    margin: 0;
    min-height: 73px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #be185d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 800;
}

.content-section {
    margin-bottom: 68px;
}

.rank-board {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 26px;
    align-items: start;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.rank-item {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 35px rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.rank-link {
    display: grid;
    grid-template-columns: 54px 68px 1fr 54px;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-link img {
    width: 68px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f3ff;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    font-size: 17px;
    margin-bottom: 6px;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
}

.rank-heat {
    color: #be185d;
    font-weight: 950;
    text-align: right;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 38px;
    min-height: 280px;
    border-radius: 32px;
    padding: 44px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.64), transparent 18rem),
        linear-gradient(135deg, rgba(252, 231, 243, 0.96), rgba(237, 233, 254, 0.96), rgba(219, 234, 254, 0.96));
    box-shadow: var(--shadow);
}

.page-hero-copy {
    max-width: 760px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 0.9fr) 160px 160px;
    gap: 14px;
    align-items: end;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 45px rgba(148, 163, 184, 0.14);
}

.filter-panel strong,
.filter-panel label span {
    display: block;
    font-weight: 900;
}

.filter-panel label span {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 7px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    border-radius: 16px;
    padding: 12px 13px;
    outline: none;
}

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

.empty-state {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 50px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
}

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

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

.category-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.78);
    padding: 24px;
    box-shadow: 0 18px 45px rgba(148, 163, 184, 0.15);
}

.category-panel h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.category-panel ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-panel li a {
    color: #7c3aed;
    font-weight: 800;
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 34px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.92));
    box-shadow: var(--shadow);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4.25;
    box-shadow: 0 25px 55px rgba(79, 70, 229, 0.25);
    background: #f5f3ff;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c3aed;
    font-weight: 800;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #7c3aed;
    background: #f5f3ff;
    font-weight: 900;
}

.watch-section,
.detail-content,
.related-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 52px;
}

.video-shell {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease;
}

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

.player-overlay span {
    display: block;
}

.player-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.38);
    font-size: 32px;
    padding-left: 4px;
}

.player-text {
    font-size: 18px;
    font-weight: 950;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.article-card,
.info-card {
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 45px rgba(148, 163, 184, 0.14);
}

.article-card h2,
.info-card h2,
.related-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p,
.info-card p {
    color: #374151;
    line-height: 2;
    margin: 0 0 22px;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.info-card div {
    display: grid;
    gap: 4px;
}

.info-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 78px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #581c87 58%, #831843);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.6fr;
    gap: 34px;
}

.footer-grid p {
    color: #d1d5db;
    line-height: 1.8;
    max-width: 420px;
}

.footer-grid h2 {
    color: #f9a8d4;
    font-size: 18px;
    margin: 0 0 14px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    color: #e5e7eb;
    margin: 9px 0;
}

.footer-grid a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        padding: 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        justify-content: flex-start;
    }

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

    .hero-slider,
    .hero-slide,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .hero-poster {
        width: min(280px, 72vw);
        justify-self: center;
    }

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

    .rank-board,
    .detail-hero,
    .detail-content,
    .footer-grid,
    .category-overview,
    .filter-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .nav-shell,
    .main-shell,
    .page-shell,
    .page-hero,
    .detail-hero,
    .watch-section,
    .detail-content,
    .related-section {
        width: min(100% - 22px, 1180px);
    }

    .brand,
    .footer-brand {
        font-size: 20px;
    }

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

    .hero-inner,
    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 24px;
    }

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

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

    .section-head {
        display: block;
    }

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

    .rank-link {
        grid-template-columns: 46px 58px 1fr;
    }

    .rank-heat {
        display: none;
    }

    .player-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
