@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Unbounded:wght@500;600;700;800&display=swap');
/* =====================================================
   DIZAYN TIZIMI
   Asosiy rang (logotipdagi binafsha): --accent. Uni o'zgartirsang — butun sayt rangi o'zgaradi.
   ===================================================== */
:root {
    --bg: #0a0908;
    --bg-2: #110f0d;
    --surface: #181512;
    --surface-2: #221e1a;
    --line: rgba(255, 236, 205, .09);
    --text: #f6f1e9;
    --muted: #b8afa2;
    --dim: #8c8478;
    --accent: #f5b83d;
    --accent-2: #e8961c;
    --accent-ink: #1a1204;
    --gold: linear-gradient(180deg, #ffd27a, #e8961c);
    --radius: 10px;
    --header-h: 68px;
    --pad: clamp(16px, 4vw, 56px);
    --card-w: 180px;
    --font-display: 'Unbounded', 'Onest', 'Segoe UI', sans-serif;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --plyr-color-main: var(--accent);
    --plyr-video-control-color-hover: var(--accent-ink);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: radial-gradient(ellipse 62% 520px at 50% -80px, rgba(245, 184, 61, .16), rgba(245, 184, 61, .04) 55%, transparent 78%) no-repeat, var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .15s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--accent-ink); box-shadow: 0 6px 22px rgba(245, 184, 61, .22); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 28px rgba(245, 184, 61, .34); }
.btn-glass { background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-glass.active { color: var(--accent); }
.btn-icon { width: 46px; padding: 0; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); transition: .2s; }
.icon-btn:hover, .icon-btn.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); background: rgba(10, 9, 8, .88); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.header.is-transparent { background: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.is-transparent.is-scrolled { background: rgba(10, 9, 8, .88); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; padding: 0 var(--pad); }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: .2s; }
.nav-link:hover { color: var(--text); }
.nav-link { position: relative; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- Qidiruv ---------- */
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; width: 240px; padding: 0 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 10px; transition: width .25s, border-color .2s, background .2s; }
.search:focus-within { width: 320px; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); }
.search-icon { display: flex; color: var(--dim); }
.search-icon svg { width: 18px; height: 18px; }
.search-input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 14px; }
.search-input:focus-visible { outline: none; }
.search-input::placeholder { color: var(--dim); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-open, .search-close { display: none; }
.search-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); display: none; }
.search-dropdown.open { display: block; animation: fadeUp .18s ease; }
.sr-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.sr-item:hover, .sr-item.focused { background: var(--surface-2); }
.sr-item img { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sr-item span { min-width: 0; }
.sr-item b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item small { color: var(--muted); font-size: 13px; }
.sr-all { display: block; margin-top: 4px; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
.sr-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }

.tabbar { display: none; }

/* ---------- Banner (bosh sahifa) ---------- */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 8s ease; }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(10, 9, 8, .55) 30%, transparent 60%), linear-gradient(to right, rgba(10, 9, 8, .9), rgba(10, 9, 8, .35) 45%, transparent 75%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 700px; padding: 0 var(--pad) 120px; }
.hero-content.animate { animation: fadeUp .6s ease both; }
.hero-title { margin: 14px 0 16px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.hero-desc { max-width: 540px; margin-bottom: 26px; color: #d4d4d8; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dots { position: absolute; z-index: 3; right: var(--pad); bottom: 128px; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .35); transition: .3s; }
.hero-dots button.on { width: 28px; background: var(--accent); }

/* ---------- Teglar (reyting, yosh, yil...) ---------- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: #d4d4d8; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 700; }
.tag svg { width: 13px; height: 13px; }
.tag-rating { padding: 0; background: none; color: var(--accent); font-size: 14px; }
.tag-outline { background: none; border: 1px solid rgba(255, 255, 255, .4); }
.tag-accent { background: var(--accent); color: var(--accent-ink); }

/* ---------- Qatorlar ---------- */
.home-rows { position: relative; z-index: 3; margin-top: -70px; }
.row { margin-bottom: 44px; }
.page .row { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 0 var(--pad); }
.row-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.row-more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; }
.row-more:hover { color: var(--text); }
.row-more svg { width: 16px; height: 16px; }
.row-wrap { position: relative; }
.row-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 6px var(--pad) 12px; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.row-arrow { position: absolute; top: 6px; bottom: 60px; z-index: 4; width: max(36px, calc(var(--pad) - 4px)); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.row-arrow.left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.row-arrow.right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.row-arrow svg { width: 28px; height: 28px; }
.row-wrap.can-left:hover .row-arrow.left, .row-wrap.can-right:hover .row-arrow.right { opacity: 1; pointer-events: auto; }
.row-top .row-arrow { bottom: 12px; }

/* ---------- Kartochka ---------- */
.card { position: relative; min-width: 0; }
.card-poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-poster img { transform: scale(1.05); }
.card-poster { transition: box-shadow .25s; }
.card:hover .card-poster { box-shadow: 0 0 0 2px var(--accent), 0 14px 34px rgba(245, 184, 61, .18); }
.card-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); opacity: 0; transition: opacity .25s; }
.card:hover .card-poster::after { opacity: 1; }
.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; }
.badge svg { width: 11px; height: 11px; color: var(--accent); }
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.badge-rating { margin-left: auto; }
.card-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--accent-ink); opacity: 0; transform: scale(.8); transition: .25s; }
.card-play svg { margin-left: 2px; }
.card:hover .card-play { opacity: 1; transform: none; }
.card-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.card-progress i { display: block; height: 100%; background: var(--accent); }
.card-fav { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: .2s; }
.card-progress ~ .card-fav { bottom: 20px; }
.card-fav svg { width: 17px; height: 17px; }
.card:hover .card-fav, .card-fav.active, .card-fav:focus-visible { opacity: 1; }
.card-fav.active { color: var(--accent); }
.card-title { margin-top: 10px; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }

