:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --purple: #7c3aed;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --green: #10b981;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.28);
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 63, 94, 0.13), transparent 34rem),
        radial-gradient(circle at 88% 7%, rgba(236, 72, 153, 0.13), transparent 34rem),
        linear-gradient(135deg, #f9fafb 0%, #fff1f2 45%, #fdf2f8 100%);
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a,
.mobile-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;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #be123c;
    background: rgba(244, 63, 94, 0.1);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    background: transparent;
}

.header-search button,
.primary-btn {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(244, 63, 94, 0.36);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(244, 63, 94, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #be123c;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    height: 600px;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #881337 0%, #831843 48%, #4c1d95 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    mix-blend-mode: overlay;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(88, 28, 135, 0.54), rgba(15, 23, 42, 0.2)),
        radial-gradient(circle at 20% 50%, rgba(244, 63, 94, 0.32), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    color: #fff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fef3c7;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 10px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #ffe4e6;
    font-size: clamp(24px, 3.4vw, 44px);
    line-height: 1.12;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 10px 0 6px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
    color: #111827;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading > a {
    flex: 0 0 auto;
    color: #be123c;
    font-weight: 900;
}

.section-kicker {
    color: #be123c;
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.12);
}

.white-panel {
    width: 100%;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
    background: rgba(255, 255, 255, 0.76);
    border-top: 1px solid rgba(244, 63, 94, 0.1);
    border-bottom: 1px solid rgba(244, 63, 94, 0.1);
}

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

.category-card,
.category-overview-card a {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.category-card strong,
.category-overview-card h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card em,
.category-overview-card p,
.mini-title-list {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.65;
}

.category-icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    border-radius: 22px;
    font-size: 26px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.category-glow {
    position: absolute;
    inset: auto -20% -45% auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(10px);
}

.tone-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.tone-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.tone-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #f43f5e); }
.tone-green { background: linear-gradient(135deg, #059669, #10b981); }
.tone-indigo { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.tone-slate { background: linear-gradient(135deg, #0f172a, #475569); }
.tone-violet { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.tone-fuchsia { background: linear-gradient(135deg, #c026d3, #e11d48); }

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    min-width: 0;
}

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

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 70px rgba(244, 63, 94, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #881337, #312e81);
}

.compact-card .poster-wrap {
    aspect-ratio: 3 / 4;
}

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

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

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

.quality-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(244, 63, 94, 0.92);
    backdrop-filter: blur(8px);
}

.quality-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.74);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.movie-card-body strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.movie-meta-line span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
    background: rgba(244, 63, 94, 0.1);
}

.rank-home {
    width: 100%;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(135deg, #881337, #4c1d95);
}

.light-heading h2,
.light-heading p,
.light-heading > a {
    color: #fff;
}

.light-heading .section-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 0;
    border-radius: 34px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #881337, #4c1d95);
    box-shadow: var(--shadow);
}

.small-hero > div {
    padding: 56px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 18rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.22), transparent);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    list-style: none;
}

.mini-title-list {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.1);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(244, 63, 94, 0.16);
    outline: 0;
    border-radius: 16px;
    color: #111827;
    background: #fff;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #fff;
}

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

.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
}

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

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

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

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.74));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-box.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 46px rgba(244, 63, 94, 0.4);
}

.player-cover strong {
    max-width: min(70%, 520px);
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.25;
}

.detail-text-card,
.detail-side-card {
    margin-top: 22px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.08);
}

.detail-text-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    color: #111827;
}

.lead-text {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.detail-text-card h2 {
    margin: 28px 0 10px;
    color: #111827;
    font-size: 24px;
}

.detail-text-card p {
    color: #4b5563;
    line-height: 1.95;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #be123c;
    font-size: 13px;
    font-weight: 800;
    background: rgba(244, 63, 94, 0.1);
}

.detail-side-card {
    position: sticky;
    top: 96px;
    margin-top: 0;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #881337, #312e81);
}

.side-meta {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.side-meta p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.side-meta span {
    color: var(--muted);
}

.side-meta strong {
    text-align: right;
    color: #111827;
}

.full-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.related-section {
    padding-top: 42px;
}

.site-footer {
    margin-top: 72px;
    padding: 42px 0 28px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #0f172a, #4c1d95);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: #fff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: end;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    body.menu-open .mobile-nav {
        display: grid;
        gap: 8px;
    }

    .category-grid,
    .category-overview-grid,
    .three-col,
    .four-col,
    .rank-list-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-side-card {
        position: static;
    }

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

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

    .brand span:last-child {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .section-block {
        padding: 42px 0;
    }

    .section-heading,
    .footer-inner {
        display: grid;
    }

    .category-grid,
    .category-overview-grid,
    .three-col,
    .four-col,
    .rank-list-home,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .small-hero > div {
        padding: 34px 24px;
    }

    .detail-text-card,
    .detail-side-card {
        padding: 22px;
    }

    .footer-links {
        justify-content: start;
    }
}
