/* SaraFilm — sahifalar */

#app:not(.has-hero) { padding-top: calc(var(--header-h) + 8px); }

.page-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
    padding-top: clamp(20px, 3vw, 44px); margin-bottom: 28px;
}
.page-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); overflow-wrap: anywhere; }
.page-count { color: var(--ink-3); }
.page-count b { color: var(--ink); font-weight: 600; }
.page-lead { flex-basis: 100%; max-width: 62ch; color: var(--ink-2); }

/* ================================================================ bosh sahifa: karusel */
/* Banner chetdan-chetga: sarlavha (header) ustida shaffof turadi, rasm pastda sahifa foniga eriydi.
   Matn sahifa ustuni (--content) bilan bir chiziqda boshlanadi -- pastdagi lentalar bilan tekis. */
.hero {
    /* 100% (100vw emas): skrollbar kengligi hisobga olinadi, matn pastdagi .wrap bilan aynan bir chiziqda. */
    --hero-w: 100%;
    --hero-gap: 0px;
    --hero-edge: max(var(--gutter), (100% - var(--content)) / 2);
    position: relative; overflow: hidden;
}
@media (min-width: 761px) {
    .hero { margin-bottom: calc(-1 * clamp(48px, 6vw, 84px) + 8px); }
    .hero ~ * { position: relative; z-index: 1; }
}
.hero-track {
    display: flex; gap: var(--hero-gap); touch-action: pan-y;
    transform: translateX(calc((100% - var(--hero-w)) / 2 - var(--i, 1) * (var(--hero-w) + var(--hero-gap)) + var(--drag, 0px)));
    transition: transform 0.75s var(--ease);
}
.hero-track.is-jumping, .hero-track.is-dragging { transition: none; }
/* Cheksiz aylanishda nusxadan asl slaydga sakrash ko'rinmasin: shu lahzada xiralashish va matn animatsiyasi yo'q. */
.hero-track.is-jumping .hero-slide, .hero-track.is-jumping .hero-copy { transition: none; }
.hero-track.is-dragging .hero-slide { opacity: 1; }
.hero-slide {
    position: relative; isolation: isolate; flex: none; width: var(--hero-w);
    height: min(86vh, 56vw, 940px); min-height: 520px;
    overflow: hidden; background: var(--bg-2);
    display: flex; align-items: flex-end;
}
/* Chiqib ketayotgan slayd matni darhol yo'qoladi (aks holda u to'liq ko'ringan holda chetga siljib, ekran chetida
   kesilib qolardi); kirib kelayotganniki -- .hero-copy dagi kechikish bilan sekin paydo bo'ladi. */
.hero-slide:not(.is-active) .hero-copy { opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-slide.is-poster .hero-bg { filter: blur(40px) saturate(1.3); transform: scale(1.3); opacity: 0.7; }
/* Qorong'ilatuvchi qatlam kartadan 2px kattaroq (ortig'i kesiladi): yumaloq qirrada rasm bilan bir xil tekislanmay,
   chetda yorqin ingichka chiziq qolardi. */
.hero-slide::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(0deg, var(--bg) 0, color-mix(in oklab, var(--bg) 60%, transparent) 54px, transparent 120px),
        linear-gradient(90deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.5) 30%, transparent 64%),
        linear-gradient(0deg, rgb(0 0 0 / 0.66) 0%, transparent 52%),
        linear-gradient(180deg, rgb(0 0 0 / 0.42) 0%, transparent 22%);
}
.hero-art {
    position: absolute; z-index: -1; right: clamp(24px, 6%, 96px); top: 50%; transform: translateY(-50%);
    height: 78%; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { width: min(100%, 680px + var(--hero-edge)); padding: 0 24px clamp(92px, 10vh, 120px) var(--hero-edge); transition: opacity 0.5s 0.15s; }
.hero-title { font-size: clamp(2.1rem, 4.2vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-shadow: 0 2px 24px rgb(0 0 0 / 0.45); }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; font-size: 1.05rem; font-weight: 600; }
.hero-soon { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; color: var(--amber-ink); background: var(--amber-fill); font-size: 0.92rem; font-weight: 700; }
.hero-soon .icon { width: 16px; height: 16px; }
.hero-rating b { font-weight: 800; letter-spacing: -0.02em; margin-right: 6px; }
.hero-rating span { font-variant-numeric: tabular-nums; }
.hero-meta { display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: 10px; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-shadow: 0 1px 10px rgb(0 0 0 / 0.5); }
.hero-meta span { white-space: nowrap; }
.hero-meta i { font-style: normal; opacity: 0.6; }
.hero-plot {
    margin-top: 10px; max-width: 54ch; color: oklch(1 0 0 / 0.82); font-size: 0.98rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .btn-primary { min-width: 150px; }
.hero-actions .btn:not(.btn-primary) { --btn-bg: rgb(30 33 33 / 0.72); border-color: transparent; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-actions .btn:not(.btn-primary):hover { --btn-bg: rgb(52 56 56 / 0.85); }
.hero-nav {
    position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 99px;
    background: rgb(20 22 22 / 0.42); color: #fff; border: 1px solid rgb(255 255 255 / 0.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0.55; transition: background-color 0.2s, opacity 0.25s, transform 0.2s var(--ease);
}
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: rgb(20 22 22 / 0.78); }
.hero-nav:active { transform: translateY(-50%) scale(0.94); }
/* Strelkalar o'ng pastda, nuqtalar qatorida (yonda turib matnni yopmaydi). */
.hero-nav { top: auto; bottom: clamp(36px, 4.6vh, 48px); transform: none; width: 46px; height: 46px; opacity: 0.8; }
.hero-nav:active { transform: scale(0.94); }
.hero-nav[data-dir='prev'] { right: calc(var(--hero-edge) + 56px); }
.hero-nav[data-dir='next'] { right: var(--hero-edge); }
.hero-dots {
    position: absolute; z-index: 5; left: var(--hero-edge); bottom: clamp(52px, 6vh, 64px);
    display: flex; gap: 8px;
}
.hero-dot {
    position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
    background: rgb(255 255 255 / 0.3); cursor: pointer; transition: width 0.4s var(--ease), background-color 0.3s;
}
.hero-dot:hover { background: rgb(255 255 255 / 0.6); }
.hero-dot:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.hero-dot.is-active { width: 32px; background: rgb(255 255 255 / 0.3); }
/* Faol nuqta keyingi filmgacha to'lib boradi; pauzada (sichqoncha ustida, boshqa tab) to'xtaydi. */
.hero-dot.is-active::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--amber-fill);
    transform-origin: left; animation: hero-progress var(--hero-delay, 7s) linear both;
}
.hero.is-paused .hero-dot.is-active::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-dot.is-active::before { animation: none; } }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* top-10 lentasi */
.rail-ranked { --w: clamp(214px, 17vw, 280px); }
.rail-ranked .rail-track { grid-auto-columns: var(--w); }
.rail-ranked .rail-btn { top: calc(10px + var(--w) * 0.5); }
.ranked { display: grid; grid-template-columns: 34% minmax(0, 66%); }
.ranked-num {
    height: calc(var(--w) * 0.99); display: flex; align-items: flex-end; justify-content: flex-end;
    font: 900 calc(var(--w) * 0.5) / 0.78 var(--font-display); letter-spacing: -0.08em; color: oklch(0.52 0.005 200);
    margin-right: -0.06em; user-select: none;
}
/* O'tgan haftaga nisbatan o'rni: katta raqam tepasida kichik yorliq. */
.ranked { position: relative; }
.rank-move {
    position: absolute; z-index: 1; top: 4px; left: 0;
    display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 999px;
    font: 700 0.78rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
    background: var(--bg-2); color: var(--ink-2);
}
.rank-move.is-up { background: oklch(0.72 0.16 150 / 0.16); color: oklch(0.8 0.15 150); }
.rank-move.is-down { color: var(--ink-3); }
.rank-move.is-new { background: var(--amber-fill); color: var(--amber-ink); }
:root[data-theme='light'] .rank-move.is-up { color: oklch(0.5 0.14 150); }

/* janrlar lentasi */
.rail-genres .rail-track { grid-auto-columns: clamp(220px, 20vw, 300px); }
.rail-genres .rail-btn { top: calc(10px + clamp(220px, 20vw, 300px) * 0.28); }
.rail-genres .genre-tile { width: 100%; }

/* Studiyalar: nomi katta yozuv bilan, o'ng tomonda filmlarining afishalari yelpig'ich bo'lib turadi. */
.rail-studios .rail-track { grid-auto-columns: clamp(270px, 21vw, 320px); }
.studio-tile {
    position: relative; isolation: isolate; display: flex; align-items: flex-end; height: 150px; padding: 18px 20px;
    overflow: hidden; border-radius: 14px; background: var(--bg-2);
    transition: background-color 0.25s;
}
.studio-tile:hover { background: var(--bg-3); }
.studio-fan { position: absolute; z-index: -1; right: 6px; top: 16px; display: flex; }
.studio-fan img {
    width: 58px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 7px; margin-left: -24px;
    box-shadow: -6px 0 16px rgb(0 0 0 / 0.45); transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%;
    transition: transform 0.4s var(--ease);
}
.studio-fan img:nth-child(1) { --r: -8deg; }
.studio-fan img:nth-child(2) { --r: -1deg; }
.studio-fan img:nth-child(3) { --r: 6deg; }
.studio-tile:hover .studio-fan img:nth-child(1) { transform: rotate(-13deg) translateY(-4px); }
.studio-tile:hover .studio-fan img:nth-child(3) { transform: rotate(11deg) translateY(-2px); }
.studio-text { display: grid; gap: 4px; max-width: 54%; }
.studio-name { font: 800 1.35rem/1.05 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; transition: color 0.2s; }
.studio-tile:hover .studio-name { color: var(--amber); }
.studio-text small { color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }

/* Franshizalar: keng kadr, ustida qismlarning kichik afishalari. */
.rail-franchises .rail-track { grid-auto-columns: clamp(280px, 24vw, 380px); }
.fr-tile {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
    aspect-ratio: 16 / 9; padding: 16px 18px; overflow: hidden; border-radius: 14px; background: var(--bg-3);
}
.fr-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.fr-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(0.14 0.004 200 / 0.94) 8%, oklch(0.14 0.004 200 / 0.2) 72%); }
.fr-tile:hover .fr-bg { transform: scale(1.05); }
.fr-parts { display: flex; }
.fr-parts img {
    width: 40px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; margin-right: -10px;
    box-shadow: 0 0 0 2px oklch(0.14 0.004 200 / 0.9); transition: margin 0.35s var(--ease);
}
.fr-tile:hover .fr-parts img { margin-right: 4px; }
.fr-text { display: grid; gap: 3px; }
.fr-text b { font: 800 clamp(1.2rem, 1.5vw, 1.45rem)/1.1 var(--font-display); letter-spacing: -0.02em; transition: color 0.2s; }
.fr-tile:hover .fr-text b { color: var(--amber); }
.fr-text small { color: oklch(1 0 0 / 0.72); font-size: 0.85rem; font-weight: 600; }
:root[data-theme='light'] .fr-tile { color-scheme: dark; color: #fff; }
@media (max-width: 760px) {
    .rail-studios .rail-track { grid-auto-columns: 230px; }
    .studio-tile { height: 128px; padding: 14px 16px; }
    .studio-fan img { width: 50px; }
    .studio-name { font-size: 1.25rem; }
    .rail-franchises .rail-track { grid-auto-columns: 260px; }
}

.closing {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
    padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--bg-2);
}
.closing h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.closing p { margin-top: 10px; max-width: 56ch; color: var(--ink-2); }
.closing p b { color: var(--ink); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================================================================ film sahifasi */
.title-hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(48px, 16vh, 190px)); }
.title-backdrop { --bd-h: min(84vh, 760px); position: absolute; inset: 0 0 auto 0; height: var(--bd-h); z-index: -1; overflow: hidden; background: var(--bg-2); }
.title-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: backdrop-in 1.2s var(--ease) both; }
.title-backdrop.is-poster img { filter: blur(52px) saturate(1.4); transform: scale(1.45); opacity: 0.6; animation: none; }
.title-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 3%, color-mix(in oklab, var(--bg) 72%, transparent) 42%, color-mix(in oklab, var(--bg) 30%, transparent) 100%),
        linear-gradient(90deg, color-mix(in oklab, var(--bg) 80%, transparent), transparent 62%);
}
@keyframes backdrop-in { from { opacity: 0; transform: scale(1.05); } }

/* ================================================================ kinoman darajasi va nishonlar (badges.js) */
.medal {
    position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffd27a, var(--amber-fill) 45%, #c9700a 100%); color: #3a1f00;
    box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.18), inset 0 2px 0 rgb(255 255 255 / 0.35), 0 6px 16px -6px rgb(255 163 26 / 0.6);
}
.medal::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgb(58 31 0 / 0.35); }
.medal .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.medal.is-locked { background: var(--bg-4); color: var(--ink-3); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.15); }
.medal.is-locked::before { border-color: var(--line); }
.medal.is-lg { width: 72px; height: 72px; }
.medal.is-lg .icon { width: 30px; height: 30px; }

.level-ring { position: relative; display: inline-grid; place-items: center; width: 80px; height: 80px; flex: none; }
.level-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.level-ring circle { fill: none; stroke: var(--bg-4); stroke-width: 7; }
.level-ring .is-fill { stroke: var(--amber-fill); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.level-ring b { font: 900 1.6rem/1 var(--font-display); }

.badges-panel { display: grid; gap: 22px; margin-bottom: 20px; }
.level-head { display: flex; align-items: center; gap: 20px; }
.level-kicker { color: var(--amber); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.level-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2px 0 4px; }
.level-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.level-stats li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg-3); }
.level-stats b { font: 800 1.5rem/1 var(--font-display); }
.level-stats span { color: var(--ink-3); font-size: 0.85rem; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge-tile { display: grid; justify-items: center; gap: 8px; padding: 18px 12px 14px; border-radius: 16px; background: var(--bg-3); text-align: center; }
.badge-tile b { font-size: 0.92rem; line-height: 1.25; }
.badge-tile small { color: var(--ink-3); font-size: 0.78rem; }
.badge-tile.is-locked b { color: var(--ink-2); }
.badge-progress { width: 80%; height: 5px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.badge-progress i { display: block; height: 100%; background: var(--amber-fill); border-radius: inherit; }

.library-links { margin-top: 14px; align-items: center; }
.library-links .recap-link { margin-top: 0; }
.level-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--bg-2); transition: background-color 0.2s; }
.level-chip:hover { background: var(--bg-3); }
.level-chip[hidden] { display: none; }
.level-chip .level-ring { width: 38px; height: 38px; }
.level-chip .level-ring circle { stroke-width: 9; }
.level-chip .level-ring b { font-size: 0.95rem; }
.level-chip span { display: grid; line-height: 1.2; }
.level-chip b { font-size: 0.9rem; }
.level-chip small { color: var(--ink-3); font-size: 0.75rem; }

.recap-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.recap-badges li { display: grid; justify-items: center; gap: 8px; width: 120px; padding: 16px 10px; border-radius: 16px; background: var(--bg-2); text-align: center; font-size: 0.9rem; }

