:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #db2777;
    --amber: #f59e0b;
    --blue: #2563eb;
    --cyan: #0891b2;
    --purple: #7c3aed;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
    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-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
    font-size: 14px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 15px;
}

.nav-link {
    position: relative;
    padding: 25px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
}

.top-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 8px 4px 8px 12px;
    color: var(--slate-700);
    background: transparent;
}

.top-search button,
.mobile-search button {
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--slate-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--slate-800);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel-inner {
    display: grid;
    gap: 14px;
    padding: 18px 0 24px;
}

.mobile-panel a {
    color: var(--slate-700);
    font-weight: 700;
}

.hero-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 28%, rgba(244, 63, 94, 0.18), transparent 32%),
                radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.18), transparent 26%),
                linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fffbeb 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image: linear-gradient(rgba(244, 63, 94, 0.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(244, 63, 94, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
}

.hero-shell {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-slides {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 64px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 999px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 24px 0 0;
    max-width: 700px;
    color: var(--slate-600);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 30px rgba(244, 63, 94, 0.24);
}

.ghost-button,
.section-link {
    color: var(--slate-700);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--slate-200);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.hero-poster {
    position: relative;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #fecdd3, #fbcfe8, #fde68a);
    box-shadow: var(--shadow-soft);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.48), transparent 45%);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.play-float {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.38);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--rose);
}

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

.white-section {
    background: var(--white);
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    text-align: center;
}

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

.section-heading h2 {
    margin: 14px 0 6px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--slate-600);
}

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

.category-card,
.category-overview {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 178px;
    color: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-card h3,
.category-overview h2 {
    margin: 14px 0 8px;
    font-size: 24px;
}

.category-card p,
.category-card small,
.category-overview p {
    color: rgba(255, 255, 255, 0.86);
}

.category-card small {
    display: block;
    margin-top: 12px;
    line-height: 1.5;
}

.category-icon {
    font-size: 36px;
}

.tone-rose {
    background: linear-gradient(135deg, #fb7185, #db2777);
}

.tone-orange {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.tone-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tone-purple {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.tone-cyan {
    background: linear-gradient(135deg, #06b6d4, #0f766e);
}

.tone-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-amber {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tone-violet {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.tone-indigo {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.tone-slate {
    background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: var(--shadow-soft);
}

.cover-frame {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    background: linear-gradient(135deg, #ffe4e6, #fce7f3, #fef3c7);
}

.cover-image {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: transform 0.42s ease, opacity 0.2s ease;
}

.cover-image.is-empty {
    opacity: 0;
}

.movie-card:hover .cover-image {
    transform: scale(1.08);
}

.corner-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.corner-badge {
    top: 14px;
    right: 14px;
    background: rgba(244, 63, 94, 0.9);
}

.year-badge {
    left: 14px;
    bottom: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: linear-gradient(135deg, var(--amber), #f97316);
}

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

.movie-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-size: 19px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 12px;
    font-weight: 700;
}

.compact-card .cover-frame {
    min-height: 220px;
}

.compact-card .cover-image {
    min-height: 220px;
}

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

.compact-card h3 {
    font-size: 16px;
}

.page-hero {
    padding: 80px 0 70px;
    color: var(--slate-900);
}

.soft-hero {
    background: linear-gradient(135deg, #fff1f2, #f8fafc 55%, #fffbeb);
}

.ranking-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.36), transparent 32%),
                linear-gradient(135deg, #111827, #7f1d1d);
}

.ranking-hero .eyebrow,
.ranking-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.category-hero {
    color: var(--white);
}

.category-hero .eyebrow,
.category-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -28px 0 34px;
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

.filter-title {
    color: var(--slate-900);
    font-weight: 800;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    min-height: 42px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--slate-700);
    background: var(--white);
    outline: none;
}

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

.empty-state {
    margin: 42px 0 80px;
    text-align: center;
    color: var(--slate-500);
    font-weight: 700;
}

.category-overview-list {
    display: grid;
    gap: 30px;
    padding: 54px 0 84px;
}

.category-overview {
    color: var(--white);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head a {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    color: var(--white);
    font-weight: 800;
}

.detail-hero {
    padding: 54px 0;
    background: linear-gradient(135deg, #fff1f2, #f8fafc 55%, #fffbeb);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-cover {
    min-height: 510px;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

.detail-cover .cover-image {
    min-height: 510px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--rose);
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 64px);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--white);
    border: 1px solid var(--slate-200);
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    padding: 52px 0;
    background: var(--slate-950);
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 22px 48px rgba(244, 63, 94, 0.36);
}

.player-message {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.82);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.article-card {
    padding: 28px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

.article-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 80px;
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0 40px;
}

.footer-brand {
    color: var(--white);
    font-size: 21px;
}

.site-footer p {
    color: var(--slate-300);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--slate-300);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--slate-400);
}

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

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

    .top-search {
        display: none;
    }
}

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section,
    .hero-shell {
        min-height: 780px;
    }

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

    .hero-poster {
        min-height: 330px;
        transform: none;
    }

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

    .hero-dots {
        bottom: 24px;
    }

    .category-grid,
    .movie-grid,
    .ranking-grid,
    .mini-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-panel,
    .section-heading.split-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .hero-section,
    .hero-shell {
        min-height: 820px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-copy h2 {
        font-size: 32px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .category-grid,
    .movie-grid,
    .ranking-grid,
    .mini-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cover-frame,
    .cover-image {
        min-height: 250px;
    }

    .filter-controls,
    .filter-controls input,
    .filter-controls select {
        width: 100%;
    }

    .player-card {
        border-radius: 18px;
    }
}
