/* «Смотреть с этого места» — запись пары в окне поверх конспекта (js/recplay.js). Окно — как лайтбокс слайдов. */

.recbox {
  width: min(1040px, calc(100vw - 2 * var(--gutter)));
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: transparent;
  color: var(--rp-text);
  overflow: visible;
}
.recbox:not([open]) { display: none; }
.recbox::backdrop {
  background: var(--rp-scrim);
  -webkit-backdrop-filter: blur(10px) saturate(0.8);
  backdrop-filter: blur(10px) saturate(0.8);
}
.recbox[open] .recbox__card { animation: recbox-in 0.32s var(--ease-out); }
@keyframes recbox-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

/* A dark cinema card in either theme (tokens --rp-*): a violet glow behind the picture, glass controls. */
.recbox__card {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--rp-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 70% at 50% -10%, var(--rp-glow), transparent 60%),
    linear-gradient(var(--rp-bg-2), var(--rp-bg));
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.recbox .icon-btn,
.recbox .btn--ghost {
  border: 0;
  background: var(--rp-glass);
  color: var(--rp-text);
}
.recbox .icon-btn:hover,
.recbox .btn--ghost:hover { background: var(--rp-glass-hover); color: var(--rp-text); }
.recbox .icon-btn:focus-visible,
.recbox .btn--ghost:focus-visible,
.recbox__seek:focus-visible { outline: 2px solid var(--rp-accent); outline-offset: 2px; }
.recbox .btn--sm { min-width: 52px; font-variant-numeric: tabular-nums; }

.recbox__top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.recbox__head { flex: 1; min-width: 0; display: grid; gap: 4px; }
.recbox__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--rp-text-3);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recbox__at {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 7px;
  border-radius: var(--r-full);
  background: var(--rp-accent);
  color: var(--rp-bg);
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.recbox__at svg { width: 11px; height: 11px; fill: currentColor; }
.recbox__cap {
  overflow: hidden;
  color: var(--rp-text);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recbox .recbox__subs[aria-pressed="true"] { background: var(--rp-text); color: var(--rp-bg); }

/* The stage is always 16:9: a screen share, a slide, a camera or the teacher's name stand in the same frame. */
.recbox__view {
  display: grid;
  gap: var(--s-3);
}
.recbox__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 70dvh;
  border-radius: var(--r-lg);
  background: var(--rp-stage);
  box-shadow: 0 0 0 1px var(--rp-line), 0 18px 50px -24px var(--rp-glow);
  overflow: hidden;
}
.recbox__screen,
.recbox__slide,
.recbox__voice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.recbox__screen[hidden],
.recbox__slide[hidden] { display: none; }
.recbox__voice { opacity: 0; pointer-events: none; }
.recbox__voice.is-shown { opacity: 1; }
.recbox__blank {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: radial-gradient(80% 90% at 50% 110%, var(--rp-glow), transparent 70%), var(--rp-bg);
  color: var(--rp-text-2);
  text-align: center;
}
.recbox__blank[hidden] { display: none; }

.recbox__sub { display: grid; }

/* Nothing on the screen at that second: the words take the stage, the line said now in the middle, marked by an
   accent rail on the left like a lyrics view. */
.recbox__stage.is-words .recbox__blank { place-content: center stretch; justify-items: stretch; text-align: start; }
.recbox__words {
  display: grid;
  gap: var(--s-3);
  max-width: 46rem;
  margin-inline: auto;
  padding-left: var(--s-4);
  border-left: 2px solid var(--rp-line);
}
.recbox__said {
  color: var(--rp-text-3);
  font-size: var(--fs-16);
  line-height: 1.45;
  transition: color 0.3s, opacity 0.3s;
}
.recbox__said.is-now {
  position: relative;
  color: var(--rp-text);
  font-size: clamp(var(--fs-18), 1.9vw, var(--fs-24));
  font-weight: 500;
  line-height: 1.4;
}
.recbox__said.is-now::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-4) - 2px);
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  border-radius: 2px;
  background: var(--rp-accent);
  box-shadow: 0 0 12px var(--rp-accent);
}
.recbox__said.is-past { opacity: 0.55; }
.recbox__said.is-later { opacity: 0.6; }
/* A long line around the one said now would push it off the stage: two lines each, four for the line itself. */
.recbox__said {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.recbox__said.is-now { -webkit-line-clamp: 4; overflow: visible; }
.recbox__wait {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3) var(--s-3);
  background: linear-gradient(transparent, rgb(0 0 0 / 0.6));
  color: var(--rp-text);
  font-size: var(--fs-14);
}
.recbox__wait[hidden] { display: none; }
.recbox__spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--rp-glass-hover);
  border-top-color: var(--rp-accent);
  border-radius: 50%;
  animation: recbox-spin 0.8s linear infinite;
}
@keyframes recbox-spin { to { transform: rotate(360deg); } }

