:root {
  --bg: #0e0e10; --panel: #18181b; --line: #2a2a2e; --text: #f1f1f3; --muted: #9a9aa2;
  --accent: #ff3b30; --ok: #34c759; --radius: 10px;
  --plyr-color-main: #ff0033;                 /* YouTube red */
  --plyr-range-track-height: 10px;            /* twice Plyr's 5px */
  --plyr-range-thumb-height: 20px;
  --plyr-range-thumb-background: #ff0033;   /* red knob like YouTube */
  --plyr-video-controls-background: none;     /* no darkening when the controls show */
  --plyr-video-range-track-background: rgba(255, 255, 255, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html { touch-action: manipulation; }   /* a double tap never zooms the page */
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }

.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(14,14,16,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; }
/* the wordmark: flat rounded letters in the cat's ginger and a paw print after them (operator, 2026-10-10:
   «плоские буквы, нормальные, и лапку») */
.wordmark { display: inline-flex; align-items: baseline; color: #ff9d3a; line-height: 1; letter-spacing: .005em;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  font-weight: 700; font-size: 26px; }
.wordmark svg { width: .66em; height: .66em; margin-left: .04em; fill: currentColor; transform: rotate(18deg) translateY(-.32em); }
.logo img { width: 44px; height: 44px; border-radius: 11px; }
.search { flex: 1 1 260px; }
/* the search field and the mic are twice the usual size: the voice is the main way in (operator, 2026-10-10) */
.search input { width: 100%; height: 80px; padding: 0 92px 0 28px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); outline: none; font-size: 20px; }
.search input:focus { border-color: #555; }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.tabs a.active { background: var(--panel); color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 16px; }
.hint { color: var(--muted); padding: 40px 0; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.card { cursor: pointer; }
.card .poster { position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); }
.card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .poster .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted);
  padding: 10px; text-align: center; font-size: 13px; }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px;
  font-weight: 600; background: rgba(0,0,0,.72); }
