/* ── v114: «Видео на стрим» — телевизор эфира, заявка, эфирная сетка ───────── */
.yv {
  --ink: #f7eefc; --mute: #c0aed0; --faint: #8a779e;
  --pink: var(--accent, #ff4f9a); --violet: #8b5cff; --gold: #f6c343; --red: #ff3d5a; --mint: #49e0a6; --cyan: #41e0ff; --flame: #ff8a3c;
  --panel: rgba(30, 15, 40, 0.86); --tint: rgba(255, 255, 255, 0.035); --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
  --well: #100816;
  --spring: cubic-bezier(0.32, 0.72, 0, 1); --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Geologica', system-ui, sans-serif; --display: 'Dela Gothic One', 'Geologica', sans-serif; --hand: 'Caveat', cursive;
  position: relative; isolation: isolate; height: 100%; overflow: hidden; container-type: inline-size;
  color: var(--ink); font-family: var(--font);
  background:
    radial-gradient(900px 520px at 26% -10%, rgba(255, 61, 90, 0.2), transparent 62%),
    radial-gradient(820px 600px at 110% 24%, rgba(139, 92, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #170a20, #0c0612 74%);
}
/* faint broadcast lines over the whole window */
.yv::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px); }
:where(.yv) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.yv) h2, :where(.yv) h3, :where(.yv) h4, :where(.yv) p, :where(.yv) ul, :where(.yv) ol, :where(.yv) figure { margin: 0; }
:where(.yv) a { color: inherit; }
.yv .ico { width: 1em; height: 1em; flex: none; }
.yv :focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.yv-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.yv-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(18px, 2.6cqw, 30px) clamp(14px, 3cqw, 36px) 44px; display: grid; gap: clamp(18px, 2.4cqw, 26px); }

/* ── head ── */
.yv-head { display: grid; gap: 8px; max-width: 760px; }
.yv-title { font: 400 clamp(30px, 5.2cqw, 56px)/0.95 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.yv-lead { max-width: 62ch; color: var(--mute); font-size: 15px; line-height: 1.55; }

/* ── stage: the TV and the form ── */
.yv-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(16px, 2.4cqw, 30px); align-items: start; }

.yv-tv { display: grid; gap: 14px; }
.yv-tv-body { position: relative; padding: 14px 14px 0; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(165deg, #2c1838 0%, #170c1f 55%, #120918 100%);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -2px 0 rgba(0, 0, 0, 0.4); }
.yv-tv-body::before { content: ''; position: absolute; inset: 18% -4% -14%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 79, 154, 0.28), transparent); transition: opacity 600ms ease; opacity: 0.6; }
.yv.is-live .yv-tv-body::before { opacity: 1; background: radial-gradient(closest-side, rgba(255, 61, 90, 0.34), transparent); }
.yv-tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px / 16px; background: #050307;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.yv-tv-pic { position: absolute; inset: 0; background: #050307; }
.yv-tv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hqdefault has black bands above and below — cut them off */
.yv-tv-img.is-hq { top: -16.7%; height: 133.4%; }
.yv-tv-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px); }
.yv-tv-sweep { position: absolute; left: 0; right: 0; top: 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.07), transparent); animation: yv-sweep 7s linear infinite; }
@keyframes yv-sweep { from { transform: translateY(-100%); } to { transform: translateY(480%); } }
.yv-tv-glass { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.55)), linear-gradient(118deg, rgba(255, 255, 255, 0.11), transparent 32%); }
.yv-tv-flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.yv-tv-foot { display: flex; align-items: center; gap: 14px; padding: 11px 6px 13px; }
.yv-tv-brand { display: inline-flex; align-items: baseline; gap: 3px; color: rgba(247, 238, 252, 0.7); }
.yv-tv-brand b { font: 400 25px/1 'Allura', var(--hand); }
.yv-tv-brand small { font: 400 11px/1 var(--display); color: var(--faint); }
.yv-tv-dots { display: flex; gap: 5px; margin-right: auto; }
.yv-tv-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.yv-lamp { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--faint); font: 700 12px/1 var(--font); letter-spacing: 0.04em; transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease; }
.yv-lamp i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3b2444; transition: background-color 300ms ease; }
.yv-lamp.is-on { color: #fff; border-color: rgba(255, 61, 90, 0.6); background: rgba(255, 61, 90, 0.16); }
.yv-lamp.is-on i { background: var(--red); box-shadow: 0 0 10px rgba(255, 61, 90, 0.9); }
.yv-lamp.is-on i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: yv-ping 1.7s var(--spring) infinite; }
@keyframes yv-ping { from { transform: scale(1); opacity: 0.75; } to { transform: scale(3.2); opacity: 0; } }