/* Pastki burchakdagi kartochka: yangi nishon va "Saqlanganlar kutyapti" */
.float-card {
    position: fixed; z-index: 80; left: 24px; bottom: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
    width: min(420px, calc(100vw - 32px)); padding: 16px 44px 16px 16px; border-radius: 18px; background: var(--bg-2);
    box-shadow: 0 24px 60px -16px rgb(0 0 0 / 0.6), 0 0 0 1px oklch(var(--veil) / 0.08);
    opacity: 0; transform: translateY(20px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.float-card.is-open { opacity: 1; transform: none; }
.float-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
.float-text { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.float-text small { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.float-text small .icon { width: 14px; height: 14px; }
.float-text b { font-size: 1.02rem; line-height: 1.3; }
.float-text span { color: var(--ink-2); font-size: 0.88rem; }
.float-text .btn, .float-text .text-link { margin-top: 6px; }
.float-poster { width: 64px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.float-poster img { width: 100%; height: 100%; object-fit: cover; }
.float-medal { position: relative; display: grid; place-items: center; padding: 6px; }
.float-burst { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgb(255 163 26 / 0.35), transparent 65%); animation: burst 1.6s ease-out 2; pointer-events: none; }
@keyframes burst { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.badge-toast .medal { animation: medal-in 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes medal-in { from { transform: scale(0.3) rotate(-30deg); } }
@media (max-width: 760px) {
    .float-card { left: 16px; right: 16px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
    .level-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .float-burst, .badge-toast .medal { animation: none; } }

/* ================================================================ telefon -- pult (/pult/<kod>) */
.remote { display: grid; gap: 16px; width: min(100%, 480px); margin: 0 auto; padding: 6px var(--gutter) calc(48px + var(--tabbar-h)); -webkit-tap-highlight-color: transparent; }
.remote button { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; }
.rm-brand { display: inline-flex; align-items: center; gap: 9px; font: 800 1.12rem/1.2 var(--font-display); }
.rm-brand .icon { width: 22px; height: 22px; color: var(--amber); }
.rm-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-size: 0.8rem; font-weight: 600; }
.rm-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.rm-status.is-online { color: var(--ink-2); }
.rm-status.is-online i { background: #34c759; box-shadow: 0 0 0 3px rgb(52 199 89 / 0.2); animation: rm-pulse 2.4s ease-in-out infinite; }
@keyframes rm-pulse { 50% { box-shadow: 0 0 0 6px rgb(52 199 89 / 0.08); } }

/* ---- hozir ko'rsatilayotgan */
.rm-now { position: relative; overflow: hidden; border-radius: 24px; background: var(--bg-2); isolation: isolate; }
.rm-now.is-playing { display: grid; gap: 0; padding: 0 18px 18px; }
.rm-art { position: relative; height: 72px; transition: height 0.4s var(--ease); margin: 0 -18px; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); z-index: -1; }
.rm-art.has-image { height: 168px; }
.rm-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; animation: rm-fade 0.6s var(--ease) both; }
.rm-art img.is-poster { filter: blur(26px) saturate(1.3); transform: scale(1.4); opacity: 0.75; }
.rm-art-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, color-mix(in oklab, var(--bg-2) 70%, transparent) 62%, var(--bg-2) 100%); }
@keyframes rm-fade { from { opacity: 0; transform: scale(1.04); } }
.rm-info { display: grid; gap: 4px; margin-top: -40px; min-width: 0; }
.rm-art.has-image + .rm-info { margin-top: -54px; }
.rm-info small { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rm-info small i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rm-title { font: 800 1.35rem/1.2 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; text-shadow: 0 2px 16px rgb(0 0 0 / 0.4); }
.rm-episode { color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.rm-episode:empty { display: none; }

.rm-seek { position: relative; margin-top: 16px; padding: 12px 0; cursor: pointer; touch-action: none; outline: none; }
.rm-track { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--bg-4); transition: height 0.15s; }
.rm-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--amber-fill); transform-origin: left; transform: scaleX(0); }
.rm-knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.45); transition: transform 0.15s; }
.rm-now.is-scrubbing .rm-track { height: 10px; }
.rm-now.is-scrubbing .rm-knob { transform: scale(1.35); }
.rm-seek:focus-visible .rm-knob { box-shadow: 0 0 0 4px var(--amber-soft), 0 2px 8px rgb(0 0 0 / 0.45); }
.rm-bubble { position: absolute; bottom: 30px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.82rem; font-weight: 800; pointer-events: none; }
.rm-times { display: flex; justify-content: space-between; margin-top: -4px; color: var(--ink-3); font-size: 0.8rem; font-weight: 600; }

.rm-transport { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }
.rm-round { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--ink); background: oklch(var(--veil) / 0.07); transition: transform 0.12s, background-color 0.15s; }
.rm-round .icon { width: 26px; height: 26px; }
.rm-round:active { transform: scale(0.9); background: oklch(var(--veil) / 0.16); }
.rm-play { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--amber-fill); color: var(--amber-ink);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), inset 0 -2px 0 oklch(0.6 0.16 55 / 0.55), 0 12px 30px -12px oklch(0.8 0.165 68 / 0.75);
    transition: transform 0.12s; }
.rm-play .icon { width: 32px; height: 32px; }
.rm-play.is-paused .icon { margin-left: 4px; }
.rm-play:active { transform: scale(0.92); }
.rm-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: center; margin-top: 14px; padding: 9px 16px; border-radius: 999px;
    background: oklch(var(--veil) / 0.07); color: var(--ink); font-size: 0.88rem; font-weight: 700; }
.rm-next .icon { width: 18px; height: 18px; }
.rm-next[hidden] { display: none; }
.rm-next:active { background: oklch(var(--veil) / 0.16); }

.rm-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rm-chip { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--bg-3); text-align: left; transition: background-color 0.15s, transform 0.12s; }
.rm-chip:active { transform: scale(0.97); background: var(--bg-4); }
.rm-chip > .icon { flex: none; width: 20px; height: 20px; color: var(--amber); }
.rm-chip span { display: grid; min-width: 0; }
.rm-chip small { color: var(--ink-3); font-size: 0.7rem; font-weight: 600; }
.rm-chip b { overflow: hidden; color: var(--ink); font-size: 0.88rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.rm-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

.rm-idle { display: flex; align-items: center; gap: 14px; padding: 20px 18px; color: var(--ink-3); font-size: 0.88rem; line-height: 1.45; }
.rm-idle-mark { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--amber-soft); color: var(--amber); }
.rm-idle-mark .icon { width: 26px; height: 26px; }
.rm-idle b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 1rem; }

/* ---- pult: yo'nalish tugmalari, ovoz, asosiy tugmalar */
.rm-pad { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'dpad side' 'keys keys'; gap: 18px 14px; align-items: center; padding: 20px 18px; border-radius: 24px;
    background: linear-gradient(180deg, var(--bg-2), color-mix(in oklab, var(--bg-2) 60%, var(--bg))); }
.rm-dpad { grid-area: dpad; position: relative; justify-self: center; width: min(62vw, 236px); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--bg-3), color-mix(in oklab, var(--bg-3) 80%, var(--bg)));
    box-shadow: inset 0 1px 0 oklch(var(--veil) / 0.06), 0 14px 30px -16px rgb(0 0 0 / 0.65); }
.rm-dpad button { position: absolute; display: grid; place-items: center; width: 33.3%; height: 33.3%; color: var(--ink-2); transition: color 0.12s, transform 0.12s; }
.rm-dpad button .icon { width: 30px; height: 30px; }
.rm-dpad button:active { color: var(--amber); transform: scale(0.88); }
.rm-dpad .is-up { left: 33.3%; top: 0; }
.rm-dpad .is-down { left: 33.3%; bottom: 0; }
.rm-dpad .is-left { left: 0; top: 33.3%; }
.rm-dpad .is-right { right: 0; top: 33.3%; }
.rm-dpad .is-ok { left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; background: var(--bg-2); color: var(--ink); font: 800 1.05rem var(--font-display);
    box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.6), inset 0 1px 0 oklch(var(--veil) / 0.06); }
.rm-dpad .is-ok:active { background: var(--amber-fill); color: var(--amber-ink); transform: scale(0.94); }
.rm-side { grid-area: side; }
.rm-rocker { display: grid; justify-items: center; gap: 6px; width: 64px; padding: 6px; border-radius: 999px; background: var(--bg-3); box-shadow: inset 0 1px 0 oklch(var(--veil) / 0.06); }
.rm-rocker button { display: grid; place-items: center; width: 52px; height: 64px; border-radius: 999px; color: var(--ink); transition: background-color 0.12s, transform 0.12s; }
.rm-rocker button:active { background: var(--bg-4); transform: scale(0.92); }
.rm-rocker .icon { width: 22px; height: 22px; }
.rm-minus { width: 16px; height: 2.5px; border-radius: 2px; background: currentColor; }
.rm-level { position: relative; width: 6px; height: 56px; border-radius: 6px; background: var(--bg-4); overflow: hidden; }
.rm-level i { position: absolute; inset: 0; background: var(--amber-fill); transform-origin: bottom; transform: scaleY(0); transition: transform 0.3s var(--ease); }
.rm-keys { grid-area: keys; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rm-key { display: grid; justify-items: center; gap: 5px; padding: 11px 6px 10px; border-radius: 16px; background: var(--bg-3); color: var(--ink); font-size: 0.74rem; font-weight: 700; transition: background-color 0.12s, transform 0.12s; }
.rm-key .icon { width: 20px; height: 20px; }
.rm-key:active { transform: scale(0.95); background: var(--bg-4); }
.rm-key.is-on { color: var(--amber); }

/* ---- qidiruv */
.rm-search { display: grid; gap: 10px; }
.rm-search h2 { font: 800 1.08rem var(--font-display); }
.rm-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent; transition: border-color 0.15s; }
.rm-field:focus-within { border-color: var(--amber); }
.rm-field .icon { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.rm-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 500 1rem var(--font-body); }
.rm-results { display: grid; gap: 6px; }
.rm-results button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 14px; background: var(--bg-2); text-align: left; }
.rm-results button:active { background: var(--bg-3); }
.rm-thumb { aspect-ratio: 2 / 3; border-radius: 7px; overflow: hidden; background: var(--bg-3); }
.rm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rm-res-text { display: grid; min-width: 0; }
.rm-res-text b { overflow: hidden; font-size: 0.95rem; white-space: nowrap; text-overflow: ellipsis; }
.rm-res-text small { color: var(--ink-3); }
.rm-res-play { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber-fill); color: var(--amber-ink); }
.rm-res-play .icon { width: 16px; height: 16px; margin-left: 2px; }
.rm-none { padding: 12px; color: var(--ink-3); text-align: center; }

/* ---- pastdan chiqadigan tanlov ro'yxati */
.rm-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / 0); transition: background-color 0.22s; }
.rm-sheet[hidden] { display: none; }
.rm-sheet.is-open { background: rgb(0 0 0 / 0.55); }
.rm-sheet-panel { width: min(100%, 480px); max-height: min(78vh, 640px); overflow: auto; overscroll-behavior: contain; padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: var(--bg-2); box-shadow: 0 -20px 50px -20px rgb(0 0 0 / 0.6);
    transform: translateY(100%); transition: transform 0.26s var(--ease); }
.rm-sheet.is-open .rm-sheet-panel { transform: none; }
.rm-grip { display: block; width: 40px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: var(--bg-4); }
.rm-sheet h3 { margin: 0 4px 10px; font: 800 1.1rem var(--font-display); }
.rm-sheet-body { display: grid; gap: 4px; }
.rm-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; color: var(--ink); text-align: left; font-size: 0.98rem; font-weight: 600; transition: background-color 0.12s; }
.rm-option span { display: grid; gap: 2px; }
.rm-option small { color: var(--ink-3); font-size: 0.78rem; font-weight: 500; }
.rm-option:active { background: var(--bg-3); }
.rm-option.is-on { background: var(--amber-soft); color: var(--amber); }
.rm-option .icon { flex: none; width: 20px; height: 20px; }
.rm-seasons { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 4px; scrollbar-width: none; }
.rm-seasons button { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: 0.86rem; font-weight: 700; }
.rm-seasons button.is-on { background: var(--amber-fill); color: var(--amber-ink); }
.rm-eps { display: grid; gap: 6px; }
.rm-ep { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 6px; border-radius: 14px; text-align: left; }
.rm-ep:active { background: var(--bg-3); }
.rm-ep.is-on { background: var(--amber-soft); }
.rm-ep[disabled] { opacity: 0.45; }
.rm-ep-still { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--bg-3); color: var(--ink-3); }
.rm-ep-still img { width: 100%; height: 100%; object-fit: cover; }
.rm-ep-still .icon { width: 22px; height: 22px; }
.rm-ep-still i { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--amber-fill); color: var(--amber-ink); font: 800 0.66rem var(--font-body); font-style: normal; }
.rm-ep-text { display: grid; gap: 3px; min-width: 0; }
.rm-ep-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.92rem; line-height: 1.3; }
.rm-ep.is-on .rm-ep-text b { color: var(--amber); }
.rm-ep-text small { color: var(--ink-3); font-size: 0.78rem; }
.rm-wait { padding: 18px; color: var(--ink-3); text-align: center; }
@media (prefers-reduced-motion: reduce) { .rm-sheet-panel, .rm-art img { transition: none; animation: none; } }