/* Our transcript under the picture: the words of that very second. */
.recbox__line {
  min-height: 2.8em;
  color: var(--rp-text);
  font-size: var(--fs-16);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.recbox__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.recbox .recbox__play {
  width: 48px;
  height: 48px;
  background: var(--rp-accent);
  color: var(--rp-bg);
  box-shadow: 0 6px 20px -6px var(--rp-accent);
}
.recbox .recbox__play:hover { background: var(--rp-text); color: var(--rp-bg); }
.recbox .recbox__play:active { scale: 0.94; }
.recbox__play svg { width: 20px; height: 20px; fill: currentColor; }

/* The seek bar is drawn by hand: the played part in the accent (--p from js), a white knob that grows under a finger. */
.recbox__seek {
  --p: 0;
  flex: 1;
  min-width: 0;
  height: 24px;
  margin: 0 var(--s-2);
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.recbox__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rp-accent) calc(var(--p) * 100%), var(--rp-glass-hover) 0);
}
.recbox__seek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rp-glass-hover); }
.recbox__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--rp-accent); }
.recbox__seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--rp-text);
  box-shadow: 0 0 0 4px var(--rp-glow);
  transition: scale var(--dur-micro) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.recbox__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--rp-text);
  box-shadow: 0 0 0 4px var(--rp-glow);
}
.recbox__seek:hover::-webkit-slider-thumb,
.recbox__seek:active::-webkit-slider-thumb { scale: 1.25; }
.recbox__time {
  color: var(--rp-text-2);
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.recbox__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  color: var(--rp-text-3);
  font-size: var(--fs-12);
}
.recbox__out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--rp-glass);
  color: var(--rp-text-2);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.recbox__out:hover { background: var(--rp-glass-hover); color: var(--rp-text); }
.recbox__out svg { width: 13px; height: 13px; transition: translate var(--dur-micro) var(--ease-out); }
.recbox__out:hover svg { translate: 2px 0; }

/* A wide screen: a player as on YouTube — subtitles on the picture in the middle, the controls float over its bottom
   and go away with the mouse (or after 3 s of playing), the subtitles drop down after them. A phone held upright
   keeps everything under the picture, for the thumb. */
@media (min-width: 600px) and (min-height: 521px) {
  .recbox__view {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--rp-line), 0 18px 50px -24px var(--rp-glow);
  }
  .recbox__stage { box-shadow: none; border-radius: 0; }
  .recbox__sub {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 76px;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 0 var(--s-4);
    pointer-events: none;
    transition: bottom 0.25s ease;
  }
  .recbox.is-idle .recbox__sub { bottom: var(--s-4); }
  .recbox__line {
    min-height: 0;
    max-width: min(88%, 52rem);
    padding: 0.2em 0.6em;
    border-radius: 8px;
    background: rgb(0 0 0 / 0.7);
    color: #fff;
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .recbox__line:empty { display: none; }
  .recbox__stage.is-words ~ .recbox__sub { display: none; }
  .recbox__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 44px var(--s-3) var(--s-3);
    background: linear-gradient(transparent, rgb(0 0 0 / 0.78));
    transition: opacity 0.25s ease;
  }
  .recbox.is-idle .recbox__bar { opacity: 0; pointer-events: none; }
  .recbox.is-idle .recbox__view { cursor: none; }
  .recbox__time { color: rgb(255 255 255 / 0.85); }
  .recbox__stage.is-words .recbox__blank { padding-bottom: 88px; }
}

