/* 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 */
.hero {
    --hero-w: var(--content);
    --hero-gap: 24px;
    position: relative; overflow: hidden;
    padding-top: 20px;
}
.hero-track {
    display: flex; gap: var(--hero-gap);
    transform: translateX(calc((100% - var(--hero-w)) / 2 - var(--i, 1) * (var(--hero-w) + var(--hero-gap))));
    transition: transform 0.75s var(--ease);
}
.hero-track.is-jumping { transition: none; }
.hero-slide {
    position: relative; isolation: isolate; flex: none; width: var(--hero-w);
    aspect-ratio: 1.9; max-height: min(74vh, 760px); min-height: 420px;
    overflow: hidden; border-radius: 18px; background: var(--bg-2);
    display: flex; align-items: flex-end;
    transition: opacity 0.5s;
}
.hero-slide:not(.is-active) { opacity: 0.32; cursor: pointer; }
.hero-slide:not(.is-active) .hero-copy { opacity: 0; pointer-events: none; }
.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; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.38) 34%, transparent 62%),
        linear-gradient(0deg, rgb(0 0 0 / 0.6) 0%, transparent 46%);
}
.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%, 640px); padding: clamp(20px, 2.4vw, 40px); 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-rating b { font-weight: 800; letter-spacing: -0.02em; margin-right: 6px; }
.hero-rating span { font-variant-numeric: tabular-nums; }
.hero-meta { 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-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: calc(50% - 6px); transform: translateY(-50%);
    display: grid; place-items: center; width: 50px; height: 64px; border-radius: 12px;
    background: rgb(24 27 27 / 0.82); color: var(--ink);
    transition: background-color 0.2s, transform 0.2s var(--ease);
}
.hero-nav:hover { background: var(--bg-4); }
.hero-nav:active { transform: translateY(-50%) scale(0.94); }
.hero-nav[data-dir='prev'] { left: 24px; }
.hero-nav[data-dir='next'] { right: 24px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--bg-4); transition: width 0.4s var(--ease), background-color 0.3s; }
.hero-dot.is-active { width: 28px; background: var(--amber); }

/* 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;
}

/* 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%; }

.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 { position: absolute; inset: 0 0 auto 0; height: min(84vh, 760px); 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%, oklch(0.215 0.004 200 / 0.72) 42%, oklch(0.215 0.004 200 / 0.3) 100%),
        linear-gradient(90deg, oklch(0.215 0.004 200 / 0.8), transparent 62%);
}
@keyframes backdrop-in { from { opacity: 0; transform: scale(1.05); } }

.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; }

.title-body { margin-top: clamp(32px, 4vw, 56px); }
.tab-panel { padding-top: 36px; min-height: 320px; }
.tab-panel > .section:first-child { margin-top: 0; }
.filter-chips { margin-bottom: 24px; }

.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 40px clamp(32px, 6vw, 104px); }
.plot { max-width: 68ch; font-size: 1.16rem; line-height: 1.68; }
.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; }

.gallery { --gh: 190px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ''; flex: 1000 1 0; }
.gallery-item {
    height: var(--gh); flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--gh));
    overflow: hidden; border-radius: var(--r-xs); background: var(--bg-3); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.1); }

.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); 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); 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); }
.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); 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; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--amber); 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); }

.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%, oklch(0.215 0.004 200 / 0.55) 50%, oklch(0.215 0.004 200 / 0.35)),
                linear-gradient(90deg, oklch(0.215 0.004 200 / 0.85), 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; }

/* ================================================================ 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); 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-side .slate { height: 30px; background: repeating-linear-gradient(-60deg, var(--amber-ink) 0 26px, var(--amber) 26px 52px); }
.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; }
.auth-note { text-align: center; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strength i { height: 4px; border-radius: 99px; background: var(--line); transition: background-color 0.3s; }
.strength[data-score='0'] i:nth-child(1), .strength[data-score='1'] i:nth-child(1) { background: var(--crimson); }
.strength[data-score='2'] i:nth-child(-n + 2) { background: var(--amber); }
.strength[data-score='3'] i:nth-child(-n + 3) { background: var(--amber-hi); }
.strength[data-score='4'] i { background: var(--green); }

/* ================================================================ profil */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; }
.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) + 16vh); }
    .title-backdrop { height: 62vh; }
    .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: 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; }
    .auth-side .slate { height: 16px; }
    .profile-grid { grid-template-columns: 1fr; }
    .closing-actions .btn { flex: 1; }
    .hero { --hero-w: calc(100vw - 32px); --hero-gap: 12px; padding-top: 4px; }
    .hero-slide { aspect-ratio: 0.78; max-height: 68vh; min-height: 0; border-radius: 16px; }
    .hero-slide::before { background: linear-gradient(0deg, rgb(0 0 0 / 0.86) 0%, rgb(0 0 0 / 0.4) 42%, transparent 70%); }
    .hero-bg { object-position: 60% 20%; }
    .hero-art { display: none; }
    .hero-slide.is-poster .hero-bg { filter: none; transform: none; opacity: 1; }
    .hero-nav { display: none; }
    .hero-title { font-size: clamp(1.8rem, 8.4vw, 2.5rem); }
    .hero-plot { display: none; }
    .hero-actions .btn { flex: 1; }
    .hero-actions .btn-share { flex: none; }
}

@media (min-width: 761px) and (max-width: 1200px) {
    .hero { --hero-w: calc(100vw - 96px); }
}

/* ================================================================ 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%, oklch(0.215 0.004 200 / 0.78) 42%, oklch(0.215 0.004 200 / 0.35) 100%),
                linear-gradient(90deg, oklch(0.215 0.004 200 / 0.8), 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: oklch(0.215 0.004 200 / 0.7); 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); 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); }
.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); 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); }
.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 */
.ticket-sf { background: var(--ink); color: var(--bg); gap: 8px; }
.ticket-sf .brand-mark { width: 0.62em; height: 0.62em; margin-top: -3px; flex: none; }
