/* tv-video.css · «Tu video», the weekly video step of Dralingo TV (2026-10-31; js/tv-video.js, design
   `.claude/handoff/tv-design/index.html` «Tu video»). Three steps with pictures: Escucha (the homework's six «TOMAS»
   lines with their audio) · Graba (the front camera inside the page, the line to say big on top) · Manda (the phone's
   share menu → WhatsApp → the teacher), then the party. YCT 1: warm paper, Lùlù talks. New HSK / HSK (`is-teen`): dark
   jade luxe, no speech bubbles, Lùlù small. Every class starts with `tvv-`: the module lives inside other pages.
   Pinyin: Noto Sans ExtraBold (the self-hosted study subset) + the tone vowels it lacks (pinyin/noto-tones-800), one
   family at weight 800 only (Baloo 2 and Fredoka draw «ī» wrong). */
@font-face { font-family: 'TVV Pinyin'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/study/noto-sans-800.woff2') format('woff2'); }
@font-face { font-family: 'TVV Pinyin'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/pinyin/noto-tones-800.woff2') format('woff2');
  unicode-range: U+0100-0101, U+0112-0113, U+011A-011B, U+012A-012B, U+014C-014D, U+016A-016B, U+01CD-01DC; }

/* the tokens: the module's box, and its two layers on <body> (the camera, a toast) */
.tvv, .tvv-cam, .tvv-toast {
  --tv-bg: #f7f1e4; --tv-surf: #fffdf8; --tv-surf2: #f3e8cf; --tv-ink: #1c1a17; --tv-mut: #6b5d4f; --tv-line: #e2d4b4;
  --tv-gold: #e8c878; --tv-gold-ink: #85631d; --tv-rec: #c62828; --tv-ok: #1f6b45; --tv-shadow: rgba(90, 16, 16, .3);
  --tv-head: 'Baloo 2', 'Nunito', system-ui, sans-serif; --tv-track: -.01em;
  --tv-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tv-py: 'TVV Pinyin', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --tv-ease: cubic-bezier(.23, 1, .32, 1);
}
.tvv.is-teen, .tvv-cam.is-teen {
  --tv-bg: #0b1312; --tv-surf: #13201e; --tv-surf2: #1b2c29; --tv-ink: #f2ecdf; --tv-mut: #a3b3ab; --tv-line: #26372f;
  --tv-gold-ink: #e8c878; --tv-shadow: rgba(0, 0, 0, .6);
  --tv-head: 'Nunito', system-ui, sans-serif; --tv-track: -.02em;
}
.tvv {
  position: relative; display: flex; flex-direction: column; width: 100%; min-height: var(--tvv-min-h, 100vh);
  background: var(--tv-bg); color: var(--tv-ink); font: 600 16px/1.35 var(--tv-ui); text-align: left;
  -webkit-tap-highlight-color: transparent;
}
@supports (height: 100svh) { .tvv { min-height: var(--tvv-min-h, 100svh); } }
.tvv *, .tvv *::before, .tvv *::after, .tvv-cam *, .tvv-cam *::before, .tvv-cam *::after { box-sizing: border-box; }
.tvv button, .tvv-cam button { font-family: inherit; cursor: pointer; margin: 0; touch-action: manipulation; }
.tvv img, .tvv-cam img { -webkit-user-drag: none; }
.tvv :focus-visible, .tvv-cam :focus-visible { outline: 3px solid var(--tv-gold); outline-offset: 2px; }
.tvv svg, .tvv-cam svg { display: block; flex: none; }
.tvv-ic { width: 22px; height: 22px; }
.tvv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── the header: ✕ · «Tu video» · Episodio N, then the three steps ── */
.tvv-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; }
.tvv-top h1 { flex: 1; min-width: 0; margin: 0; padding: 0; font: 800 26px/1 var(--tv-head); letter-spacing: var(--tv-track); color: var(--tv-ink); }
.is-teen .tvv-top h1 { font-weight: 900; font-size: 25px; }
.tvv-ep { flex: none; padding: 6px 12px 5px; border-radius: 999px; background: linear-gradient(180deg, #f3db93, #d6ad55); color: #3d0707; font: 900 14px var(--tv-ui); white-space: nowrap; }
.tvv-x {
  flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--tv-surf); color: var(--tv-ink); box-shadow: 0 0 0 1.5px var(--tv-line); transition: transform 140ms var(--tv-ease);
}
.tvv-x:active { transform: scale(.94); }
.tvv-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 10px 0; padding: 0; list-style: none; }
.tvv-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 0; font: 800 14.5px var(--tv-ui); color: var(--tv-mut); }
.tvv-steps li + li::before { content: ""; position: absolute; top: 27px; right: 50%; width: 100%; height: 3px; margin-right: 28px; background: var(--tv-line); border-radius: 2px; }
.tvv-steps li.is-done + li::before { background: var(--tv-ok); }
.tvv-steps button {
  position: relative; z-index: 1; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--tv-surf); color: var(--tv-mut); box-shadow: 0 0 0 2px var(--tv-line);
}
.tvv-steps button:disabled { cursor: default; opacity: .75; }
.tvv-steps .tvv-ic { width: 26px; height: 26px; }
.tvv-steps li.is-now { color: var(--tv-ink); }
.tvv-steps li.is-now button { background: var(--tv-rec); color: #fff; box-shadow: 0 0 0 5px rgba(198, 40, 40, .2); }
.tvv-steps li.is-done button { background: var(--tv-ok); color: #fff; box-shadow: none; }

.tvv-body { flex: 1; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 14px 0; }
.tvv-foot {
  position: sticky; bottom: 0; z-index: 4; display: grid; gap: 4px; width: 100%; max-width: 640px; margin: 0 auto;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--tv-bg) 26%);
}

