:root {
    color-scheme: light;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --cyan-soft: #e0f7ff;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #f59e0b;
    --green: #10b981;
    --purple: #7c3aed;
    --pink: #ec4899;
    --slate: #0f172a;
    --slate-light: #334155;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 46%, #0891b2 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    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 span {
    font-size: 22px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.2));
}

.logo-mark path:first-child {
    fill: rgba(255, 255, 255, 0.2);
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
}

.logo-mark path:last-child {
    fill: #ffffff;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-weight: 650;
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

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

.header-search {
    position: relative;
    width: 260px;
}

.header-search input,
.mobile-search input,
.big-search input,
.catalog-toolbar input,
.catalog-toolbar select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    padding: 10px 44px 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 650;
}

.mobile-search {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
}

.mobile-search input {
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--blue);
    background: #ffffff;
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.55), transparent 32%), linear-gradient(115deg, #0f172a 0%, #1e3a8a 48%, #0e7490 100%);
    min-height: 620px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.24);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.35;
}

.hero-glow.one {
    left: -80px;
    top: 80px;
    background: #38bdf8;
}

.hero-glow.two {
    right: -120px;
    bottom: -100px;
    background: #3b82f6;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 80px 0 44px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
    align-items: center;
    gap: 56px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-text h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-text p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.65;
}

.hero-tags,
.tag-cloud,
.detail-meta-row,
.mini-meta,
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-cloud span,
.detail-meta-row span,
.detail-meta-row a,
.mini-meta span,
.hero-pills a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span,
.hero-pills a {
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.white-button,
.category-overview-copy a,
.big-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.white-button:hover,
.category-overview-copy a:hover,
.big-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-poster img,
.overlay-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.64));
}

.hero-play,
.play-symbol {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.36);
}

.hero-play {
    left: 28px;
    bottom: 28px;
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 42px;
}

.hero-dots {
    display: inline-flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.home-section,
.catalog-section,
.ranking-section,
.detail-section {
    padding: 72px 0;
}

.bg-white {
    background: #ffffff;
}

.bg-soft {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.bg-fresh {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.bg-dark {
    color: #ffffff;
    background: #111827;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-article h1 {
    margin: 0;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

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

.bg-dark .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.featured-grid,
.card-grid,
.overlay-grid,
.compact-grid,
.category-grid,
.category-preview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.standard-card,
.featured-card,
.compact-card,
.horizontal-card {
    background: var(--card);
    box-shadow: var(--soft-shadow);
}

.cover-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.standard-cover,
.compact-cover,
.wide-cover {
    aspect-ratio: 16 / 10;
}

.tall-cover {
    height: 360px;
}

.cover-frame img,
.featured-card img,
.compact-card img,
.standard-card img,
.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.image-hidden {
    opacity: 0;
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.region-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: var(--blue);
}

.year-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.72);
}

.top-right {
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    background: rgba(239, 68, 68, 0.92);
}

.inline-badge {
    position: static;
    width: fit-content;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--blue);
}

.play-symbol {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-symbol.small {
    width: 48px;
    height: 48px;
}

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

.card-copy,
.featured-copy,
.compact-copy,
.horizontal-copy {
    padding: 16px;
}

.featured-copy {
    position: absolute;
    inset: auto 0 0;
    color: #ffffff;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.movie-card h3 {
    margin: 0 0 8px;
    line-height: 1.35;
}

.standard-card h3,
.compact-card h3,
.horizontal-card h3 {
    color: var(--text);
}

.featured-card h3,
.overlay-card h3 {
    font-size: 24px;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.featured-card p,
.overlay-card p {
    color: rgba(255, 255, 255, 0.78);
}

.mini-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.mini-meta span {
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.06);
}

.featured-card .mini-meta span,
.overlay-card .mini-meta span,
.bg-dark .mini-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.overlay-card {
    height: 320px;
    color: #ffffff;
    background: #111827;
}

.overlay-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
}

.overlay-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 22px;
}

