:root {
    --color-rose: #f43f5e;
    --color-pink: #ec4899;
    --color-orange: #f97316;
    --color-blue: #3b82f6;
    --color-cyan: #06b6d4;
    --color-purple: #8b5cf6;
    --color-violet: #7c3aed;
    --color-amber: #f59e0b;
    --color-emerald: #10b981;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 20px 50px rgba(15, 23, 42, 0.18);
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
    transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
}

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

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

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-rose);
    transition: right 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-gray-600);
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.search-shortcut:hover {
    color: var(--color-rose);
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: var(--shadow-soft);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
}

.menu-icon {
    position: relative;
    width: 21px;
    height: 14px;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gray-700);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon::before {
    top: 0;
}

.menu-icon span {
    top: 6px;
}

.menu-icon::after {
    bottom: 0;
}

.mobile-nav {
    display: none;
    padding: 14px 0 18px;
    border-top: 1px solid var(--color-gray-200);
}

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

.mobile-nav .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.is-active {
    background: #fff1f2;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6 0%, #fff1f2 42%, #fffbeb 100%);
}

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

.hero::before {
    width: 280px;
    height: 280px;
    top: 44px;
    left: 8%;
    background: #fda4af;
}

.hero::after {
    width: 420px;
    height: 420px;
    right: 7%;
    bottom: 36px;
    background: #f9a8d4;
    animation-delay: 1.5s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    min-height: 600px;
    gap: 56px;
    padding: 54px 0;
}

.hero-content {
    max-width: 710px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-rose);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--color-gray-900);
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.hero-description {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--color-gray-600);
    font-size: 1.18rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.32);
}

.btn-secondary {
    color: var(--color-gray-700);
    background: #fff;
    border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
    color: var(--color-rose);
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: var(--shadow-soft);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 38px;
}

.hero-stat {
    min-width: 96px;
}

.hero-stat strong {
    display: block;
    color: var(--color-gray-900);
    font-size: 1.85rem;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    color: var(--color-gray-500);
    font-size: 0.95rem;
}

.hero-showcase {
    position: relative;
    min-height: 470px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-strong);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.86));
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    color: #fff;
}

.hero-slide-content h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.18;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 16px;
}

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: var(--color-gray-600);
    background: var(--color-gray-100);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags .tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.slider-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.slider-dot.is-active {
    width: 28px;
    background: #fff;
}

.featured-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.featured-mini {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.featured-mini img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.featured-mini span {
    display: block;
    overflow: hidden;
    padding: 9px 9px 10px;
    color: var(--color-gray-800);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section {
    padding: 70px 0;
}

.section.compact {
    padding: 48px 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--color-rose);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-subtitle {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-gray-600);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 24px;
    color: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.category-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.category-card h3,
.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
}

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

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

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

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

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

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

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

.gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

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

.gradient-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8 52%, #fff7ed);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0.85;
}

.poster-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    color: #fff;
    background: rgba(244, 63, 94, 0.92);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-type {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    padding: 4px 9px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.poster-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--color-rose);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: all 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-gray-500);
    font-size: 0.84rem;
    font-weight: 700;
}

.movie-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--color-gray-900);
    font-size: 1.06rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card h3 a:hover {
    color: var(--color-rose);
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 150px;
    gap: 14px;
    margin: 24px 0 30px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar 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: 34px;
    text-align: center;
    color: var(--color-gray-600);
    background: #fff;
    border: 1px dashed var(--color-gray-200);
    border-radius: var(--radius-xl);
}

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

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.rank-info h3 a:hover {
    color: var(--color-rose);
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-meta {
    color: var(--color-gray-500);
    font-weight: 800;
    white-space: nowrap;
}

.side-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    color: var(--color-gray-700);
    background: var(--color-gray-50);
    border-radius: 14px;
    font-weight: 800;
}

.side-links a:hover {
    color: var(--color-rose);
    background: #fff1f2;
}

.page-hero {
    padding: 62px 0 40px;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
    border-bottom: 1px solid var(--color-gray-200);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 790px;
    margin: 14px 0 0;
    color: var(--color-gray-600);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-gray-500);
    font-size: 0.92rem;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding: 44px 0 70px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-strong);
}

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

.player-cover-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.7));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .player-cover-button,
.player-cover-button[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    color: var(--color-rose);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.player-cover-button:hover .play-ring {
    transform: scale(1.08);
}

.detail-card {
    margin-bottom: 24px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.detail-section p {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.9;
}

.detail-poster-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.detail-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.detail-poster-body {
    padding: 18px;
}

.detail-poster-body h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

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

.footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 30px;
    padding: 44px 0 34px;
}

.footer h2,
.footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.footer p,
.footer a {
    color: #9ca3af;
    font-size: 0.94rem;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 20px 0;
    color: #9ca3af;
    border-top: 1px solid rgba(75, 85, 99, 0.65);
    font-size: 0.9rem;
}

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

.quick-list {
    display: grid;
    gap: 14px;
}

.quick-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.quick-card img {
    width: 76px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.quick-card h3 {
    overflow: hidden;
    margin: 0 0 5px;
    color: var(--color-gray-900);
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-card h3 a:hover {
    color: var(--color-rose);
}

.quick-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.86rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 28px;
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    padding: 7px 0;
    color: var(--color-gray-700);
    border-bottom: 1px solid rgba(229, 231, 235, 0.55);
}

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

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

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

    .hero-inner,
    .ranking-layout,
    .detail-layout,
    .index-columns {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: auto;
    }

    .hero-slider {
        min-height: 460px;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .header-actions .search-shortcut {
        display: none;
    }

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

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

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

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

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 3;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 0;
        gap: 32px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-slider {
        min-height: 390px;
    }

    .featured-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

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

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

    .movie-card h3 {
        font-size: 0.98rem;
    }

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

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

    .detail-card {
        padding: 20px;
    }

    .rank-item {
        grid-template-columns: 38px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-cover {
        width: 62px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
    }
}