/* ================================================================ SaraFilm TV (jonli efir) */
.nav-live { display: inline-flex; align-items: center; gap: 7px; }
.nav-live i { width: 7px; height: 7px; border-radius: 50%; background: #e52222; box-shadow: 0 0 0 0 rgb(229 34 34 / 0.6); animation: tv-pulse 2s ease-out infinite; }
@keyframes tv-pulse { 0% { box-shadow: 0 0 0 0 rgb(229 34 34 / 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(229 34 34 / 0); } }

.tv { --tv-accent: #e52222; display: grid; gap: 20px; padding-bottom: 48px; position: relative; }
.tv::before {
    content: ''; position: absolute; inset: calc(-1 * var(--header-h)) calc(50% - 50vw) auto; height: min(760px, calc(100% + var(--header-h))); z-index: -1; pointer-events: none;
    background: radial-gradient(60% 70% at 30% 0%, color-mix(in oklab, var(--tv-accent) 22%, transparent), transparent 70%);
    transition: background 1.2s ease;
}
.tv-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 20px; padding-top: 8px; }
.tv-brand { display: flex; align-items: center; gap: 12px; }
.tv-logo { font: 900 1.55rem/1 var(--font-display); letter-spacing: -0.02em; }
.tv-logo b { color: var(--amber); font-weight: 900; }
.tv-logo em { font-style: normal; margin-left: 6px; padding: 3px 7px 2px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 0.8em; vertical-align: 0.1em; }
.tv-live-pill, .tv-onair { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tv-live-pill { padding: 6px 11px 5px 9px; border-radius: 6px; background: #e52222; color: #fff; font-size: 0.74rem; }
.tv-live-pill i, .tv-onair i, .tv-tag.is-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live-dot 1.5s ease-in-out infinite; }
.tv-onair { color: #ff4d4d; font-size: 0.78rem; }
.tv-sub { color: var(--ink-3); font-size: 0.95rem; }
.tv-clock { font: 800 1.6rem/1 var(--font-display); color: var(--ink-2); letter-spacing: 0.02em; }

.tv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.tv-stage { display: grid; gap: 18px; min-width: 0; }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7); }
.tv-screen > .play-page.play-inline { height: 100%; }
.tv-screen .player-close { display: none; }
/* Nom ekran ostidagi panelda turadi -- pleer tepasida takrorlanmaydi (kanal belgisi bilan to'qnashmasin). */
.tv-screen .player-title { visibility: hidden; }
.tv-screen::after {
    content: 'SARAFILM TV'; position: absolute; z-index: 3; top: 18px; right: 22px; pointer-events: none;
    font: 900 0.8rem/1 var(--font-display); letter-spacing: 0.12em; color: rgb(255 255 255 / 0.42); text-shadow: 0 1px 6px rgb(0 0 0 / 0.5);
}
.tv-screen:has(.paywall)::after, .tv-screen:has(.tv-guest)::after, .tv-screen:has(.tv-switch)::after { display: none; }
.tv-screen .paywall { min-height: 0; }

.tv-guest, .tv-switch, .tv-blank { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; }
.tv-guest img, .tv-switch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-guest::before, .tv-switch::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.25) 60%, rgb(0 0 0 / 0.1)), linear-gradient(90deg, rgb(0 0 0 / 0.6), transparent 60%); }
.tv-guest-body, .tv-switch-body { position: relative; z-index: 2; display: grid; gap: 12px; justify-items: start; max-width: 560px; padding: clamp(20px, 4vw, 44px); }
.tv-guest-body .player-live-badge { position: static; }
.tv-guest-body h2, .tv-switch-body h2 { font: 800 clamp(1.4rem, 2.8vw, 2.2rem)/1.1 var(--font-display); }
.tv-guest-body p { color: rgb(255 255 255 / 0.82); }
.tv-switch img { filter: blur(6px) brightness(0.7); transform: scale(1.05); }
.tv-switch-body small { color: rgb(255 255 255 / 0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.tv-switch-body p { color: rgb(255 255 255 / 0.75); }
.tv-switch-count { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--amber-fill); font: 800 1.4rem var(--font-display); }
.tv-blank { justify-content: center; align-items: center; color: rgb(255 255 255 / 0.7); }
.tv-kids { flex-direction: column; gap: 16px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, #233, #000); }
.tv-kids b { display: block; margin-bottom: 6px; color: #fff; font-size: 1.15rem; }
.tv-item-title.is-hidden { color: var(--ink-3); font-style: italic; }

.tv-now { display: grid; gap: 18px; padding: 22px 24px; border-radius: 18px; background: var(--bg-2); }
.tv-kicker { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }
.tv-title { margin-top: 8px; font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--font-display); text-wrap: balance; }
.tv-facts { margin-top: 6px; color: var(--ink-2); }
.tv-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-3); font-size: 0.88rem; font-weight: 600; }
.tv-bar { display: block; height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.tv-bar i { display: block; height: 100%; background: #e52222; transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.tv-left { margin-top: 8px; color: var(--ink-3); font-size: 0.88rem; }
.tv-now-side { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tv-now-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-now-actions .icon { width: 17px; height: 17px; }
.tv-next { display: grid; grid-template-columns: 112px minmax(0, 260px); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg-3); transition: background-color 0.2s; }
.tv-next:hover { background: var(--bg-4); }
.tv-next-art { aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--bg-4); }
.tv-next-art img { width: 100%; height: 100%; object-fit: cover; }
.tv-next-text { display: grid; gap: 2px; }
.tv-next-text small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.tv-next-text small b { color: var(--ink-2); }
/* Faqat film nomi (to'g'ridan-to'g'ri bola): vaqtdagi <b> ham blokka aylanib, "Keyingisi · 20:56" uch qatorga bo'linardi. */
.tv-next-text > b { font-size: 0.95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Ro'yxat kartochka ichida o'zi aylantiriladi -- kartochkadan (va footer ustiga) to'kilmaydi. */
.tv-guide { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 18px 8px 8px 18px; border-radius: 18px; background: var(--bg-2); max-height: calc(100vh - var(--header-h) - 40px); overflow: hidden; }
.tv-guide h2 { font-size: 1.3rem; padding-right: 10px; }
.tv-list { overflow-y: auto; min-height: 0; display: grid; align-content: start; gap: 2px; padding-right: 10px; scrollbar-width: thin; scroll-behavior: smooth; }
.tv-slot { position: sticky; top: 0; z-index: 1; padding: 12px 0 6px; background: var(--bg-2); color: var(--ink-3); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tv-item { display: grid; grid-template-columns: 44px 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background-color 0.2s; }
.tv-item:hover { background: var(--bg-3); }
.tv-item time { font-weight: 700; color: var(--ink-2); }
.tv-item-art { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-4); }
.tv-item-art img { width: 100%; height: 100%; object-fit: cover; }
.tv-item-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(0 0 0 / 0.5); }
.tv-item-bar i { display: block; height: 100%; background: #e52222; transform-origin: left; transform: scaleX(0); }
.tv-item-text { display: grid; gap: 2px; min-width: 0; }
.tv-item-title { font-weight: 700; font-size: 0.93rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-item-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tv-item-meta .tv-tag { flex: none; }
.tv-item-title:hover { color: var(--amber); }
.tv-item-text span { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-item.is-past { opacity: 0.45; }
.tv-item.is-live { background: color-mix(in oklab, #e52222 12%, var(--bg-3)); box-shadow: inset 3px 0 0 #e52222; }
.tv-item.is-live time { color: #ff5a5a; }
.tv-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--bg-4); color: var(--ink-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; }
.tv-tag.is-live { background: #e52222; color: #fff; }
.tv-tag.is-live i { width: 6px; height: 6px; }
.tv-tag.is-premium { background: none; color: var(--amber); padding: 0; }
.tv-tag.is-premium .icon { width: 16px; height: 16px; }

/* Bosh sahifadagi "Hozir efirda" qatori */
.tv-strip { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px 20px 12px 12px; border-radius: 18px; background: var(--bg-2); transition: background-color 0.2s; }
.tv-strip:hover { background: var(--bg-3); }
.tv-strip-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-4); }
.tv-strip-art img { width: 100%; height: 100%; object-fit: cover; }
.tv-strip-art .player-live-badge { top: 8px; left: 8px; font-size: 0.66rem; padding: 4px 8px 4px 7px; }
.tv-strip-text { display: grid; gap: 4px; min-width: 0; }
.tv-strip-text small { color: var(--ink-3); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tv-strip-text b { font: 800 1.3rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-strip-time { display: grid; grid-template-columns: auto minmax(80px, 240px); align-items: center; gap: 12px; color: var(--ink-2); font-size: 0.88rem; font-weight: 600; }
.tv-strip-next { color: var(--ink-3); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
    .tv-layout { grid-template-columns: minmax(0, 1fr); }
    .tv-guide { position: static; max-height: none; padding: 16px 6px 8px 14px; }
    .tv-list { max-height: 560px; }
}
@media (max-width: 760px) {
    .tv { gap: 14px; }
    .tv-head { grid-template-columns: 1fr auto; }
    .tv-sub { grid-column: 1 / -1; order: 3; font-size: 0.88rem; }
    .tv-logo { font-size: 1.3rem; }
    .tv-clock { font-size: 1.25rem; }
    .tv-screen { margin-inline: calc(var(--gutter) * -1); border-radius: 0; aspect-ratio: auto; min-height: 56vw; }
    .tv-screen > .play-page.play-inline { height: auto; }
    .tv-guest, .tv-switch, .tv-blank { position: relative; min-height: 62vw; }
    /* Ekranning o'zida (pleer yoki kirish oynasi) "JONLI" belgisi bor -- sarlavhada takrorlanmaydi. */
    .tv-live-pill { display: none; }
    .tv-now { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px 16px; }
    .tv-title { margin-top: 6px; }
    .tv-progress { margin-top: 14px; }
    /* grid: ustunli flex ichida o'raladigan tugmalar qatori balandligini "ikki qatordek" (100px) hisoblardi */
    .tv-now-side { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: stretch; gap: 12px; padding-top: 14px; }
    /* Tugmalar karta fonida ko'rinmasdi (ikkalasi ham --bg-2) -- teng kenglikdagi aniq tugmalar. */
    .tv-now-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .tv-now-actions .btn { --btn-bg: var(--bg-3); flex: 1 1 140px; justify-content: center; min-height: 46px; padding-inline: 12px; white-space: nowrap; }
    .tv-next { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 8px 12px 8px 8px; }
    .tv-next-text { gap: 4px; }
    /* Dastur sahifaning o'zi bilan aylanadi: telefonda ichki aylantirish (va kesilib qoladigan yopishqoq sarlavhalar) yo'q. */
    .tv-guide { gap: 4px; padding: 16px 10px 10px; }
    .tv-guide h2 { padding: 0 6px; }
    .tv-list { max-height: none; overflow: visible; padding-right: 0; }
    .tv-slot { position: static; padding: 16px 6px 6px; background: none; }
    .tv-item { grid-template-columns: 46px 80px minmax(0, 1fr); gap: 10px; padding: 7px 6px; }
    .tv-item time { font-size: 0.92rem; }
    .tv-strip { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .tv-strip-go { display: none; }
    .tv-strip-text b { font-size: 1.05rem; }
    .tv-strip-time { grid-template-columns: auto minmax(40px, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .nav-live i, .tv-live-pill i, .tv-onair i, .tv-tag.is-live i { animation: none; } }

/* ================================================================ bayram bezagi (frontend/js/holiday.js) */
.brand { position: relative; }
.holiday-mark {
    position: absolute; left: 22px; top: -8px; width: 20px; height: 20px; pointer-events: none;
    filter: drop-shadow(0 1px 3px oklch(0 0 0 / 0.45)); animation: holiday-bob 3.2s ease-in-out infinite;
}
.holiday-mark svg { width: 100%; height: 100%; }
:root[data-holiday='newyear'] .holiday-mark { color: #cfe9ff; }
@keyframes holiday-bob { 50% { transform: translateY(-2px) rotate(8deg); } }

/* Bosh sahifa banneri: tabrik yorlig'i va bezak qatlami (bosilishga xalaqit bermaydi). */
:root[data-holiday] .hero::before, :root[data-holiday] .hero::after { position: absolute; z-index: 4; pointer-events: none; }
:root[data-holiday] .hero::before { content: ''; inset: 0; }
:root[data-holiday] .hero::after {
    /* Banner chetdan-chetga, sarlavha uning ustida -- yorliq sarlavha qatoridan pastda turadi (tugmalar ostida qolmasin) */
    content: var(--greet); top: calc(var(--header-h) + env(safe-area-inset-top) + 14px); right: calc((100% - var(--hero-w)) / 2 + 24px);
    /* Sarlavha tugmalari bilan bir oila: qorong'i shisha, ingichka chegara, chap tomonda chiziqli belgi */
    padding: 9px 15px 9px 38px; border-radius: 12px; font: 600 0.86rem/1.2 var(--font-display); letter-spacing: 0.015em;
    color: oklch(0.96 0.01 240); background: var(--greet-icon) 14px 50% / 16px 16px no-repeat, oklch(0.16 0.012 250 / 0.62);
    border: 1px solid oklch(1 0 0 / 0.12); box-shadow: 0 8px 28px oklch(0 0 0 / 0.32), inset 0 1px 0 oklch(1 0 0 / 0.06);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
/* Sarlavhadagi menyu (hisob, til) ochilganda yorliq menyu ortidan chiqib turmasin -- yashiriladi. */
:root[data-holiday]:has(.site-header [aria-expanded='true']) .hero::after { opacity: 0; transform: translateY(-4px); }
:root[data-holiday='newyear'] {
    --greet: 'Yangi yilingiz bilan!';
    --greet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9d8ff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5M3.6 10.4l3.4-.9-.9-3.4M20.4 13.6l-3.4.9.9 3.4M3.6 13.6l3.4.9-.9 3.4M20.4 10.4l-3.4-.9.9-3.4'/%3E%3C/svg%3E");
}
:root[data-holiday='navruz'] {
    --greet: 'Navroʻz muborak!';
    --greet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9fbd' stroke-width='1.8' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M12 9.4C10 6.5 10.5 3 12 2c1.5 1 2 4.5 0 7.4zM12 14.6c2 2.9 1.5 6.4 0 7.4-1.5-1-2-4.5 0-7.4zM9.4 12C6.5 14 3 13.5 2 12c1-1.5 4.5-2 7.4 0zM14.6 12c2.9-2 6.4-1.5 7.4 0-1 1.5-4.5 2-7.4 0z'/%3E%3C/svg%3E");
}
:root[data-holiday='ramadan'] {
    --greet: 'Ramazon muborak!';
    --greet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd36b' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M15.5 3.5A8.5 8.5 0 1 0 20.5 15 6.8 6.8 0 0 1 15.5 3.5z'/%3E%3C/svg%3E");
}
/* Qor: frontend/js/snow.js (canvas, chuqurlik va chayqalish bilan) -- banner ustida, bosishga xalaqit bermaydi. */
.snow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
/* Navro'z: pushti va oq gul barglari qiyalab tushadi. */
:root[data-holiday='navruz'] .hero::before {
    background-image:
        radial-gradient(5px 3px at 40px 50px, #ff8fb1 60%, transparent 72%), radial-gradient(4px 6px at 170px 140px, #ffd1de 60%, transparent 72%),
        radial-gradient(6px 4px at 100px 260px, #ff6f9c 60%, transparent 72%), radial-gradient(3px 5px at 300px 90px, #fff0f5 60%, transparent 72%),
        radial-gradient(5px 3px at 380px 330px, #8fd694 60%, transparent 72%);
    background-size: 260px 300px, 260px 300px, 360px 400px, 360px 400px, 460px 500px;
    animation: holiday-petals 22s linear infinite; opacity: 0.9;
}
@keyframes holiday-petals { to { background-position: 260px 300px, 260px 300px, 360px 800px, 360px 800px, 460px 1500px; } }
/* Ramazon: miltillovchi yulduzlar. */
:root[data-holiday='ramadan'] .hero::before {
    background-image:
        radial-gradient(2px 2px at 40px 30px, #ffe9a8 60%, transparent 70%), radial-gradient(1.5px 1.5px at 150px 90px, #fff 60%, transparent 70%),
        radial-gradient(2.5px 2.5px at 260px 50px, #ffd36b 60%, transparent 70%), radial-gradient(1.5px 1.5px at 330px 140px, #fff 60%, transparent 70%),
        radial-gradient(2px 2px at 90px 160px, #ffe9a8 60%, transparent 70%);
    background-size: 380px 220px; background-repeat: repeat-x; background-position: 0 24px;
    animation: holiday-twinkle 3.4s ease-in-out infinite alternate;
}
@keyframes holiday-twinkle { from { opacity: 0.35; } to { opacity: 1; } }
@media (max-width: 760px) {
    :root[data-holiday] .hero::after { top: calc(var(--header-h) + env(safe-area-inset-top) + 10px); right: 16px; font-size: 0.8rem; padding: 7px 12px 7px 32px; background-position: 11px 50%, 0 0; background-size: 14px 14px, auto; }
}
@media (prefers-reduced-motion: reduce) {
    :root[data-holiday] .hero::before, .holiday-mark { animation: none; }
}

/* ================================================================ yillik xulosa */
/* Fon: yilning №1 filmi afishasidan xira yorug'lik + uning rangi; ustida katta raqam va №1 kartasi. */
.recap { position: relative; isolation: isolate; display: grid; gap: clamp(48px, 6vw, 88px); padding-bottom: 48px; }
.recap::before {
    content: ''; position: absolute; inset: calc(-1 * var(--header-h)) 0 auto; height: min(980px, calc(100% + var(--header-h))); z-index: -1; pointer-events: none;
    background: radial-gradient(60% 55% at 78% 8%, color-mix(in oklab, var(--recap) 34%, transparent), transparent 70%),
                radial-gradient(50% 50% at 8% 0%, color-mix(in oklab, var(--amber) 14%, transparent), transparent 70%),
                linear-gradient(180deg, color-mix(in oklab, var(--recap) 10%, var(--bg)), var(--bg) 85%);
}
.recap-glow {
    position: absolute; z-index: -1; inset: calc(-1 * var(--header-h)) 0 auto; height: 760px; overflow: hidden; pointer-events: none; opacity: 0.32;
    -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
}
.recap-glow img { position: absolute; right: -5%; top: -10%; width: 70%; height: 120%; object-fit: cover; filter: blur(70px) saturate(1.4); }

.recap-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 80px); padding-top: clamp(28px, 6vw, 88px); }
.recap-hero-copy { display: grid; gap: 14px; }
.recap-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 600; }
.recap-year { padding: 4px 10px; border-radius: 8px; background: var(--amber-fill); color: var(--amber-ink); font: 800 0.95rem/1.2 var(--font-display); letter-spacing: 0.02em; }
.recap-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.18em; font: 900 clamp(4rem, 13vw, 11rem) / 0.86 var(--font-display); letter-spacing: -0.05em; }
/* "3,4": vergul kichikroq -- katta o'lchamda pastga osilib, ostidagi matnga tegmasin */
.recap-comma { font-size: 0.5em; margin: 0 0.04em; }
.recap-big .num {
    background: linear-gradient(180deg, var(--amber-hi), var(--amber) 55%, var(--amber-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.recap-unit { font-size: 0.42em; letter-spacing: -0.03em; color: var(--ink); }
.recap-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 44ch; line-height: 1.45; }
.recap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 10px; }
.recap-years { display: inline-flex; padding: 4px; border-radius: 12px; background: color-mix(in oklab, var(--bg-2) 80%, transparent); }
.recap-years a { padding: 8px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 700; font-size: 0.92rem; transition: background-color 0.2s, color 0.2s; }
.recap-years a:hover { color: var(--ink); }
.recap-years a[aria-pressed='true'] { background: var(--bg-4); color: var(--ink); }

.recap-hero-card { position: relative; display: grid; gap: 6px; width: clamp(200px, 22vw, 290px); }
.recap-hero-poster {
    display: block; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; background: var(--bg-3); rotate: 3deg;
    box-shadow: 0 40px 80px -30px color-mix(in oklab, var(--recap) 60%, #000), 0 0 0 1px oklch(1 0 0 / 0.08);
    transition: rotate 0.5s var(--ease), translate 0.5s var(--ease);
}
.recap-hero-card:hover .recap-hero-poster { rotate: 0deg; translate: 0 -4px; }
.recap-hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recap-hero-tag {
    position: absolute; top: 14px; left: -12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
    background: var(--amber-fill); color: var(--amber-ink); font: 800 0.82rem/1 var(--font-display); box-shadow: 0 10px 24px -8px oklch(0 0 0 / 0.5);
}
.recap-hero-tag .icon { width: 15px; height: 15px; }
.recap-hero-card > b { margin-top: 12px; font: 700 1.05rem/1.25 var(--font-display); }
.recap-hero-card > .muted { font-size: 0.9rem; }

/* raqamlar: bitta chiziqda, ingichka ajratgichlar bilan */
.recap-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    /* chiziqlar faqat kontent kengligida (.wrap chekkalariga chiqmaydi) */
    background: linear-gradient(var(--line-soft), var(--line-soft)) top / 100% 1px no-repeat,
                linear-gradient(var(--line-soft), var(--line-soft)) bottom / 100% 1px no-repeat;
    background-origin: content-box; background-clip: content-box;
}
.recap-facts div { display: grid; gap: 6px; padding: 22px 20px; }
.recap-facts div + div { border-left: 1px solid var(--line-soft); }
.recap-facts b { font: 800 clamp(2.2rem, 4vw, 3.2rem) / 1 var(--font-display); letter-spacing: -0.03em; }
.recap-facts span { color: var(--ink-3); font-size: 0.92rem; }

.recap-block { display: grid; gap: 18px; }
.recap-head { display: flex; align-items: baseline; gap: 14px; }
.recap-step { color: var(--amber); font: 800 0.9rem var(--font-display); letter-spacing: 0.08em; }
.recap-block h2, .recap-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* eng ko'p ko'rilganlar: reyting ro'yxati, vaqtga mos chiziq */
.recap-top { display: grid; gap: 8px; }
.recap-top a {
    display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 10px 18px 10px 14px;
    border-radius: 16px; background: color-mix(in oklab, var(--bg-2) 88%, transparent); transition: background-color 0.2s, translate 0.2s;
}
.recap-top a:hover { background: var(--bg-3); translate: 4px 0; }
.recap-top li:first-child a { background: linear-gradient(90deg, color-mix(in oklab, var(--item) 22%, var(--bg-2)), var(--bg-2) 70%); }
.recap-rank { font: 900 clamp(1.6rem, 2.4vw, 2.1rem) / 1 var(--font-display); color: var(--ink-3); text-align: center; letter-spacing: -0.04em; }
.recap-top li:first-child .recap-rank { color: var(--amber); }
.recap-top .poster { display: block; width: 56px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.recap-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recap-top-text { display: grid; gap: 10px; min-width: 0; }
.recap-top-text b { font-weight: 700; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap-meter { display: block; height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.recap-meter i { display: block; height: 100%; border-radius: inherit; background: var(--item); }
.recap-top-time { color: var(--ink-2); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

.recap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.recap-card { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.recap-genre { font: 900 clamp(2.2rem, 4.4vw, 3.4rem) / 1 var(--font-display); letter-spacing: -0.03em; color: var(--amber); }
.recap-bars { display: grid; gap: 12px; margin-top: 4px; }
.recap-bars li { display: grid; grid-template-columns: minmax(80px, 9em) 1fr 3.2em; align-items: center; gap: 14px; color: var(--ink-2); }
.recap-bars li.is-lead { color: var(--ink); font-weight: 600; }
.recap-bars .bar { height: 10px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.recap-bars .bar i { display: block; height: 100%; border-radius: inherit; background: color-mix(in oklab, var(--amber-fill) 55%, var(--bg-4)); }
.recap-bars li.is-lead .bar i { background: linear-gradient(90deg, var(--amber-lo), var(--amber-hi)); }
.recap-bars b { text-align: right; }
.recap-day { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
.recap-day .recap-head, .recap-day .recap-badge { grid-column: 1 / -1; }
.recap-cal { display: grid; width: 92px; border-radius: 16px; overflow: hidden; background: var(--bg-3); text-align: center; box-shadow: 0 0 0 1px var(--line-soft); }
.recap-cal span { padding: 6px 0; background: var(--amber-fill); color: var(--amber-ink); font: 800 0.74rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.recap-cal b { padding: 8px 0 12px; font: 900 2.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.recap-day-text { align-self: center; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.recap-day-text b { color: var(--ink); }
.recap-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 4px; padding: 9px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.recap-badge .icon { width: 18px; height: 18px; }

/* oylar: qiymati ustida, eng ko'p oy ajratilgan */
.recap-months {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; height: 260px; padding: 24px 22px 18px;
    border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-soft);
}
.recap-month { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; height: 100%; align-items: end; }
.recap-month-val { text-align: center; color: var(--ink-3); font-size: 0.78rem; font-weight: 600; min-height: 1em; }
.recap-month.is-best .recap-month-val { color: var(--amber); font-weight: 800; }
.recap-month-bar { display: block; width: 100%; max-width: 48px; justify-self: center; align-self: end; border-radius: 8px 8px 4px 4px; background: color-mix(in oklab, var(--amber-fill) 32%, var(--bg-4)); }
.recap-month.is-best .recap-month-bar { background: linear-gradient(180deg, var(--amber-hi), var(--amber-lo)); box-shadow: 0 10px 30px -10px var(--amber); }
.recap-month.is-empty .recap-month-bar { height: 4px !important; background: var(--bg-4); }
.recap-month-name { text-align: center; color: var(--ink-3); font-size: 0.8rem; }
.recap-month.is-best .recap-month-name { color: var(--ink); font-weight: 700; }
.recap-link { margin-top: 14px; }
.recap-link .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
    .recap-hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
    .recap-big { font-size: 6rem; }
    .recap-hero-card { margin-top: 8px; padding: 12px; border-radius: 16px; background: color-mix(in oklab, var(--bg-2) 85%, transparent); grid-template-columns: 72px minmax(0, 1fr); width: 100%; column-gap: 14px; align-items: center; align-content: center; }
    .recap-hero-poster { grid-row: 1 / span 3; rotate: 0deg; border-radius: 12px; }
    .recap-hero-tag { position: static; justify-self: start; }
    .recap-hero-card > b { margin-top: 0; }
    .recap-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .recap-facts div { padding: 16px 12px; }
    .recap-facts div:nth-child(3n + 1) { border-left: 0; }
    .recap-facts div:nth-child(n + 4) { border-top: 1px solid var(--line-soft); }
    .recap-facts b { font-size: 1.8rem; }
    .recap-facts span { font-size: 0.8rem; }
    .recap-top a { grid-template-columns: 28px 44px minmax(0, 1fr); gap: 12px; padding: 10px 12px; }
    .recap-top .poster { width: 44px; grid-row: span 2; }
    .recap-rank { grid-row: span 2; }
    .recap-top-time { grid-column: 3; margin-top: -6px; font-size: 0.82rem; color: var(--ink-3); }
    .recap-grid { grid-template-columns: minmax(0, 1fr); }
    .recap-months { gap: 4px; padding: 16px 10px 12px; height: 200px; }
    .recap-month-val { font-size: 0.6rem; }
    .recap-month-name { font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) { .recap-hero-poster, .recap-top a { transition: none; } }

/* ================================================================ izohlar */
.comments { display: grid; gap: 22px; max-width: 820px; }
.comments-head { display: grid; gap: 6px; }
.comments-head h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.comments-head p { font-size: 0.92rem; }
.comments-total { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--bg-3); color: var(--ink-2); font: 700 0.85rem var(--font-body); }
.comments-total[hidden] { display: none; }
.comment-form, .comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: var(--bg-3); color: var(--ink-2); font-weight: 700;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Yozish maydoni: matn va asboblar bitta kartochkada; faqat kartochka chegarasi fokusni ko'rsatadi. */
.composer {
    display: grid; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-soft);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.composer:hover { border-color: var(--line); }
.composer:focus-within {
    border-color: color-mix(in oklab, var(--amber-fill) 70%, transparent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--amber-fill) 14%, transparent);
}
.composer-text {
    display: block; width: 100%; min-height: 64px; max-height: 360px; padding: 16px 18px 8px; resize: none; overflow-y: auto;
    border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.55;
}
.composer-text::placeholder { color: var(--ink-3); }
.composer:focus-within .composer-text { min-height: 104px; }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 10px 12px; }
.composer-pill {
    position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer;
    background: var(--bg-3); color: var(--ink-2); font-size: 0.88rem; font-weight: 600; transition: background-color 0.2s, color 0.2s;
}
.composer-pill:hover { background: var(--bg-4); color: var(--ink); }
.composer-pill .icon { width: 16px; height: 16px; }
.composer-pill.act-rate.is-on { color: var(--amber); }
.composer-pill.act-rate.is-on .icon { fill: currentColor; }
.composer-spoiler:has(input:checked) {
    background: color-mix(in oklab, var(--amber-fill) 22%, var(--bg-3)); color: var(--amber);
    box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--amber-fill) 70%, transparent);
}
.composer-spoiler:has(input:focus-visible) { outline: 2px solid var(--amber-fill); outline-offset: 2px; }
.composer-count { margin-left: auto; color: var(--ink-3); font-size: 0.84rem; }
.composer-count.is-low { color: oklch(0.72 0.17 40); }
.composer-count[hidden] { display: none; }
.composer-hint { margin-left: auto; color: var(--ink-3); font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; }
.composer-count:not([hidden]) + .composer-hint { margin-left: 0; }
.composer:focus-within .composer-hint { opacity: 1; }
.composer-send {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px 0 18px; border-radius: 12px;
    background: var(--amber-fill); color: var(--amber-ink); font-weight: 700; font-size: 0.92rem;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.composer-send .icon { width: 16px; height: 16px; stroke-width: 2.4; transition: transform 0.2s var(--ease); }
.composer-send:not(:disabled):hover .icon { transform: translateX(3px); }
.composer-send:not(:disabled):active { transform: scale(0.97); }
.composer-send:disabled { background: var(--bg-3); color: var(--ink-3); cursor: default; }
.composer-send:focus-visible { outline: 2px solid var(--amber-fill); outline-offset: 2px; }
@media (hover: none), (max-width: 760px) { .composer-hint { display: none; } .composer-send { margin-left: auto; } .composer-count:not([hidden]) ~ .composer-send { margin-left: 0; } }
@media (hover: hover) and (min-width: 761px) { .composer-count[hidden] + .composer-hint { margin-left: auto; } }
.comment-form .comment-avatar { margin-top: 6px; }
@media (max-width: 760px) {
    .composer-text { padding: 14px 14px 6px; }
    .composer-bar { gap: 6px; padding: 6px 8px 8px; }
    .composer-pill { padding: 0 11px; gap: 6px; font-size: 0.84rem; }
    .composer-send { padding: 0 13px 0 15px; }
}
.comment-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); }
.comment-list { display: grid; gap: 4px; }
.comment { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.comment-main { display: grid; gap: 6px; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.92rem; }
.comment-head time { color: var(--ink-3); font-size: 0.85rem; }
.comment-rating { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: var(--amber-fill); color: var(--amber-ink); font-size: 0.78rem; font-weight: 800; }
.comment-rating .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; color: var(--ink); }
/* > -- faqat izohning o'zi: spoyler izohning ostidagi javoblar xiralashmasin */
.comment.is-spoiler > .comment-main > .comment-body { filter: blur(6px); user-select: none; pointer-events: none; }
.comment-reveal {
    justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--bg-3); color: var(--ink-2); font-size: 0.85rem; font-weight: 600;
}
.comment-reveal:hover { background: var(--bg-4); color: var(--ink); }
.comment-reveal .icon { width: 15px; height: 15px; }
.comment-actions { display: flex; gap: 4px; margin-left: -10px; }
.comment-actions:empty { display: none; }
.comment-actions .btn { color: var(--ink-3); }
.comment-actions .btn:hover { color: var(--ink); }
.comment-reported { font-size: 0.85rem; padding: 6px 10px; }
.comment-actions .btn .icon { width: 15px; height: 15px; }
/* Javoblar: bosh izoh ostida, chap chiziq bilan ajralgan ip */
.comment-replies { display: grid; gap: 2px; margin: 4px 0 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line-soft); }
.comment-replies:empty { display: none; }
.comment.is-reply { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 0; }
.comment.is-reply .comment-avatar { width: 32px; height: 32px; font-size: 0.85rem; }
.comment-to { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 0.85rem; }
.comment-to .icon { width: 12px; height: 12px; }
.reply-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); }
.reply-to { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.85rem; }
.reply-to .icon { width: 12px; height: 12px; }
.reply-text { min-height: 64px; resize: vertical; background: var(--bg-3); }
.reply-bar { display: flex; justify-content: flex-end; gap: 8px; }
/* Bildirishnomadan ochilgan izoh: bir necha soniya yorishib turadi */
.comment.is-target > .comment-main { animation: comment-flash 2.4s var(--ease) 0.3s; border-radius: 10px; }
@keyframes comment-flash { 0%, 60% { background: color-mix(in oklab, var(--amber) 14%, transparent); box-shadow: 0 0 0 8px color-mix(in oklab, var(--amber) 14%, transparent); } }
.tab small:empty { display: none; }
.comment-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 0 8px; text-align: center; color: var(--ink-3); }
.comment-empty[hidden] { display: none; }
.comment-empty .ill { width: 150px; }
.comment-empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 760px) {
    .comment-form, .comment { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
    .comment-avatar { width: 32px; height: 32px; }
}


.title-head { display: grid; grid-template-columns: clamp(200px, 22vw, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.title-poster { view-transition-name: poster; border-radius: 10px; box-shadow: var(--shadow-2); }
.title-poster img { opacity: 1 !important; }
.title-name { font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 800; overflow-wrap: anywhere; }
.title-original { margin-top: 10px; font-size: 1.08rem; color: var(--ink-2); }
.title-meta { margin-top: 10px; color: var(--ink-2); font-weight: 500; }

.scores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: 24px; }
.score { display: flex; align-items: center; gap: 12px; }
.score-sub { font-size: 0.86rem; line-height: 1.35; color: var(--ink-3); }
.score-sub b { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; }
.score-box {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 56px; height: 56px; padding: 2px 12px 0;
    border-radius: 10px; background: var(--ink); color: var(--bg); font: 700 1.41rem/1 var(--font-display);
}
.score-box.is-plain { background: transparent; color: var(--amber); border: 1px solid var(--line); }
.score-box .icon { width: 22px; height: 22px; margin-top: -3px; }
.title-info .chips { margin-top: 22px; }
.title-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.title-actions .btn:not(.btn-primary) { padding-inline: 17px; }
/* Asosiy tugma -- sahifadagi eng kuchli element: kattaroq, iliq nur bilan. */
@media (min-width: 761px) {
    .title-actions .btn-primary { min-height: 56px; padding-inline: 34px; font-size: 1.05rem; box-shadow: 0 10px 32px -10px color-mix(in oklab, var(--amber) 70%, transparent); }
    .title-actions .btn-primary:hover { box-shadow: 0 14px 40px -10px color-mix(in oklab, var(--amber) 85%, transparent); }
    .title-body > .tabs .tab { font-size: 1.02rem; }
}
/* Franshiza qatori: hozir ochiq qism ajralib turadi. */
.rail-parts .card.is-current .poster { box-shadow: 0 0 0 2px var(--amber); }
.rail-parts .card.is-current .card-role { color: var(--amber); font-weight: 600; }

.title-body { margin-top: clamp(32px, 4vw, 56px); }
/* Uzun film sahifasida bo'limlar qatori sarlavha ostida yopishib turadi -- istalgan joydan boshqa bo'limga o'tish mumkin */
.title-body > .tabs { position: sticky; top: var(--header-h); z-index: 20;
    background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab-panel { padding-top: 36px; min-height: 320px; }
.tab-panel > .section:first-child { margin-top: 0; }
.filter-chips { margin-bottom: 24px; }

/* O'ng ustun (kadrlar, ma'lumotlar) keng ekranda kattaroq: 1920px da ~500px. */
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, clamp(360px, 26vw, 560px)); gap: 40px clamp(32px, 4vw, 80px); }
/* Tavsif ostida qisqa xulosalar (oila uchun, mukofotlar) -- yonma-yon; o'ng ustun (kadrlar, ma'lumotlar) uzun
   bo'lgani uchun chap tomonda qoladigan bo'sh joyni to'ldiradi. */
.overview-main { display: grid; gap: 36px; align-content: start; min-width: 0; }
.ov-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.insight { padding: 20px 22px; border-radius: 16px; background: var(--bg-2); }
.insight-title { font: 700 1.05rem/1.2 var(--font-display); }
.insight-verdict { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 1.02rem; }
.insight-verdict .age-chip { margin: 0; }
.insight-verdict[data-level='mild'] { color: var(--green); }
.insight-verdict[data-level='moderate'] { color: var(--amber); }
.insight-verdict[data-level='severe'] { color: oklch(0.74 0.17 22); }
.insight-guide { display: grid; margin-top: 10px; }
.insight-guide li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; color: var(--ink-2); }
.insight-guide li:last-child { border-bottom: 0; }
.insight-stats { display: flex; gap: 24px; margin-top: 12px; color: var(--ink-3); font-size: 0.92rem; }
.insight-stats b { margin-right: 4px; color: var(--ink); font: 800 1.6rem/1 var(--font-display); }
.insight-awards { display: grid; gap: 12px; margin-top: 16px; }
.insight-awards li { display: flex; gap: 10px; align-items: flex-start; }
.insight-awards .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }
.insight-awards b { display: block; font-weight: 600; font-size: 0.94rem; }
.insight-awards small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 0.84rem; }
.insight-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--ink-3); font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.insight-more .icon { width: 16px; height: 16px; }
.insight-more:hover { color: var(--amber); }
.plot { max-width: 68ch; font-size: 1.16rem; line-height: 1.68; }
.plot-note { max-width: 68ch; margin-top: 12px; color: var(--ink-3); font-size: 0.92rem; }
.billing-block { display: grid; gap: 14px; margin-top: 30px; }
.billing-block div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.billing-block dt { font: 400 0.92rem var(--font-display); color: var(--ink-3); }
.billing-block dd { font: 600 1.08rem/1.35 var(--font-display); }
.billing-block a { transition: color 0.2s; }
.billing-block a:hover { color: var(--amber); }
.tags { margin-top: 30px; }

.facts { display: grid; align-content: start; }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { flex: none; color: var(--ink-3); font-size: 0.92rem; }
.facts dd { text-align: right; font-weight: 500; }
.facts a:hover { color: var(--amber); }
.facts-inline { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 48px; margin-top: 28px; max-width: 940px; }

/* Media: bir xil 16:9 kataklar (tik rasmlar -- afishalar -- 2:3, ikki katak balandlikda emas, alohida qatorda zich). */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.gallery-item {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); cursor: zoom-in;
}
.gallery:has(.is-tall) { grid-template-columns: repeat(auto-fill, minmax(min(170px, 46%), 1fr)); }
.gallery:has(.is-tall) .gallery-item:not(.is-tall) { grid-column: span 2; }
.gallery-item.is-tall { aspect-ratio: 2 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s, opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.08); }

/* "Umumiy" bo'limidagi kadrlar: taxlangan kartalar -- orqadagilari o'ng tomondan chiqib turadi (itv.uz uslubida). */
.overview-side { display: grid; gap: 28px; align-content: start; min-width: 0; }
.deck h2 { font-size: 1.3rem; margin-bottom: 14px; }
.deck-stack { position: relative; aspect-ratio: 16 / 9; margin-right: 36px; outline: none; }
.deck-card {
    position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); cursor: pointer;
    box-shadow: 0 10px 30px oklch(0 0 0 / 0.45); transform-origin: right center;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), filter 0.45s;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card[data-k='0'] { z-index: 4; cursor: zoom-in; }
.deck-card[data-k='1'] { z-index: 3; transform: translateX(16px) scale(0.92); filter: brightness(0.6); }
.deck-card[data-k='2'] { z-index: 2; transform: translateX(30px) scale(0.84); filter: brightness(0.4); }
.deck-card[data-k='3'] { z-index: 1; transform: translateX(30px) scale(0.84); opacity: 0; }
.deck-card[data-k='x'] { z-index: 0; opacity: 0; pointer-events: none; transform: translateX(-24px) scale(0.96); }
.deck-card[data-k='0']:hover img { transform: scale(1.03); }
.deck-card img { transition: transform 0.6s var(--ease); }
.deck-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-3); font-size: 0.9rem; }
.deck-nav .icon-btn { width: 36px; height: 36px; }
.section-head h2 small { margin-left: 6px; color: var(--ink-3); font-size: 0.6em; font-weight: 600; vertical-align: 0.15em; }
@media (max-width: 760px) { .deck-stack { margin-right: 28px; } }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } }

/* Aktyorlar va ijodiy guruh */
.key-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 4px 16px; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid var(--line-soft); }
.crew-body { display: grid; gap: 36px; }
.crew-group h2 { font-size: 1.25rem; margin-bottom: 14px; }
.crew-group h2 small { margin-left: 6px; color: var(--ink-3); font-size: 0.75em; font-weight: 600; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
.cast-grid .person-sub, .rail-cast .person-sub { color: var(--ink-2); }
@media (max-width: 760px) { .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } }

.episode { display: grid; grid-template-columns: clamp(150px, 22vw, 290px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.episode-still { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-3); display: grid; place-items: center; color: var(--ink-3); }
.episode-still img { width: 100%; height: 100%; object-fit: cover; }
.episode h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.episode-num { flex: none; min-width: 1.3em; font: 700 1.15rem/1 var(--font-display); color: var(--amber); }
.episode-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; color: var(--ink-3); font-size: 0.88rem; }
.episode-meta .ticket { font-size: 1rem; }
.episode-plot { margin-top: 10px; max-width: 72ch; color: var(--ink-2); font-size: 0.96rem; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--bg-3); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.video:hover .video-thumb img { transform: scale(1.05); }
.video-play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--amber-fill); color: var(--amber-ink); box-shadow: var(--shadow-2); transition: transform 0.3s var(--ease);
}
.video-play .icon { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.video:hover .video-play { transform: scale(1.12); }
.video-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: oklch(0.12 0.004 200 / 0.85); font-size: 0.8rem; font-weight: 600; }
.video h3 { margin-top: 12px; font-size: 1rem; font-weight: 600; line-height: 1.35; transition: color 0.2s; }
.video:hover h3 { color: var(--amber); }
.video p { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ink-3); font-size: 0.85rem; }
.video p .icon { width: 14px; height: 14px; }