/* buttons: pills */
.tvv-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 22px; margin: 0;
  border: 0; border-radius: 999px; color: #fff; font: 900 19px/1.1 var(--tv-ui); white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 22px -12px rgba(0, 0, 0, .65);
  transition: transform 140ms var(--tv-ease), filter 160ms ease;
}
.tvv-cta:active { transform: scale(.97); }
.tvv-cta:disabled { filter: grayscale(.4) brightness(.9); cursor: progress; }
.tvv-cta .tvv-ic { width: 24px; height: 24px; }
.tvv-cta--rec { background: linear-gradient(180deg, #dc3d35 0%, #b52121 100%); }
.tvv-cta--gold { background: linear-gradient(180deg, #f3db93 0%, #d6ad55 100%); color: #3d0707; }
.tvv-cta--ok { background: linear-gradient(180deg, #2b9a5d 0%, #1f7748 100%); }
.tvv-cta--quiet { background: transparent; color: var(--tv-ink); box-shadow: inset 0 0 0 2px var(--tv-line); min-height: 52px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) { .tvv-cta:hover:not(:disabled) { filter: brightness(1.06); } }
.tvv-recdot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); animation: tvv-blink 1.4s ease-in-out infinite; }
@keyframes tvv-blink { 50% { opacity: .35; } }
.tvv-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; margin: 0;
  border-radius: 999px; background: transparent; color: var(--tv-ink); font: 800 16px var(--tv-ui); text-decoration: none;
}
.tvv-link .tvv-ic { width: 20px; height: 20px; }
/* ② the two other ways, side by side under «Grabar»: the phone's camera app · a video made before */
.tvv-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tvv-links.is-one { grid-template-columns: 1fr; }
.tvv-links .tvv-link { min-height: 52px; padding: 4px 8px; font-size: 15px; line-height: 1.15; text-align: center; white-space: normal; box-shadow: inset 0 0 0 1.5px var(--tv-line); }
.tvv-play {
  flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #3d0707;
  background: linear-gradient(180deg, #f3db93, #d6ad55); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform 140ms var(--tv-ease);
}
.tvv-play .tvv-ic { width: 22px; height: 22px; }
.tvv-play .i-pause, .is-playing > .tvv-play .i-play, .tvv-play.is-playing .i-play { display: none; }
.is-playing > .tvv-play .i-pause, .tvv-play.is-playing .i-pause { display: block; }

/* Lùlù and his bubble (kids only) */
.tvv-kk { display: flex; align-items: flex-end; gap: 4px; margin-top: -6px; }
.tvv-kk img { width: 112px; height: auto; flex: none; margin-bottom: -4px; }
.tvv-bubble {
  position: relative; margin: 0 0 26px; padding: 12px 20px 13px; border-radius: 18px; background: var(--tv-surf); color: var(--tv-ink);
  font: 800 25px/1.05 var(--tv-head); letter-spacing: var(--tv-track); box-shadow: 0 0 0 1px var(--tv-line), 0 10px 20px -16px var(--tv-shadow);
}
.tvv-bubble::after { content: ""; position: absolute; left: -7px; bottom: 14px; border: 8px solid transparent; border-left: 0; border-right-color: var(--tv-surf); }

/* ① Escucha: «Escuchar todo» and the six lines */
.tvv-all { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 20px; background: var(--tv-surf); box-shadow: 0 0 0 1px var(--tv-line); }
.tvv-all img { width: 84px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--tv-surf2); flex: none; }
.tvv-all div { flex: 1; min-width: 0; }
.tvv-all b { display: block; font: 900 16px var(--tv-ui); }
.tvv-all span { display: block; font: 700 13.5px/1.25 var(--tv-ui); color: var(--tv-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvv-tomas { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tvv-tomas li { margin: 0; padding: 0; }
.tvv-toma {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px; gap: 12px; align-items: center; width: 100%; padding: 9px 8px 9px 9px; border: 0;
  border-radius: 18px; background: var(--tv-surf); color: var(--tv-ink); text-align: left; font: inherit; box-shadow: 0 0 0 1px var(--tv-line);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.tvv-toma.is-playing { background: var(--tv-surf2); box-shadow: 0 0 0 2.5px var(--tv-gold); }
.tvv-toma .tvv-play { width: 44px; height: 44px; }
.tvv-toma .tvv-play .tvv-ic { width: 20px; height: 20px; }
.tvv-clap {
  position: relative; width: 42px; height: 42px; border-radius: 9px; overflow: hidden; background: #1c1a17; color: #fffdf8;
  display: grid; place-items: end center; padding-bottom: 3px; font: 900 18px/1 var(--tv-ui);
}
.tvv-clap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 11px; background: repeating-linear-gradient(-45deg, #fffdf8 0 5px, #1c1a17 5px 10px); }
.is-teen .tvv-clap { box-shadow: inset 0 0 0 1px rgba(232, 200, 120, .4); }
.tvv-py { display: block; font: 800 16.5px/1.3 var(--tv-py); letter-spacing: 0; }
.tvv-es { display: block; margin-top: 2px; font: 700 13.5px/1.3 var(--tv-ui); color: var(--tv-mut); }
.tvv-blank { display: inline-block; width: 2.6em; height: .9em; margin: 0 .1em; border-bottom: 2.5px solid currentColor; vertical-align: -.08em; opacity: .55; }
.tvv-nw { white-space: nowrap; }
.tvv-skel { height: 64px; border-radius: 18px; background: linear-gradient(90deg, var(--tv-surf) 0%, var(--tv-surf2) 50%, var(--tv-surf) 100%); background-size: 200% 100%; animation: tvv-skel 1.2s ease-in-out infinite; }
@keyframes tvv-skel { to { background-position: -200% 0; } }
.tvv-msg {
  margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--tv-surf); box-shadow: 0 0 0 1px var(--tv-line);
  font: 800 16px/1.4 var(--tv-ui); color: var(--tv-ink); text-align: center;
}
.tvv-msg.is-err { box-shadow: 0 0 0 2px #e4a3a3; }

/* ② Graba: the frame before the camera opens */
.tvv-pre {
  position: relative; flex: 1; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 26px 22px 18px; border-radius: 24px; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, #3b3540, #141216);
}
.is-teen .tvv-pre { box-shadow: inset 0 0 0 1px rgba(232, 200, 120, .3); }
.tvv-vf {
  --c: rgba(255, 255, 255, .78); position: absolute; inset: 12px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 34px 3px no-repeat, linear-gradient(var(--c), var(--c)) top left / 3px 34px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 34px 3px no-repeat, linear-gradient(var(--c), var(--c)) top right / 3px 34px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 34px 3px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 3px 34px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 34px 3px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 3px 34px no-repeat;
}
.is-teen .tvv-vf { --c: rgba(232, 200, 120, .85); }
.tvv-pre-kk { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; }
.tvv-pre-kk img { width: 108px; height: auto; }
.tvv-pre-kk .tvv-bubble { margin-bottom: 44px; font-size: 22px; }
.tvv-pre-kk .tvv-bubble::after { left: auto; right: -7px; border-left: 8px solid var(--tv-surf); border-right: 0; }
.tvv-pre-rec { position: relative; z-index: 2; align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font: 900 14px var(--tv-ui); letter-spacing: .08em; }
.tvv-pre-rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; }
.tvv-pre-rec img { width: 34px; height: auto; margin: -8px -4px -8px 0; }
.tvv-hint {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tv-surf);
  box-shadow: 0 0 0 1px var(--tv-line); font: 800 15px var(--tv-ui); color: var(--tv-ink);
}
.tvv-hint .tvv-ic { color: var(--tv-rec); width: 20px; height: 20px; }

/* the teleprompter: the line to say now, big, one at a time */
.tvv-tp {
  position: relative; z-index: 2; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  padding: 12px 12px 12px 10px; border: 0; border-radius: 18px; background: rgba(255, 253, 248, .96); color: #1c1a17; text-align: left; font: inherit;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .7);
}
.tvv-tp .tvv-clap { box-shadow: none; }
.tvv-tp-txt { min-width: 0; }
.tvv-tp-py { display: block; font: 800 22px/1.22 var(--tv-py); }
.tvv-tp-es { display: block; margin-top: 3px; font: 700 14.5px/1.3 var(--tv-ui); color: #6b5d4f; }
.tvv-tp-n { display: inline-flex; align-items: center; gap: 2px; font: 900 14px var(--tv-ui); color: #85631d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tvv-tp-n .tvv-ic { width: 18px; height: 18px; }
/* the camera's teleprompter: ‹ the line › (his words 2026-11-01: «I cannot look at the previous… if I made a mistake») */
.tvv-tp.is-live { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 6px; padding: 8px; }
.tvv-tp-btn {
  width: 52px; height: 64px; padding: 0; border: 0; border-radius: 14px; display: grid; place-items: center;
  background: #f1e7cf; color: #3d0707; box-shadow: inset 0 0 0 1.5px rgba(133, 99, 29, .25); transition: transform 140ms var(--tv-ease), opacity 160ms ease;
}
.tvv-tp-btn .tvv-ic { width: 28px; height: 28px; stroke-width: 3; }
.tvv-tp-btn:active { transform: scale(.94); }
.tvv-tp-btn:disabled { opacity: .35; cursor: default; }
.tvv-tp-btn.is-end { visibility: hidden; }
.tvv-tp-btn:disabled:active { transform: none; }
.tvv-tp-line { min-width: 0; padding: 4px 4px 6px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: center; font: inherit; }
.tvv-tp-line .tvv-tp-n { display: inline-block; margin-bottom: 3px; padding: 2px 10px; border-radius: 999px; background: #f1e7cf; font: 800 13px var(--tv-ui); color: #85631d; }
.tvv-tp-line .tvv-tp-n b { font-weight: 900; color: #3d0707; }
.tvv-tp-line .tvv-tp-py { font-size: 21px; }
.tvv-tp-line .tvv-tp-py, .tvv-tp-line .tvv-tp-es { text-wrap: balance; }
.is-teen .tvv-tp-btn { background: #2a2420; color: #f3dc9a; box-shadow: inset 0 0 0 1.5px rgba(232, 200, 120, .35); }
.is-teen .tvv-tp.is-live { background: rgba(20, 17, 15, .92); color: #f7f1e4; }
.is-teen .tvv-tp-line .tvv-tp-n { background: #2a2420; color: #e8c878; }
.is-teen .tvv-tp-line .tvv-tp-n b { color: #f3dc9a; }
.is-teen .tvv-tp.is-live .tvv-tp-es { color: #c8bba4; }

/* the camera, inside the page (getUserMedia + MediaRecorder): full screen above everything */
.tvv-cam {
  position: fixed; inset: 0; z-index: 9800; display: flex; flex-direction: column; background: #0c0c0e; color: #fff;
  font: 600 16px/1.35 var(--tv-ui); text-align: left; -webkit-tap-highlight-color: transparent; animation: tvv-fade 200ms ease-out;
}
@keyframes tvv-fade { from { opacity: 0; } }
.tvv-cam-view { position: relative; flex: 1; margin: calc(10px + env(safe-area-inset-top, 0px)) 10px 0; border-radius: 22px; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, #3b3540, #141216); }
/* the whole frame that is recorded (contain, never a cover crop that looks like a zoom: his S23 Ultra 2026-11-01);
   mirrored like a phone's selfie camera, the file itself is not */
.tvv-cam-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); background: #141216; }
.tvv-cam-bar { position: absolute; z-index: 3; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tvv-cam-x { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; }
.tvv-cam-rec { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); font: 900 16px var(--tv-ui); font-variant-numeric: tabular-nums; }
.tvv-cam-rec i { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; animation: tvv-blink 1s ease-in-out infinite; }
.tvv-cam-rec.is-wait i { animation: none; background: #8b8b90; }
.tvv-cam-sp { width: 46px; }
.tvv-cam-tp { position: absolute; z-index: 3; left: 12px; right: 12px; top: 66px; }
.tvv-cam-tp .tvv-tp { cursor: pointer; }
.tvv-cam-go {
  position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none;
  font: 900 min(36vw, 180px)/1 var(--tv-ui); color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
.tvv-cam-go.is-word { font: 800 clamp(30px, 9vw, 54px)/1.05 'Baloo 2', 'Nunito', sans-serif; text-align: center; padding: 0 20px; }
.tvv-cam-go:empty { display: none; }
.tvv-cam-foot { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
.tvv-cam-stop { width: 82px; height: 82px; padding: 0; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; }
.tvv-cam-stop span { width: 30px; height: 30px; border-radius: 7px; background: #ff3b30; }
.tvv-cam-stop:disabled { opacity: .45; cursor: default; }
.tvv-cam-stop:disabled span { border-radius: 50%; width: 56px; height: 56px; }
.tvv-cam-tip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; text-align: center; font: 800 14px var(--tv-ui); color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ③ Manda: the clip, «Para», the share or the three steps */
.tvv-clip {
  position: relative; width: min(200px, 54%); aspect-ratio: 9 / 16; margin: 4px auto 0; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: #111; box-shadow: 0 22px 36px -20px rgba(0, 0, 0, .7), 0 0 0 3px var(--tv-gold);
}
.tvv-clip.is-sm { width: min(136px, 38%); }
/* a sideways take keeps its own shape, whole (js: loadedmetadata) */
.tvv-clip.is-wide { aspect-ratio: 16 / 9; width: min(340px, 92%); }
.tvv-clip.is-sm.is-wide { width: min(240px, 66%); }
.tvv-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.tvv-clip-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #1c1a17; pointer-events: none; transition: opacity 160ms ease; }
.tvv-clip.is-playing .tvv-clip-play { opacity: 0; }
.tvv-clip-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font: 800 13px var(--tv-ui); font-variant-numeric: tabular-nums; pointer-events: none; }
.tvv-clip-dur:empty { display: none; }
.tvv-to { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font: 900 16px var(--tv-ui); }
.tvv-to span { color: var(--tv-mut); font-weight: 800; }
.tvv-to img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--tv-surf2); box-shadow: 0 0 0 2px var(--tv-gold); }
.tvv-fb { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tvv-fb li { margin: 0; padding: 0; }
.tvv-fb button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 6px 14px 6px 8px; border: 0; border-radius: 16px; text-align: left;
  background: var(--tv-surf); box-shadow: 0 0 0 1px var(--tv-line); font: 800 15.5px/1.2 var(--tv-ui); color: var(--tv-mut);
}
.tvv-fb i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tv-surf2); color: var(--tv-ink); font: 900 15px var(--tv-ui); font-style: normal; }
.tvv-fb i .tvv-ic { width: 18px; height: 18px; }
.tvv-fb .tvv-ic { width: 20px; height: 20px; }
.tvv-fb .is-now button { color: var(--tv-ink); box-shadow: 0 0 0 2.5px var(--tv-gold); }
.tvv-fb .is-done i { background: var(--tv-ok); color: #fff; }

/* the party: «¡Video mandado!» */
.tvv-ok {
  position: relative; flex: 1; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center; overflow: hidden; background: radial-gradient(80% 50% at 50% 34%, rgba(232, 200, 120, .45), rgba(232, 200, 120, 0) 70%), var(--tv-bg);
}
.tvv-ok canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tvv-ok-cast { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.tvv-ok-cast img:first-child { width: min(38vw, 160px); height: auto; }
.tvv-ok-cast img:last-child { width: min(54vw, 236px); height: auto; }
.is-teen .tvv-ok-cast img:first-child { width: min(26vw, 108px); }
.is-teen .tvv-ok-cast img:last-child { width: min(44vw, 190px); }
.tvv-hop { transform-origin: 50% 100%; animation: tvv-hop 760ms cubic-bezier(.3, .7, .4, 1) 220ms 4; }
@keyframes tvv-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.06, .92); }
  48% { transform: translateY(-26px) scale(.97, 1.04) rotate(-3deg); }
  80% { transform: translateY(0) scale(1.04, .95); }
}
.tvv-ok h1 { position: relative; margin: 0; padding: 0; font: 800 40px/1 var(--tv-head); letter-spacing: var(--tv-track); text-wrap: balance; color: var(--tv-ink); }
.is-teen .tvv-ok h1 { font-weight: 900; }
.tvv-ok-ep { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--tv-ok); color: #fff; font: 900 15.5px var(--tv-ui); }
.tvv-ok-ep i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.tvv-ok-ep .tvv-ic { width: 16px; height: 16px; }
.tvv-ok-line { position: relative; margin: 0; font: 900 19px var(--tv-ui); color: var(--tv-gold-ink); }
/* (📺 2026-11-01 midday) what comes next under «¡Tarea hecha!»: a season that opened, the next episode */
.tvv-ok-next { position: relative; margin: 0; max-width: 34ch; padding: 10px 14px; border-radius: 16px; background: var(--tv-surf); color: var(--tv-ink); font: 800 16px/1.35 var(--tv-ui); box-shadow: inset 0 0 0 1.5px rgba(232, 200, 120, .55); text-wrap: balance; }
.tvv-ok-streak { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--tv-surf); color: #ffb23d; box-shadow: inset 0 0 0 1px rgba(232, 200, 120, .4); font: 900 17px var(--tv-ui); }
.tvv-ok-streak span { color: var(--tv-ink); }
.is-teen .tvv-ok-streak { font-size: 22px; padding: 10px 22px 10px 16px; }
.is-teen .tvv-ok-streak .tvv-ic { width: 26px; height: 26px; }
.tvv-ok-class { position: relative; margin: 0; font: 800 16px var(--tv-ui); color: var(--tv-mut); }
.tvv-ok-class b { color: var(--tv-gold-ink); font-size: 18px; }
.tvv-ok-acts { position: relative; display: grid; gap: 8px; width: 100%; max-width: 380px; margin-top: 6px; }
.tvv-undo {
  position: relative; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--tv-mut);
  font: 800 15px var(--tv-ui); text-decoration: underline; text-underline-offset: 3px; transition: opacity 400ms ease;
}
.tvv-undo.is-gone { opacity: 0; pointer-events: none; }

/* a short line at the edge (saved, an error) */
/* (above the sticky foot's two buttons, and never catching a tap meant for them: review 2026-10-31) */
.tvv-toast {
  position: fixed; left: 50%; bottom: calc(168px + env(safe-area-inset-bottom, 0px)); z-index: 9900; transform: translateX(-50%); max-width: calc(100% - 24px);
  pointer-events: none;
  padding: 11px 18px; border-radius: 999px; background: #1c1a17; color: #fffdf8; font: 800 14.5px/1.3 var(--tv-ui); text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); animation: tvv-toast 240ms var(--tv-ease);
}
@keyframes tvv-toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* a laptop: the steps and the content keep a phone-like column in the middle */
@media (min-width: 900px) {
  .tvv-top { max-width: 680px; width: 100%; margin: 0 auto; padding-top: 16px; }
  .tvv-steps { max-width: 640px; width: 100%; margin-left: auto; margin-right: auto; }
  .tvv-cam-view { max-width: 720px; width: calc(100% - 20px); margin-left: auto; margin-right: auto; }
}

/* reduced motion: nothing hops or blinks; things appear where they stand */
@media (prefers-reduced-motion: reduce) {
  .tvv-recdot, .tvv-cam-rec i, .tvv-hop, .tvv-skel { animation: none; }
  .tvv-cam, .tvv-toast { animation-duration: 1ms; }
  .tvv-cta:active, .tvv-x:active, .tvv-play:active { transform: none; }
}