/* TOP-5 — katta raqamlar */
.row-top .row-track > * { flex-basis: calc(var(--card-w) * 1.75); }
.top-card { display: flex; align-items: flex-end; }
.top-num { margin-right: -10px; font-family: var(--font-display); font-size: calc(var(--card-w) * .82); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--bg); -webkit-text-stroke: 2px rgba(255, 255, 255, .35); }
.top-card img { position: relative; width: calc(var(--card-w) * .85); aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .3s; }
.top-card:hover img { transform: translateY(-4px); }

/* ---------- Setka va sahifalar ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; }
.page { min-height: 70vh; padding-top: calc(var(--header-h) + 36px); padding-bottom: 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.page-head p { margin-top: 4px; }
.page-head p a { color: var(--accent); }
.section { margin: 44px 0; }
.section-title { margin-bottom: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }

/* Filtrlar */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; transition: .2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.select { height: 38px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance: none; appearance: none; font-size: 14px; cursor: pointer; }
.select option { background: var(--surface); color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.toggle:has(input:checked) { border-color: var(--accent); }
.link-btn { padding: 0 6px; color: var(--muted); font-size: 14px; }
.link-btn:hover { color: var(--text); }

/* Bo'sh holat */
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty h1, .empty h3 { margin-bottom: 8px; color: var(--text); font-size: 20px; }
.empty p { max-width: 420px; margin: 0 auto 22px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); color: var(--accent); }
.empty-icon svg { width: 28px; height: 28px; }
.empty-page { min-height: 70vh; padding-top: calc(var(--header-h) + 100px); }
.empty-page h1 { font-size: 30px; }