.award-stats { display: flex; gap: 48px; margin-bottom: 20px; }
.award-stats b { display: block; font: 700 2.3rem/1 var(--font-display); color: var(--amber); }
.award-stats span { color: var(--ink-3); font-size: 0.92rem; }
.award { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.award-mark { color: var(--amber); padding-top: 2px; }
.award-name { font-weight: 600; }
.award-event { margin-top: 2px; color: var(--ink-3); font-size: 0.88rem; }
.award-people { margin-top: 6px; color: var(--ink-2); font-size: 0.92rem; }
.award-people a:hover { color: var(--amber); }
.award-status { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-3); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.award.is-winner .award-status { background: var(--amber-fill); border-color: var(--amber); color: var(--amber-ink); }

.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(32px, 5vw, 88px); }
.detail-block.is-wide { grid-column: 1 / -1; }
.detail-block h2 { font-size: 1.4rem; margin-bottom: 14px; }
.detail-block h3 { margin-top: 18px; font-size: 0.86rem; font-weight: 600; color: var(--ink-3); }
.inline-list { margin-top: 4px; color: var(--ink-2); font-size: 0.96rem; line-height: 1.6; }
.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 36px; }
.money span { display: block; color: var(--ink-3); font-size: 0.9rem; }
.money b { display: block; margin-top: 2px; font: 700 1.66rem/1.05 var(--font-display); }
.money small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 0.82rem; }
.pairs { max-height: 430px; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; }
.pairs li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem; }
.pairs span { color: var(--ink-2); }
.pairs small { color: var(--ink-3); }
.pairs b { font-weight: 600; text-align: right; }