.badge.tv { color: #7cc4ff; } .badge.movie { color: #ffcf5c; }
.card .name { margin-top: 8px; font-weight: 600; line-height: 1.25; }
.card .meta { color: var(--muted); font-size: 13px; }
.card:hover .poster img { transform: scale(1.03); transition: transform .2s; }

.title-page { display: flex; flex-direction: column; gap: 14px; }
.player-box { position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; touch-action: none; }   /* every touch on the picture is ours (app.js gestures) */
.player-holder { aspect-ratio: 16/9; border-radius: var(--radius); background: #000; }
.player-box .plyr, .player-box video { width: 100%; height: 100%; }
.player-wait { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; justify-content: center;
  background: #000 center/cover no-repeat; color: #ddd; z-index: 5; }
.player-wait.err { color: #ffb4ae; }
.player-wait[hidden] { display: none; }
.spinner { width: 22px; height: 22px; border: 3px solid #444; border-top-color: #fff; border-radius: 50%;
  animation: spin 1s linear infinite; }
.player-wait.err .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.tap-hint { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px 16px; border-radius: 999px;
  background: rgba(0,0,0,.6); font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 6; }
.tap-hint.left { left: 8%; } .tap-hint.right { right: 8%; }
.tap-hint.show { opacity: 1; }

.player-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.voice { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.voice select { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  color: var(--text); max-width: 60vw; }
.status { color: var(--muted); font-size: 13px; flex: 1 1 auto; }
.ghost { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer;
  font-size: 13px; padding: 4px; }
.next { background: var(--text); color: #000; border: none; border-radius: 8px; padding: 8px 14px;
  font-weight: 600; cursor: pointer; }

.seasons { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.seasons button { flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; white-space: nowrap; }
.seasons button.active { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
/* episodes: one strip of cards with a frame from each episode */
.episode-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px;
  margin-top: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ep { flex: 0 0 250px; scroll-snap-align: start; cursor: pointer; }
.ep .still { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #2a2a33, #15151a); border: 2px solid transparent; }
.ep .still img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ep:hover .still img { transform: scale(1.04); }
.ep.current .still { border-color: var(--accent); }
.ep .num { position: absolute; left: 10px; bottom: 6px; font-size: 34px; font-weight: 800; line-height: 1;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.85); }
.ep .len, .ep .seen, .ep .now { position: absolute; top: 8px; padding: 2px 7px; border-radius: 6px; font-size: 12px;
  font-weight: 600; background: rgba(0,0,0,.72); }
.ep .len { right: 8px; }
.ep .seen { left: 8px; color: var(--ok); }
.ep .now { left: 8px; color: #fff; background: var(--accent); }
.ep.watched .still img { filter: saturate(.55) brightness(.75); }
.ep .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); }
.ep .ep-name { margin-top: 7px; font-weight: 600; line-height: 1.3; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.watched .ep-name { color: var(--muted); }

/* player: no shading under the controls, icons readable over a bright picture */
.plyr--video .plyr__controls { background: none; }
.plyr__controls .plyr__control svg, .plyr__time { filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); }
.plyr--full-ui input[type=range] { color: #ff0033; }
.center-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7;
  width: 92px; height: 92px; border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #fff;
  display: grid; place-items: center; cursor: pointer; }
.center-play[hidden] { display: none; }
.center-play { transition: opacity .2s ease; }
.center-play.off { opacity: 0; pointer-events: none; }
/* the controls fade like YouTube's instead of sliding down off the picture */
.plyr--video .plyr__controls { transition: opacity .2s ease; }
.plyr--video.plyr--hide-controls .plyr__controls { transform: none; }
.center-play svg { width: 50px; height: 50px; fill: #fff; pointer-events: none; }
.center-play .i-pause, .center-play.playing .i-play { display: none; }
.center-play.playing .i-pause { display: block; }
.speed-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 7; padding: 5px 14px;
  border-radius: 999px; background: rgba(0,0,0,.6); font-weight: 700; }
.speed-badge[hidden] { display: none; }
/* pinch out: the picture fills the screen (the bars go, the edges are cut); pinch in: the whole picture */
.player-box.fill video { object-fit: cover; }
.player-box:fullscreen, .player-box.plyr--fullscreen-fallback { border-radius: 0; }

/* the title card under the player: poster, title, facts, ratings, crew, story, cast.
   Desktop: the poster runs down the left. Phone: a small poster beside the title, the rest full width. */
.about { position: relative; isolation: isolate; overflow: hidden; display: grid; padding: 26px;
  grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto auto;
  grid-template-areas: "poster main" "poster rates" "poster crew" "poster story" "cast cast" "similar similar";
  column-gap: 30px; row-gap: 16px; border-radius: 14px; background: var(--panel); }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: var(--backdrop, none) center 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.about-poster { grid-area: poster; align-self: start; }
.about-poster img { display: block; width: 100%; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.about-main { grid-area: main; min-width: 0; }
.about h1 { margin: 0; font-size: 32px; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.about .orig { margin-top: 5px; color: var(--muted); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.facts span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.09); color: #dcdce2; font-size: 13px; }

.ratings { grid-area: rates; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; min-height: 44px; }
.score { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 12px;
  background: rgba(255,255,255,.07); }
.score b { font-size: 30px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.score small { font-size: 11px; line-height: 1.2; color: var(--muted); }
.score.good b { color: #3ddc84; } .score.mid b { color: #f5c518; } .score.low b { color: #ff6b5f; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border-radius: 12px;
  background: rgba(255,255,255,.07); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.chip i { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .02em; padding: 3px 6px; border-radius: 5px; }
.chip small { margin-left: -4px; color: var(--muted); font-weight: 500; font-size: 12px; }
.chip.kp i { background: #ff6600; color: #fff; }
.chip.imdb i { background: #f5c518; color: #000; }
.chip.lb i { background: #14181c; color: #00e054; box-shadow: inset 0 0 0 1px #2c3440; }
.chip.rt i { background: #fa320a; color: #fff; }
.chip.mc i { background: #66cc33; color: #0b1a05; }
.chip.tmdb i { background: #01b4e4; color: #04202b; }

.crew { grid-area: crew; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 20px; margin: 0; }
.crew div { min-width: 0; }
.crew dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.crew dd { margin: 2px 0 0; font-weight: 600; }
.crew dd a { border-bottom: 1px solid rgba(255,255,255,.22); }
.crew dd a:hover { border-color: #fff; }
.crew dd.gross { color: #3ddc84; }
.crew dd small { color: var(--muted); font-weight: 500; }
.about-story { grid-area: story; min-width: 0; }
.tagline { margin: 0 0 8px; color: #c8c8d0; font-style: italic; }
.overview { margin: 0; max-width: 75ch; font-size: 16px; line-height: 1.62; color: #e6e6ea; }
.overview.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.more { margin-top: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

.about-cast { grid-area: cast; min-width: 0; margin-top: 6px; }
.about-cast h2 { margin: 0 0 12px; font-size: 19px; }
.cast-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity;
  scrollbar-width: thin; }
.person { display: block; flex: 0 0 100px; text-align: center; scroll-snap-align: start; }
.person:hover b { text-decoration: underline; }
.person img, .person .noface { display: block; width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%;
  object-fit: cover; background: #2a2a2e; }
.person .noface { display: grid; place-items: center; color: var(--muted); font-size: 24px; font-weight: 700; }
.person b, .person small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.person b { font-size: 13px; line-height: 1.25; }
.person small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.25; }

/* «Похожие»: a strip of the usual poster cards */
.about-similar { grid-area: similar; min-width: 0; margin-top: 6px; }
.about-similar[hidden] { display: none; }
.about-similar h2 { margin: 0 0 12px; font-size: 19px; }
.similar-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.similar-strip .card { flex: 0 0 150px; scroll-snap-align: start; }

/* a person's page: photo, name, facts, biography; role and order switches; the works grid */
.person-page { display: flex; flex-direction: column; gap: 18px; }
.person-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "photo info" "photo bio"; column-gap: 26px; row-gap: 14px; padding: 24px;
  border-radius: 14px; background: var(--panel); }
.person-photo { grid-area: photo; } .person-info { grid-area: info; } .person-bio { grid-area: bio; min-width: 0; }
.person-photo img, .person-photo .noface { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 10px; background: #2a2a2e; }
.person-photo .noface { display: grid; place-items: center; color: var(--muted); font-size: 40px; font-weight: 700; }
.person-info h1 { margin: 0; font-size: 32px; line-height: 1.12; }
.person-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a { padding: 7px 14px; border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 600; }
.seg a small { color: inherit; opacity: .7; font-weight: 500; }
.seg a.on { background: #fff; color: #000; }
.card .credit { color: #c8c8d0; }

@media (max-width: 640px) {
  .similar-strip .card { flex-basis: 116px; }
  .person-head { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "photo info" "bio bio";
    gap: 14px; padding: 14px; border-radius: 12px; }
  .person-info h1 { font-size: 22px; }
  .person-bio .overview { font-size: 15px; }
  .seg a { padding: 6px 11px; font-size: 14px; }
  .about { padding: 14px; column-gap: 14px; row-gap: 14px; border-radius: 12px;
    grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto;
    grid-template-areas: "poster main" "rates rates" "crew crew" "story story" "cast cast" "similar similar"; }
  .about h1 { font-size: 22px; }
  .about .orig { font-size: 13px; }
  .facts { margin-top: 8px; gap: 5px; } .facts span { padding: 2px 8px; font-size: 12px; }
  .score b { font-size: 24px; }
  .chip { font-size: 14px; padding: 5px 9px 5px 6px; }
  .crew { grid-template-columns: 1fr; gap: 5px; }
  .crew div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .crew dt { font-size: 11px; }
  .crew dd { margin: 0; font-size: 14px; }
  .overview { font-size: 15px; }
  .person { flex-basis: 80px; } .person img, .person .noface { width: 70px; height: 70px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ep { flex-basis: 72vw; }
  main { padding: 10px; }
}

/* phones: the seek bar needs the room; volume is on the hardware buttons, ±10 s is a double tap */
@media (max-width: 640px) {
  .plyr [data-plyr="rewind"], .plyr [data-plyr="fast-forward"], .plyr .plyr__volume input[type="range"] { display: none; }
  .plyr .plyr__progress__container { flex: 1 1 auto; min-width: 80px; }
}

/* search: the mic sits inside the field; the smart line says what the request was understood as */
.search { position: relative; }
.mic { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 70px; height: 70px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.08); display: grid; place-items: center; cursor: pointer; }
.mic svg { width: 38px; height: 38px; fill: #e8e8ec; }
.mic.rec { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.mic.rec svg, .mic.busy svg { fill: #fff; }
.mic.busy { background: #444; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 59, 48, .25); } }
/* on a phone the tall header scrolls away instead of covering a fifth of the screen */
@media (max-width: 640px) {
  .top { position: static; }
  .search input { height: 72px; font-size: 18px; padding: 0 84px 0 22px; }
  .mic { width: 64px; height: 64px; right: 4px; }
  .mic svg { width: 34px; height: 34px; }
}
.smart-line { margin: 2px 0 14px; color: var(--muted); }
.smart-line.thinking::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  border: 2px solid #555; border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -1px; }

/* iPhone has no element fullscreen: Plyr's fallback stretches the box with a class. Two classes here,
   because ".player-box {position: relative}" above wins over plyr.css's single-class rule and the
   "fullscreen" silently stayed a 16:9 box under the header (2026-10-10). */
.player-box.plyr--fullscreen-fallback {
  position: fixed; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0;
  border-radius: 0; z-index: 10000000; background: #000;
}
.player-box.plyr--fullscreen-fallback .plyr { height: 100%; }
/* shrinking back from full screen (app.js animates top/left/width/height, the holder keeps its place) */
.player-box.fs-leaving { position: fixed; z-index: 10000000; margin: 0; }

/* «Кто смотрит?»: big cat avatars, the current one ringed */
.ava svg, .ava-pick svg, .switch-who svg { display: block; width: 100%; height: 100%; }
.who-mode .top { display: none; }
.who { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: 40px 0; text-align: center; }
.who h1 { margin: 0; font-size: 40px; letter-spacing: -.01em; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; max-width: 900px; }
.who-grid[hidden], .who-form[hidden], .who-edit[hidden] { display: none; }
.who-item { width: 150px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.who-item .ava { position: relative; display: block; width: 150px; height: 150px; border-radius: 50%;
  transition: transform .15s, box-shadow .15s; }
.who-item:hover .ava, .who-item:focus-visible .ava { transform: scale(1.05); box-shadow: 0 0 0 4px #fff; }
.who-item.current .ava { box-shadow: 0 0 0 4px #3ddc84; }
.who-item b { display: block; margin-top: 12px; font-size: 18px; font-weight: 600; color: #e6e6ea; }
.who-item .plus { display: grid; place-items: center; border: 3px dashed #4a4a52; color: #8a8a92; font-size: 64px; font-weight: 300; }
.who-item .pen { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 44px; font-style: normal; }
.who-edit { padding: 10px 24px; border: 1px solid #55555d; border-radius: 999px; color: #c8c8d0; font-weight: 600; }
.who-form { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(560px, 100%); }
.who-form h2 { margin: 0; font-size: 26px; }
.who-form input { width: 100%; height: 60px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 20px; outline: none; }
.ava-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; }
.ava-pick button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: .55;
  transition: opacity .15s, box-shadow .15s; }
.ava-pick button.on { opacity: 1; box-shadow: 0 0 0 4px #fff; }
.who-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.who-actions button { padding: 12px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.who-actions .primary { background: #fff; color: #000; }
.who-actions .ghost { background: var(--panel); color: var(--text); text-decoration: none; }
.who h1[hidden] { display: none; }
.who-actions .danger { background: none; color: #ff6b5f; }
.who-actions [hidden] { display: none; }
@media (max-width: 640px) {
  .who h1 { font-size: 30px; }
  .who-grid { gap: 20px; }
  .who-item, .who-item .ava { width: 120px; } .who-item .ava { height: 120px; }
}

/* home: «Продолжить просмотр» — 4 wide frames with the place reached; on a phone a strip to swipe */
.home h2 { margin: 6px 0 14px; font-size: 22px; }
.continue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cont { display: block; min-width: 0; }
.cont-pic { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #222; }
.cont-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.cont:hover .cont-pic img { transform: scale(1.04); }
.cont-play { position: absolute; left: 10px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(0,0,0,.6); font-size: 15px; }
.cont .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.25); }
.cont .bar i { display: block; height: 100%; background: var(--accent); }
.cont b { display: block; margin-top: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 640px) {
  .continue { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .cont { flex: 0 0 78%; scroll-snap-align: start; }
}

/* profile passwords */
.who-item .lock { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #0e0e10; font-size: 19px; font-style: normal; }
.who-unlock { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(420px, 100%); }
.who-unlock[hidden], .who-error[hidden], .who-unlock-off[hidden] { display: none; }
.who-unlock .ava { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; }
.who-unlock h2 { margin: 0; font-size: 26px; }
.who-unlock input { width: 100%; height: 60px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 20px; outline: none; text-align: center; }
.who-error { margin: 0; color: #ff6b5f; font-weight: 600; }
.who-unlock-off { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.who-unlock-off input { width: 22px; height: 22px; }

/* ---------- the dock (app.js dockMode) ---------- */
.dock { max-width: 1180px; margin: 0 auto; padding: 16px 16px 0; }
.dock[hidden] { display: none; }
.dock .mini-bar { display: none; }
.dock.mini { position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: auto;
  width: min(460px, calc(100% - 32px)); height: 72px; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px;
  border-radius: 14px; overflow: hidden; background: #1f1f24; box-shadow: 0 12px 34px rgba(0,0,0,.65);
  animation: mini-in .22s ease-out; }
@keyframes mini-in { from { transform: translateY(30px); opacity: 0; } }
.dock.mini .player-box { flex: 0 0 128px; height: 72px; aspect-ratio: auto; border-radius: 0; }
.dock.mini .plyr__controls, .dock.mini .center-play, .dock.mini .tap-hint, .dock.mini .speed-badge,
.dock.mini .player-wait span { display: none !important; }
.dock.mini .mini-bar { display: flex; flex: 1; min-width: 0; align-items: center; gap: 2px; padding-right: 6px; }
.mini-info { flex: 1; min-width: 0; }
.mini-info b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.mini-info small { display: block; color: var(--muted); font-size: 13px; }
.mini-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; }
.mini-btn svg { width: 26px; height: 26px; fill: #fff; }
#mini-close svg { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.mini-btn .i-pause, .mini-btn.playing .i-play { display: none; }
.mini-btn.playing .i-pause { display: block; }
body.has-mini { padding-bottom: 100px; }
@media (max-width: 640px) {
  .dock { padding: 0; }
  body.watching .top { display: none; }                       /* like YouTube: the film page is the video */
  /* the status bar / Dynamic Island keeps its own black strip above the video (the page runs under it when it
     is opened from the home screen: viewport-fit=cover + black-translucent) */
  body.watching .dock { position: sticky; top: 0; z-index: 30; background: #000; padding-top: env(safe-area-inset-top); }
  body.watching .dock .player-box { border-radius: 0; }
  .dock.mini { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); height: 64px; }
  .dock.mini .player-box { flex-basis: 114px; height: 64px; }
}

/* ---------- the paw: in the favourites or not ---------- */
.paw { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 0; border-radius: 999px;
  background: var(--panel); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.paw svg { width: 30px; height: 30px; fill: none; stroke: #8f8f98; stroke-width: 3.4; transition: fill .2s, stroke .2s, filter .2s; }
.paw.on { color: #ffb15c; }
.paw.on svg { fill: #ff9d3a; stroke: #ff9d3a; filter: drop-shadow(0 0 7px rgba(255,157,58,.75)); }
.paw.pop svg { animation: paw-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes paw-pop { 40% { transform: scale(1.35) rotate(-8deg); } }

/* ---------- home: the new films and series ---------- */
.home-new { margin-top: 26px; }
.home-new[hidden] { display: none; }
.home-new h2 { margin: 0 0 12px; font-size: 22px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip .card { flex: 0 0 150px; scroll-snap-align: start; }
.switch-who { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 34px auto 10px;
  color: var(--muted); font-size: 14px; }
.switch-who svg { width: 30px; height: 30px; flex: 0 0 30px; }
@media (max-width: 640px) { .strip .card { flex-basis: 116px; } }

/* ---------- favourites: a list read top to bottom ---------- */
.favs h1 { margin: 6px 0 16px; font-size: 28px; }
.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 12px; border-radius: 14px; background: var(--panel); }
.fav-poster img { display: block; width: 92px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: #2a2a2e; }
.fav-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fav-body b { font-size: 18px; line-height: 1.2; }
.fav-body small { color: var(--muted); }
.fav-body em { font-style: normal; font-weight: 800; }
.fav-body em.good { color: #3ddc84; } .fav-body em.mid { color: #f5c518; } .fav-body em.low { color: #ff6b5f; }
.fav-story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  color: #cfcfd6; font-size: 14px; line-height: 1.45; }
.fav .paw { padding: 6px; background: none; }
@media (max-width: 640px) {
  .fav { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; }
  .fav-poster img { width: 76px; }
  .fav-body b { font-size: 16px; }
}

/* «свернуть»: the corner chevron of YouTube, top left of the picture */
.corner-btn { position: absolute; top: 10px; left: 10px; z-index: 8; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.45); cursor: pointer; transition: opacity .2s; }
.corner-btn svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.corner-btn.off { opacity: 0; pointer-events: none; }
.dock.mini .corner-btn, .player-box.plyr--fullscreen-fallback .corner-btn { display: none; }

/* nothing scrolls under the status bar and the Dynamic Island: a strip of the page colour stays there */
body::before { content: ""; position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: env(safe-area-inset-top);
  background: var(--bg); pointer-events: none; }
body.watching::before { background: #000; }
/* full screen keeps the picture and the controls off the island, the rounded corners and the home bar */
.player-box.plyr--fullscreen-fallback { padding: env(safe-area-inset-top) env(safe-area-inset-right)
  env(safe-area-inset-bottom) env(safe-area-inset-left); }

/* the title under the video (YouTube) */
.now-title { display: flex; flex-direction: column; gap: 3px; }
.now-title h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
#now-sub { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .now-title h1 { font-size: 19px; } #now-sub { font-size: 13px; } }

/* dragging the open player down: it is fixed where it stood, above a shade over the page to return to */
.shade { position: fixed; inset: 0; z-index: 35; background: #000; pointer-events: none; }
.shade[hidden] { display: none; }
.dock.dragging { position: fixed; z-index: 40; top: 0; left: 0; right: 0; background: #000;
  padding-top: env(safe-area-inset-top); will-change: transform; }
@media (min-width: 641px) { .dock.dragging { max-width: 1180px; margin: 0 auto; } }
