:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-900: #1e3a8a;
    --orange-600: #ea580c;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
    --shadow-strong: 0 24px 70px rgba(2, 6, 23, 0.35);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 42%, var(--slate-50) 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
    transition: transform 0.25s ease;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: var(--slate-400);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan-400);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

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

.nav-search {
    position: relative;
    flex: 0 0 260px;
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 14px;
}

.nav-search input {
    height: 40px;
    padding: 0 46px 0 16px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
}

.nav-search input:focus {
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.55);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    color: var(--cyan-400);
    background: transparent;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    padding: 12px 14px;
    color: #ffffff;
    background: var(--slate-700);
}

.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

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

.mobile-nav a {
    padding: 10px 4px;
    color: #e2e8f0;
}

.hero-slider {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.18), transparent 28%), linear-gradient(135deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

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

.hero-image-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
    align-items: center;
    gap: 42px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.18);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 720px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.hero-feature-card {
    display: grid;
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.hero-feature-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.hero-feature-card span {
    color: #67e8f9;
    font-weight: 800;
    font-size: 13px;
}

.hero-feature-card h2 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
}

.hero-feature-card p {
    margin: 0 0 14px;
    color: #dbeafe;
    line-height: 1.7;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 54px;
    background: var(--cyan-400);
}

.content-section {
    padding: 72px 0;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.section-title-dark h2 {
    color: #ffffff;
}

.section-title-dark p {
    color: #cbd5e1;
}

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

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

.movie-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.2);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.movie-thumb-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-thumb-overlay span,
.rank-badge {
    padding: 5px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

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

.movie-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    min-height: 48px;
    color: var(--slate-900);
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--cyan-500);
}

.movie-card p {
    margin: 0 0 14px;
    min-height: 44px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.6;
}

.movie-meta {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-tags {
    margin-top: 12px;
}

.movie-tags span {
    color: var(--slate-600);
    background: var(--slate-100);
}

.dark-band {
    background: linear-gradient(135deg, var(--slate-900), #172554);
}

.dark-band .movie-card {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.dark-band .movie-card h3,
.dark-band .movie-card p,
.dark-band .movie-meta {
    color: #ffffff;
}

.dark-band .movie-card p,
.dark-band .movie-meta {
    opacity: 0.78;
}

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

.movie-card-compact .movie-card-link {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
}

.movie-card-compact .movie-thumb {
    height: 100%;
    min-height: 140px;
    aspect-ratio: auto;
}

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

.movie-card-compact h3 {
    min-height: auto;
    font-size: 17px;
}

.movie-card-compact p {
    min-height: auto;
}

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

.category-card,
.category-overview-card a {
    position: relative;
    display: block;
    min-height: 210px;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-2xl);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.24);
}

.category-card h3,
.category-overview-body h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: 22px;
    z-index: 2;
}

.category-card p,
.category-overview-body p {
    position: relative;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
    z-index: 2;
}

.category-card strong,
.category-overview-body span {
    position: relative;
    z-index: 2;
}

.category-card-shine {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-shine {
    transform: scale(1.6);
}

.category-tone-0 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.category-tone-1 { background: linear-gradient(135deg, #f97316, #dc2626); }
.category-tone-2 { background: linear-gradient(135deg, #10b981, #0f766e); }
.category-tone-3 { background: linear-gradient(135deg, #ec4899, #e11d48); }
.category-tone-4 { background: linear-gradient(135deg, #eab308, #f97316); }
.category-tone-5 { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.category-tone-6 { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.category-tone-7 { background: linear-gradient(135deg, #ef4444, #db2777); }

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

.cta-section {
    padding-bottom: 80px;
}

.cta-card {
    padding: 56px 24px;
    border-radius: 32px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600), #7c3aed);
    box-shadow: var(--shadow-strong);
}

.cta-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
}

.cta-card p {
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 18px;
}

.cta-actions {
    justify-content: center;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 84px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.2), transparent 28%), linear-gradient(135deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

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

.category-overview-card {
    border-radius: var(--radius-2xl);
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    min-height: 250px;
}

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

.category-cover-stack img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.category-overview-body {
    align-self: center;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel-wide {
    grid-template-columns: minmax(260px, 1fr) 170px 170px 190px;
}

.filter-panel input,
.filter-panel select {
    height: 46px;
    padding: 0 14px;
    color: var(--slate-900);
    background: var(--slate-100);
}

.empty-state {
    display: none;
    margin: 40px 0 0;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    color: var(--slate-500);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.rankings-hero,
.search-hero,
.category-page-hero {
    min-height: 300px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), #172554);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
}

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

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 6px 11px;
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
}

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

.detail-tags span {
    color: #cffafe;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.24);
}

.player-section {
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.35);
}

.player-overlay strong {
    max-width: min(90%, 680px);
    font-size: clamp(20px, 3vw, 34px);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 58px 0 18px;
}

.detail-article,
.detail-side-card {
    border-radius: var(--radius-2xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-article {
    padding: 34px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

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

.detail-side-card {
    height: fit-content;
    padding: 26px;
}

.detail-side-card dl {
    margin: 0;
}

.detail-side-card dt {
    margin-top: 16px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.detail-side-card dt:first-child {
    margin-top: 0;
}

.detail-side-card dd {
    margin: 5px 0 0;
    color: var(--slate-900);
    line-height: 1.6;
}

.genre-tags {
    margin-bottom: 0;
}

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

.detail-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.detail-pager a {
    padding: 18px;
    border-radius: 18px;
    color: var(--slate-700);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: color 0.2s ease, transform 0.2s ease;
}

.detail-pager a:hover {
    color: var(--cyan-500);
    transform: translateY(-3px);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), #000000);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-brand h2 {
    width: fit-content;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-grid p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-bottom p {
    margin: 0;
}

[data-search-card].is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .nav-search {
        flex-basis: 210px;
    }

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

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: auto;
        min-height: 720px;
    }

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

    .hero-feature-card {
        max-width: 520px;
    }

    .category-overview-grid,
    .category-overview-card a,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .brand-subtitle {
        display: none;
    }

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

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

    .hero-copy p {
        font-size: 16px;
    }

    .movie-grid,
    .catalog-grid,
    .hot-grid,
    .ranking-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact .movie-card-link {
        grid-template-columns: 120px minmax(0, 1fr);
    }

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

    .movie-card h3 {
        min-height: auto;
    }

    .movie-card p {
        min-height: auto;
    }

    .content-section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 70px 0 58px;
    }

    .detail-hero-inner {
        padding-bottom: 48px;
    }

    .detail-article {
        padding: 24px;
    }

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