/*
 * Boxing Underdog Live - the Studio (the fight page's director mode): source panel, program monitor, inspector,
 * timeline, start strip, export and "Moje filmy" dialogs. The monitor's viewport is transparent: the Unity canvas
 * (under the page) shows through the frame; everything around the frame is painted by the frame's shadow.
 * Unity preprocesses template *.css files: never use triple curly braces here.
 */

.bu-fight {
  --st-side: 320px;
  --st-tl-h: 300px;
  --st-bg: #08090c;
  --st-panel: #0b0c10;
  --st-panel-2: #10121a;
  --st-line: rgba(255, 255, 255, 0.07);
  --st-clip: #1a2130;
  --st-clip-2: #222b3d;
}

@media (max-width: 1279px) {
  .bu-fight {
    --st-side: 268px;
  }
}

@media (min-width: 2000px) {
  .bu-fight {
    --st-side: 360px;
  }
}

@media (min-width: 2800px) {
  .bu-fight {
    --st-side: 420px;
  }
}

/* ---------------------------------------------------------------------------
   Director mode = the Studio: the fight page's own watch controls step aside
   --------------------------------------------------------------------------- */

html.bu-mode-director,
html.bu-mode-director body {
  background: #040506;
}

.bu-fight[data-mode="director"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--header-h) var(--bar-h) minmax(0, 1fr);
  grid-template-areas: "top" "bar" "studio";
}

.bu-fight[data-mode="director"] .bu-fp-scrim-top {
  display: none;
}

.bu-fight[data-mode="director"] .bu-fp-bar {
  grid-area: bar;
  position: relative;
  top: auto;
  border-bottom: 1px solid var(--line);
  background: #090a0e;
}

.bu-fight[data-mode="director"] > .bu-dock,
.bu-fight[data-mode="director"] > .bu-scorebug,
.bu-fight[data-mode="director"] > .bu-hint-pill,
.bu-fight[data-mode="director"] > .bu-fp-frame,
.bu-fight[data-mode="director"] > .bu-dir {
  display: none !important;
}

/* Watch-mode actions of the fight bar (share a moment, like, views) belong to watching. */
.bu-fight[data-mode="director"] #bu-fp-share,
.bu-fight[data-mode="director"] #bu-fp-like,
.bu-fight[data-mode="director"] #bu-fp-views {
  display: none !important;
}

.bu-fight[data-mode="director"] .bu-fp-monitor {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bu-fight[data-mode="director"] .bu-fp-monitor .bu-fp-backdrop {
  inset: 0;
  border-radius: 0;
}

.bu-fight[data-mode="director"] .bu-fp-center {
  padding: 24px;
}

.bu-st-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.bu-st-actions .bu-icon-btn {
  width: 36px;
  height: 36px;
}

.bu-st-actions .bu-icon-btn .bu-ic {
  width: 19px;
  height: 19px;
}

.bu-st-sep {
  width: 1px;
  height: 22px;
  margin: 0 6px;
  background: var(--line-2);
}

.bu-st-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.bu-st-saved .bu-ic {
  width: 15px;
  height: 15px;
  color: var(--ok);
}

.bu-st-saved.bu-saving .bu-ic {
  color: var(--gold);
  animation: bu-rotate 1s linear infinite;
}

.bu-st-export-btn {
  margin-left: 6px;
}

@media (max-width: 1400px) {
  .bu-st-saved span,
  .bu-st-auto span {
    display: none;
  }

  .bu-st-auto {
    width: 36px;
    padding: 0;
  }
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */

.bu-studio {
  grid-area: studio;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 7px var(--st-tl-h);
  min-height: 0;
  pointer-events: none;
}

.bu-st-upper {
  display: grid;
  grid-template-columns: var(--st-side) minmax(0, 1fr) var(--st-side);
  min-height: 0;
}

.bu-st-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--st-panel);
  pointer-events: auto;
}

.bu-st-source {
  border-right: 1px solid var(--st-line);
}

.bu-st-inspector {
  border-left: 1px solid var(--st-line);
}

.bu-st-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--st-line);
}

.bu-st-panel-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bu-st-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.bu-st-chip .bu-ic {
  width: 15px;
  height: 15px;
}

.bu-st-chip:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.bu-st-chip.bu-on {
  border-color: rgba(233, 185, 73, 0.6);
  background: var(--gold-soft);
  color: var(--gold-2);
}

/* ---------------------------------------------------------------------------
   Source panel: fight scrubber, I / O, moments
   --------------------------------------------------------------------------- */

.bu-st-scrub {
  position: relative;
  flex: none;
  height: 46px;
  margin: 14px 16px 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: linear-gradient(180deg, #0f1117 0%, #0b0d12 100%);
  cursor: pointer;
  touch-action: none;
}

.bu-st-scrub-heat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.bu-st-scrub-range {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  background: rgba(233, 185, 73, 0.16);
}

.bu-st-scrub-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bu-st-scrub-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.35);
}

.bu-st-mark-ko,
.bu-st-mark-kd {
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 56, 56, 0.7);
}

.bu-st-mark-kd {
  background: var(--orange);
}

.bu-st-scrub-head {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.bu-st-scrub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--st-line);
}