.rank-badge {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.horizontal-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.horizontal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.compact-card h3 {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card p {
    font-size: 12px;
}

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-card {
    min-height: 220px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow);
}

.category-index {
    display: inline-flex;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 900;
    opacity: 0.8;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.category-card strong {
    display: block;
    font-size: 14px;
}

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

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

.tone-green-teal {
    background: linear-gradient(135deg, #10b981, #0f766e);
}

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

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

.tone-cyan-blue {
    background: linear-gradient(135deg, #0891b2, #1d4ed8);
}

.tone-slate-blue {
    background: linear-gradient(135deg, #334155, #1d4ed8);
}

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

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

.tone-rose-fuchsia {
    background: linear-gradient(135deg, #e11d48, #c026d3);
}

.cta-band {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.cta-inner {
    padding: 62px 0;
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-inner p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
}

.white-button {
    color: var(--blue);
    background: #ffffff;
}

.page-hero {
    padding: 62px 0;
    color: #ffffff;
    background: linear-gradient(115deg, #2563eb, #0891b2);
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 56px);
}

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

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.crumbs a:hover {
    color: #ffffff;
}

.crumbs.dark {
    color: rgba(255, 255, 255, 0.72);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.catalog-toolbar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 750;
}

.catalog-toolbar input,
.catalog-toolbar select {
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    background: #ffffff;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.big-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 42px;
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.empty-state.show {
    display: block;
}

.overview-stack {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
}

.category-overview-copy span {
    font-weight: 900;
    opacity: 0.72;
}

.category-overview-copy h2 {
    margin: 14px 0 10px;
    font-size: 34px;
}

.category-overview-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-overview-copy a {
    color: var(--blue);
    background: #ffffff;
}

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

.big-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.big-search input {
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    color: var(--text);
    background: #ffffff;
}

.big-search button {
    border: 0;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
}

.search-summary {
    margin: 0 0 22px;
    color: var(--muted);
    font-weight: 800;
}

.ranking-hero,
.search-hero {
    background: radial-gradient(circle at 15% 12%, rgba(249, 115, 22, 0.42), transparent 28%), linear-gradient(115deg, #111827, #1d4ed8 54%, #0891b2);
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    min-height: 80px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--soft-shadow);
}

.player-band {
    padding: 28px 0 44px;
    color: #ffffff;
    background: #020617;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 9;
}

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.42);
    font-size: 36px;
}

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

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

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

.detail-article {
    padding: 34px;
}

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

.detail-meta-row span,
.detail-meta-row a {
    padding: 7px 12px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
}

.detail-meta-row .gradient-pill {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-article h1 {
    font-size: clamp(34px, 5vw, 52px);
}

.lead {
    color: var(--slate-light);
    font-size: 20px;
    line-height: 1.75;
}

.genre-line {
    color: var(--muted);
    font-weight: 750;
}

.article-block {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

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

.article-block p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

.review-block {
    padding: 26px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.tag-cloud span {
    padding: 8px 12px;
    color: #334155;
    background: #f1f5f9;
}

.detail-sidebar {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.related-stack {
    display: grid;
    gap: 14px;
}

.related-link {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-link:hover {
    background: #f8fafc;
}

.related-link img {
    width: 110px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.related-link strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-link small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(90deg, #0f172a, #111827, #0f172a);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.75;
}

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

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

.site-footer a:hover {
    color: #67e8f9;
}

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

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-button {
        display: block;
    }

    .header-search {
        width: 220px;
    }

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

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

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-container {
        height: 64px;
    }

    .brand span {
        font-size: 18px;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 52px 0 30px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-poster {
        min-height: 320px;
    }

    .hero-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-grid,
    .overlay-grid,
    .horizontal-grid {
        grid-template-columns: 1fr;
    }

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

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

    .catalog-toolbar,
    .big-search {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .rank-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rank-number {
        font-size: 16px;
    }

    .detail-article {
        padding: 24px;
    }

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

@media (max-width: 560px) {
    .container,
    .nav-container,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-text p {
        font-size: 17px;
    }

    .hero-actions,
    .hero-pills {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .white-button {
        width: 100%;
    }

    .home-section,
    .catalog-section,
    .ranking-section,
    .detail-section {
        padding: 48px 0;
    }

    .card-grid,
    .catalog-grid,
    .compact-grid,
    .category-grid,
    .category-preview-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .related-link {
        grid-template-columns: 1fr;
    }

    .related-link img {
        width: 100%;
        height: 150px;
    }

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