/* «Смотреть» next to the section's time and on every transcript line. */
.nt-sec__when { display: inline-flex; flex: none; align-items: center; gap: var(--s-2); }
.nt-sec__watch,
.tr-line__watch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
}
.nt-sec__watch svg,
.tr-line__watch svg { width: 12px; height: 12px; }
.tr-line__watch {
  align-self: start;
  justify-content: flex-start;
  padding: 3px 0 0;
  background: transparent;
  color: var(--text-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.tr-line__watch:hover { color: var(--accent-text); }
.tr-line__watch svg { opacity: 0; transition: opacity 0.15s; }
.tr-line:hover .tr-line__watch svg,
.tr-line__watch:focus-visible svg { opacity: 1; }

/* A phone: the whole screen, a player's order — the picture edge to edge on top, the controls under the thumb at the
   bottom. Nothing changes height while it plays: the stage stays 16:9 whatever is on it, the line under it keeps
   three lines. */
@media (max-width: 599px) {
  .recbox { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .recbox__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: max(var(--s-2), env(safe-area-inset-top)) var(--s-3) max(var(--s-3), env(safe-area-inset-bottom));
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .recbox[open] .recbox__card { animation-name: recbox-up; }
  .recbox__view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .recbox__cap { font-size: var(--fs-16); }
  .recbox .recbox__top .icon-btn { width: 40px; height: 40px; }
  .recbox__stage { flex: none; margin-inline: calc(-1 * var(--s-3)); border-radius: 0; box-shadow: none; }
  .recbox__said { font-size: var(--fs-14); }
  .recbox__said.is-now { font-size: var(--fs-18); -webkit-line-clamp: 6; }
  .recbox__words { padding-left: var(--s-3); }
  .recbox__said.is-now::before { left: calc(-1 * var(--s-3) - 2px); }
  .recbox__line { height: 4.2em; min-height: 0; -webkit-line-clamp: 3; }
  /* Only words to show: they take the free height down to the controls, the line under the stage is not needed. */
  .recbox__stage.is-words { flex: 1 1 auto; aspect-ratio: auto; max-height: none; min-height: 12rem; }
  .recbox__stage.is-words + .recbox__sub { display: none; }
  /* A phone player's controls: the bar and its time on top, the big play between the jumps under the thumb. */
  .recbox__bar { flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin-top: auto; }
  .recbox__seek { order: -2; flex-basis: 100%; margin: 0; }
  .recbox__time { order: -1; flex-basis: 100%; margin-top: -6px; text-align: right; font-size: var(--fs-12); }
  .recbox .recbox__play { width: 60px; height: 60px; }
  .recbox__play svg { width: 24px; height: 24px; }
  .recbox .recbox__bar .btn--sm { min-width: 56px; }
  .recbox__bar [data-rp-jump="-10"] { order: 0; }
  .recbox .recbox__play { order: 1; }
  .recbox__bar [data-rp-jump="10"] { order: 2; }
  .recbox__note { justify-content: center; text-align: center; }
  .recbox__out { margin-left: 0; }
  .tr-line__watch svg { opacity: 1; }
}
@keyframes recbox-up { from { opacity: 0; transform: translateY(24px); } }

/* A phone held sideways but taken out of full screen: still the whole screen, the stage takes what the controls
   leave (as a card 16:9 with max-height it hugged the left edge and pushed the controls off the bottom). */
@media (orientation: landscape) and (max-height: 520px) {
  .recbox { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .recbox .recbox__card {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    height: 100%;
    padding: var(--s-2) max(var(--s-3), env(safe-area-inset-right)) var(--s-2) max(var(--s-3), env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .recbox .recbox__view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: var(--s-2); }
  .recbox .recbox__stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; max-height: none; }
  .recbox .recbox__line { min-height: 0; -webkit-line-clamp: 1; }
  .recbox .recbox__note { display: none; }
}

/* ── Full screen (js/recplay.js `full`). The browser's own on a computer and Android, the card over the whole page
   on an iPhone — the same class either way. */
.recbox.is-full .recbox__card {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--rp-stage);
  box-shadow: none;
  animation: none;
}
.recbox.is-full .recbox__note { display: none; }
.recbox.is-full .recbox__view { position: static; display: block; border-radius: 0; box-shadow: none; overflow: visible; }
.recbox.is-full .icon-btn,
.recbox.is-full .btn--ghost {
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.recbox.is-full .recbox__play { background: var(--rp-accent); }
.recbox.is-full .recbox__time { color: rgb(255 255 255 / 0.85); }

/* Our own player: the picture under everything, the controls float over it and fade away while it plays. */
.recbox.is-full .recbox__card { display: block; }
.recbox.is-full .recbox__stage {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.recbox.is-full .recbox__top,
.recbox.is-full .recbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  transition: opacity 0.25s ease;
}
.recbox.is-full .recbox__top {
  top: 0;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
  background: linear-gradient(rgb(0 0 0 / 0.65), transparent);
}
.recbox.is-full .recbox__bar {
  bottom: 0;
  flex-wrap: wrap;
  padding: 36px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
}
.recbox.is-full .recbox__seek { order: -2; flex-basis: 100%; margin: 0; }
.recbox.is-full .recbox__time { margin-left: auto; }
.recbox.is-full.is-idle .recbox__top,
.recbox.is-full.is-idle .recbox__bar { opacity: 0; pointer-events: none; }
.recbox.is-full.is-idle { cursor: none; }

/* Subtitles on the picture: a dark plate under the words, two lines at most, balanced; they drop down when the
   controls hide. */
.recbox.is-full .recbox__sub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(118px + env(safe-area-inset-bottom));
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 max(16px, env(safe-area-inset-left));
  pointer-events: none;
  transition: bottom 0.25s ease;
}
.recbox.is-full.is-idle .recbox__sub { bottom: max(28px, env(safe-area-inset-bottom)); }
.recbox.is-full .recbox__line {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: min(92%, 56rem);
  padding: 0.25em 0.65em;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.66);
  color: #fff;
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  -webkit-line-clamp: 3;
}
.recbox.is-full .recbox__line:empty { display: none; }
.recbox.is-full .recbox__stage.is-words ~ .recbox__sub { display: none; }
/* Only words on the stage: big. */
.recbox.is-full .recbox__said { font-size: clamp(15px, 1.8vw, 22px); }
.recbox.is-full .recbox__said.is-now { font-size: clamp(20px, 3vw, 36px); -webkit-line-clamp: 5; }
.recbox.is-full .recbox__words { max-width: 60rem; }

@media (prefers-reduced-motion: reduce) {
  .recbox__spin { animation-duration: 2.4s; }
  .recbox[open] .recbox__card { animation: none; }
  .recbox__bar, .recbox__sub, .recbox.is-full .recbox__top { transition: none; }
}

@media print { .nt-sec__watch, .recbox { display: none !important; } }


/* ── The pair's chat (js/recplay.js `showChat`): a glass panel over the right of the picture; a phone held upright —
   a sheet from the bottom. A message passing while it is closed knocks on the picture (`.recbox__ping`). */
.recbox__chatbtn { position: relative; }
.recbox__chatbtn[hidden] { display: none; }
.recbox__count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--rp-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.recbox .recbox__chatbtn[aria-pressed="true"] { background: var(--rp-text); color: var(--rp-bg); }
.recbox__view { position: relative; }
.recbox__chat {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  bottom: 84px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(380px, 46%);
  border: 1px solid var(--rp-line);
  border-radius: var(--r-lg);
  background: rgb(18 14 25 / 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--rp-text);
  cursor: auto;
}
.recbox__chat[hidden] { display: none; }
.recbox.is-idle .recbox__chat { bottom: var(--s-3); }
.recbox__chathead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  font-weight: 600;
  font-size: var(--fs-14);
}
.recbox__chathead .icon-btn { width: 32px; height: 32px; }
.recbox__chatlist { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 var(--s-4) var(--s-4); }
.recbox .chatlog {
  gap: var(--s-4);
  --cl-text: var(--rp-text);
  --cl-text-2: var(--rp-text-2);
  --cl-text-3: var(--rp-text-3);
  --cl-plate: rgb(255 255 255 / 0.07);
}
.recbox .chatlog__item.is-teacher .chatlog__who { color: var(--rp-accent); }
.recbox .chatlog__url { color: #d9c2ff; }
.recbox .chatlog__ext, .recbox .chatlog__copy { background: rgb(176 124 255 / 0.22); color: #e6d6ff; }
.recbox .chatlog__item.is-ahead { opacity: 0.45; }
.recbox__chatat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--rp-glass);
  color: var(--rp-text-2);
  font: inherit;
  font-size: var(--fs-12);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.recbox__chatat:hover { background: var(--rp-glass-hover); color: var(--rp-text); }
.recbox__chatat svg { width: 10px; height: 10px; fill: currentColor; }

.recbox__ping {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  max-width: calc(100% - 2 * var(--s-3));
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--rp-accent);
  color: #fff;
  font: inherit;
  font-size: var(--fs-14);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.6);
  cursor: pointer;
  animation: recbox-ping 0.35s var(--ease-out);
}
.recbox__ping[hidden] { display: none; }
.recbox__ping svg { width: 16px; height: 16px; flex: none; }
@keyframes recbox-ping { from { opacity: 0; transform: translateY(-6px); } }
.recbox.is-full .recbox__ping { top: 72px; }
.recbox.is-full .recbox__chat { top: 72px; bottom: 96px; }

@media (max-width: 599px) {
  .recbox.has-chat .recbox__chat,
  .recbox__chat {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 62dvh;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: rgb(18 14 25 / 0.96);
  }
  .recbox.is-full .recbox__chat { top: auto; bottom: 0; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .recbox .recbox__chat { position: absolute; top: var(--s-2); bottom: var(--s-2); width: min(340px, 48%); max-height: none; border-radius: var(--r-lg); }
}
@media (prefers-reduced-motion: reduce) { .recbox__ping { animation: none; } }

/* «Субтитры» off wins everywhere (Max 29.10: on the phone held sideways — full screen — they stayed: the full-screen
   rule above set display back). Last in the file and doubled for weight on purpose. */
.recbox.recbox:not(.has-subs) .recbox__sub { display: none; }