.bu-st-src-time {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(8, 9, 12, 0.78);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.bu-st-kbd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.bu-st-kbd .bu-ic {
  width: 16px;
  height: 16px;
}

.bu-st-kbd:hover {
  color: var(--text);
  border-color: var(--line-3);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.bu-st-add-range {
  flex: 1;
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
}

.bu-st-moments-head {
  flex: none;
  padding: 14px 16px 8px;
}

.bu-st-sub-title {
  margin: 0;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bu-st-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: none;
  padding: 0 16px 10px;
}

.bu-st-filter {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.bu-st-filter:hover {
  color: var(--text);
}

.bu-st-filter.bu-on {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.92);
  color: #0b0c10;
}

.bu-st-moments {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 10px 16px;
  scrollbar-width: thin;
}

.bu-st-moment {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.bu-st-moment:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}

.bu-st-moment.bu-disabled {
  opacity: 0.45;
  cursor: default;
}

.bu-st-moment-poster {
  position: relative;
  width: 112px;
  height: 63px;
  overflow: hidden;
  border-radius: 7px;
  background: #151821 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bu-st-moment-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(8, 9, 12, 0.72);
  color: var(--gold-2);
}

.bu-st-moment[data-kind="ko"] .bu-st-moment-badge {
  color: #fff;
  background: var(--red);
}

.bu-st-moment-badge .bu-ic {
  width: 14px;
  height: 14px;
}

.bu-st-moment-len {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(8, 9, 12, 0.72);
  color: var(--text);
  font-size: 10.5px;
}

.bu-st-moment-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bu-st-moment-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-moment-sub {
  color: var(--text-3);
  font-size: 11.5px;
}

.bu-st-strength {
  display: block;
  width: 64px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.bu-st-strength-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.bu-st-moment-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.55;
  transition: opacity 140ms var(--ease);
}

.bu-st-moment:hover .bu-st-moment-actions {
  opacity: 1;
}

.bu-st-mini {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.bu-st-mini .bu-ic {
  width: 16px;
  height: 16px;
}

.bu-st-mini:hover {
  border-color: rgba(233, 185, 73, 0.6);
  background: var(--gold-soft);
  color: var(--gold-2);
}

.bu-st-mini:disabled {
  opacity: 0.35;
}

.bu-st-note {
  margin: 8px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.bu-st-note-gold {
  color: var(--gold);
}

.bu-st-moments .bu-st-note {
  padding: 6px 8px;
}

/* ---------------------------------------------------------------------------
   Monitor
   --------------------------------------------------------------------------- */

.bu-st-monitor {
  position: relative;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) 56px;
  min-width: 0;
  min-height: 0;
}

.bu-st-mon-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-bg);
  pointer-events: auto;
}

.bu-st-mon-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.bu-st-tab {
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bu-st-tab.bu-on {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0c10;
}

.bu-st-mon-format {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.bu-st-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.bu-st-frame {
  position: absolute;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 9999px #050608, 0 30px 90px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.bu-st-monitor.bu-source .bu-st-frame {
  box-shadow: 0 0 0 1px rgba(61, 134, 255, 0.55), 0 0 0 9999px #050608, 0 30px 90px rgba(0, 0, 0, 0.7);
}

.bu-st-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bu-st-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: rgba(5, 6, 8, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.bu-st-wait-text {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.bu-st-mon-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(20, 23, 32, 0.75) 0%, rgba(5, 6, 8, 0.92) 70%);
  pointer-events: auto;
}

.bu-st-mon-empty > .bu-ic {
  width: 54px;
  height: 54px;
  color: var(--text-4);
  stroke-width: 1.4;
}

.bu-st-mon-empty-title {
  margin: 4px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bu-st-mon-empty-text {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: balance;
}

.bu-st-notice {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-1);
  color: var(--text);
  font-size: 13.5px;
  transform: translateX(-50%);
  animation: bu-rise 240ms var(--ease-out) both;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  pointer-events: none;
}

/* What the player's camera does when it cannot show the chosen one (tracking building, no headset, no plan) */
.bu-st-camstate {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(560px, calc(100% - 32px));
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--text-2);
  font-size: 12.5px;
  transform: translateX(-50%);
  pointer-events: none;
}

.bu-st-camstate .bu-spinner {
  width: 14px;
  height: 14px;
  flex: none;
}

.bu-st-camstate-text {
  min-width: 0;
}

.bu-st-notice.bu-leaving {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.bu-st-notice .bu-ic {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.bu-st-notice[data-kind="success"] .bu-ic {
  color: var(--ok);
}

.bu-st-notice[data-kind="error"] .bu-ic {
  color: var(--red-2);
}

/* Transport */

.bu-st-transport {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--st-line);
  background: var(--st-bg);
  pointer-events: auto;
}

.bu-st-tr-left,
.bu-st-tr-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bu-st-tr-right {
  justify-content: flex-end;
  gap: 6px;
}

.bu-st-transport .bu-icon-btn {
  width: 36px;
  height: 36px;
}

.bu-st-transport .bu-icon-btn .bu-ic {
  width: 18px;
  height: 18px;
}

.bu-st-play {
  width: 42px !important;
  height: 42px !important;
  margin: 0 4px;
  border-radius: 50% !important;
  background: #fff !important;
  color: #0b0c10 !important;
}

.bu-st-play:hover {
  background: var(--gold-2) !important;
}

.bu-st-rate {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
}

.bu-st-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.bu-st-time-cur {
  color: var(--text);
  min-width: 78px;
  text-align: right;
}

.bu-st-time-sep {
  color: var(--text-4);
}

.bu-st-time-dur {
  min-width: 78px;
  color: var(--text-3);
}

.bu-st-vol {
  width: 96px;
}

/* ---------------------------------------------------------------------------
   Inspector
   --------------------------------------------------------------------------- */

.bu-st-ins-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 20px;
  scrollbar-width: thin;
}

.bu-st-sec {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--st-line);
}

.bu-st-sec:last-child {
  border-bottom: 0;
}

.bu-st-sec-title {
  margin: 0 0 12px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bu-st-clip-sum {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--st-line);
}

.bu-st-clip-sum-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.bu-st-clip-sum-sub {
  color: var(--text-3);
  font-size: 12px;
}

.bu-st-cams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bu-st-cam {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.bu-st-cam span {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.bu-st-cam .bu-ic {
  width: 17px;
  height: 17px;
}

.bu-st-cam kbd {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  opacity: 0.6;
}

.bu-st-cam:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.bu-st-cam.bu-on {
  border-color: rgba(255, 56, 56, 0.75);
  background: linear-gradient(180deg, rgba(255, 56, 56, 0.2) 0%, rgba(255, 56, 56, 0.08) 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 56, 56, 0.25);
}

.bu-st-cam:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bu-st-field {
  display: block;
  margin: 14px 0 7px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.bu-st-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.bu-st-seg button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.bu-st-seg button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bu-st-seg button .bu-ic {
  width: 15px;
  height: 15px;
}

.bu-st-seg button:hover {
  color: var(--text);
}

.bu-st-seg button.bu-on {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0c10;
}

.bu-st-seg button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bu-st-seg-speed {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}

.bu-st-seg-speed button {
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.bu-st-seg-speed button:last-child {
  font-family: var(--font-body);
}

.bu-st-slider {
  display: block;
  margin-top: 14px;
}

.bu-st-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.bu-st-slider-name {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.bu-st-field-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.bu-st-seg-loud button {
  flex: 1 1 0;
}

.bu-ttl-hidden {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, rgba(6, 7, 10, 0.72) 0 5px, rgba(6, 7, 10, 0.5) 5px 10px);
  pointer-events: none;
}

.bu-st-slider-val {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.bu-st-slider .bu-range {
  width: 100%;
}

/* Free camera keys: the monitor's view kept as the shot's start or end */
.bu-st-keyrow {
  margin-top: 14px;
  padding: 2px 12px 12px;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.bu-st-keybtns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bu-st-keybtn {
  justify-content: center;
}

.bu-st-keybtn.bu-on {
  border-color: var(--gold);
  color: var(--gold);
}

.bu-st-keyrow .bu-st-note {
  margin: 10px 0 0;
}

.bu-st-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.bu-st-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bu-st-toggle-name {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.bu-st-toggle-sub {
  color: var(--text-3);
  font-size: 12px;
}

.bu-st-ins-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.bu-st-ins-actions .bu-btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}

.bu-st-textarea {
  height: auto;
  min-height: 66px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  resize: vertical;
}

.bu-st-styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bu-st-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.bu-st-style.bu-on {
  border-color: rgba(233, 185, 73, 0.7);
  background: var(--gold-soft);
  color: var(--text);
}

.bu-st-style-sample {
  display: grid;
  place-items: center;
  width: 100%;
  height: 30px;
  color: #fff;
}

.bu-st-style-tiktok .bu-st-style-sample {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.bu-st-style-lower .bu-st-style-sample {
  width: auto;
  height: 24px;
  padding: 0 8px;
  border-left: 3px solid var(--gold);
  background: rgba(10, 11, 15, 0.92);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bu-st-style-impact .bu-st-style-sample {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--red-3);
}

.bu-st-style-name {
  font-size: 11.5px;
  font-weight: 600;
}

.bu-st-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bu-st-format {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.bu-st-format.bu-on {
  border-color: rgba(255, 56, 56, 0.75);
  background: rgba(255, 56, 56, 0.1);
  color: var(--text);
}

.bu-st-format-shape {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.85;
}

.bu-st-fmt-16x9 {
  width: 34px;
  height: 20px;
}

.bu-st-fmt-9x16 {
  width: 16px;
  height: 28px;
}

.bu-st-fmt-1x1 {
  width: 24px;
  height: 24px;
}

.bu-st-format-name {
  font-size: 13px;
  font-weight: 700;
}

.bu-st-format-sub {
  color: var(--text-3);
  font-size: 10.5px;
  text-align: center;
  line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   Resizer and timeline
   --------------------------------------------------------------------------- */

.bu-st-resizer {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--st-bg);
  border-top: 1px solid var(--st-line);
  cursor: row-resize;
  pointer-events: auto;
  touch-action: none;
}

.bu-st-resizer-grip {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--line-3);
}

.bu-st-resizer:hover .bu-st-resizer-grip {
  background: var(--gold);
}

.bu-st-timeline {
  min-height: 0;
  background: var(--st-bg);
  pointer-events: auto;
}

.bu-tl2 {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.bu-tl2-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--st-line);
}

.bu-tl2-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bu-tl2-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.bu-tl2-btn .bu-ic {
  width: 18px;
  height: 18px;
}

.bu-tl2-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.bu-tl2-btn:disabled {
  opacity: 0.3;
  background: transparent;
  cursor: default;
}

.bu-tl2-btn.bu-on,
.bu-tl2-btn[aria-pressed="true"] {
  color: var(--gold-2);
}

.bu-tl2-zoom {
  width: 120px;
  margin: 0 4px;
}

.bu-tl2-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 0;
}

.bu-tl2-heads {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--st-line);
  background: var(--st-panel);
}

.bu-tl2-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.bu-tl2-head .bu-ic {
  width: 16px;
  height: 16px;
  color: var(--text-4);
}

.bu-tl2-head-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-tl2-head-ruler {
  height: 26px;
  flex: none;
}

.bu-tl2-head-v1 {
  flex: 1 1 76px;
  min-height: 56px;
  color: var(--text-2);
}

.bu-tl2-head-tempo {
  flex: 0 0 44px;
}

.bu-tl2-head-titles {
  flex: 0 0 38px;
}

.bu-tl2-head-music {
  flex: 0 0 46px;
}

.bu-tl2-head-a1 {
  flex: 0 0 58px;
}

.bu-tl2-scroll {
  position: relative;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bu-tl2-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  height: 100%;
}

.bu-tl2-ruler {
  position: relative;
  flex: none;
  height: 26px;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-panel);
  cursor: ew-resize;
}

.bu-tl2-ruler-c {
  position: absolute;
  top: 0;
  left: 0;
}

.bu-tl2-track {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bu-tl2-v1 {
  flex: 1 1 76px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.012);
}

.bu-tl2-tempo {
  flex: 0 0 44px;
}

.bu-tl2-titles {
  flex: 0 0 38px;
  background: rgba(255, 255, 255, 0.012);
}

.bu-tl2-music {
  flex: 0 0 46px;
}

.bu-tl2-a1 {
  flex: 0 0 58px;
  background: rgba(255, 255, 255, 0.012);
}

.bu-tl2-v1.bu-drop-on {
  background: rgba(233, 185, 73, 0.06);
}

/* Clips */

.bu-clip {
  position: absolute;
  top: 5px;
  bottom: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--st-clip-2) 0%, var(--st-clip) 100%);
  cursor: grab;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

.bu-clip:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.bu-clip.bu-sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(233, 185, 73, 0.25);
  z-index: 1;
}

.bu-clip.bu-replay {
  background: linear-gradient(180deg, #2b2440 0%, #1f1a30 100%);
}

.bu-clip.bu-ghost {
  opacity: 0.75;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.bu-clip-strip {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.bu-clip-frame {
  position: absolute;
  top: 0;
  bottom: 0;
  background: center / cover no-repeat;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.bu-clip-head {
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.bu-clip-cam {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 2px 7px 2px 5px;
  border-radius: 6px;
  background: rgba(8, 9, 12, 0.78);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.bu-clip-cam .bu-ic {
  width: 13px;
  height: 13px;
  color: var(--red-2);
}

.bu-clip-cam-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-clip-speed {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(233, 185, 73, 0.9);
  color: #1a1305;
  font-size: 10.5px;
  font-weight: 700;
}

.bu-clip-speed .bu-ic {
  width: 12px;
  height: 12px;
}

.bu-clip-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.bu-clip.bu-narrow .bu-clip-cam-name,
.bu-clip.bu-narrow .bu-clip-label,
.bu-clip.bu-narrow .bu-clip-speed {
  display: none;
}

.bu-clip-h {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: ew-resize;
  z-index: 2;
}

.bu-clip-h-in {
  left: 0;
}

.bu-clip-h-out {
  right: 0;
}

.bu-clip-h::after {
  content: "";
  position: absolute;
  top: 30%;
  bottom: 30%;
  left: 3px;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0);
  transition: background-color 120ms var(--ease);
}

.bu-clip:hover .bu-clip-h::after,
.bu-clip.bu-sel .bu-clip-h::after {
  background: rgba(255, 255, 255, 0.65);
}

.bu-clip-xfade {
  position: absolute;
  top: 5px;
  bottom: 5px;
  z-index: 2;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(233, 185, 73, 0.32) 0 5px, rgba(233, 185, 73, 0.08) 5px 10px);
  pointer-events: none;
}

.bu-trans {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: #0d0f15;
  color: var(--text-2);
  opacity: 0.8;
  transition: transform 120ms var(--ease), opacity 120ms var(--ease), border-color 120ms var(--ease);
}

.bu-trans .bu-ic {
  width: 12px;
  height: 12px;
}

.bu-trans:hover {
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--gold);
  color: var(--gold-2);
}

.bu-trans-crossfade,
.bu-trans-flash {
  border-color: rgba(233, 185, 73, 0.8);
  color: var(--gold-2);
  opacity: 1;
}

/* Tempo */

.bu-tempo {
  position: absolute;
  top: 3px;
  bottom: 3px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  cursor: ns-resize;
}

.bu-tempo-svg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}

.bu-tempo-ref {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 3 3;
}

.bu-tempo-fill {
  fill: rgba(233, 185, 73, 0.1);
}

.bu-tempo-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

.bu-tempo-pt {
  fill: #0d0f15;
  stroke: var(--gold-2);
  stroke-width: 2;
  cursor: grab;
}

.bu-tempo-pt.bu-sel {
  fill: var(--gold);
}

.bu-tempo-label {
  position: absolute;
  top: 3px;
  right: 6px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

/* Titles */

.bu-ttl {
  position: absolute;
  top: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(244, 245, 247, 0.12);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: grab;
}

.bu-ttl .bu-ic {
  width: 13px;
  height: 13px;
  flex: none;
}

.bu-ttl-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-ttl-lower {
  border-color: rgba(233, 185, 73, 0.55);
  background: rgba(233, 185, 73, 0.16);
}

.bu-ttl-impact {
  border-color: rgba(255, 56, 56, 0.6);
  background: rgba(255, 56, 56, 0.18);
}

.bu-ttl.bu-sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.bu-ttl-h {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: ew-resize;
}

.bu-ttl-h-in {
  left: 0;
}

.bu-ttl-h-out {
  right: 0;
}

/* Fight sound */

.bu-aud {
  position: absolute;
  top: 4px;
  bottom: 4px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(61, 134, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(61, 134, 255, 0.18);
  cursor: ns-resize;
}

.bu-aud.bu-sel {
  box-shadow: inset 0 0 0 1px rgba(233, 185, 73, 0.6);
}

.bu-aud-wave {
  position: absolute;
  top: 0;
  left: 0;
}

.bu-aud-gain {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px solid rgba(233, 185, 73, 0.75);
  pointer-events: none;
}

.bu-aud-db {
  position: absolute;
  right: 6px;
  top: 3px;
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 700;
}

.bu-jl {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 14px;
  margin-left: -7px;
  cursor: ew-resize;
}

.bu-jl-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid var(--text-3);
  background: #0d0f15;
  transform: rotate(45deg);
  transition: border-color 120ms var(--ease), background-color 120ms var(--ease);
}

.bu-jl::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.bu-jl:hover .bu-jl-knob,
.bu-jl.bu-jl-on .bu-jl-knob {
  border-color: var(--gold);
  background: var(--gold);
}

.bu-music-empty {
  padding: 13px 14px;
  color: var(--text-4);
  font-size: 12px;
  font-style: italic;
}

/* Music lane (skeleton, ?studio-music=1): the track's waveform, beat ticks and bar lines */
.bu-mus {
  position: absolute;
  top: 4px;
  bottom: 4px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(167, 112, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(167, 112, 255, 0.28);
}

.bu-mus-wave {
  position: absolute;
  top: 0;
  left: 0;
}

.bu-mus-name {
  position: absolute;
  top: 3px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(8, 9, 12, 0.7);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

/* Playhead, snapping, drop marker, tip, empty */

.bu-tl2-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  width: 2px;
  margin-left: -1px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 56, 56, 0.6);
  pointer-events: none;
}

.bu-tl2-playhead-knob {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 16px;
  margin-left: -7px;
  border-radius: 3px 3px 7px 7px;
  background: var(--red);
}

.bu-tl2-snapline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  width: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(233, 185, 73, 0.8);
  pointer-events: none;
}

.bu-tl2-dropline {
  position: absolute;
  top: 26px;
  height: 90px;
  left: 0;
  z-index: 7;
  width: 3px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(233, 185, 73, 0.9);
  pointer-events: none;
}

.bu-tl2-tip {
  position: absolute;
  z-index: 9;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--glass-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.bu-tl2-empty {
  position: absolute;
  top: 38px;
  left: 20px;
  color: var(--text-4);
  font-size: 13px;
  pointer-events: none;
}

.bu-tl2.bu-dragging,
.bu-tl2.bu-dragging * {
  cursor: grabbing !important;
}

/* ---------------------------------------------------------------------------
   Start strip (Auto film)
   --------------------------------------------------------------------------- */

.bu-st-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px clamp(20px, 3vw, 56px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.8) 0%, rgba(5, 6, 8, 0.92) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  pointer-events: auto;
  animation: bu-fade 220ms var(--ease) both;
}

.bu-st-start-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(100%, 1480px);
}

.bu-st-start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.bu-st-start-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.bu-st-start-fmt {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bu-st-start-fmt-label {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bu-st-start-fmt .bu-st-seg {
  flex-wrap: nowrap;
}

.bu-st-start-fmt .bu-st-seg button {
  padding: 0 12px;
}

.bu-st-start-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.bu-st-start-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bu-st-start-sub {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.bu-st-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(160px, 11vw, 250px), 1fr));
  gap: clamp(12px, 1vw, 20px);
}

.bu-st-preset {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, #151923 0%, #0e1016 100%);
  color: var(--text);
  text-align: left;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.bu-st-preset:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--line-3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.bu-st-preset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bu-st-accent-red:hover:not(:disabled) {
  border-color: rgba(255, 56, 56, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 56, 56, 0.16);
}

.bu-st-accent-gold:hover:not(:disabled) {
  border-color: rgba(233, 185, 73, 0.7);
}

.bu-st-preset-poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  background: #151821 center / cover no-repeat;
  color: var(--text-4);
}

.bu-st-preset-poster > .bu-ic {
  width: 44px;
  height: 44px;
  stroke-width: 1.4;
}

.bu-st-accent-red .bu-st-preset-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 56, 56, 0) 55%, rgba(255, 56, 56, 0.28) 100%);
}