.yv-tv-cap { display: grid; gap: 6px; padding: 0 6px; min-height: 52px; }
.yv-cap-title { font: 600 clamp(17px, 2cqw, 21px)/1.25 var(--font); text-wrap: balance; }
.yv-cap-title a { text-decoration: none; }
.yv-cap-title a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.yv-cap-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--mute); font-size: 14px; line-height: 1.45; }

/* the test card — when nothing is on */
.yv-test { position: absolute; inset: 0; background: #130a1a; }
.yv-test-bars { position: absolute; inset: 0 0 26% 0; background: linear-gradient(90deg, #ece2f3 0 14.29%, #f6c343 0 28.57%, #41e0ff 0 42.86%, #49e0a6 0 57.14%, #ff4f9a 0 71.43%, #ff3d5a 0 85.71%, #8b5cff 0); }
.yv-test-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background:
    linear-gradient(90deg, #8b5cff 0 14.29%, #130a1a 0 28.57%, #ff4f9a 0 42.86%, #130a1a 0 57.14%, #41e0ff 0 71.43%, #130a1a 0 85.71%, #ece2f3 0) top / 100% 38% no-repeat,
    linear-gradient(90deg, #0c0610 0 20%, #2a1734 0 40%, #4a2d58 0 60%, #7a5390 0 80%, #c2a6d6 0) bottom / 100% 62% no-repeat; }
.yv-test-grid { position: absolute; inset: 0; opacity: 0.32; background-image: linear-gradient(rgba(19, 10, 26, 0.9) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 10, 26, 0.9) 1px, transparent 1px); background-size: 7.142% 12.5%; }
.yv-test-disc { position: absolute; left: 50%; top: 46%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 50%;
  background: radial-gradient(circle, #1b0d24 0 64%, #130a1a 65%); box-shadow: 0 0 0 3px #f7eefc, 0 0 0 9px #130a1a, 0 0 0 11px #f7eefc; }
.yv-test-ring { position: absolute; inset: 10%; border-radius: 50%; border: 2px dashed rgba(247, 238, 252, 0.28); animation: yv-spin 24s linear infinite; }
@keyframes yv-spin { to { transform: rotate(360deg); } }
.yv-test-disc b { font: 400 clamp(30px, 6.2cqw, 72px)/0.9 'Allura', var(--hand); color: #fff; }
.yv-test-disc small { font: 600 clamp(10px, 1.1cqw, 13px)/1 var(--font); color: var(--mute); letter-spacing: 0.05em; }

/* ── the form ── */
.yv-side { display: grid; }
.yv-form { position: relative; display: grid; gap: 14px; padding: clamp(18px, 2.4cqw, 26px); border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(40, 20, 52, 0.92), rgba(24, 12, 32, 0.92)); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.yv-form-title { font: 400 22px/1.1 var(--display); }
.yv-link { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--well);
  transition: border-color 180ms ease, box-shadow 180ms ease; }
.yv-link:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 154, 0.16); }
.yv-link.is-ok { border-color: rgba(73, 224, 166, 0.65); }
.yv-link.is-bad { border-color: rgba(255, 61, 90, 0.75); }
.yv-mark { width: 34px; height: 24px; flex: none; color: #ff3d5a; transition: transform 300ms var(--pop); }
.yv-link.is-ok .yv-mark { transform: scale(1.12); }
.yv-link input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 500 16px/1 var(--font); outline: none; }
.yv-link input::placeholder { color: var(--faint); }
.yv-link-clear { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--faint); font-size: 18px; transition: background-color 160ms ease, color 160ms ease; }
.yv-link-clear:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.yv-link-clear[hidden] { display: none; }

.yv-peek { display: grid; gap: 10px; }
.yv-peek:empty { display: none; }
.yv-peek-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--tint); }
.yv-peek-card.is-bad { opacity: 0.6; }
.yv-peek-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.yv-peek-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yv-peek-text { display: grid; gap: 4px; min-width: 0; }
.yv-peek-text b { font: 600 15px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.yv-peek-text small { color: var(--mute); font-size: 13px; }
.yv-peek-card.is-loading .yv-peek-thumb, .yv-peek-card.is-loading .yv-peek-text i { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.yv-peek-card.is-loading .yv-peek-text i { display: block; height: 12px; border-radius: 6px; }
.yv-peek-card.is-loading .yv-peek-text i + i { width: 60%; }
.yv-peek-card.is-loading .yv-peek-thumb::after, .yv-peek-card.is-loading .yv-peek-text i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: yv-shimmer 1.1s ease-in-out infinite; }
@keyframes yv-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.yv-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.yv-flag { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--mute); font: 700 11px/1.2 var(--font); }
.yv-flag.is-warn { background: rgba(255, 61, 90, 0.18); color: #ffb3c0; }
.yv-peek-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--mute); font-size: 14px; line-height: 1.4; }
.yv-peek-note > .ico { font-size: 18px; color: var(--faint); }
.yv-peek-note > span { flex: 1 1 200px; }
.yv-peek-note.is-bad { background: rgba(255, 61, 90, 0.12); color: #ffc2cd; }
.yv-peek-note.is-bad > .ico { color: var(--red); }
.yv-peek-note.is-info { background: rgba(246, 195, 67, 0.1); color: #ffe2a0; }
.yv-peek-note.is-info > .ico { color: var(--gold); }

.yv-field { display: grid; gap: 7px; }
.yv-field > span { font: 600 13px/1.2 var(--font); color: var(--mute); }
.yv-field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--well); color: var(--ink); font: 400 15px/1 var(--font); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.yv-field input::placeholder { color: var(--faint); }
.yv-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 154, 0.14); }
.yv-sign { display: grid; gap: 10px; }
.yv-signed { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(139, 92, 255, 0.14); border: 1px solid rgba(139, 92, 255, 0.4); font-size: 14px; }
.yv-signed > .ico { font-size: 20px; color: #b79bff; }
.yv-twitch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; justify-self: start; color: #c9b5ff; font: 600 14px/1.3 var(--font); text-decoration: none; }
.yv-twitch .ico { font-size: 18px; }
.yv-twitch small { color: var(--faint); font-weight: 400; font-size: 13px; }
.yv-twitch:hover span { text-decoration: underline; text-underline-offset: 3px; }
.yv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.yv-err { padding: 10px 12px; border-radius: 12px; background: rgba(255, 61, 90, 0.14); color: #ffc2cd; font: 600 14px/1.4 var(--font); }
.yv-err[hidden], .yv-sent[hidden] { display: none; }
.yv-sent { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(73, 224, 166, 0.12); border: 1px solid rgba(73, 224, 166, 0.4); color: #c4f7e2; font-size: 14px; line-height: 1.4; }
.yv-sent .ico { font-size: 22px; color: var(--mint); }

.yv-send { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 16px;
  background: linear-gradient(180deg, #ff6aac, #ff3f8f); color: #23060f; font: 400 17px/1 var(--display); text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(255, 79, 154, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: transform 180ms var(--spring), opacity 200ms ease, box-shadow 200ms ease; }
.yv-send .ico { font-size: 20px; }
.yv-send:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .yv-send:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 79, 154, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); } }
.yv-send:active:not(:disabled) { transform: scale(0.97); }
.yv-send.is-busy { color: transparent; }
.yv-send.is-busy::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(35, 6, 15, 0.3); border-top-color: #23060f; animation: yv-spin 700ms linear infinite; }
.yv-fine { color: var(--faint); font-size: 13px; line-height: 1.5; }
.yv-rules { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yv-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--mute); font-size: 12px; line-height: 1.3; }
.yv-rules li .ico { color: var(--faint); font-size: 14px; }
.yv-rules-own { white-space: pre-line; color: var(--mute); font-size: 13px; line-height: 1.5; padding-left: 12px; border-left: 2px solid rgba(255, 79, 154, 0.5); }
.yv-closed { justify-items: start; }
.yv-closed p { color: var(--mute); font-size: 15px; line-height: 1.5; }
.yv-closed-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(139, 92, 255, 0.16); color: #c9b5ff; font-size: 28px; }
.yv-closed-ico.is-twitch { background: rgba(145, 70, 255, 0.2); }
.yv-closed .yv-send { justify-self: stretch; }

/* the card that flies into «Мои заявки» */
.yv-fly { position: absolute; z-index: 40; pointer-events: none; margin: 0; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); background: #24122f; will-change: transform, opacity; }

/* ── tabs ── */
.yv-tabs { position: relative; display: flex; gap: clamp(16px, 3cqw, 36px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.yv-tabs::-webkit-scrollbar { display: none; }
.yv-tabs button { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 4px 0 14px; color: var(--faint); font: 400 clamp(16px, 1.9cqw, 20px)/1 var(--display); transition: color 200ms ease; }
.yv-tabs button:hover { color: var(--mute); }
.yv-tabs button[aria-selected='true'] { color: var(--ink); }
.yv-tab-short { display: none; }
.yv-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--mute); font: 700 12px/22px var(--font); text-align: center; font-variant-numeric: tabular-nums; transition: background-color 200ms ease, color 200ms ease; }
.yv-tabs button[aria-selected='true'] .yv-count { background: var(--pink); color: #23060f; }
.yv-tabs-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink); transition: transform 420ms var(--spring), width 420ms var(--spring); }

