/* STUDIO SUITE lane stylesheet: video. Builds on suite.css tokens and utilities. */

/* Generate video (Experiences::OrbisKickoffsController#index) */
.st-video-page { max-width: 1280px; margin: 0 auto; width: 100%; }
.st-video-layout { align-items: start; }
.st-video-new { padding: 1.1rem 1.2rem; border-color: color-mix(in srgb, #8b5cf6 40%, transparent); background: linear-gradient(160deg, rgba(0,229,255,.04), rgba(139,92,246,.06) 55%, rgba(241,7,163,.04)), var(--st-panel); }
.st-video-new .st-card__title { font-size: 1.05rem; }
.st-video-form { gap: .85rem; }
.st-video-form .st-field textarea { min-height: 78px; }
.st-video-mode { margin: 0; padding: 0; border: 0; min-width: 0; }
.st-video-mode__legend { padding: 0; margin-bottom: .35rem; color: #cdd5e6; font: 600 .72rem var(--plai-heading); }
.st-video-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--st-line); border-radius: 10px; background: rgba(255,255,255,.025); max-width: 100%; }
.st-video-seg__option { position: relative; display: inline-flex; align-items: center; padding: 0 .85rem; height: 32px; border-radius: 7px; color: var(--st-muted); font: 650 .76rem var(--plai-heading); cursor: pointer; }
.st-video-seg__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-video-seg__option:has(input:checked) { color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px color-mix(in srgb, #8b5cf6 55%, transparent) inset; }
.st-video-seg__option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.st-video-seg__option:has(input:focus-visible) { outline: 2px solid var(--st-accent); }
.st-video-pane { display: grid; gap: .6rem; }
.st-video-pane[hidden] { display: none; }
.st-video-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .5rem; max-height: 280px; overflow-y: auto; padding: 2px; }
.st-video-picker__item { position: relative; display: grid; gap: .25rem; padding: 4px; border: 1px solid var(--st-line); border-radius: 9px; cursor: pointer; font: 500 .68rem var(--plai-body); color: var(--st-muted); }
.st-video-picker__item input { position: absolute; top: 8px; left: 8px; z-index: 1; margin: 0; }
.st-video-picker__item:has(input:checked) { border-color: var(--st-accent); background: color-mix(in srgb, var(--st-accent) 10%, transparent); color: #fff; }
.st-video-picker__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-video-go { display: grid; gap: .5rem; }
.st-video-go__button { min-height: 44px; font-size: .95rem; }
.st-video-go__button svg { width: 17px; height: 17px; }
.st-video-go__button[disabled] { filter: saturate(.4); }
.st-video-go__estimate { margin: 0; text-align: center; }
.st-video-advanced > summary { color: var(--st-muted); font: 600 .74rem var(--plai-heading); cursor: pointer; }
.st-video-advanced[open] > summary { margin-bottom: .6rem; }
.st-video-powered { margin: 0; font-size: .72rem; }
.st-video-readiness { margin-bottom: .8rem; }
.st-video-run { display: grid; gap: .7rem; }
.st-video-run__prompt { margin: 0; }
.st-video-steps { display: grid; gap: .45rem; padding: .7rem .8rem; border: 1px solid var(--st-line); border-radius: 9px; background: rgba(255,255,255,.015); }
.st-video-step { font-size: .84rem; }
.st-video-step .st-activity__text { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; }
.st-video-step .st-activity__text strong { font-size: .84rem; white-space: normal; }
.st-video-run__notice strong { display: block; margin-bottom: .2rem; font-weight: 650; }
.st-video-run__actions { margin-top: .6rem; }
.st-video-library { display: grid; gap: .6rem; }
.st-video-library .st-card__title { margin: 0; }
.st-video-cards { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.st-video-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .65rem; align-items: start; padding: .5rem; border: 1px solid var(--st-line); border-radius: 9px; background: rgba(255,255,255,.015); }
.st-video-card__thumb { width: 120px; }
.st-video-card__thumb--empty { display: grid; place-items: center; color: var(--st-dim); }
.st-video-card__body { display: grid; gap: .4rem; min-width: 0; }
.st-video-card__prompt { margin: 0; color: #dbe2f2; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.st-video-card__title { color: #fff; font: 700 .78rem var(--plai-heading); }
.st-video-card__error { margin: 0; color: #ffc2cb; font-size: .72rem; }
.st-video-card__error[hidden] { display: none; }
.st-video-card .st-btn { min-height: 28px; padding: 0 .6rem; font-size: .7rem; }
.st-video-empty { padding: 1.3rem .8rem; }
@media (max-width: 1000px) { .st-video-card { grid-template-columns: 96px minmax(0, 1fr); } .st-video-card__thumb { width: 96px; } }
@media (max-width: 480px) { .st-video-seg { display: grid; width: 100%; } }

/* Live player page (/sessions/:id) when it was started from the Video page */
.plai-player-page .st-player-panel { gap: .9rem; }
.st-player-brief { display: grid; gap: .45rem; }
.st-player-brief__title { color: #fff; font: 800 1.2rem var(--plai-heading); }
.st-player-brief__prompt { margin: 0; padding: .6rem .75rem; border-left: 3px solid #8b5cf6; border-radius: 4px; color: #dbe2f2; background: rgba(139,92,246,.08); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.st-player-actions { display: grid; gap: .5rem; margin-top: 0; }
.st-player-sound { position: absolute; left: .6rem; bottom: .6rem; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: 10px; background: rgba(8,12,23,.8); }
.st-player-sound small { color: #e3e9f7; font-size: .72rem; }
.st-player-ended { display: grid; gap: .5rem; padding: .8rem; border: 1px solid var(--st-line); border-radius: 12px; background: rgba(255,255,255,.02); }
.st-player-ended[hidden] { display: none; }
.st-player-start { min-height: 48px; font-size: 1rem; }
.st-player-start[disabled] { filter: saturate(.4); }
.st-player-save { display: grid; gap: .5rem; padding: .8rem; border: 1px solid var(--st-line); border-radius: 12px; background: rgba(255,255,255,.02); }
.st-player-save__title { color: #fff; font: 700 .9rem var(--plai-heading); }
.st-player-save p { margin: 0; }
.st-player-save__done[hidden] { display: none; }
.st-player-links { gap: 1rem; font-size: .78rem; }

/* Player page copy and fields */
.st-kicker-plain { text-transform: none; letter-spacing: .02em; font-size: .8rem; }
.plai-player-page .plai-badge { text-transform: none; letter-spacing: 0; }
.st-direct { display: grid; gap: .5rem; padding: .8rem; border: 1px solid var(--st-line); border-radius: 12px; background: rgba(255,255,255,.02); }
.st-direct__title { margin: 0; color: #fff; font: 700 .9rem var(--plai-heading); }
.st-direct p { margin: 0; font-size: .78rem; line-height: 1.5; }
.st-direct__form { display: grid; gap: .45rem; }
.st-direct__label { color: #cdd5e6; font: 600 .72rem var(--plai-heading); }
.plai-player-page .st-direct__input { width: 100%; min-height: 36px; padding: .45rem .65rem; border: 1px solid var(--st-line-strong); border-radius: 8px; color: var(--st-text); background: #0a0d16; font: 400 .84rem var(--plai-body); }
.plai-player-page .st-direct__input:focus { border-color: var(--st-accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 22%, transparent); }
.plai-player-page .st-direct__input:disabled { opacity: .55; }
.st-direct__form .st-btn { justify-self: start; }
.st-run-details { margin-top: 1rem; }
.st-run-details > summary { color: var(--st-muted); font: 600 .78rem var(--plai-heading); cursor: pointer; }
.st-run-details[open] > summary { margin-bottom: .6rem; }

/* Steer the video (under the live video) */
.st-player-main { display: grid; gap: .8rem; min-width: 0; align-content: start; }
.st-steer { display: grid; gap: .55rem; padding: .85rem 1rem; border: 1px solid color-mix(in srgb, #8b5cf6 45%, transparent); border-radius: 14px; background: linear-gradient(135deg, rgba(0,229,255,.05), rgba(139,92,246,.07) 55%, rgba(241,7,163,.04)); }
.st-steer.is-disabled { border-color: var(--st-line); background: rgba(255,255,255,.02); }
.st-steer__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.st-steer__title { color: #fff; font: 800 1rem var(--plai-heading); }
.st-steer__form { display: grid; gap: .3rem; }
.st-steer__label { color: #cdd5e6; font: 600 .74rem var(--plai-heading); }
.st-steer__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
.plai-player-page .st-steer__input { width: 100%; min-height: 56px; padding: .5rem .7rem; border: 1px solid var(--st-line-strong); border-radius: 9px; color: var(--st-text); background: #0a0d16; font: 400 .88rem/1.45 var(--plai-body); resize: vertical; }
.plai-player-page .st-steer__input:focus { border-color: #a78bfa; outline: 0; box-shadow: 0 0 0 3px rgba(167,139,250,.25); }
.plai-player-page .st-steer__input:disabled { opacity: .55; cursor: not-allowed; }
.st-steer__send { min-width: 84px; font-size: .9rem; }
.st-steer__send[disabled] { filter: saturate(.3); }
.st-steer__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-steer__chip { height: 26px; padding: 0 .7rem; background: transparent; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.st-steer__chip:hover:not([disabled]) { border-color: #a78bfa; color: #fff; }
.st-steer__chip[disabled] { opacity: .45; cursor: not-allowed; }
.st-steer__reason { margin: 0; font-size: .76rem; }
.st-steer__reason[hidden] { display: none; }
.st-steer__history { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.st-steer__history:empty { display: none; }
.st-steer__entry { display: grid; gap: .1rem; padding: .45rem .65rem; border: 1px solid var(--st-line); border-radius: 8px; background: rgba(255,255,255,.02); }
.st-steer__text { color: #e6ebf7; font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.st-steer__state { font-size: .74rem; }
@media (max-width: 560px) { .st-steer__row { grid-template-columns: minmax(0, 1fr); } }

/* The embedded automatic live video (framed by the Autopilot page): only the video and one status line */
.st-embed { margin: 0; background: #05070c; color: #dbe2f2; overflow: hidden; }
.st-embed__frame { display: grid; gap: .4rem; padding: .4rem; }
.st-embed .plai-player-shell { display: block; margin: 0; }
.st-embed .plai-player-notice, .st-embed .plai-player-panel, .st-embed .st-steer, .st-embed .st-run-details, .st-embed .plai-engine-panel { display: none; }
.st-embed .st-player-main { gap: 0; }
.st-embed .plai-player-stage { min-height: 0; border-radius: 10px; }
.st-embed__status { margin: 0; padding: 0 .3rem; font: 600 .78rem var(--plai-heading); color: #cdd5e6; }

/* "Continue your way" under a published film */
.st-continue { margin: 1rem 0; border-color: color-mix(in srgb, #8b5cf6 45%, transparent); background: linear-gradient(135deg, rgba(0,229,255,.05), rgba(139,92,246,.07) 55%, rgba(241,7,163,.04)), var(--st-panel); color: var(--st-text); }
.st-continue__go { min-height: 44px; font-size: .95rem; }
.st-continue__go svg { width: 16px; height: 16px; }
.st-continue__numbers, .st-continue__powered { margin: .3rem 0 0; font-size: .74rem; }

/* Live player page, every kind of session: the play icon is a real button; wide = video left, controls right; narrow = one column, video first */
.plai-player-page .plai-player-shell { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); align-items: start; }
.plai-player-page .st-stage-play { cursor: pointer; padding: 0; border: 1px solid rgba(0,229,255,.4); transition: transform .15s ease, background .15s ease; }
.plai-player-page .st-stage-play:hover:not([disabled]) { transform: scale(1.06); background: rgba(0,229,255,.18); }
.plai-player-page .st-stage-play:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 3px; }
.plai-player-page .st-stage-play[disabled] { opacity: .45; cursor: not-allowed; }
.plai-player-page .st-stage-play svg { width: 26px; height: 26px; }
.plai-player-page .plai-player-stage { min-height: 0; width: 100%; }
.plai-player-page .plai-main, .plai-player-page .plai-player-shell > * { min-width: 0; }
@media (max-width: 900px) {
  .plai-player-page .plai-player-shell { grid-template-columns: minmax(0, 1fr); }
  .plai-player-page .plai-main { width: min(100% - 1.5rem, 1160px); }
  .plai-player-page .plai-page-intro { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .plai-player-page .plai-page-intro h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); overflow-wrap: anywhere; }
  .plai-player-page .plai-engine-panel__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Create and watch (the premiere page) */
.st-premiere { align-content: start; }
.st-premiere__card { display: grid; gap: .8rem; }
.st-premiere__steps { display: grid; gap: .55rem; padding: .8rem; border: 1px solid var(--st-line); border-radius: 10px; background: rgba(255,255,255,.015); }
.st-premiere__step { font-size: .92rem; }
.st-premiere__step .st-activity__text { display: flex; flex-wrap: wrap; gap: .1rem .7rem; align-items: baseline; }
.st-premiere__step .st-activity__text strong { font-size: .92rem; white-space: normal; }
.st-premiere__actions { margin-top: .6rem; }
.plai-player-stage__glyph[hidden] { display: none; } /* the grid display above would otherwise keep the play button next to the spinner that replaces it */
.plai-player-stage__spinner { width: 2.4rem; height: 2.4rem; border-width: 3px; margin-bottom: 0.4rem; }