.guide-item { border-bottom: 1px solid var(--line-soft); }
.guide-item summary {
    display: grid; grid-template-columns: minmax(0, 1.5fr) 84px minmax(70px, 1fr) 22px; gap: 16px; align-items: center;
    padding: 15px 0; cursor: pointer; list-style: none;
}
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary .icon { color: var(--ink-3); transition: transform 0.3s var(--ease); }
.guide-item[open] summary .icon { transform: rotate(180deg); }
.guide-name { font-weight: 600; }
.guide-level { font-size: 0.88rem; font-weight: 600; color: var(--ink-3); }
.guide-level[data-level='mild'] { color: var(--green); }
.guide-level[data-level='moderate'] { color: var(--amber); }
.guide-level[data-level='severe'] { color: oklch(0.74 0.17 22); }
.guide-bar { display: flex; height: 8px; overflow: hidden; border-radius: 99px; background: var(--bg-3); }
.guide-bar i[data-level='none'] { background: var(--bg-4); }
.guide-bar i[data-level='mild'] { background: var(--green); }
.guide-bar i[data-level='moderate'] { background: var(--amber-fill); }
.guide-bar i[data-level='severe'] { background: var(--crimson); }
.guide-item ul { display: grid; gap: 8px; padding: 0 0 18px; color: var(--ink-2); font-size: 0.94rem; max-width: 80ch; }
.guide-item li { position: relative; padding-left: 18px; }
.guide-item li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.guide-item > p { padding-bottom: 16px; }

/* ================================================================ katalog */
.filters { display: grid; gap: 16px; margin-bottom: 36px; }
.segmented {
    display: inline-flex; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-soft);
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
    flex: none; padding: 10px 18px; border-radius: 99px; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; white-space: nowrap;
    transition: color 0.2s, background-color 0.25s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed='true'] { background: var(--amber-fill); color: var(--amber-ink); }
.filter-more summary { display: none; list-style: none; width: fit-content; cursor: pointer; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px 14px; align-items: end; }
.filter-reset { justify-self: start; min-height: 50px; }
/* Tor ustunda tanlangan qiymat to'liq sig'ishi uchun: o'q belgisiga kamroq joy, sig'masa -- "…" bilan. */
.filter-row .select { padding-right: 34px; background-position: right 10px center; text-overflow: ellipsis; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--amber-fill); color: var(--amber-ink); font-size: 0.74rem; font-weight: 700; }

/* ================================================================ shaxs sahifasi */
.person-head {
    display: grid; grid-template-columns: clamp(220px, 24vw, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 76px); align-items: start;
    padding-top: clamp(20px, 3vw, 44px);
}
.person-portrait { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--bg-3); box-shadow: var(--shadow-2); }
.person-portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.person-portrait .poster-fallback { font-size: 5rem; }
.person-info h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 800; }
.person-jobs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--ink-2); font-weight: 500; }
.bio { margin-top: 24px; max-width: 70ch; color: var(--ink-2); line-height: 1.72; }
.bio p + p { margin-top: 12px; }
.bio.is-clamped { max-height: 12em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.bio-toggle { margin-top: 10px; font-weight: 600; }
.trivia { max-width: 82ch; }
.trivia li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); line-height: 1.66; }

/* ================================================================ janrlar */
.genre-index { display: grid; gap: 36px; }
.genre-row { display: grid; grid-template-columns: clamp(240px, 26vw, 380px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line-soft); }
.genre-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 16px 18px; overflow: hidden; border-radius: 10px; background: var(--bg-3); }
.genre-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.genre-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(0.14 0.004 200 / 0.92), oklch(0.14 0.004 200 / 0.15) 70%); }
.genre-tile:hover img { transform: scale(1.06); }
.genre-tile h2, .genre-tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); transition: color 0.2s; }
.genre-tile:hover h2, .genre-tile:hover h3 { color: var(--amber); }
.genre-subs { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.genre-subs a { font: 700 1.02rem/1.2 var(--font-display); color: var(--ink-2); transition: color 0.2s; }
.genre-subs a:hover { color: var(--amber); }
/* Filmlar soni: janr rasmining o'ng pastida, subjanr nomi yonida kichik raqam */
.genre-tile { justify-content: space-between; gap: 12px; }
.genre-count { flex: none; padding: 4px 9px; border-radius: 8px; background: oklch(0 0 0 / 0.45); color: #fff;
    font-size: 0.8rem; font-weight: 600; }
.genre-subs small { margin-left: 6px; color: var(--ink-3); font: 600 0.78rem/1 var(--font-body, inherit); }

.genre-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(360px, 56vh, 540px); padding-block: calc(var(--header-h) + 48px) 36px; }
.genre-hero.is-plain { min-height: 0; padding-top: clamp(20px, 3vw, 44px); }
.genre-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.genre-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: backdrop-in 1.2s var(--ease) both; }
.genre-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--bg) 2%, color-mix(in oklab, var(--bg) 55%, transparent) 50%, color-mix(in oklab, var(--bg) 35%, transparent)),
                linear-gradient(90deg, color-mix(in oklab, var(--bg) 85%, transparent), transparent 70%);
}
.genre-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; }
.genre-parent { margin-top: 8px; color: var(--amber); font-weight: 600; }
.genre-desc { margin-top: 12px; max-width: 64ch; color: var(--ink-2); font-size: 1.05rem; }
.genre-similar { margin-block: 20px 4px; }
.genre-list-head { align-items: center; margin-top: 28px; }
.field-inline .select { width: auto; min-width: 230px; min-height: 44px; }

/* ================================================================ qidiruv sahifasi */
.search-page-form { display: flex; gap: 10px; max-width: 720px; margin-bottom: 8px; }
.search-page-form .input { flex: 1; min-width: 0; }
/* AI yordamchi: ovoz markazda, yozish pastda qotgan. Boshlangach sahna ketadi, suhbat uning o'rnini oladi. */
body.is-assistant .site-footer { display: none; }
.assistant { --level: 0; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - var(--tabbar-h)); max-width: 880px; }
.assistant-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-block: 32px 24px; text-align: center; }
.assistant-stage h1 { margin: 26px 0 0; font-size: clamp(1.9rem, 5vw, 3rem); text-wrap: balance; }
.assistant-stage p { max-width: 46ch; margin: 0; text-wrap: pretty; }
.assistant.is-started .assistant-stage { display: none; }

.assistant-mic { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border: 0; border-radius: 50%; color: var(--amber-ink); background: var(--amber-fill); box-shadow: var(--shadow-2); cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s; }
.assistant-mic:hover { background: var(--amber-hi); transform: scale(1.04); }
.assistant-mic:active { transform: scale(0.96); transition-duration: 0.08s; }
.assistant-mic .icon { position: relative; width: 52px; height: 52px; stroke-width: 1.8; }
.assistant-ring { position: absolute; inset: -14px; border: 1px solid var(--amber); border-radius: 50%; opacity: 0.32; pointer-events: none; animation: assistant-breathe 3.6s var(--ease) infinite alternate; }
.assistant-ring + .assistant-ring { inset: -30px; opacity: 0.16; animation-delay: 0.5s; }
@keyframes assistant-breathe { to { transform: scale(1.05); } }

