/* The video panel of one topic (topic-video.js): the PCMB reader's Video tab panel, the same classes (pc-v*), scoped to
   the panel's host (.tv) so it can live on any page. The film block itself is site.css (.ekv-*), the player vplayer.css,
   the lessons ext-videos.css. ONE STAGE SIZE (as in the reader): the Ekalix video, a YouTube lesson and the empty player
   are the same 16:9 frame, as wide as the column allows while the kicker row, the title + level row, the picture and
   YouTube's bar fit the height the host gives (--tv-h: the reader's tab is 100cqh; a page gives the window's height
   under its header). 196 px = top padding 16 + kicker 34 + 10 + title row (two lines, 58) + 12 + bar 48 + ring 4 + 14. */
.tv { --tv-h: calc(100svh - var(--tv-top, 150px)); }
.tv .pc-vcol { width: min(100%, 1280px); margin: 0 auto; display: grid; gap: 22px; justify-items: center; }
.tv .pc-vtop { width: 100%; display: grid; justify-items: center; }
.tv .pc-vplay { width: min(100%, 1280px, max(min(100%, 440px), calc((var(--tv-h) - 196px) * 16 / 9 + 40px))); min-width: min(100%, 300px); margin: 0 auto; }
.tv .pc-vfilm { box-sizing: border-box; padding: 16px 20px 16px; text-align: left; }
.tv .pc-vfilm .pc-vkick { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.tv .pc-vfilm .eyebrow .dot { animation: none; }   /* nothing pulses beside a playing lesson */
.tv .pc-vfilm .ekv-head h2 { margin: 10px 0 4px; font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.01em; }
.tv .pc-vfilm .ekv-head p { margin: 0; max-width: none; font-size: 14.5px; }
.tv .pc-vfilm .ekv-stage { margin-top: 12px; }
.tv .pc-vfilm .ekv-chrow { margin-top: 12px; }
.tv .pc-vfilm .ekv-note { margin-top: 10px; }
.tv .pc-vstage { position: relative; }
.tv .pc-vmsg { color: var(--text2); margin-top: 10px; }
.tv .pc-vlead { margin: 12px 0 0; max-width: 72em; color: var(--text2); font-size: 14.5px; line-height: 1.5; }
/* the title (two lines at most) beside the level switch "Start Here - Basics | Deep Dive"; a level without its Ekalix
   video says "Soon"; over a lesson from YouTube the switch is about the topic's Ekalix videos: durations step aside */
.tv .pc-vrow2 { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; }
.tv .pc-vfilm .pc-vrow2 h2 { margin: 0; flex: 1 1 240px; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tv .pc-vlv { display: flex; flex: none; gap: 4px; width: fit-content; max-width: 100%; margin: 0; padding: 4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass2, rgba(255, 255, 255, .06)); }
.tv .pc-vlv button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: none; color: var(--text); font: 700 13.5px/1 var(--body); }
.tv .pc-vlv button i { font: 700 11px/1 var(--mono, monospace); font-style: normal; font-variant-ligatures: none; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text2); }
.tv .pc-vlv button.soon { color: var(--text2); }
.tv .pc-vlv button[aria-selected="true"] { background: var(--grad); color: var(--ink-on-accent, #02101a); box-shadow: 0 0 22px -8px rgba(var(--glow1), .9); }
.tv .pc-vlv button[aria-selected="true"] i { background: rgba(0, 0, 0, .18); color: inherit; }
.tv .pc-vlv button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tv .pc-vlv.pc-vlv-lesson button i { display: none; }
/* the lessons and the explainers; their place is kept until their script and data arrive */
.tv .pc-vext, .tv .pc-vmast { width: min(100%, 1180px); }
.tv .pc-vext:not(.xv):not(.off), .tv .pc-vmast:not(.xv):not(.off) { min-height: 520px; }
.tv .pc-vxsoon { box-sizing: border-box; width: min(860px, 100%); margin: 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--text2); font-size: 14px; }
.tv .pc-vxsoon b { color: var(--text); font-weight: 700; }
.tv .pc-vxsoon .pc-vxdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #38bdf8); flex: none; }
/* the panel's buttons (Back to the Ekalix video ...): the reader's .pc-btn, small */
.tv .pc-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font: 700 14px/1 var(--body); color: var(--ink-on-accent); background: var(--grad); box-shadow: 0 12px 30px -14px rgba(var(--glow1), .9); transition: transform .2s, box-shadow .2s, filter .2s; }
.tv .pc-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.tv .pc-btn.ghost { color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); box-shadow: none; }
.tv .pc-btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.tv .pc-vfilm .xv-acts .pc-btn.sm { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tv .pc-btn { transition: none; } .tv .pc-btn:hover { transform: none; } }
/* a phone: the film block is the column's full width (its frame steps aside), the kicker one line, 40 px targets */
@media (max-width: 640px) {
  .tv .pc-vcol .pc-vfilm { padding-left: 0; padding-right: 0; border-color: transparent; background: none; }
  .tv .pc-vfilm .ekv-head, .tv .pc-vfilm .pc-vlead, .tv .pc-vfilm .ekv-chrow, .tv .pc-vfilm .ekv-note { padding-left: 4px; padding-right: 4px; }
  .tv .pc-vfilm .pc-vrow2 h2 { white-space: normal; flex-basis: 100%; }
  .tv .pc-vlv { width: 100%; } .tv .pc-vlv button { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 12.5px; min-height: 42px; } .tv .pc-vlv button i { display: none; }
  .tv .pc-vext.xv, .tv .pc-vmast.xv { padding: 14px 10px 12px; }
  .tv .pc-vfilm .pc-btn.sm { height: 40px; } .tv .pc-vfilm .eyebrow { border-radius: 14px; } .tv .pc-vfilm .pc-vwhere { display: none; }
}