.bu-st-preset-meta {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.bu-st-preset-meta span {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(8, 9, 12, 0.78);
}

.bu-st-preset-meta .bu-st-preset-fmt {
  background: rgba(255, 255, 255, 0.9);
  color: #0b0c10;
}

.bu-st-preset-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.bu-st-preset-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bu-st-preset-sub {
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.bu-st-preset-busy {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(5, 6, 8, 0.65);
}

.bu-st-preset.bu-busy .bu-st-preset-busy {
  display: grid;
}

.bu-st-start-note {
  margin: 0;
  color: var(--gold-2);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------------------
   Dialogs: export, my films, keys, transition menu
   --------------------------------------------------------------------------- */

.bu-st-modal {
  pointer-events: auto;
}

.bu-st-export,
.bu-st-films {
  width: min(560px, 100%);
  padding: 24px 26px 26px;
}

.bu-st-films {
  width: min(720px, 100%);
}

.bu-st-exp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bu-st-exp-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bu-st-exp-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.16);
  color: var(--ok);
}

.bu-st-exp-sum {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.bu-st-exp-fmt {
  flex: none;
  border: 2px solid var(--text-2);
  border-radius: 4px;
}

.bu-st-exp-fmt.bu-st-fmtbox-16x9 {
  width: 44px;
  height: 25px;
}

.bu-st-exp-fmt.bu-st-fmtbox-9x16 {
  width: 20px;
  height: 36px;
}

.bu-st-exp-fmt.bu-st-fmtbox-1x1 {
  width: 30px;
  height: 30px;
}

.bu-st-exp-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bu-st-exp-line {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.bu-st-exp-est {
  color: var(--text-3);
  font-size: 12.5px;
}

.bu-st-exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bu-st-exp-actions .bu-btn-lg {
  flex: 1 1 auto;
}

.bu-st-exp-progress {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 4px 0 12px;
}

.bu-st-exp-percent {
  color: var(--text);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.bu-st-exp-phase {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.bu-st-exp-eta {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.bu-st-exp-frames {
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bu-st-exp-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.bu-st-exp-preview video {
  display: block;
  max-width: 100%;
  max-height: 52vh;
}

.bu-st-exp-file {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-exp-preview + .bu-st-exp-line {
  margin: 14px 0 0;
}

.bu-st-exp-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.bu-st-exp-hint .bu-ic {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--gold);
}

.bu-st-films-player {
  display: grid;
  place-items: center;
  margin: 14px 0 6px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.bu-st-films-player video {
  display: block;
  max-width: 100%;
  max-height: 46vh;
}

.bu-st-films-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  margin-top: 14px;
  overflow: auto;
}

.bu-st-films-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 12px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

.bu-st-films-empty .bu-ic {
  width: 44px;
  height: 44px;
  color: var(--text-4);
  stroke-width: 1.4;
}

.bu-st-films-empty p {
  margin: 0;
}

.bu-st-film {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.bu-st-film-poster {
  width: 96px;
  height: 54px;
  border-radius: 8px;
  background: #151821 center / cover no-repeat;
}

.bu-st-film-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bu-st-film-name {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-film-sub {
  color: var(--text-3);
  font-size: 12px;
}

.bu-st-film-actions {
  display: flex;
  gap: 2px;
}

.bu-st-kbds {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bu-st-keys-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.bu-st-keys-col .bu-keys {
  gap: 10px 16px;
}

.bu-st-keys-col .bu-keys dt {
  gap: 4px;
}

.bu-st-pop {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-2);
  pointer-events: auto;
  animation: bu-rise 180ms var(--ease-out) both;
}

.bu-st-pop-title {
  margin: 2px 6px 6px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bu-st-pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}

.bu-st-pop-item .bu-ic {
  width: 17px;
  height: 17px;
}

.bu-st-pop-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.bu-st-pop-item.bu-on {
  color: var(--gold-2);
}

/* The studio page: the header keeps its solid bar; toasts sit over the monitor. */
html.bu-studio-on .bu-toasts {
  left: 50%;
  bottom: calc(var(--st-tl-h, 300px) + 80px);
}

/* ---------------------------------------------------------------------------
   Handheld takes ("Z ręki"): the take panel in the inspector, record mode over the monitor (studio-take.js)
   --------------------------------------------------------------------------- */

.bu-st-takes {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.bu-st-takes .bu-st-field:first-of-type {
  margin-top: 12px;
}

.bu-st-take-recrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-st-take-recbtn {
  flex: 1;
  justify-content: center;
  border-color: rgba(255, 56, 56, 0.55);
  background: linear-gradient(180deg, rgba(255, 56, 56, 0.24) 0%, rgba(255, 56, 56, 0.1) 100%);
  color: #fff;
}

.bu-st-take-recbtn .bu-ic {
  color: var(--red);
}

.bu-st-take-recbtn:hover:not(:disabled) {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(255, 56, 56, 0.36) 0%, rgba(255, 56, 56, 0.16) 100%);
}

.bu-st-take-recbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bu-st-take-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bu-st-take {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.bu-st-take.bu-on {
  border-color: rgba(255, 56, 56, 0.7);
  background: linear-gradient(180deg, rgba(255, 56, 56, 0.16) 0%, rgba(255, 56, 56, 0.05) 100%);
}

.bu-st-take-pick {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
}

.bu-st-take-pick:hover {
  color: var(--text);
}

.bu-st-take-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 40px;
  border-radius: 6px;
  background: #11141b center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bu-st-take-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bu-st-take-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.bu-st-take-sub {
  overflow: hidden;
  color: var(--text-3);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-take-on {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--red-2);
}

.bu-st-take-del {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.bu-st-take-warn {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bu-st-take-warn li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gold-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.bu-st-take-warn .bu-ic {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.bu-st-take-busy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-st-take-busy .bu-spinner {
  width: 14px;
  height: 14px;
}

/* Record mode: the monitor belongs to the flight, the rest of the Studio waits. */
html.bu-st-rec-on .bu-st-source,
html.bu-st-rec-on .bu-st-inspector,
html.bu-st-rec-on .bu-st-timeline,
html.bu-st-rec-on .bu-st-resizer,
html.bu-st-rec-on .bu-st-actions {
  opacity: 0.4;
  pointer-events: none;
}

html.bu-st-rec-on .bu-st-camstate,
html.bu-st-rec-on .bu-st-wait {
  display: none;
}

.bu-st-take-hud {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) 56px;
  pointer-events: none;
}

.bu-st-take-top {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid rgba(255, 56, 56, 0.45);
  background: var(--st-bg);
  pointer-events: auto;
}

.bu-st-take-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-take-title .bu-ic {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--red);
}

.bu-st-take-ratebox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bu-st-take-ratelabel {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bu-st-take-rates button {
  height: 28px;
  padding: 0 10px;
}

.bu-st-take-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bu-st-take-start {
  border-color: rgba(255, 56, 56, 0.8);
  background: var(--red-3);
  color: #fff;
}

.bu-st-take-start:hover:not(:disabled) {
  background: var(--red);
}

.bu-st-take-start:disabled {
  opacity: 0.5;
}

.bu-st-take-start.bu-st-take-live {
  animation: bu-st-rec-pulse 1.2s ease-in-out infinite;
}

@keyframes bu-st-rec-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 56, 56, 0);
  }
}

.bu-st-take-surface {
  grid-area: 2 / 1;
  pointer-events: auto;
  cursor: crosshair;
}

.bu-st-take-center {
  grid-area: 2 / 1;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-self: center;
  justify-self: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(5, 6, 8, 0.55);
  pointer-events: none;
}

.bu-st-take-center.bu-st-take-counting {
  padding: 8px 34px;
  background: transparent;
}

.bu-st-take-count {
  color: #fff;
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.65);
}

.bu-st-take-center-text {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.bu-st-take-legend {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  border-top: 1px solid var(--st-line);
  background: var(--st-bg);
  pointer-events: auto;
}

.bu-st-take-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  overflow: hidden;
}

.bu-st-take-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.bu-st-take-key kbd {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 10.5px;
}

.bu-st-take-pad .bu-st-take-key {
  color: var(--text-4);
}
/* ---------------------------------------------------------------------------
   Camera path ("Tor kamery"): keys, the picked key, aim, what the player said (studio-path.js)
   --------------------------------------------------------------------------- */

.bu-st-path {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.bu-st-path-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.bu-st-path-head .bu-ic {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.bu-st-path-kind {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-path-tpl {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 600;
}

.bu-st-path-adds {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.bu-st-path-adds .bu-btn {
  justify-content: center;
  min-width: 0;
}

.bu-st-path-adds .bu-btn span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-path-add {
  border-color: rgba(233, 185, 73, 0.55);
  background: linear-gradient(180deg, rgba(233, 185, 73, 0.2) 0%, rgba(233, 185, 73, 0.07) 100%);
  color: #fff;
}

.bu-st-path-add .bu-ic {
  color: var(--gold);
}

.bu-st-path-add kbd {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  opacity: 0.75;
}

.bu-st-path-add:hover:not(:disabled) {
  border-color: var(--gold);
}

.bu-st-path-adds .bu-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bu-st-path-keys {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bu-st-path-key {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.bu-st-path-key.bu-on {
  border-color: rgba(233, 185, 73, 0.7);
  background: linear-gradient(180deg, rgba(233, 185, 73, 0.16) 0%, rgba(233, 185, 73, 0.05) 100%);
}

.bu-st-path-key.bu-st-path-out {
  opacity: 0.55;
}

.bu-st-path-pick {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 2px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  text-align: left;
}

.bu-st-path-pick:hover {
  color: var(--text);
}

.bu-st-path-pick:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.bu-st-path-diamond {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.bu-st-path-key.bu-on .bu-st-path-diamond {
  fill: var(--gold);
}

.bu-st-path-num {
  min-width: 14px;
  color: var(--text);
  font-weight: 700;
}

.bu-st-path-time {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-path-lens {
  flex: 0 0 auto;
  color: var(--text-3);
  font-size: 11.5px;
}

.bu-st-path-warnic {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--gold-2);
}

.bu-st-path-del {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.bu-st-path-kbdhint {
  margin: 8px 0 0;
  font-size: 11.5px;
}

.bu-st-path-edit {
  margin-top: 12px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(233, 185, 73, 0.28);
  border-radius: 9px;
  background: rgba(233, 185, 73, 0.04);
}

.bu-st-path-edit-title {
  display: block;
  color: var(--gold-2);
  font-size: 12.5px;
  font-weight: 700;
}

.bu-st-path-edit .bu-st-slider {
  margin-top: 10px;
}

.bu-st-path-ease button,
.bu-st-path-framing button {
  font-size: 11.5px;
}

.bu-st-path-pushed,
.bu-st-path-ok {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--gold-2);
  font-size: 12px;
  line-height: 1.4;
}

.bu-st-path-ok {
  color: #7fd6a0;
}

.bu-st-path-pushed .bu-ic,
.bu-st-path-ok .bu-ic {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.bu-st-path-delkey {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.bu-st-path-busy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-st-path-warn {
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .bu-st-path-key {
    transition: none;
  }
}
/* The ring minimap of a camera path (a floor plan seen from above) */
.bu-st-path-map {
  margin-top: 12px;
  padding: 6px;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: radial-gradient(120% 120% at 50% 40%, #121622 0%, #0a0c12 70%);
}

.bu-st-path-map-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  touch-action: none;
  user-select: none;
}

.bu-st-path-map-svg:focus {
  outline: none;
}

.bu-st-path-map-svg:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.bu-st-path-map-svg.bu-st-picking {
  cursor: crosshair;
}

.bu-st-map-canvas {
  fill: rgba(255, 255, 255, 0.045);
}

.bu-st-map-ropes {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.bu-st-map-post {
  fill: #d7dbe4;
  stroke: #0a0c12;
  stroke-width: 1.2;
}

.bu-st-map-trail {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.42;
}

.bu-st-map-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(233, 185, 73, 0.35));
}

.bu-st-map-frustum {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
  stroke-linejoin: round;
}

.bu-st-map-camera {
  fill: #fff;
  stroke: #0a0c12;
  stroke-width: 1.2;
}

.bu-st-map-fighter {
  stroke: #0a0c12;
  stroke-width: 1.6;
}

.bu-st-map-key {
  cursor: grab;
}

.bu-st-map-key-hit,
.bu-st-map-point-hit {
  fill: transparent;
}

.bu-st-map-key-diamond {
  fill: #151924;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
}

.bu-st-map-key.bu-on .bu-st-map-key-diamond {
  fill: var(--gold);
  stroke: #fff;
}

.bu-st-map-key.bu-pushed .bu-st-map-key-diamond {
  stroke-dasharray: 3 2;
}

.bu-st-map-key-num {
  fill: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #0a0c12;
  stroke-width: 3px;
  pointer-events: none;
}

.bu-st-map-point {
  cursor: grab;
}

.bu-st-map-point-cross {
  stroke: #7fe3ff;
  stroke-width: 2;
  stroke-linecap: round;
}

.bu-st-map-point-ring {
  fill: none;
  stroke: #7fe3ff;
  stroke-width: 2;
}

.bu-st-path-maplegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 6px 4px 2px;
}

.bu-st-path-mapname {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-3);
  font-size: 11.5px;
}

.bu-st-path-mapname span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-path-mapdot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.bu-st-path-maphint {
  margin: 8px 0 0;
  font-size: 11.5px;
}

.bu-st-path-pickpt {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.bu-st-path-pickpt.bu-on {
  border-color: #7fe3ff;
  color: #7fe3ff;
}
/* Path templates: one-click moves relative to the fighters */
.bu-st-path-tpls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bu-st-path-tplbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 4px 7px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.bu-st-path-tplbtn .bu-ic {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.bu-st-path-tplbtn:hover:not(:disabled) {
  border-color: var(--line-3);
  color: var(--text);
}

.bu-st-path-tplbtn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.bu-st-path-tplbtn.bu-on {
  border-color: rgba(233, 185, 73, 0.7);
  background: linear-gradient(180deg, rgba(233, 185, 73, 0.18) 0%, rgba(233, 185, 73, 0.05) 100%);
  color: #fff;
}

.bu-st-path-tplbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .bu-st-path-tplbtn {
    transition: none;
  }
}
/* "Moje ruchy kamery": saved moves relative to the fighters */
.bu-st-path-moves {
  margin-top: 4px;
}

.bu-st-path-movesave {
  width: 100%;
  justify-content: center;
}

.bu-st-path-movelist {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.bu-st-path-move {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 3px 3px 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.bu-st-path-moveinfo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.bu-st-path-moveinfo .bu-ic {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.bu-st-path-movetitle {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bu-st-path-moveuse {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
}

.bu-st-path-moveren,
.bu-st-path-movedel,
.bu-st-path-movecancel {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.bu-st-path-movedel.bu-st-confirm {
  border-color: rgba(255, 56, 56, 0.7);
  background: rgba(255, 56, 56, 0.16);
  color: var(--red-2);
}

.bu-st-path-movename {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 2px;
}

.bu-st-path-move .bu-st-path-movename {
  margin-top: 0;
}

.bu-st-path-moveinput {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  background: #0b0d13;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}

.bu-st-path-moveinput:focus {
  outline: none;
  border-color: var(--gold);
}

.bu-st-path-movekeep {
  flex: 0 0 auto;
  min-height: 32px;
}