.assistant-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.assistant-log { display: grid; align-content: start; gap: 14px; padding-top: 20px; }
.assistant-log:empty { display: none; }
.assistant.is-started .assistant-log { flex: 1; }
.assistant-q { justify-self: end; max-width: min(82%, 620px); margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--bg-4); overflow-wrap: anywhere; }
.assistant-a { display: grid; gap: 14px; animation: assistant-in 0.4s var(--ease); }
.assistant-a > p { max-width: 62ch; margin: 0; line-height: 1.55; }
.assistant-wait { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.assistant-wait .spinner { width: 16px; height: 16px; margin: 0; border-width: 2px; }
@keyframes assistant-in { from { opacity: 0; transform: translateY(8px); } }

.assistant-dock { position: sticky; z-index: 5; bottom: var(--tabbar-h); margin-top: 16px; padding-block: 10px 14px; background: linear-gradient(to top, var(--bg) 78%, transparent); }
.assistant-status { margin: 0 0 10px; font-size: 0.92rem; color: var(--amber); text-align: center; }
.assistant-status[data-kind='error'] { color: var(--red-ink); }
.assistant-form { display: flex; align-items: center; gap: 8px; }
.assistant-form .input { flex: 1; min-width: 0; height: 50px; }
.assistant-form .btn { flex: none; width: 50px; height: 50px; padding: 0; }
.assistant-form #assistant-send[aria-busy] { opacity: 0.55; }
/* Kichik tugma: sahna yo'qolgach mikrofon shu yerda. Jonli holatda halqasi ovoz bilan kengayadi. */
.assistant-mic-small { position: relative; flex: none; display: none; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; color: var(--amber); background: var(--amber-soft); cursor: pointer; }
.assistant-mic-small .icon { width: 24px; height: 24px; }
.assistant.is-started .assistant-mic-small { display: grid; }
.assistant.is-live .assistant-mic-small { color: var(--amber-ink); background: var(--amber-fill); box-shadow: 0 0 0 calc(3px + var(--level) * 12px) var(--amber-soft); }
.assistant.is-live .assistant-ring { animation: none; transform: scale(calc(1 + var(--level) * 0.28)); opacity: calc(0.25 + var(--level) * 0.6); }

@media (max-width: 760px) {
    .assistant-stage { padding-block: 16px 12px; }
    .assistant-mic { width: 112px; height: 112px; }
    .assistant-mic .icon { width: 44px; height: 44px; }
    .assistant-hints { flex-wrap: nowrap; justify-content: flex-start; align-self: stretch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
    .assistant-hints::-webkit-scrollbar { display: none; }
    .assistant-hints .chip { flex: none; scroll-snap-align: start; }
    .assistant-dock { padding-bottom: 10px; }
}
@media (max-width: 380px) {
    .assistant-stage h1 { margin-top: 16px; }
    .assistant-mic { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    .assistant-ring, .assistant-a { animation: none; }
}

/* ================================================================ kirish / roʻyxatdan oʻtish */
.auth { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: calc(100dvh - var(--header-h)); margin-top: -8px; margin-bottom: -96px; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; background: var(--amber-fill); color: var(--amber-ink); }
.auth-side-inner { padding: clamp(36px, 6vw, 92px); margin-block: auto; }
.auth-slogan { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 800; }
.auth-points { display: grid; gap: 14px; margin-top: 40px; font-weight: 600; font-size: 1.05rem; }
.auth-points li { display: flex; align-items: center; gap: 14px; }
.auth-points .icon { width: 24px; height: 24px; }
.auth-main { display: grid; place-items: center; padding: clamp(36px, 6vw, 76px) var(--gutter); }
.auth-form { display: grid; gap: 18px; width: min(100%, 430px); }
.auth-form h1 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 800; }
.auth-lead { margin-top: -10px; color: var(--ink-2); }
.auth-form .btn-block { margin-top: 6px; }

/* ================================================================ profil */
.profile-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px;
    grid-template-areas: 'name notes' 'sessions sessions' 'speed danger';
}
#name-form { grid-area: name; }
.profile-grid > section:nth-of-type(1) { grid-area: notes; }
.profile-grid > section:nth-of-type(2) { grid-area: sessions; }
.profile-grid > section:nth-of-type(3) { grid-area: speed; }
#delete-form { grid-area: danger; }

/* Profil sarlavhasi: avatar, ism, ma'lumot qatori va tezkor havolalar */
.profile-hero {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
    padding: clamp(20px, 3vw, 40px) 0 clamp(20px, 2.5vw, 32px);
}
.profile-hero-avatar { width: 84px; height: 84px; border-radius: 22px; font-size: 1.6rem; cursor: default; }
.profile-hero-avatar:hover { transform: none; box-shadow: none; background: var(--amber-fill); }
.profile-hero-copy { display: grid; gap: 8px; min-width: 0; }
.profile-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; color: var(--ink-3); font-size: 0.92rem; }
.profile-hero-meta > span:not(.profile-plan) + span:not(.profile-plan)::before { content: '·'; margin: 0 10px; color: var(--ink-3); }
.profile-plan {
    display: inline-block; margin-left: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap;
    background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 0.84rem;
}
.profile-plan .icon { display: inline-block; width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }
.profile-hero-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Profildagi oddiy tugmalar panel fonida ko'rinsin (aks holda faqat matn bo'lib qoladi) */
.profile .panel .btn:not(.btn-primary):not(.btn-danger):not(.btn-ghost):not(.btn-tg),
.profile-hero .btn:not(.btn-primary) { --btn-bg: var(--bg-4); }
.profile .panel .btn:not(.btn-primary):not(.btn-danger):not(.btn-ghost):not(.btn-tg):hover,
.profile-hero .btn:not(.btn-primary):hover { --btn-bg: color-mix(in oklab, var(--bg-4), var(--ink) 8%); }

/* Sessiyalar: to'liq kenglikda, qurilmalar yonma-yon kartochka */
.profile .session-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.profile .session-list li { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bg-3); }
.profile .session-list .session-icon { background: var(--bg-4); }
.profile .session-list .btn { --btn-bg: var(--bg-4); }
.profile .panel-actions { padding-top: 4px; }

/* Xavfli zona: Internet tezligi yonida -- izoh, tasdiq va tugma */
#delete-form .danger-copy { display: grid; gap: 6px; }
#delete-form .danger-copy h2 { font-size: 1.15rem; }
#delete-form .danger-act { display: grid; justify-items: start; gap: 14px; }
#delete-form .form-alert { grid-column: 1 / -1; }
@media (max-width: 900px) {
    .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
    .profile-hero-links { grid-column: 1 / -1; justify-content: flex-start; }
}
.panel { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-soft); }
.panel h2 { font-size: 1.35rem; }
.panel .btn { justify-self: start; }
.panel-danger { border-color: oklch(0.63 0.21 20 / 0.35); }

.crew-name, .crew-role { display: block; }

/* ================================================================ moslashuv */
@media (max-width: 1020px) {
    .overview { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .rail-ranked { --w: 186px; }

    .title-hero { padding-top: calc(var(--header-h) + min(16vh, 150px)); }
    .title-backdrop { --bd-h: min(62vh, 560px); }
    .title-head { grid-template-columns: 1fr; gap: 20px; }
    .title-poster { width: 148px; }
    .title-name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .title-actions .btn { flex: 1 1 auto; padding-inline: 14px; min-height: 48px; font-size: 0.92rem; }
    .title-actions .btn-primary { flex-basis: 100%; }
    .plot { font-size: 1.05rem; }
    .billing-block div { grid-template-columns: 1fr; gap: 2px; }
    .billing-block dd { font-size: 1.02rem; }
    .gallery { --gh: 118px; gap: 6px; }
    .episode h3 { font-size: 1rem; }
    .episode-plot { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
    .guide-item summary { grid-template-columns: minmax(0, 1fr) auto 20px; }
    .guide-bar { display: none; }
    .award { grid-template-columns: 22px minmax(0, 1fr); }
    .award-status { grid-column: 2; justify-self: start; }

    .filter-more summary { display: inline-flex; }
    .filter-more[open] summary { margin-bottom: 14px; }
    .filter-row { grid-template-columns: 1fr 1fr; }

    .person-head { grid-template-columns: minmax(0, 1fr); }
    .person-portrait { width: min(62vw, 260px); }
    .genre-row { grid-template-columns: 1fr; }
    .genre-subs a { font-size: 0.95rem; }
    .field-inline .select { min-width: 0; }
    .search-page-form { flex-direction: column; }

    .auth { grid-template-columns: 1fr; min-height: 0; margin-bottom: -64px; }
    .auth-side-inner { padding: 28px var(--gutter); }
    .auth-slogan { font-size: 1.9rem; }
    .auth-points { display: none; }
    .profile-grid { grid-template-columns: 1fr; grid-template-areas: 'name' 'notes' 'sessions' 'speed' 'danger'; }
    .profile-hero-avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
    .profile-hero { gap: 14px 16px; padding-top: 12px; }
    .profile-hero-meta { display: grid; justify-items: start; gap: 4px; font-size: 0.86rem; }
    .profile-hero-meta > span + span::before { content: none !important; }
    .profile-plan { margin: 4px 0 0; }
    .profile-hero-links .btn { flex: 1; justify-content: center; }
    .closing-actions .btn { flex: 1; }
    /* Telefon: rasm ekran enicha (chetdan-chetga), sarlavha ostidan boshlanadi va pastda sahifa foniga silliq o'tadi.
       Nom logotipi, baholar va tugmalar o'rtada -- rasmning pastki, qorong'ilashgan qismida: yuzlarni yopmaydi. */
    .hero { --hero-w: 100%; --hero-gap: 0px; padding-top: calc(var(--header-h) + env(safe-area-inset-top)); }
    .hero-slide {
        height: auto; min-height: 0; background: var(--bg); transition: opacity 0.5s;
        flex-direction: column; align-items: stretch; justify-content: flex-end;
    }
    .hero-slide:not(.is-active) { opacity: 0; }
    .hero-slide::before { display: none; }
    .hero-bg {
        position: relative; inset: auto; z-index: 0; flex: none; height: auto; aspect-ratio: 5 / 4; object-position: 95% 30%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 52%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 52%, transparent 100%);
    }
    .hero-art { display: none; }
    .hero-slide.is-poster .hero-bg { filter: none; transform: none; opacity: 1; object-position: 50% 15%; }
    .hero-copy {
        position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
        width: 100%; margin-top: -30%; padding: 0 16px 6px;
    }
    .hero-dots { position: static; justify-content: center; margin-top: 18px; }
    .hero-dot, .hero-dot.is-active { background: var(--bg-4); }
    .hero-dot:hover { background: var(--ink-3); }
    .hero-logo img { margin-inline: auto; object-position: center bottom; max-height: 88px; max-width: 82%; }
    .hero-nav { display: none; }
    .hero-title { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
    .hero-plot { display: none; }
    .hero-rating { justify-content: center; margin-top: 14px; }
    .hero-votes { display: none; }
    .hero-meta { justify-content: center; margin-top: 8px; font-size: 0.92rem; }
    .hero-meta .hero-genres-sep { display: none; }
    .hero-meta .hero-genres { flex-basis: 100%; white-space: normal; margin-top: 2px; color: var(--ink-2); font-weight: 500; }
    /* Tugmalar bitta qatorda: Ko'rish -- asosiy, Batafsil, saqlash va ulashish -- ixcham. */
    .hero-actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 48px 48px; gap: 8px; width: 100%; margin-top: auto; padding-top: 18px; }
    .hero-actions .btn { min-width: 0; min-height: 48px; padding-inline: 8px; gap: 6px; font-size: 0.98rem; }
    .hero-actions .btn:not(.btn-primary) { --btn-bg: var(--bg-3); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .hero-actions .btn-share { width: 48px; padding: 0; }
    /* "Tez kunda": tugma yozuvi uzun, butun qatorni oladi. */
    .hero-actions:has(.btn-remind) { grid-template-columns: minmax(0, 1fr) 48px; }
    .hero-actions .btn-remind { grid-column: 1 / -1; }
}

@media (max-width: 359px) {
    /* Juda tor ekran: ulashish tugmasi film sahifasida bor -- bu yerda Ko'rish va Batafsil siqilmasin. */
    .hero-actions { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px; }
    .hero-actions [data-share] { display: none; }
    .hero-actions:has(.btn-remind) { grid-template-columns: minmax(0, 1fr); }
}


/* Sensorli ekran (planshet): slayd barmoq bilan suriladi, strelkalar kerak emas va matnni yopmaydi. */
@media (hover: none) {
    .hero-nav { display: none; }
}
@media (hover: none) and (min-width: 761px) and (max-width: 1200px) {
    .hero-copy { padding-left: clamp(20px, 2.4vw, 40px); }
}

/* ================================================================ iTV uslubi: sahifalar */
.genre-tile { border-radius: 14px; }
.genre-row { border-bottom: 0; padding-bottom: 0; }
.genre-subs { gap: 8px; }
.genre-subs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--bg-2); font: 500 0.9rem var(--font-body); }
.genre-subs a:hover { background: var(--bg-4); color: var(--ink); }
.score-box { border-radius: 12px; font-weight: 800; }
.score-box.is-plain { border: 0; background: var(--bg-2); }
.gallery-item, .episode-still, .video-thumb { border-radius: 12px; }
.panel { border-color: transparent; }
.auth-side { background: var(--bg-2); color: var(--ink); }
.auth-points .icon { color: var(--amber); }
.auth { margin-top: 0; }
.title-backdrop::after {
    background: linear-gradient(0deg, var(--bg) 3%, color-mix(in oklab, var(--bg) 78%, transparent) 42%, color-mix(in oklab, var(--bg) 35%, transparent) 100%),
                linear-gradient(90deg, color-mix(in oklab, var(--bg) 80%, transparent), transparent 62%);
}
.episode-num { font-weight: 800; }

/* ================================================================ seriallar */
.crumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; padding: 8px 14px 8px 8px; border-radius: 12px; background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--ink-2); font-size: 0.95rem; transition: background-color 0.2s, color 0.2s; }
.crumb:hover { background: var(--bg-4); color: var(--ink); }
.crumb b { color: var(--ink); font-weight: 700; }
.crumb .icon { width: 18px; height: 18px; }
.chip-status { color: var(--ink-2); }
.chip-status.is-live { color: var(--green); }
.chip-status.is-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ep-progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: 460px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.ep-progress-bar { flex: 1; height: 6px; border-radius: 99px; background: oklch(1 0 0 / 0.16); overflow: hidden; }
.ep-progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--amber-fill); transition: width 0.5s var(--ease); }
.ep-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.rail-episodes .rail-track { grid-auto-columns: clamp(240px, 19vw, 340px); }
.rail-episodes .rail-btn { top: calc(10px + clamp(240px, 19vw, 340px) * 0.28); }
.ep-card { position: relative; min-width: 0; }
.ep-card > a { display: block; }
.ep-still { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-3); }
.ep-still img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.ep-card:hover .ep-still img { transform: scale(1.04); }
.ep-card.is-watched .ep-still img { opacity: 0.45; }
.ep-badge { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 8px; background: rgb(0 0 0 / 0.66); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ep-still .ticket { position: absolute; left: 8px; bottom: 8px; }
.ep-bar { position: absolute; inset: auto 0 0 0; height: 4px; background: rgb(255 255 255 / 0.22); }
.ep-bar i { display: block; height: 100%; background: var(--amber-fill); }
.ep-card h3 { margin-top: 10px; font-size: 0.98rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep-check {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
    background: rgb(0 0 0 / 0.62); color: #fff; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.ep-check .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.ep-check:hover { background: var(--bg-4); }
.ep-check:active { transform: scale(0.92); }
.ep-check.is-on { background: var(--amber-fill); color: var(--amber-ink); }
.ep-card .ep-check { position: absolute; right: 8px; top: 8px; }

.season-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; min-height: 40px; margin-bottom: 4px; }
.episode { grid-template-columns: clamp(150px, 22vw, 290px) minmax(0, 1fr) auto; }
.episode .ep-check { background: var(--bg-2); align-self: center; }
.episode .ep-check:hover { background: var(--bg-4); }
.episode .ep-check.is-on { background: var(--amber-fill); }
.episode h3 a:hover { color: var(--amber); }
.episode.is-watched .episode-still img { opacity: 0.45; }
.episode-still { display: grid; }

@media (max-width: 760px) {
    .rail-episodes .rail-track { grid-auto-columns: 232px; }
    .episode { grid-template-columns: 116px minmax(0, 1fr) auto; }
    .episode .ep-check { align-self: start; }
}

/* ================================================================ Telegram orqali kirish */
.btn-tg { --btn-bg: oklch(0.68 0.14 235); --btn-fg: #fff; font-weight: 700; }
.btn-tg:hover { --btn-bg: oklch(0.74 0.13 235); }
.btn-tg .icon { width: 22px; height: 22px; stroke-width: 2.1; }
.btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.tg-login { gap: 20px; }
.tg-login .auth-lead { margin-top: -6px; }
.tg-wait { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg-2); }
.tg-wait p { display: grid; gap: 4px; }
.tg-wait span { color: var(--ink-2); font-size: 0.92rem; }
.spinner { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--bg-4); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tg-steps { display: grid; gap: 10px; padding-top: 4px; counter-reset: step; color: var(--ink-2); font-size: 0.95rem; }
.tg-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; counter-increment: step; }
.tg-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.tg-steps b { color: var(--ink); font-weight: 600; }
.form-alert .text-link { font-weight: 600; margin-left: 4px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink-2); font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); flex: none; }

/* SaraFilm foydalanuvchilari bahosi */