/* ---------- Film / serial sahifasi ---------- */
.detail { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
.detail-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(2px); transform: scale(1.05); }
.detail-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 5%, rgba(10, 9, 8, .5) 60%, rgba(10, 9, 8, .75)); }
.detail-inner { position: relative; display: flex; align-items: flex-end; gap: 40px; }
.detail-poster { flex-shrink: 0; width: 240px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.detail-info { max-width: 720px; }
.detail-title { margin: 12px 0 16px; font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.detail-desc { margin-bottom: 24px; color: #d4d4d8; font-size: 16px; line-height: 1.65; }

/* Pleyer */
#play { scroll-margin-top: calc(var(--header-h) + 20px); }
.player-box { position: relative; max-width: 1280px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.player-box video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.plyr { font-family: var(--font); }
.plyr__poster { background-size: cover; }
.now-playing { max-width: 1280px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.next-overlay { position: absolute; right: 20px; bottom: 70px; z-index: 10; width: min(340px, calc(100% - 40px)); padding: 18px; border-radius: 14px; background: rgba(20, 20, 24, .94); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fadeUp .25s ease; }
.next-overlay p { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.next-overlay b { display: block; margin: 4px 0 14px; font-size: 17px; }
.next-overlay .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.next-overlay i { font-style: normal; }

/* Aktyorlar */
.cast { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.cast-item { flex: 0 0 auto; width: 110px; text-align: center; }
.cast-item img { width: 88px; height: 88px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; }
.cast-item b { display: block; font-size: 14px; font-weight: 600; }
.cast-item small { color: var(--dim); font-size: 12.5px; }

/* Fasllar va qismlar */
.season-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.season-tabs button { flex-shrink: 0; height: 38px; padding: 0 18px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
.season-tabs button.active { background: var(--text); color: var(--bg); }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.episode { text-align: left; }
.episode-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; color: #fff; }
.episode-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); transition: .2s; }
.episode:hover .episode-thumb::before { background: rgba(0, 0, 0, .15); }
.episode-thumb svg, .episode-thumb em { position: relative; }
.episode-thumb svg { width: 30px; height: 30px; }
.episode-thumb em { padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.episode-thumb i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.episode.playing .episode-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.episode-title { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* ---------- To'plamlar va janrlar ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0 var(--pad); }
.page .collections-grid { padding: 0; margin-bottom: 48px; }
.collection { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 200px; padding: 22px; border-radius: 16px; overflow: hidden; background-color: var(--surface-2); background-size: cover; background-position: center; }
.collection::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .2)); transition: .3s; }
.collection:hover::before { background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .05)); }
.collection h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.collection p { margin-bottom: 10px; color: #d4d4d8; font-size: 14px; }
.collection span { color: var(--accent); font-size: 12px; font-weight: 700; }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0 var(--pad); }
.page .genres { padding: 0; }
.genre { padding: 20px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.genre:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.genre b { display: block; font-size: 16px; }
.genre small { color: var(--dim); font-size: 13px; }

/* ---------- Izohlar ---------- */
.comments > * { max-width: 820px; }
.comment-form { display: grid; gap: 14px; margin-bottom: 24px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.comment-form h3 { font-size: 17px; }
.field { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); outline: none; font-size: 14px; resize: vertical; transition: border-color .2s; }
.field:focus { border-color: rgba(255, 255, 255, .3); }
.field:focus-visible { outline: none; }
.stars { display: flex; gap: 4px; }
.stars button { color: #3f3f46; transition: transform .1s, color .15s; }
.stars button svg { width: 26px; height: 26px; }
.stars button.on { color: var(--accent); }
.stars button:hover { transform: scale(1.15); }
.comment-list { display: grid; gap: 12px; }
.comment-list .empty { padding: 24px; }
.comment { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.comment-head b { font-size: 15px; }
.comment-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.comment small { display: block; margin-bottom: 8px; color: var(--dim); font-size: 13px; }
.comment p { color: #d4d4d8; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px var(--pad) 32px; }
.footer-brand p { max-width: 320px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-col h4 { margin-bottom: 12px; font-size: 14px; }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding: 18px var(--pad); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 500; animation: fadeUp .25s ease, fadeOut .3s ease 2.7s forwards; }

/* ---------- Moslashuvchanlik ---------- */
@media (min-width: 1600px) { :root { --card-w: 210px; } }

@media (hover: none) {
    .row-arrow { display: none; }
    .card-fav { opacity: 1; }
}

@media (max-width: 900px) {
    :root { --header-h: 58px; --card-w: 128px; }
    .nav, .header-fav, .search { display: none; }
    .header-inner { gap: 12px; }
    .logo { font-size: 21px; }
    .search-open { display: inline-flex; }
    .header.search-active .search { display: flex; position: absolute; top: 9px; left: var(--pad); right: var(--pad); z-index: 2; width: auto; background: var(--surface); }
    .header.search-active .search-close { display: inline-flex; width: 32px; height: 32px; }
    .search-dropdown { left: 0; right: 0; width: auto; }

    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 9, 8, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--muted); font-size: 11.5px; font-weight: 500; }
    .tabbar a.active { color: var(--text); }
    .tabbar a.active svg { color: var(--accent); }
    .tabbar svg { width: 22px; height: 22px; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    .toasts { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
    .hero { height: 78vh; min-height: 500px; }
    .hero-content { padding-bottom: 96px; }
    .hero-desc { font-size: 14.5px; -webkit-line-clamp: 2; }
    .hero-dots { left: var(--pad); right: auto; bottom: 60px; }
    .hero .btn, .detail .btn { height: 42px; padding: 0 16px; }
    .hero .btn-icon, .detail .btn-icon { width: 42px; padding: 0; }
    .home-rows { margin-top: -40px; }
    .row-head h2, .section-title { font-size: 23px; }
    .detail-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
    .detail-poster { width: 150px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .next-overlay { right: 10px; bottom: 54px; padding: 14px; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
    .card-title { font-size: 13.5px; }
    .card-meta { font-size: 12.5px; }
    .episodes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 380px) { .grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Prime Kino: logo ===== */
.logo img { display: block; height: 22px; width: auto; }
.footer .logo img { height: 28px; }
@media (max-width: 700px) { .logo img { height: 18px; } }

/* ===== Qidiruv natijalari sahifasi ===== */
.search-page-form { display: flex; gap: 10px; margin-bottom: 18px; max-width: 640px; }
.search-page-input { flex: 1; height: 46px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; }
.search-page-input:focus { outline: none; border-color: var(--accent); }
.search-page-form .btn { height: 46px; }
.chips-wrap { flex-wrap: wrap; padding: 0 var(--pad); overflow: visible; }

/* ===== Yordam markazi ===== */
.help-wrap { max-width: 820px; margin: 0 auto; }
.faq-group { margin-bottom: 34px; }
.faq-group h2 { margin-bottom: 12px; font-size: 20px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.contact-box div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-box small { display: block; color: var(--dim); margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.contact-box b { font-size: 15px; }

/* ===== Dizayn tizimi sahifasi ===== */
.ds-sec { margin-bottom: 46px; }
.ds-sec > h2 { font-size: 22px; margin-bottom: 6px; }
.ds-sec > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; max-width: 640px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ds-swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ds-swatch i { display: block; height: 70px; }
.ds-swatch div { padding: 10px 12px; font-size: 13px; }
.ds-swatch code, .ds-code { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; }
.ds-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ds-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--dim); text-align: center; }
.ds-logo img { max-height: 90px; width: auto; }
.ds-logo.light { background: #f4f4f5; color: #555; }
.ds-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ds-type > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ds-type span { color: var(--dim); font-size: 12px; white-space: nowrap; }
.ds-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ds-rules div { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; }
.ds-rules b { display: block; margin-bottom: 4px; color: var(--text); }
.ds-row .badge-rating { margin-left: 0; }


/* ===== Kartaga sichqoncha olib borilganda ma'lumot ===== */
.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px 12px 12px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(to top, rgba(0,0,0,.94) 40%, transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.card-info b { font-size: 12px; font-weight: 700; color: var(--accent); }
.card-info small { font-size: 12px; color: var(--muted); }
.card-info p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #d4d4d8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
    .card:hover .card-info, .card:focus-within .card-info { opacity: 1; transform: none; }
    .card-poster { transition: transform .25s, box-shadow .25s; }
    .card:hover .card-poster { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
}

/* ===== Treyler oynasi ===== */
.tr-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); animation: trIn .2s both; }
@keyframes trIn { from { opacity: 0; } to { opacity: 1; } }
.tr-box { position: relative; width: min(960px, 100%); padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.tr-title { padding: 2px 44px 12px 4px; font-weight: 700; }
.tr-box video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.tr-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; }
.tr-close:hover { background: var(--accent); color: var(--accent-ink); }


/* ===== Til tanlash va profil tugmasi ===== */
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; display: none; z-index: 150; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.lang.open .lang-menu { display: block; }
.lang-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; text-align: left; }
.lang-menu button small { color: var(--dim); font-size: 11px; font-weight: 700; }
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.on { color: var(--accent); }
.avatar-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; line-height: 1; background: linear-gradient(135deg, var(--pf1, #f5b83d), var(--pf2, #6d4be8)); }
.avatar-btn:hover { filter: brightness(1.12); }

/* ===== "Kim tomosha qilmoqda?" ===== */
.pf-screen { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: radial-gradient(ellipse at 50% 20%, #1d1733 0%, var(--bg) 62%); animation: pfIn .35s both; }
@keyframes pfIn { from { opacity: 0; } to { opacity: 1; } }
.pf-inner { width: min(760px, 100%); text-align: center; }
.pf-logo { height: 64px; width: auto; margin: 0 auto 28px; }
.pf-inner h1 { margin-bottom: 36px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.pf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.pf-item { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 132px; color: var(--muted); transition: color .2s, transform .2s; }
.pf-av { display: flex; align-items: center; justify-content: center; width: 124px; height: 124px; border-radius: 24px; font-size: 56px; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .2s; }
.pf-name { font-size: 17px; font-weight: 600; }
.pf-item small { margin-top: -6px; color: var(--dim); font-size: 11px; }
.pf-item:hover, .pf-item:focus-visible { color: var(--text); }
.pf-item:hover .pf-av, .pf-item:focus-visible .pf-av { outline-color: var(--text); transform: scale(1.05); }
.pf-item.current .pf-av { outline-color: var(--accent); }
.pf-close { margin-top: 44px; }

/* ===== Yuklanish "skeleti" va silliq paydo bo'lish ===== */
@keyframes skShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.card-poster img, .top-card img, .sr-item img, .detail-poster, .episode-thumb {
    background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s linear infinite;
}
@media (prefers-reduced-motion: no-preference) {
    @keyframes rowRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .home-rows .row { animation: rowRise .55s cubic-bezier(.2,.7,.2,1) both; }
    .home-rows .row:nth-child(2) { animation-delay: .06s; } .home-rows .row:nth-child(3) { animation-delay: .12s; }
    .home-rows .row:nth-child(4) { animation-delay: .18s; } .home-rows .row:nth-child(n+5) { animation-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) { .card-poster img, .top-card img, .sr-item img, .detail-poster, .episode-thumb { animation: none; } }


/* ===== Biz haqimizda ===== */
.about-hero { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.about-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; }
.about-lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.about-note { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto 48px; }
.about-stats div { padding: 20px 12px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-stats b { display: block; font-size: 34px; font-weight: 800; color: var(--accent); }
.about-stats span { color: var(--muted); font-size: 13px; }
.about-sec { max-width: 1000px; margin: 0 auto 48px; }
.about-sec h2 { font-size: 24px; margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.about-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.about-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.about-card h3 { font-size: 16px; margin-bottom: 8px; }
.about-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.road-col { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.road-col h3 { margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.road-col.done h3 { color: var(--accent); }
.road-col ul { list-style: none; display: grid; gap: 10px; }
.road-col li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); }
.road-col li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--dim); }
.road-col.done li::before { background: var(--accent); border-color: var(--accent); }
.waitlist { max-width: 760px; margin: 0 auto 30px; padding: 40px 28px; text-align: center; border-radius: 20px; background: linear-gradient(135deg, #1d1733, var(--surface)); border: 1px solid var(--line); }
.waitlist h2 { font-size: 26px; margin-bottom: 8px; }
.waitlist > p { color: var(--muted); margin-bottom: 22px; }
.wait-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.wait-msg { min-height: 22px; margin-top: 14px; font-size: 14px; }
.wait-msg.ok { color: #5fe08a; }
.wait-msg.err { color: #ff8a8a; }
@media (max-width: 560px) { .wait-form { flex-direction: column; } }
/* ===== V2: turlar, haqida, ijodkorlar, baho ===== */
.tag-kind { background: #fff; color: #0a0908; }
@media (max-width: 1180px) {
    .header-inner { gap: 20px; }
    .nav-link { padding: 8px 10px; font-size: 14px; }
    .search { width: 200px; }
    .search:focus-within { width: 240px; }
}
@media (max-width: 1040px) {
    .nav-link { padding: 8px 8px; font-size: 13.5px; }
    .search { width: 150px; }
    .search:focus-within { width: 200px; }
}
.nav-link { white-space: nowrap; }

.about-film .af-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.af-text p { margin-bottom: 14px; color: #d4d4d8; font-size: 15.5px; line-height: 1.75; }
.af-facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.af-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.af-facts > div:first-child { border-top: 0; }
.af-facts dt { color: var(--dim); }
.af-facts dd { text-align: right; font-weight: 500; }
@media (max-width: 800px) { .about-film .af-grid { grid-template-columns: 1fr; gap: 20px; } }

.creators .cr-group { margin-bottom: 26px; }
.creators h3 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cr-list { display: flex; flex-wrap: wrap; gap: 18px 16px; }
.cr-item { width: 104px; text-align: center; }
.cr-av { position: relative; display: block; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.cr-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--accent); }
.cr-item b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cr-item small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }

.rate-box { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rate-stars { display: flex; gap: 2px; }
.rate-stars button { color: #3f3f46; transition: transform .1s, color .15s; }
.rate-stars button svg { width: 30px; height: 30px; }
.rate-stars button.on { color: var(--accent); }
.rate-stars button:hover { transform: scale(1.15); }
.rate-info b { display: block; font-size: 22px; font-weight: 800; }
.rate-info span { color: var(--muted); font-size: 13px; }
.comment-score { color: var(--accent); font-size: 13px; font-weight: 700; }
@media (max-width: 520px) { .rate-box { padding: 16px; } .rate-stars button svg { width: 24px; height: 24px; } }
/* ===== v3: yuklanish, izohlar ===== */
.pk-boot { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pk-boot.show { opacity: 1; pointer-events: auto; }
.pk-boot img { height: 26px; width: auto; animation: pkPulse 1.2s ease-in-out infinite; }
@keyframes pkPulse { 50% { opacity: .35; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-foot small { color: var(--dim); font-size: 12px; }
.rate-avg { margin-left: auto; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.rate-avg b { grid-row: span 2; color: var(--accent); font-size: 22px; font-weight: 800; }
.rate-avg span { font-size: 13px; color: var(--text); }
.rate-avg small { font-size: 12px; color: var(--dim); }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 600px) { .rate-avg { margin-left: 0; width: 100%; } }
/* ===== Huquqiy sahifalar va izoh rozilik yozuvi ===== */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.legal h2 { margin: 32px 0 10px; font-size: 20px; }
.legal p, .legal li { color: #d4d4d8; font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a, .faq a, .contact-box a, .comment-note a { color: var(--accent); }
.legal-meta { margin-top: 6px; color: var(--dim) !important; font-size: 13px !important; }
.comment-note { color: var(--dim); font-size: 13px; line-height: 1.5; }
.waitlist .btn { margin-top: 4px; }

/* =====================================================
   v4 — kino kayfiyati: sarlavha shrifti, plyonka donasi,
   rasmsiz posterlar uchun zaxira dizayn, banner tugmalari
   ===================================================== */

/* Boshqa sarlavhalar ham afisha shriftida */
.about-hero h1, .legal h1, .pf-inner h1, .empty h1, .empty-page h1, .waitlist h2,
.about-sec h2, .faq-group h2, .ds-sec > h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.about-sec h2, .ds-sec > h2 { font-size: 30px; }
.faq-group h2 { font-size: 26px; }
.waitlist h2 { font-size: 32px; }
.about-stats b, .rate-info b, .rate-avg b { font-family: var(--font-display); letter-spacing: .01em; }
.about-stats b { font-size: 42px; }
.rate-info b, .rate-avg b { font-size: 28px; }

/* Plyonka donasi: bannerda va film sahifasi fonida (videoga tushmaydi) */
.hero-shade::after, .detail::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--grain); opacity: .07;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.detail-inner { z-index: 1; }
.hero-slide.is-empty, .detail-bg.is-empty {
    background-image: radial-gradient(ellipse 60% 70% at 70% 25%, rgba(245, 184, 61, .35), transparent 70%), linear-gradient(160deg, #1d1733, var(--bg) 70%) !important;
}

/* Rasm topilmasa — afisha uslubidagi zaxira poster */
.poster-fb {
    animation: none;
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden;
    aspect-ratio: 2 / 3; padding: 18px; container-type: inline-size;
    background:
        radial-gradient(circle at var(--fx, 70%) 8%, rgba(245, 184, 61, .5), transparent 58%),
        linear-gradient(var(--fa, 165deg), #261c45, #121216 72%);
    color: #fff;
}
.poster-fb::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .1; pointer-events: none; }
.poster-fb span { position: relative; z-index: 1; }
.poster-fb::before { content: ""; position: relative; z-index: 1; width: 22%; height: 3px; margin-bottom: 9%; border-radius: 2px; background: var(--accent); }
.poster-fb span {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: 20px; font-size: 15cqw; line-height: .92; letter-spacing: .01em; overflow-wrap: break-word; hyphens: auto;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card-poster .poster-fb { position: absolute; inset: 0; }
.poster-fb.detail-poster { padding: 26px; }
@media (max-width: 900px) { .card-poster .poster-fb, .top-card .poster-fb { padding: 13px; } .poster-fb.detail-poster { padding: 18px; } }
.top-card .poster-fb { width: calc(var(--card-w) * .85); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.sr-item .poster-fb { width: 40px; height: 56px; flex-shrink: 0; padding: 6px; border-radius: 6px; align-items: center; justify-content: center; }
.sr-item .poster-fb::before { display: none; }
.sr-item .poster-fb span { font-size: 20px; -webkit-line-clamp: 1; }

/* Banner tugmalari: asosiysi ajralib tursin */
.btn-ghost { background: none; color: #e4e4e7; padding: 0 12px; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost.active { color: var(--accent); }
.btn-ghost.btn-icon { padding: 0; }
.hero .actions { align-items: center; }
.hero .actions .btn-ghost:first-of-type { margin-left: 6px; }
@media (max-width: 700px) {
    .hero .actions { gap: 8px; }
    .hero .actions .btn-ghost:first-of-type { margin-left: 0; }
}
@media (max-width: 440px) {
    .hero .actions .btn-ghost { width: 42px; padding: 0; }
    .hero .actions .btn-ghost span { display: none; }
}


/* =====================================================
   v5 — katalog plitkalari, "Saralash" paneli, uzun nomlar
   ===================================================== */
.hero-title.is-long { font-size: clamp(34px, 4.2vw, 60px); }
.detail-title.is-long { font-size: clamp(32px, 4vw, 54px); }

/* Bo'limga qaytish */
.back-link { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 6px -4px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: var(--text); }

/* Saralash tugmasi va paneli */
.filter-btn { flex-shrink: 0; }
.filter-btn.active { background: var(--text); color: var(--bg); }
.filter-btn b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.filter-panel { margin: -4px 0 28px; padding: 18px 18px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: fadeUp .2s ease; }
.filter-panel .chips { margin-bottom: 14px; }
.filter-panel .filters { margin-bottom: 0; }
.filter-panel .chip:not(.active), .filter-panel .select, .filter-panel .toggle { background-color: var(--bg-2); }
.filter-panel .select option { background: var(--bg-2); }

/* Katalog plitkalari */
.cat-hub { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 52px; }
.hub-tile {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    aspect-ratio: 4 / 5; padding: 18px 10px 20px; border-radius: 16px; text-align: center;
    background:
        radial-gradient(circle at 50% 32%, rgba(245, 184, 61, .38), transparent 62%),
        linear-gradient(170deg, #261c45, #121216 78%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.hub-tile.wide { grid-column: span 2; aspect-ratio: auto; }
.hub-tile img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hub-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grain); opacity: .08; pointer-events: none; }
.hub-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 8, 10, .9), rgba(8, 8, 10, 0) 58%); }
.hub-tile b { font-family: var(--font-display); font-size: clamp(14px, 1.15vw, 19px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hub-tile b::after { content: ""; display: block; width: 26px; height: 3px; margin: 9px auto 0; border-radius: 2px; background: var(--accent); transition: width .3s; }
.hub-tile small { margin-top: 7px; color: var(--muted); font-size: 13px; }
.hub-tile:hover img { transform: scale(1.05); }
.hub-tile:hover b::after, .hub-tile:focus-visible b::after { width: 52px; }
.hub-tile.no-img.wide { background:
        radial-gradient(ellipse 50% 70% at 50% 30%, rgba(245, 184, 61, .4), transparent 70%),
        linear-gradient(170deg, #261c45, #121216 78%); }

@media (max-width: 1000px) {
    .cat-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hub-tile, .hub-tile.wide { grid-column: auto; aspect-ratio: 1 / 1; }
    .hub-tile b { font-size: clamp(14px, 2.4vw, 20px); }
}
@media (max-width: 600px) {
    .cat-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hub-tile, .hub-tile.wide { aspect-ratio: 4 / 5; }
    .hub-tile b { font-size: 16px; }
    .filter-panel { padding: 14px 12px 12px; }
}
