:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 18px 60px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 14px 35px rgba(17, 24, 39, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
    font-size: 14px;
}

.brand-text {
    font-size: 26px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link {
    position: relative;
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--rose-500);
    transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--gray-200);
    background: #fff;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-50), #fff, #fdf2f8);
}

.hero-carousel::before,
.hero-carousel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.35;
    animation: pulseGlow 5s ease-in-out infinite;
}

.hero-carousel::before {
    top: 60px;
    left: 8%;
    width: 260px;
    height: 260px;
    background: #fda4af;
}

.hero-carousel::after {
    right: 8%;
    bottom: 50px;
    width: 360px;
    height: 360px;
    background: #f9a8d4;
    animation-delay: 1.2s;
}

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

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

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.12;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.78), rgba(253, 242, 248, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 64px;
    padding: 80px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--rose-600);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose-500);
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.12);
}

.hero-copy h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 640px;
    color: var(--gray-600);
    font-size: 20px;
}

.hero-tags,
.detail-meta,
.card-badges,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.card-badges span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

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

.secondary-button {
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(229, 231, 235, 0.92);
}

.secondary-button:hover {
    color: var(--rose-600);
    border-color: var(--rose-500);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--gray-200);
}

.hero-poster span {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
}

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

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

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

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

.white-section {
    background: transparent;
}

.soft-section {
    width: 100%;
    padding: 72px max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, #fff, var(--rose-50));
}

.tight-section {
    padding-top: 36px;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--gray-600);
    font-size: 17px;
}

.text-link {
    color: var(--rose-600);
    font-weight: 800;
    white-space: nowrap;
}

.text-link.light {
    color: #fff;
}

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gray-200);
}

.poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-dot,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.18);
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: rgba(17, 24, 39, 0.82);
    font-weight: 900;
}

.movie-info {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-info h2 {
    margin: 8px 0 8px;
    color: var(--gray-900);
    font-size: 19px;
    line-height: 1.3;
}

.movie-info h2 a:hover {
    color: var(--rose-600);
}

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

.compact-card .movie-info h2 {
    font-size: 17px;
}

.compact-card .movie-info p {
    min-height: 42px;
    font-size: 13px;
}

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

.category-tile {
    min-height: 170px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #fb7185, #f472b6);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(244, 63, 94, 0.32);
}

.category-tile span {
    font-size: 14px;
    opacity: 0.8;
}

.category-tile strong {
    font-size: 26px;
    line-height: 1.1;
}

.category-tile em {
    font-style: normal;
    font-size: 14px;
    opacity: 0.9;
}

.genre-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.genre-strip a,
.category-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 15px;
    color: var(--gray-700);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.genre-strip a:hover,
.category-links a:hover {
    color: var(--rose-600);
    border-color: var(--rose-500);
    transform: translateY(-2px);
}

.ranking-section {
    width: 100%;
    max-width: none;
    padding: 72px max(16px, calc((100% - 1280px) / 2));
    color: #fff;
    background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.32), transparent 38%), linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.ranking-section .section-heading p,
.ranking-section .eyebrow {
    color: #fecdd3;
}

.ranking-section .section-heading h2 {
    color: #fff;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-50), #fff, #fdf2f8);
}

.small-hero {
    padding: 84px max(16px, calc((100% - 1280px) / 2));
}

.small-hero > div {
    max-width: 760px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 19px;
}

.filter-panel {
    width: min(1280px, calc(100% - 32px));
    margin: -30px auto 0;
    position: relative;
    z-index: 3;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 16px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
    margin: 32px auto;
    padding: 28px;
    text-align: center;
    color: var(--gray-600);
    background: #fff;
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-lg);
}

.category-overview {
    display: grid;
    gap: 32px;
}

.category-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-lg);
}

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

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: var(--gray-900);
}

.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.38;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(244, 63, 94, 0.44));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 64px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
}

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

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

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: #f3f4f6;
    font-size: 20px;
}

.detail-meta,
.detail-tags {
    margin-top: 24px;
}

.detail-copy .primary-button {
    margin-top: 34px;
}

.player-section {
    padding-top: 52px;
    padding-bottom: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.22);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.48));
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    font-size: 30px;
    padding-left: 5px;
}

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

.detail-content {
    padding-top: 32px;
}

.article-card {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.article-card p {
    margin: 0 0 24px;
    color: var(--gray-700);
    font-size: 18px;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 38px;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 42px;
}

.footer-logo .brand-text {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: #9ca3af;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.footer-columns a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-columns a:hover {
    color: #fb7185;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: #9ca3af;
    border-top: 1px solid rgba(156, 163, 175, 0.18);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.32;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.46;
    }
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 34px;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .brand-text {
        font-size: 22px;
    }

    .hero-carousel,
    .hero-content {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 64px 0 96px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

    .split-heading {
        display: block;
    }

    .text-link {
        display: inline-flex;
        margin-top: 16px;
    }

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

    .filter-grid,
    .footer-inner,
    .detail-inner {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        gap: 30px;
    }

    .detail-poster {
        max-width: 280px;
    }

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

@media (max-width: 540px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .brand-text {
        font-size: 19px;
    }

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

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

    .movie-grid,
    .all-grid,
    .ranking-list,
    .ranking-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .soft-section,
    .ranking-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .small-hero {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .article-card {
        padding: 24px;
    }
}
