/* series.css: страница сериала (views/series.ejs). Только классы .ser-*, цвета через --ui-*. */

/* ---------- первый экран ---------- */
.ser-hero{position:relative;isolation:isolate;overflow:hidden}
.ser-art{position:relative;z-index:-1;aspect-ratio:4/3;max-height:56vh;width:100%;overflow:hidden}
.ser-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
/* градиент поверх арта: допустимое исключение из правила «без своих цветов» */
.ser-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15) 0,rgba(0,0,0,0) 35%,rgba(0,0,0,.7) 78%,#000 100%)}
.ser-hero-in{display:grid;gap:var(--ui-3);padding-block:var(--ui-5) var(--ui-2)}
.ser-hero.has-art .ser-hero-in{margin-top:calc(-1*var(--ui-8))}
.ser-hero .eyebrow+.ser-title{margin-top:0}
.ser-title{max-width:14ch}
.ser-meta{display:flex;flex-wrap:wrap;gap:var(--ui-1) 0;margin:0;font-size:15px;line-height:1.4;color:var(--ui-muted)}
.ser-meta>span+span::before{content:"·";margin-inline:10px;color:var(--ui-faint)}
.ser-lead{margin-top:var(--ui-1)}
.ser-cta{margin-top:var(--ui-3)}
.ser-cta .btn2 .ic{width:18px;height:18px}
.ser-cta-n{font-weight:500;opacity:.55}

/* ---------- прогресс ---------- */
.ser-page{padding-bottom:var(--ui-4)}
.ser-progress{display:grid;gap:var(--ui-3);margin-top:var(--ui-6);padding:var(--ui-4);border-radius:var(--ui-r);background:rgba(255,255,255,.03);box-shadow:var(--ui-ring)}
.ser-progress-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ui-3)}
.ser-progress-k{font-size:14px;color:var(--ui-muted)}
.ser-progress-v{font-size:14px;color:var(--ui-muted);font-variant-numeric:tabular-nums}
.ser-progress-v b{font:600 20px/1 var(--ui-f-head);color:var(--ui-strong)}
.ser-bar{height:4px;border-radius:var(--ui-r-pill);background:var(--ui-fill-2);overflow:hidden}
.ser-bar i{display:block;height:100%;min-width:0;border-radius:inherit;background:var(--ui-strong)}
/* карта серий (partials/cells), перекрашена под чёрно-белую систему */
.ser-progress .cells{gap:4px}
.ser-progress .cells>*{width:12px;height:20px;border-radius:3px;background:var(--ui-fill-2)}
.ser-progress .cells a:hover{background:var(--ui-line-3)}
.ser-progress .cells .on{background:var(--ui-strong)}
.ser-progress .cells .cur{background:var(--ui-muted)}
.ser-progress .cells .void{background:none;border:0;box-shadow:inset 0 0 0 1px var(--ui-line)}
.ser-progress .cells .gap{width:8px;background:none}

/* ---------- все серии ---------- */
.ser-eps{padding-top:var(--ui-7)}
.ser-eps .ui-section-head{align-items:center}
.ser-order>a{min-height:40px}
.ser-poster .ui-poster-img{display:block;aspect-ratio:9/16}
.ser-poster .ui-poster-t,.ser-poster .ui-poster-m{display:block}
.ser-poster .ui-badge:not(.solid){padding:0;width:28px;height:28px;justify-content:center}
.ser-poster .ui-poster-img .ui-badge{left:auto;top:auto;right:8px;bottom:8px}
.ser-poster .ui-badge .ic{width:14px;height:14px;fill:none;stroke-width:1.6}
.ser-poster.is-seen .ui-poster-img img{filter:brightness(.7)}
.ser-poster.is-seen .ui-poster-m{color:var(--ui-faint)}

.ser-empty{margin-top:var(--ui-6)}

@media (min-width:720px){
  .ser-art{aspect-ratio:auto;height:min(62vh,560px);max-height:none}
  .ser-hero.has-art .ser-hero-in{position:absolute;left:0;right:0;bottom:0;margin-top:0;padding-bottom:var(--ui-7)}
  .ser-art::after{background:linear-gradient(90deg,rgba(0,0,0,.85) 0,rgba(0,0,0,.45) 45%,rgba(0,0,0,0) 75%),linear-gradient(180deg,rgba(0,0,0,0) 50%,#000 100%)}
  .ser-progress{padding:var(--ui-5)}
}
@media (min-width:1000px){.ser-progress{margin-top:var(--ui-5)}}