/* ── the rundown: the queue and «Мои заявки» ── */
.yv-panel { display: grid; gap: 14px; min-height: 160px; }
.yv-panel-note { color: var(--faint); font-size: 13px; line-height: 1.5; }
.yv-rundown { list-style: none; padding: 0; display: grid; gap: 10px; }
.yv-row { position: relative; display: grid; grid-template-columns: 52px 184px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 10px 16px 10px 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--tint); }
.yv-rundown.is-mine .yv-row { grid-template-columns: 184px minmax(0, 1fr) auto; padding-left: 10px; }
.yv-row.is-next { border-color: rgba(255, 79, 154, 0.5); background: linear-gradient(90deg, rgba(255, 79, 154, 0.16), rgba(255, 79, 154, 0.03) 62%); }
.yv-row.is-flash { animation: yv-flash 1.5s ease-out; }
@keyframes yv-flash { from { box-shadow: 0 0 0 3px var(--gold); } to { box-shadow: 0 0 0 3px transparent; } }
.yv-pos { justify-self: center; color: var(--faint); font: 400 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.yv-row.is-next .yv-pos { color: var(--pink); }
.yv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.yv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--spring); }
.yv-dur { position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(8, 4, 10, 0.86); color: #fff; font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.yv-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 5, 16, 0.4); color: #fff; font-size: 34px; opacity: 0; transition: opacity 200ms ease; }
.yv-play .ico { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
@media (hover: hover) and (pointer: fine) {
  .yv-thumb:hover img { transform: scale(1.06); }
  .yv-thumb:hover .yv-play { opacity: 1; }
}
.yv-pos-badge { display: none; }
.yv-info { display: grid; gap: 5px; min-width: 0; }
.yv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.yv-tag { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--mute); font: 700 11px/1.3 var(--font); }
.yv-tag.is-next { background: var(--pink); color: #23060f; }
.yv-tag.is-pin { background: rgba(246, 195, 67, 0.16); color: var(--gold); }
.yv-name { font: 600 16px/1.32 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.yv-by { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; color: var(--mute); font-size: 13px; line-height: 1.4; }
.yv-from b { color: var(--ink); font-weight: 600; }
.yv-check { display: inline-grid; vertical-align: -2px; margin-left: 5px; color: #b79bff; font-size: 15px; }
.yv-note { margin-top: 2px; color: #ffd3e6; font: 600 21px/1.1 var(--hand); overflow-wrap: anywhere; }
.yv-reason { display: flex; gap: 8px; align-items: flex-start; color: var(--mute); font-size: 13px; line-height: 1.4; }
.yv-reason .ico { margin-top: 2px; color: var(--faint); }
.yv-side-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.yv-fire { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 66px; padding: 9px 10px 8px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--faint);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 160ms var(--spring); }
.yv-fire .ico { font-size: 26px; }
.yv-fire b { font: 700 14px/1 var(--font); color: var(--mute); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .yv-fire:hover { border-color: rgba(255, 138, 60, 0.6); color: #ffb37a; } }
.yv-fire:active { transform: scale(0.94); }
.yv-fire.is-on { color: var(--flame); border-color: rgba(255, 138, 60, 0.7); background: radial-gradient(120% 90% at 50% 100%, rgba(255, 138, 60, 0.3), rgba(255, 79, 154, 0.08)); }
.yv-fire.is-on b { color: #ffd2ad; }
.yv-spark { position: absolute; left: 50%; top: 38%; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }

.yv-stamp { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid; font: 700 13px/1 var(--font); white-space: nowrap; }
.yv-stamp .ico { font-size: 16px; }
.yv-stamp.s-new { color: #ffdc8f; border-color: rgba(246, 195, 67, 0.45); background: rgba(246, 195, 67, 0.1); }
.yv-stamp.s-new .ico { animation: yv-turn 2.6s var(--spring) infinite; }
@keyframes yv-turn { 0%, 55% { transform: rotate(0); } 75%, 100% { transform: rotate(180deg); } }
.yv-stamp.s-queue { color: #ffc0dc; border-color: rgba(255, 79, 154, 0.5); background: rgba(255, 79, 154, 0.12); }
.yv-stamp.s-now { color: #fff; border-color: rgba(255, 61, 90, 0.65); background: rgba(255, 61, 90, 0.2); }
.yv-stamp.s-now i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.yv-stamp.s-now i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: yv-ping 1.7s var(--spring) infinite; }
.yv-stamp.s-done { color: #b8f5dc; border-color: rgba(73, 224, 166, 0.45); background: rgba(73, 224, 166, 0.1); }
.yv-stamp.s-skip { color: var(--faint); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.yv-row.is-skip .yv-thumb img { opacity: 0.45; }
.yv-row.is-skip .yv-name { color: var(--mute); }

.yv-mini { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--ink); font: 600 13px/1 var(--font); white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.yv-mini:hover { background: rgba(255, 255, 255, 0.14); }
.yv-mini.is-ghost { background: none; color: var(--faint); }
.yv-mini.is-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.yv-mini.is-danger { background: rgba(255, 61, 90, 0.2); color: #ffc2cd; }
.yv-mini.is-danger:hover { background: rgba(255, 61, 90, 0.32); }
.yv-mini:disabled { opacity: 0.5; cursor: default; }
.yv-ask { color: var(--mute); font-size: 13px; }
.yv-tip { position: absolute; right: 12px; bottom: calc(100% - 6px); z-index: 5; max-width: 280px; padding: 8px 12px; border-radius: 10px; background: #2d1638; border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; line-height: 1.35; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }

/* ── «Уже смотрели»: a wall of watched videos ── */
.yv-wall { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 16px; }
.yv-tile { display: grid; gap: 8px; align-content: start; }
.yv-tile .yv-name { font-size: 14px; }
.yv-tile .yv-by { font-size: 12px; gap: 2px 10px; }
.yv-seen { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(12, 6, 16, 0.8); color: var(--mint); font-size: 18px; }

.yv-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 16px 40px; border-radius: 22px; border: 1px dashed var(--line-2); text-align: center; }
.yv-empty-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 79, 154, 0.12); color: var(--pink); font-size: 30px; margin-bottom: 4px; }
.yv-empty b { font: 400 19px/1.2 var(--display); }
.yv-empty p { max-width: 46ch; color: var(--mute); font-size: 14px; line-height: 1.5; }

/* ── the sites: a coloured label, and a plate when a video has no picture ── */
.yv-site, .yv-noimg, .yv-link { --site: #3a2a48; --site-ink: #f7eefc; }
.yv [data-kind='youtube'] { --site: #ff3d5a; --site-ink: #fff; }
.yv [data-kind='tiktok'] { --site: #101014; --site-ink: #6ff3f0; }
.yv [data-kind='twitch'] { --site: #9146ff; --site-ink: #fff; }
.yv [data-kind='vk'] { --site: #0077ff; --site-ink: #fff; }
.yv [data-kind='rutube'] { --site: #13202d; --site-ink: #3fd8ff; }
.yv [data-kind='coub'] { --site: #1f45ff; --site-ink: #fff; }
.yv [data-kind='dzen'] { --site: #000; --site-ink: #fff; }
.yv [data-kind='instagram'] { --site: #d62976; --site-ink: #fff; }
.yv [data-kind='telegram'] { --site: #2aabee; --site-ink: #fff; }
.yv [data-kind='x'] { --site: #000; --site-ink: #fff; }
.yv [data-kind='reddit'] { --site: #ff4500; --site-ink: #fff; }
.yv-site { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--site); color: var(--site-ink); font: 700 11px/1 var(--font); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.yv-thumb .yv-site { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; }
.yv-noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 8px; text-align: center;
  background: radial-gradient(120% 120% at 30% 0%, var(--site), color-mix(in srgb, var(--site) 40%, #0c0612) 72%); color: var(--site-ink); }
.yv-noimg .ico { font-size: 30px; opacity: 0.92; }
.yv-noimg b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.1 var(--font); }
.yv-thumb .yv-noimg ~ .yv-site { display: none; }
.yv-peek-thumb .yv-noimg .ico { font-size: 24px; }
.yv-link .yv-mark { color: #ff4f9a; transition: color 260ms ease, transform 300ms var(--pop); }
.yv-link[data-kind] .yv-mark { color: var(--site); }
.yv-link[data-kind='tiktok'] .yv-mark, .yv-link[data-kind='dzen'] .yv-mark, .yv-link[data-kind='x'] .yv-mark, .yv-link[data-kind='rutube'] .yv-mark { color: #4a3f5c; }
.yv-tv-img.is-tall { object-fit: contain; background: radial-gradient(closest-side, #2a1736, #07040a); }
.yv-test-disc:has(b.is-site) { container-type: inline-size; }
.yv-test-disc b.is-site { max-width: 82cqi; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12cqi/1.15 var(--display); }

/* ── narrower windows ── */
@container (max-width: 860px) {
  .yv-stage { grid-template-columns: minmax(0, 1fr); }
  .yv-side { order: -1; }
}
@container (max-width: 640px) {
  .yv-wrap { gap: 18px; }
  .yv-row, .yv-rundown.is-mine .yv-row { grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: 'thumb info' 'side side'; gap: 10px 12px; padding: 10px; }
  .yv-row .yv-pos { display: none; }
  .yv-row .yv-thumb { grid-area: thumb; align-self: start; border-radius: 10px; }
  .yv-row .yv-info { grid-area: info; }
  .yv-row .yv-side-col { grid-area: side; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .yv-row:has(.yv-side-col:empty) { grid-template-areas: 'thumb info'; }
  .yv-pos-badge { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: rgba(12, 6, 16, 0.86); color: #fff; font: 400 13px/1 var(--display); }
  .yv-row.is-next .yv-pos-badge { background: var(--pink); color: #23060f; }
  .yv-name { font-size: 15px; }
  .yv-tabs { gap: 18px; }
  .yv-tab-full { display: none; }
  .yv-tab-short { display: inline; }
  .yv-note { font-size: 19px; }
  .yv-fire { grid-auto-flow: column; align-items: center; gap: 7px; min-width: 0; padding: 7px 14px; }
  .yv-fire .ico { font-size: 20px; }
  .yv-peek-card { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .yv-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .yv-tv-body { padding: 10px 10px 0; border-radius: 22px; }
  .yv-tv-dots { display: none; }
  .yv-tv-foot { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .yv-tv-sweep, .yv-test-ring, .yv-lamp.is-on i::after, .yv-stamp.s-new .ico, .yv-stamp.s-now i::after, .yv-peek-card.is-loading .yv-peek-thumb::after, .yv-peek-card.is-loading .yv-peek-text i::after { animation: none; }
  .yv-thumb img, .yv-tabs-bar, .yv-send, .yv-fire, .yv-mark { transition: none; }
}
