/* "Hear what you'll play": the Lab teasers (js/lab-teasers.js; part A of learn design r2, 17 Nov 2026). Scoped: every rule sits under
   .lt, .lt-door or .lt-lock (nothing else on a page changes). The poster and the player sit on ink in both themes (media, never
   a white box); the text beside the poster follows the page theme. */
.lt-door { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lt-door > .ca-card, .lt-door > .lab-door { flex: 1 1 auto; }
.lt { margin: 0; }
.lt-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 8px; margin: 0; box-sizing: border-box; text-align: left;
  font: inherit; color: inherit; cursor: pointer; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(13, 0, 26, .55);
  transition: border-color .2s ease, background-color .2s ease; }
.lt-btn:hover { border-color: rgba(185, 166, 255, .55); }
.lt-btn:focus-visible { outline: 3px solid #b9a6ff; outline-offset: 3px; }
.lt-poster { position: relative; flex: none; display: block; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0d001a; }
.lt-poster picture, .lt-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lt-play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #6036e8, #b3348c); box-shadow: 0 6px 18px rgba(13, 0, 26, .55), 0 0 0 4px rgba(255, 255, 255, .14);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.lt-play svg { width: 18px; height: 18px; margin-left: 3px; }
.lt-btn:hover .lt-play { transform: scale(1.06); }
.lt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9a6ff; }
.lt-n { font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; }
.lt-s { font-size: 14px; color: #d9d2ec; }
[data-theme="light"] .lt-btn { background: #fff; border-color: #e6dcf5; box-shadow: 0 6px 18px rgba(52, 40, 92, .08); }
[data-theme="light"] .lt-btn:hover { border-color: #5B2FE0; }
[data-theme="light"] .lt-btn:focus-visible { outline-color: #5B2FE0; }
[data-theme="light"] .lt-k { color: #5B2FE0; }
[data-theme="light"] .lt-n { color: #1d1626; }
[data-theme="light"] .lt-s { color: #463d52; }
/* in the lock card: the row centred under the title, a little larger */
.lt-lock { margin: 4px 0 18px; }
.lt-lock .lt-btn { max-width: 440px; margin: 0 auto; }
.lt-lock .lt-poster { width: 168px; }
.lt-lock .lt-k { letter-spacing: .04em; white-space: nowrap; }
/* phones: the poster is the tall cut's frame (9:16) */
@media (max-width: 760px) {
  .lt-poster { width: 72px; aspect-ratio: 9 / 16; }
  .lt-lock .lt-poster { width: 96px; }
}
/* the player, inline in the row's place (no modal: Codex learn-design-a-r2, ROOT-CAUSE-AND-SCOPE-2026-11-17.md): the cut that fits the
   screen, never taller than the window, on ink; "Close video" right after it in page order */
.lt-player { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lt-frame { position: relative; width: min(100%, calc((100vh - 140px) * 16 / 9)); width: min(100%, calc((100dvh - 140px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #0d001a; box-shadow: 0 14px 40px rgba(13, 0, 26, .45); }
.lt-tall .lt-frame { width: min(100%, 360px, calc((100vh - 140px) * 9 / 16)); width: min(100%, 360px, calc((100dvh - 140px) * 9 / 16)); aspect-ratio: 9 / 16; }
.lt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.lt-frame iframe.is-on { opacity: 1; }
.lt-x { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(13, 0, 26, .55); color: #fff;
  font: 600 15px/1 system-ui, -apple-system, 'Inter', sans-serif; cursor: pointer; }
.lt-x:hover { border-color: rgba(185, 166, 255, .6); }
.lt-x:focus-visible { outline: 3px solid #b9a6ff; outline-offset: 3px; }
[data-theme="light"] .lt-x { color: #1d1626; background: #fff; border-color: #d6cdea; }
[data-theme="light"] .lt-x:focus-visible { outline-color: #5B2FE0; }
@media (prefers-reduced-motion: reduce) { .lt-btn, .lt-play, .lt-frame iframe { transition: none; } .lt-btn:hover .lt-play { transform: none; } }
/* part B: the same row on the home page's gated places (js/lab-teasers.js studio()) */
.lt-studio { margin-top: 10px; }
/* My Courses grid: a compact poster under the locked cover; the playing cut takes the whole grid row */
.lt-compact .lt-btn { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px; }
.lt-compact .lt-poster { width: 100%; aspect-ratio: 16 / 9; }
.lt-compact .lt-n { font-size: 15px; }
.lt-compact .lt-k { font-size: 11px; }
li.lt-playing { grid-column: 1 / -1; }
/* the Training Center card: the row sits above the card's own stretched link (its ::after covers the card) */
.lt-tc { position: relative; z-index: 2; margin: 4px 0 6px; }
/* Codex b-r1 P2-4: phones get the tall poster in its own shape (the 9:16 frame, never cropped to 16:9) */
@media (max-width: 760px) {
  .lt-compact .lt-poster { width: 100%; aspect-ratio: 9 / 16; }
}
/* the My Courses cell is a flex row (css/studio.css .stc-grid > li): a cell that carries a teaser stacks it under the cover */
.stc-grid > li:has(> .lt-studio) { flex-direction: column; gap: 8px; }
.stc-grid > li > .lt-studio { margin-top: 0; width: 100%; }
/* Codex learn-units-b1-r1 P2-1: the Explore row (a flex item in the Complete your Path line) takes the whole line, so the playing cut uses
   the row's width (the viewport cap on .lt-player still applies), never the Close button's width */
.lt-wide { width: 100%; flex-basis: 100%; min-width: 0; }
/* full learn suite, 18 Nov (tests/v2c-phone-reading.spec.js R1, R5): on phones the Studio rows read at 16 px and every control state changes
   within 150 ms, like the rest of the Studio */
.lt-studio .lt-btn { transition-duration: .15s; }
.lt-studio .lt-play { transition-duration: .15s; }
@media (max-width: 760px) {
  .lt-studio .lt-k, .lt-studio .lt-n, .lt-studio .lt-s, .lt-compact .lt-k, .lt-compact .lt-n { font-size: 16px; }
}