/* ================================================================ tomosha: tugma, faktlar, qismlar holati */
.icon-fill { fill: currentColor; stroke: none; }
.btn-soon { color: var(--ink-3); cursor: default; }
.btn-soon:hover { --btn-bg: var(--bg-2); }
.watch-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.watch-facts span { display: inline-flex; align-items: center; gap: 7px; }
.watch-facts .icon { width: 17px; height: 17px; color: var(--ink-3); }
.fact-badge { padding: 4px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.fact-badge.is-free { background: oklch(0.8 0.15 158 / 0.14); color: var(--green); }

.ep-still { position: relative; }
.ep-play {
    position: absolute; inset: 0; margin: auto; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: var(--amber-fill); color: var(--amber-ink);
    opacity: 0; transform: scale(0.85); transition: opacity 0.2s, transform 0.25s var(--ease);
}
.ep-play .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.ep-card:hover .ep-play, .episode:hover .ep-play { opacity: 1; transform: none; }
@media (hover: none) { .ep-play { opacity: 0.92; transform: none; width: 44px; height: 44px; } }
.ep-soon, .ep-free { position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; }
.ep-soon { background: rgb(0 0 0 / 0.7); color: var(--ink-2); }
.ep-free { background: var(--green); color: oklch(0.2 0.04 158); }
.ep-card.is-missing .ep-still img, .episode.is-missing .episode-still img { opacity: 0.4; filter: grayscale(0.6); }
.ep-card .ep-still .ticket { display: none; }

/* ================================================================ nom logotipi (admin yuklagan shaffof PNG) */
.hero-logo img { display: block; width: auto; max-width: min(100%, 520px); max-height: clamp(90px, 16vh, 190px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 22px rgb(0 0 0 / 0.55)); }
.title-logo img { display: block; width: auto; max-width: min(100%, 560px); max-height: clamp(90px, 18vh, 210px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 22px rgb(0 0 0 / 0.5)); }
.title-logo + .title-original { margin-top: 16px; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
    .hero-logo img { max-height: 96px; max-width: 78%; }
    .title-logo img { max-height: 110px; }
}

/* ================================================================ film sahifasi: fon + logotip bo'lganda (afishasiz) */
.title-backdrop::after {
    background: linear-gradient(0deg, var(--bg) 3%, color-mix(in oklab, var(--bg) 70%, transparent) 40%, color-mix(in oklab, var(--bg) 22%, transparent) 100%),
                linear-gradient(90deg, color-mix(in oklab, var(--bg) 78%, transparent), transparent 60%);
}
.title-hero.is-wide { padding-top: calc(var(--header-h) + clamp(96px, 30vh, 360px)); }
.title-hero.is-wide .title-backdrop { --bd-h: min(96vh, 900px); }
.title-hero.is-wide .title-backdrop img { object-position: 70% 22%; }
/* Chap tomonda matn o'qilishi uchun qoraytirish, o'ng tomonda rasm toza ko'rinadi. */
.title-hero.is-wide .title-backdrop::after {
    background:
        linear-gradient(0deg, var(--bg) 2%, color-mix(in oklab, var(--bg) 62%, transparent) 30%, transparent 66%),
        linear-gradient(90deg, color-mix(in oklab, var(--bg) 90%, transparent) 0%, color-mix(in oklab, var(--bg) 62%, transparent) 30%, transparent 64%),
        linear-gradient(180deg, color-mix(in oklab, var(--bg) 50%, transparent) 0%, transparent 16%);
}
.title-hero.is-wide .title-head { grid-template-columns: minmax(0, 1fr); }
.title-hero.is-wide .title-info { max-width: 860px; }
.title-hero.is-wide .title-logo img { max-width: min(100%, 620px); max-height: clamp(110px, 24vh, 260px); }
.title-logo + .title-original { font-weight: 500; color: var(--ink-2); }
@media (max-width: 760px) {
    /* Balandliklar chegaralangan: juda baland oynada (masalan Google sahifani to'liq suratga olganda) fon butun ekranni egallab ketmaydi. */
    .title-hero.is-wide { padding-top: calc(var(--header-h) + min(34vh, 320px)); }
    .title-hero.is-wide .title-backdrop { --bd-h: min(74vh, 680px); }
    .title-hero.is-wide .title-backdrop img { object-position: 68% 20%; }
    .title-hero.is-wide .title-backdrop::after {
        background: linear-gradient(0deg, var(--bg) 6%, color-mix(in oklab, var(--bg) 80%, transparent) 36%, transparent 74%);
    }
    .title-hero.is-wide .title-logo img { max-height: 120px; max-width: 86%; }
}

/* Treyler oynasi */
.trailer-dialog { width: min(1100px, calc(100vw - 24px)); margin: auto; padding: 0; border-radius: 16px; background: #000; overflow: visible; }
.trailer-dialog::backdrop { background: rgb(0 0 0 / 0.82); }
.trailer-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.trailer-dialog .icon-btn { position: absolute; top: -52px; right: 0; background: var(--bg-3); }
@media (max-width: 760px) { .trailer-dialog .icon-btn { top: 8px; right: 8px; z-index: 1; } }

/* Fon treyleri: rasm ustida, qoraytiruvchi qatlam ostida */
.backdrop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.title-backdrop.is-playing .backdrop-video { opacity: 1; }
.backdrop-sound { position: absolute; top: calc(var(--header-h) + 20px); right: clamp(16px, 4vw, 56px); z-index: 2; background: color-mix(in oklab, var(--bg) 70%, transparent); }

/* Telefon: film sahifasidagi tugmalar — asosiysi to'liq kenglikda, qolganlari bitta qatorda (belgi ustida, yozuv ostida) */
@media (max-width: 760px) {
    .title-actions { gap: 8px; }
    .title-actions .btn-soon { flex-basis: 100%; }
    .title-actions .btn:not(.btn-primary):not(.btn-soon) {
        flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; min-height: 60px; padding: 8px 2px;
        font-size: 0.7rem; line-height: 1.15;
    }
    .title-actions .btn:not(.btn-primary):not(.btn-soon) span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .trailer-dialog { width: 100vw; border-radius: 0; }
    .trailer-dialog video { border-radius: 0; }
}

/* Profil: hisobga kirilgan qurilmalar */
.session-list { display: grid; }
.session-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.session-list li > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.session-list .muted { font-size: 0.86rem; overflow-wrap: anywhere; }
.session-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); color: var(--ink-2); }
.session-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.session-flags:empty { display: none; }

/* Kirish: qurilmalar chegarasi */
.device-limit { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--bg-2); }
.device-limit h2 { font-size: 1.15rem; font-weight: 700; }
.device-limit p { color: var(--ink-2); font-size: 0.95rem; }

/* ================================================================ oferta, maxfiylik, yordam */
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.info-nav { gap: 2px; padding: 12px; }
.info-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.info-nav a:hover { background: var(--bg-3); color: var(--ink); }
.info-nav a[aria-current='page'] { background: var(--bg-3); color: var(--ink); font-weight: 700; }
.info-side .panel h2 { font-size: 1.1rem; }
.info-side .panel p { color: var(--ink-2); }
.info-contact { display: grid; gap: 8px; }
.info-contact .btn { justify-self: stretch; overflow-wrap: anywhere; }

.prose { max-width: 76ch; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font: 700 1.3rem/1.3 var(--font-display); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 0.5em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--amber); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--amber) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.prose-date { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line-soft); font-size: 0.9rem; }

.prose.is-faq > * + * { margin-top: 10px; }
.prose details { border-radius: 16px; background: var(--bg-2); }
.prose summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer;
    color: var(--ink); font: 600 1.05rem/1.35 var(--font-display); list-style: none;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s var(--ease); }
.prose details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.prose details > div { padding: 0 22px 20px; }
.prose details > div > * + * { margin-top: 0.8em; }
.legal-note { margin-top: 28px; font-size: 0.88rem; max-width: 70ch; }
.auth-legal { margin-top: 14px; font-size: 0.82rem; text-align: center; color: var(--ink-3); }
@media (max-width: 900px) {
    .info-layout { grid-template-columns: minmax(0, 1fr); }
    .info-side { position: static; order: -1; }
    .info-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .info-nav a { padding: 8px 12px; font-size: 0.92rem; }
    .info-side .panel:not(.info-nav) { order: 2; }
}

/* Reytinglar: manbaning o'z logotipi + raqam. Logotip manbani bildiradi, raqam va matn sayt ranglarida. */
.rate-logo { display: grid; place-items: center; flex: none; }
.rate-logo .src-imdb { height: 30px; width: auto; }
.rate-logo .src-kp { height: 36px; width: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.rate-logo .src-sf { height: 38px; width: 38px; }
.rate-num { font: 800 2.3rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* Kartochka va qidiruvdagi kichik reyting */
.rate-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 5px; border-radius: 8px;
    background: rgb(12 12 12 / 0.78); color: #fff; backdrop-filter: blur(6px);
    font: 800 0.86rem/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.rate-pill .src-imdb { height: 15px; width: auto; border-radius: 3px; }
.rate-pill .src-kp { height: 17px; width: 17px; border-radius: 4px; }
.rate-pill .src-sf { height: 18px; width: 18px; }
.poster .rate-pill { position: absolute; z-index: 2; left: 8px; bottom: 8px; }
.search-item .rate-pill { margin-left: auto; flex: none; background: var(--bg-3); color: var(--ink); }

/* Bosh sahifa banneri */
.hero-score { display: inline-flex; align-items: center; gap: 8px; }
.hero-score .src-imdb { height: 20px; width: auto; }
.hero-score .src-kp { height: 22px; width: 22px; border-radius: 5px; }
.hero-score .src-sf { height: 22px; width: 22px; }
.ep-still .rate-pill { position: absolute; left: 8px; bottom: 8px; }
.ep-card .ep-still .rate-pill { display: none; }
.episode-meta .rate-pill { background: var(--bg-3); color: var(--ink); backdrop-filter: none; }

/* Google orqali kirish (Google brend qoidasi: oq fon, rangli "G", kulrang hoshiya) */
.btn-google { gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; }
.g-mark { width: 20px; height: 20px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3); font-size: 0.85rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ================================================================ film topish: o'zbek tilida, tez kunda, to'plamlar */
/* "UZ" -- o'zbek tilidagi audio yo'lagi bor (afishaning chap yuqori burchagida). */
.lang-badge {
    display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 6px;
    background: oklch(0.62 0.15 250); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1;
}
.poster .lang-badge { position: absolute; z-index: 2; left: 8px; top: 8px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.35); }
.chip-uz { display: inline-flex; align-items: center; gap: 8px; justify-self: start; width: fit-content; }
.toast .icon { flex: none; width: 18px; height: 18px; }
.chip-uz[aria-pressed='true'] .lang-badge { background: #fff; color: oklch(0.45 0.15 250); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-badge.is-free { background: oklch(0.62 0.15 150); }
.lang-badge.is-free .icon { width: 13px; height: 13px; stroke-width: 3; }
.chip-uz[aria-pressed='true'] .lang-badge.is-free { color: oklch(0.45 0.15 150); }

/* "Tez kunda" kartasi: reyting o'rnida sana, saqlash o'rnida qo'ng'iroqcha. */
.soon-badge {
    position: absolute; z-index: 2; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 8px; background: var(--amber-fill); color: var(--amber-ink);
    font-size: 0.76rem; font-weight: 800; box-shadow: 0 2px 10px rgb(0 0 0 / 0.35);
}
.soon-badge .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.card-coming .poster img { filter: saturate(0.9); }
.card-remind { opacity: 1; transform: none; }
.card:hover .card-remind, .card-remind.is-on { transform: none; }
.card-remind.is-on .icon { fill: currentColor; }
.btn-remind.is-on { --btn-bg: var(--bg-3); color: var(--amber); }
.btn-remind.is-on .icon { fill: currentColor; }
.fact-badge.is-soon { display: inline-flex; align-items: center; gap: 6px; }
.fact-badge.is-offer { display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.2s; }
.fact-badge.is-offer:hover { filter: brightness(1.2); }
.fact-badge.is-offer .icon { width: 15px; height: 15px; color: currentColor; }
.fact-badge.is-soon .icon { color: currentColor; }
.section-note { margin: -8px 0 4px; color: var(--ink-3); font-size: 0.88rem; }

/* To'plamlar: uchta afisha yelpig'ich bo'lib turadi. */
.col-grid { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.col-tile {
    display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; border-radius: 16px;
    background: var(--bg-2); transition: background-color 0.2s, transform 0.3s var(--ease);
}
.col-tile:hover { background: var(--bg-3); transform: translateY(-3px); }
.col-tile:hover h3 { color: var(--amber); }
.col-fan { position: relative; height: 168px; }
.col-fan span {
    position: absolute; bottom: 0; width: 104px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
    background: var(--bg-4); box-shadow: 0 10px 24px rgb(0 0 0 / 0.4); transition: transform 0.4s var(--ease);
}
.col-fan img { width: 100%; height: 100%; object-fit: cover; }
.col-fan .col-fan-0 { left: 50%; z-index: 3; transform: translateX(-50%); }
.col-fan .col-fan-1 { left: 50%; z-index: 2; transform: translateX(-112%) rotate(-8deg) scale(0.9); transform-origin: bottom center; }
.col-fan .col-fan-2 { left: 50%; z-index: 1; transform: translateX(12%) rotate(8deg) scale(0.9); transform-origin: bottom center; }
.col-tile:hover .col-fan-1 { transform: translateX(-122%) rotate(-11deg) scale(0.9); }
.col-tile:hover .col-fan-2 { transform: translateX(22%) rotate(11deg) scale(0.9); }
.col-fan .col-fan-empty { left: 50%; transform: translateX(-50%); display: grid; place-items: center; color: var(--ink-3); }
.col-fan-empty .icon { width: 40px; height: 40px; }
.col-text h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; transition: color 0.2s; }
.col-text p { margin-top: 4px; font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-collections .rail-track { grid-auto-columns: clamp(250px, 24vw, 300px); }
.col-head .crumb-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ink-3); font-weight: 600; font-size: 0.9rem; }
.col-head .crumb-link:hover { color: var(--amber); }
.col-head .crumb-link .icon { width: 17px; height: 17px; }
.col-head .page-lead { flex-basis: 100%; }

@media (max-width: 760px) {
    .poster .lang-badge { left: 6px; top: 6px; min-width: 24px; height: 18px; font-size: 0.66rem; }
    .soon-badge { left: 6px; bottom: 6px; padding: 3px 7px; font-size: 0.7rem; }
    .col-fan { height: 140px; }
    .col-fan span { width: 88px; }
}

/* Film sahifasi: kutubxona tugmalari kompyuterda ixcham -- belgi ustida, nomi ostida (nima qilishi doim ko'rinadi);
   telefonda ham shunday (pastdagi mobil qoida). */
@media (min-width: 761px) {
    .title-actions .act-icon {
        flex-direction: column; justify-content: center; gap: 3px; min-width: 78px; padding: 6px 10px;
        font-size: 0.72rem; font-weight: 600; line-height: 1.1;
    }
    .title-actions .act-icon .icon { width: 19px; height: 19px; }
    .title-actions .act-icon [data-label] { white-space: nowrap; }
    .title-actions .act-icon.is-on { color: var(--amber); }
    .title-actions .act-icon.is-on .icon { fill: currentColor; }
    .title-actions .act-icon.is-on .icon-check { fill: none; }
}
/* Metacritic: tanqidchilar bahosi o'z ranglarida (61+ yashil, 40-60 sariq, 40 dan past qizil). */
.mc-box {
    display: inline-grid; place-items: center; flex: none; min-width: 42px; height: 42px; padding: 2px 6px 0; border-radius: 9px;
    font: 800 1.25rem/1 var(--font-display); color: #fff;
}
.mc-box.is-good { background: #00ce7a; color: #002b16; }
.mc-box.is-mid { background: #ffbd3f; color: #3a2600; }
.mc-box.is-bad { background: #ff6874; color: #3b0007; }
/* Telefon: faqat baholarning o'zi (ovozlar, Metacritic va mukofot tafsiloti "Tafsilotlar" qismida bor), sig'masa keyingi qatorga. */
@media (max-width: 760px) {
    .title-info .scores { flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
    .title-info .score { flex: none; gap: 8px; }
    .title-info .score-sub { display: none; }
    .title-info .rate-logo .src-imdb { height: 22px; }
    .title-info .rate-logo .src-kp { height: 26px; width: 26px; border-radius: 7px; }
    .title-info .rate-logo .src-sf { height: 28px; width: 28px; }
    .title-info .rate-num { font-size: 1.65rem; }
    .title-info .mc-box { min-width: 32px; height: 32px; border-radius: 7px; font-size: 1rem; }
    .title-info .score-sub { font-size: 0.75rem; }
    .title-info .score-sub b { font-size: 0.85rem; }
}

/* Kartadagi kirish turi: Premium (obuna), Bepul, Pullik -- afishaning chap yuqori burchagida. */
.access-badge {
    position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px; border-radius: 7px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
    text-transform: uppercase; line-height: 1; box-shadow: 0 2px 10px rgb(0 0 0 / 0.35);
}
.access-badge .icon { width: 13px; height: 13px; stroke-width: 2.2; }
/* Premium: to'q shisha ustida oltin toj -- afishani bosmaydi, lekin darhol ko'zga tashlanadi. */
.access-badge.is-premium {
    background: linear-gradient(160deg, oklch(0.24 0.02 75 / 0.86), oklch(0.13 0.006 75 / 0.86));
    color: #ffc94d; box-shadow: inset 0 0 0 1px oklch(0.82 0.13 80 / 0.55), 0 4px 14px rgb(0 0 0 / 0.4);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.access-badge.is-premium .icon { fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 6px oklch(0.82 0.15 80 / 0.55)); }
.access-badge.is-icon { width: 28px; height: 26px; padding: 0; justify-content: center; border-radius: 8px; }
.access-badge.is-icon .icon { width: 16px; height: 16px; }
.access-badge.is-free { background: #1fbf75; color: #fff; }
.access-badge.is-paid { background: oklch(0.2 0.01 250 / 0.88); color: #fff; backdrop-filter: blur(6px); }
@media (max-width: 760px) {
    .access-badge { left: 6px; top: 6px; height: 20px; padding: 0 6px; font-size: 0.62rem; }
    .access-badge .icon { width: 11px; height: 11px; }
    .access-badge.is-icon { width: 24px; height: 22px; padding: 0; border-radius: 7px; }
    .access-badge.is-icon .icon { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------- kirish sahifasi: ixcham, bitta ekranga sig'adi */
.auth { min-height: calc(100dvh - var(--header-h)); }
.auth-main { padding: clamp(24px, 4vh, 48px) var(--gutter); }
.auth-form { gap: 16px; }
.auth-head { display: grid; gap: 8px; }
.auth-head .auth-lead { margin: 0; }
.auth-buttons { display: grid; gap: 10px; }
.auth-buttons .btn-block { margin: 0; }
.tg-hint { color: var(--ink-3); font-size: 0.86rem; line-height: 1.45; text-align: center; }
.tg-hint b { color: var(--ink-2); font-weight: 600; }
.auth-legal { font-size: 0.8rem; }
.is-parked { display: none !important; }

/* QR kod bilan kirish: kompyuterda -- tugmalar ostida ixcham qator */
.tg-qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg-2); }
.tg-qr[hidden] { display: none; }
.qr-box { aspect-ratio: 1; padding: 6px; border-radius: 10px; background: #fff; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-text { display: grid; gap: 6px; font-size: 0.86rem; color: var(--ink-2); line-height: 1.45; }
.qr-text > b { color: var(--ink); font-size: 0.98rem; }
.qr-text ol { display: grid; gap: 4px; padding-left: 18px; list-style: decimal; }
.qr-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.82rem; }
.qr-wait .spinner { width: 14px; height: 14px; border-width: 2px; margin: 0; }
@media (max-width: 899px) { .auth .tg-qr { display: none; } }

/* Telefon: shior bloki yashiriladi -- kirish tugmalari darhol ko'rinadi */
@media (max-width: 760px) {
    .auth-side { display: none; }
    .auth { min-height: calc(100dvh - var(--header-h) - var(--tabbar-h, 0px)); margin-bottom: -64px; }
    .auth-main { place-items: start center; padding-top: 28px; }
}

/* Qurilmalar chegarasi: qisqa sarlavha, ro'yxat darhol */
.device-limit { gap: 12px; padding: 18px; }
.limit-head { display: grid; gap: 6px; }
.limit-head h2 { font-size: 1.2rem; font-weight: 800; }
.limit-head p { color: var(--ink-2); font-size: 0.92rem; }
.device-limit .session-list li { padding: 10px 0; }

/* Televizor: katta QR markazda, matn uzoqdan o'qiladigan o'lchamda */
.auth-tv { display: grid; place-items: center; min-height: calc(100dvh - var(--header-h) - 40px); padding: 24px var(--gutter); }
.auth-tv .auth-form { width: min(100%, 980px); justify-items: center; text-align: center; }
.auth-tv h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.auth-tv .auth-lead { font-size: clamp(1.05rem, 1.6vw, 1.4rem); margin: 0; }
.tg-qr.is-tv { grid-template-columns: min(42vh, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 36px); border-radius: 22px; text-align: left; }
.tg-qr.is-tv .qr-box { padding: 14px; border-radius: 18px; }
.tg-qr.is-tv .qr-text { gap: 14px; font-size: clamp(1rem, 1.5vw, 1.35rem); }
.tg-qr.is-tv .qr-text > b { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.tg-qr.is-tv ol { gap: 10px; }
.tg-qr.is-tv .qr-wait { font-size: clamp(0.9rem, 1.2vw, 1.1rem); }
.auth-tv .device-limit { width: min(100%, 620px); text-align: left; }
@media (max-width: 700px) { .tg-qr.is-tv { grid-template-columns: 1fr; justify-items: center; } }

/* ---------------------------------------------------------------- telefon: boshqa qurilmaga kirishni tasdiqlash (/link) */
.link-page { display: grid; place-items: center; min-height: calc(100dvh - var(--header-h) - 120px); padding-block: 24px; }
@media (max-width: 760px) { .link-page { place-items: start center; min-height: 0; padding-top: 20px; } }
.link-card, .link-result { display: grid; gap: 16px; width: min(100%, 440px); }
.link-card h1, .link-result h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.link-device { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); }
.link-device > div { display: grid; gap: 2px; }
.link-device-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); }
.link-device-mark .icon { width: 24px; height: 24px; }
.link-lead { color: var(--ink-2); }
.link-lead b { color: var(--ink); }
.link-actions { display: grid; gap: 10px; }
.link-actions .btn-block { margin: 0; }
.link-other { justify-self: center; font-size: 0.9rem; }
.link-hint { color: var(--ink-3); font-size: 0.88rem; line-height: 1.5; text-align: center; }
.link-hint b { color: var(--ink-2); }
.link-hint .spinner { display: inline-block; width: 15px; height: 15px; border-width: 2px; margin: 0 6px 0 0; vertical-align: -3px; }
.link-warn { padding: 12px 14px; border-radius: 12px; background: oklch(0.63 0.21 20 / 0.1); color: var(--ink-2); font-size: 0.84rem; }
.link-result { justify-items: center; text-align: center; }
.link-result p { color: var(--ink-2); }
.link-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); }
.link-mark .icon { width: 30px; height: 30px; }
.link-result.is-ok .link-mark { background: oklch(0.8 0.15 158 / 0.16); color: var(--green); }
.link-result.is-bad .link-mark { background: oklch(0.63 0.21 20 / 0.14); color: var(--red-ink); }

/* ---------------------------------------------------------------- internet tezligi (/tezlik) */
.speed-page { display: grid; gap: 20px; max-width: 760px; padding-bottom: 64px; }
.speed-card { justify-items: center; gap: 18px; padding-block: clamp(28px, 5vw, 44px); text-align: center; }
.speed-gauge { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.speed-value { font: 800 clamp(3.6rem, 11vw, 6rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.speed-unit { font-size: 1.15rem; font-weight: 700; color: var(--ink-3); }
.speed-card.is-running .speed-value { color: var(--amber); }
.speed-bar { width: min(100%, 420px); height: 6px; border-radius: 999px; background: var(--bg-4); overflow: hidden; }
.speed-bar i { display: block; width: 0; height: 100%; background: var(--amber); transition: width 0.2s linear; }
.speed-state { color: var(--ink-2); min-height: 1.5em; }
.speed-metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0; }
.speed-metrics div { display: grid; gap: 2px; justify-items: center; }
.speed-metrics dt { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-3); }
.speed-metrics dt .icon { width: 15px; height: 15px; }
.speed-metrics dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.speed-card .btn { justify-self: center; }
.speed-verdict { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; line-height: 1.5; }
.speed-verdict .icon { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.speed-verdict.is-ok .icon { color: var(--green); }
.speed-verdict.is-bad .icon { color: var(--amber); }
.speed-qualities { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.speed-qualities li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-3); color: var(--ink-3); }
.speed-qualities li .icon { width: 18px; height: 18px; flex: none; }
.speed-qualities li b { flex: 1; color: var(--ink-2); font-weight: 600; }
.speed-qualities li.is-ok { color: var(--green); }
.speed-qualities li.is-ok b { color: var(--ink); }

/* ------------------------------------------------------------------ Shorts (reels) */
/* Tik ramka: telefonda butun ekran (pastki panel qoladi), kompyuterda markazda 9:16 ustun. */
body.is-reels { overscroll-behavior: none; }
body.is-reels .site-footer { display: none; }
body.is-reels #app { padding: 0 !important; min-height: 0; }
.reels {
    position: fixed; z-index: 1; left: 0; right: 0; top: var(--header-h); bottom: var(--tabbar-h);
    overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel {
    --w: min(100%, calc((100dvh - var(--header-h) - var(--tabbar-h) - 24px) * 9 / 16));
    position: relative; isolation: isolate; overflow: hidden;
    width: var(--w); height: calc(100% - 24px); margin: 12px auto 24px;
    border-radius: var(--r-lg); background: #000; color: #fff;
    scroll-snap-align: center; scroll-snap-stop: always;
}
.reel-bg, .reel-video, .reel-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-bg { z-index: -1; transform: scale(1.3); filter: blur(26px) saturate(1.35) brightness(0.62); }
.reel-video, .reel-still { object-fit: contain; }
.reel.has-frame .reel-still { visibility: hidden; }
.reel-video { cursor: pointer; }
.reel-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.25) 34%, transparent 52%),
                linear-gradient(to bottom, rgb(0 0 0 / 0.35), transparent 18%);
}
.reel-spinner { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.reel.is-loading .reel-spinner { display: grid; }
.reel-spinner .spinner { width: 44px; height: 44px; border-width: 3px; border-color: rgb(255 255 255 / 0.18); border-top-color: #fff; }
.reel-paused {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: none; place-items: center;
    width: 72px; height: 72px; border-radius: 50%; background: rgb(0 0 0 / 0.45); color: #fff; pointer-events: none;
}
.reel-paused .icon { width: 32px; height: 32px; margin-left: 4px; }
.reel.is-paused .reel-paused { display: grid; }
.reel-info { position: absolute; left: 18px; right: 86px; bottom: 26px; display: grid; gap: 8px; justify-items: start; }
.reel-title { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 12px rgb(0 0 0 / 0.5); }
.reel-logo { max-width: min(78%, 260px); max-height: 84px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.5)); }
.reel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.86rem; color: rgb(255 255 255 / 0.86); }
.reel-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--amber); }
.reel-score .icon { width: 14px; height: 14px; fill: currentColor; }
.reel-age { padding: 1px 6px; border: 1px solid rgb(255 255 255 / 0.5); border-radius: 5px; font-size: 0.74rem; font-weight: 700; }
.reel-episode { font-size: 0.84rem; color: rgb(255 255 255 / 0.75); }
.reel-watch { margin-top: 4px; }
.reel-actions { position: absolute; right: 10px; bottom: 30px; display: grid; gap: 16px; }
.reel-act { display: grid; justify-items: center; gap: 4px; width: 62px; color: #fff; font-size: 0.7rem; font-weight: 600; text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }
.reel-act .icon {
    width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgb(0 0 0 / 0.38);
    backdrop-filter: blur(8px); transition: background 0.2s, color 0.2s;
}
.reel-act:hover .icon { background: rgb(0 0 0 / 0.6); }
.reel-act.is-on .icon { color: var(--amber); }
.reel-act[aria-pressed='true'][data-reel-sound] .icon { color: #fff; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 0.18); }
.reel-progress span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.reel.is-failed .reel-spinner { display: none; }
.reel.is-failed .reel-video { display: none; }
.reels-nav { position: fixed; z-index: 2; right: max(24px, calc(50% - var(--wrap) / 2)); top: 50%; translate: 0 -50%; display: grid; gap: 12px; }
.reels-nav .icon-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-3); }
.reels-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.reels-empty .empty-mark { width: 64px; height: 64px; }
@media (max-width: 760px) {
    /* Telefonda sarlavha yashiriladi -- parcha butun ekranni egallaydi. */
    body.is-reels .site-header { display: none; }
    body.is-reels { background: #000; }
    .reels { top: 0; }
    .reel { --w: 100%; height: 100%; margin: 0; border-radius: 0; scroll-snap-align: start; }
    .reel-info { padding-bottom: env(safe-area-inset-bottom, 0); }
    .reels-nav { display: none; }
}

/* Bosh sahifadagi "Shorts" qatori: tik kadrlar */
.reel-tile {
    position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-md);
    background: var(--bg-3); isolation: isolate;
}
.reel-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.reel-tile:hover img { transform: scale(1.05); }
.reel-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent 50%); }
.reel-tile-play {
    position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%; background: rgb(0 0 0 / 0.45); color: #fff;
}
.reel-tile-play .icon { width: 14px; height: 14px; margin-left: 2px; }
.reel-tile-title {
    position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; color: #fff;
    font: 700 0.92rem/1.2 var(--font-display); text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rail-reels .rail-track { grid-auto-columns: clamp(124px, 11vw, 168px); }

/* Shorts: yoqdi */
.reel { touch-action: manipulation; }       /* ikki marta bosilganda sahifa kattalashmasin */
.reel-like.is-on .icon { color: #ff3040; fill: currentColor; }
.reel-like.is-pop .icon { animation: reel-pop 0.45s var(--ease); }
@keyframes reel-pop { 0% { scale: 1; } 35% { scale: 1.25; } 100% { scale: 1; } }
.reel-burst {
    position: absolute; z-index: 3; width: 104px; height: 104px; margin: -52px 0 0 -52px; pointer-events: none;
    color: #fff; filter: drop-shadow(0 4px 18px rgb(0 0 0 / 0.35)); animation: reel-burst 0.9s ease-out forwards;
}
.reel-burst .icon { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@keyframes reel-burst {
    0% { opacity: 0; scale: 0.3; }
    15% { opacity: 1; scale: 1.15; }
    30% { scale: 0.95; }
    45% { scale: 1; }
    80% { opacity: 1; translate: 0 0; }
    100% { opacity: 0; scale: 1.1; translate: 0 -60px; }
}

/* Huquqiy hujjat boshqa tilda ochilganda: rasmiy matn o'zbekcha ekanligi haqida izoh */
.prose .legal-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 24px; border-radius: var(--r-md, 12px); background: var(--bg-2); color: var(--ink-2); font-size: 0.92rem; }
.prose .legal-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }

/* Fon aylantirilganda joyida turadi: rasm, treyler va qoraytiruvchi qatlam ekranga mahkamlangan, sarlavha qismi -- oyna
   (clip-path ichidagina ko'rinadi). Aylantirilganda oyna yuqoriga ketib rasmni yopadi; rasm qismi tugagach -- yo'qoladi.
   Pastki chetida yumshoq o'tish (mask) oyna bilan birga yuradi -- rasm qattiq chiziq bilan kesilmaydi. Faqat CSS. */
.title-backdrop { clip-path: inset(0); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 140px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 140px), transparent); }
.title-backdrop > img, .title-backdrop::after { position: fixed; top: 0; left: 0; width: 100%; height: var(--bd-h); }
.title-backdrop > .backdrop-video { position: fixed; top: 0; left: 0; width: 100%; height: var(--bd-h); }

/* ================================================================ qora nom logotipi (app.js: has-dark-logo)
   Qorong'i logotip orqasiga qora soya va chapdan qoraytirish berilmaydi -- aks holda harflar fonga singib ketadi.
   Pastki o'tish (sahifa foniga) qoladi. Yorug' mavzuda chap qatlam ochiq rangli -- u qora logotipga yordam beradi, qoladi. */
.has-dark-logo :is(.hero-logo, .title-logo) img { filter: none; }
.hero-slide.has-dark-logo::before {
    background:
        linear-gradient(0deg, var(--bg) 0, color-mix(in oklab, var(--bg) 60%, transparent) 54px, transparent 120px),
        linear-gradient(0deg, rgb(0 0 0 / 0.6) 0%, transparent 46%),
        linear-gradient(180deg, rgb(0 0 0 / 0.42) 0%, transparent 22%);
}
@media (min-width: 761px) {
    :root:not([data-theme='light']) .title-hero.has-dark-logo .title-backdrop::after {
        background: linear-gradient(0deg, var(--bg) 3%, color-mix(in oklab, var(--bg) 55%, transparent) 34%, transparent 70%);
    }
}

/* ================================================================ film sahifasi: aylantirganda chap tomon qorayadi
   Fon rasmi joyida turadi, matn esa tepaga -- rasmning (ko'pincha eng yorqin) yuqori qismiga chiqadi. Shu payt chap
   tomon asta qoraytiriladi: sahifa ochilganda rasm toza, pastga tushgan sari matn o'qiladigan bo'ladi. */
.title-backdrop::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: var(--bd-h); z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, color-mix(in oklab, var(--bg) 90%, transparent) 0%, color-mix(in oklab, var(--bg) 74%, transparent) 38%,
                        color-mix(in oklab, var(--bg) 30%, transparent) 66%, transparent 88%),
        color-mix(in oklab, var(--bg) 22%, transparent);
    opacity: var(--scrim, 0);
}
@supports (animation-timeline: scroll()) {
    .title-backdrop::before { animation: title-scrim linear both; animation-timeline: scroll(root); animation-range: 0 42vh; }
}
@keyframes title-scrim { from { opacity: 0; } to { opacity: 1; } }
