:root {
  --bg-base: #030306;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-highlight: rgba(255, 255, 255, 0.11);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-violet: #818cf8;
  --accent-indigo: #6366f1;
  --accent-teal: #2dd4bf;
  --gradient-ai: linear-gradient(135deg, #818cf8 0%, #6366f1 45%, #2dd4bf 100%);
  --live: #f43f5e;
  --live-glow: rgba(244, 63, 94, 0.45);
  --warning: #fbbf24;
  --topbar-h: 72px;
  --sidebar-w: 400px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --blur: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
}

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 24s ease-in-out infinite;
}

.ambient__orb--1 {
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  background: radial-gradient(circle, #6366f1 0%, transparent 65%);
  top: -15%;
  left: -10%;
}

.ambient__orb--2 {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  background: radial-gradient(circle, #2dd4bf 0%, transparent 65%);
  bottom: -10%;
  right: 20%;
  animation-delay: -8s;
  opacity: 0.4;
}

.ambient__orb--3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #818cf8 0%, transparent 65%);
  top: 30%;
  right: -5%;
  animation-delay: -16s;
  opacity: 0.35;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 40% 40%, black 20%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
}

.glass-input {
  background: rgba(0, 0, 0, 0.35);
}

/* Full page shell */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Topbar — бренд + product tabs */
.topbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  height: auto;
  padding: 10px 24px;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
}

.topbar__spacer {
  justify-self: end;
  width: 40px;
}

.product-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
}

.product-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-tabs__btn svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.product-tabs__btn:hover { color: var(--text-primary); }

.product-tabs__btn--active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.35);
}

.product-tabs__btn--active svg { opacity: 1; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 12px rgba(99, 102, 241, 0.35));
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand__media {
  font-size: 1.375rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
}

.brand__voice {
  font-size: 1.375rem;
  font-weight: 700;
  background: linear-gradient(100deg, #c7d2fe 0%, #818cf8 35%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__tld {
  margin-left: 1px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}

.select-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.select-label--grow {
  flex: 1;
}

.select-label__text {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.select {
  appearance: none;
  width: 100%;
  height: 38px;
  padding: 0 32px 0 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2394a3b8'%3E%3Cpath d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  align-self: flex-end;
  height: 38px;
  padding: 0 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-badge--connecting .status-badge__dot {
  background: var(--warning);
  animation: pulse 1s ease infinite;
}

.status-badge--live .status-badge__dot {
  background: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
  animation: pulse 1.2s ease infinite;
}

.status-badge--live {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Workspace — full remaining height, 2 columns */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  min-height: 0;
  overflow: hidden;
}

/* Stage — left column */
.stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 12px 20px 24px;
}

.stage__view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.stage__view--hidden { display: none; }

.stage__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--glass-border);
  transition: border-color 0.4s;
}

body.is-live .stage__inner {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.15),
    0 0 80px rgba(99, 102, 241, 0.15);
}

.stage__glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-ai);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s;
}

body.is-live .stage__glow { opacity: 0.08; }

.stage__placeholder,
.stage__capture {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.stage__placeholder--hidden,
.stage__capture--hidden { display: none; }

.stage__visual {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.stage__rings {
  position: absolute;
  inset: 0;
}

.stage__rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  animation: ringExpand 3.5s ease-out infinite;
}

.stage__rings--teal span {
  border-color: rgba(45, 212, 191, 0.3);
}

body.is-live .stage__rings--teal span {
  border-color: rgba(45, 212, 191, 0.5);
}

.stage__rings span:nth-child(2) { animation-delay: 1.1s; }
.stage__rings span:nth-child(3) { animation-delay: 2.2s; }

@keyframes ringExpand {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

.stage__play-icon,
.stage__action-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient-ai);
  border: none;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.stage__action-btn {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stage__action-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
}

body.is-live .stage__action-btn {
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25), 0 12px 40px rgba(45, 212, 191, 0.35);
}

.stage__waveform {
  margin-top: 8px;
  height: 40px;
}

.stage__title {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stage__hint,
.stage__capture-desc {
  margin: 0;
  max-width: 280px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.stage__brand-media {
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
}

.stage__brand-voice {
  font-weight: 700;
  background: linear-gradient(100deg, #c7d2fe 0%, #818cf8 40%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stage__brand-tld {
  font-size: 0.75em;
  font-weight: 500;
  color: #64748b;
}

/* Audio stage */
.stage__inner--audio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.stage__media {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  position: relative;
  z-index: 5;
  display: flex;
  background: #000;
}

.stage__controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.stage__media:hover .stage__controls,
.stage__media:focus-within .stage__controls,
body.has-video-playing .stage__controls {
  opacity: 1;
  pointer-events: auto;
}

.stage__control-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.stage__control-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.stage__control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stage__control-btn--stop {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.35);
}

.stage__video {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}

body.has-video-playing .stage__glow,
body.has-video-playing.is-live .stage__glow,
body.has-video-playing .stage__scanline {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}

.stage__video--hidden { display: none; }

.stage__capture-title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capture-window {
  margin-top: 32px;
  width: min(320px, 80%);
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.capture-window__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.capture-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.capture-window__wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 48px;
}

.capture-window__wave span {
  width: 4px;
  background: var(--gradient-ai);
  border-radius: 2px;
  animation: wave 0.9s ease-in-out infinite;
}

.capture-window__wave span:nth-child(1) { animation-delay: 0s; height: 20px; }
.capture-window__wave span:nth-child(2) { animation-delay: 0.1s; }
.capture-window__wave span:nth-child(3) { animation-delay: 0.2s; }
.capture-window__wave span:nth-child(4) { animation-delay: 0.15s; }
.capture-window__wave span:nth-child(5) { animation-delay: 0.05s; }

.stage__scanline {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px);
}

.stage__waveform {
  flex-shrink: 0;
  margin-top: 12px;
  height: 28px;
}

/* Waveform */
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

.waveform--hidden { display: none; }

.waveform span {
  width: 3px;
  min-height: 4px;
  background: var(--gradient-ai);
  border-radius: 2px;
  animation: wave 0.75s ease-in-out infinite;
}

body.has-video-playing .stage__waveform {
  display: none;
}

.waveform span:nth-child(odd) { animation-delay: 0.1s; }
.waveform span:nth-child(3n) { animation-delay: 0.25s; }

@keyframes wave {
  0%, 100% { height: 6px; opacity: 0.35; }
  50% { height: 24px; opacity: 1; }
}

/* Sidebar — right, scrollable */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px 20px 16px 14px;
  overflow-y: auto;
  border-left: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.sidebar__toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.lang-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.lang-row .select-label {
  flex: 1;
  min-width: 0;
}

.lang-row__arrow {
  flex-shrink: 0;
  padding-bottom: 10px;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
}

.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
}

.mode-tabs__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-tabs__btn svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.mode-tabs__btn:hover { color: var(--text-primary); }

.mode-tabs__btn--active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mode-tabs__btn--active svg { opacity: 1; }

.alert {
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: #fde68a;
  border-radius: 10px;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
}

.alert--hidden { display: none; }

.sidebar__product--hidden { display: none; }

.audio-info {
  padding: 12px 14px;
  border-radius: 12px;
}

.audio-info__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.transport--hidden { display: none; }

.transport--audio {
  padding: 14px 16px;
}

.volume--solo {
  width: 100%;
}

.source-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
}

.input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
}

.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; }

.sidebar__hint {
  margin: 6px 2px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chip {
  display: inline-flex;
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
}

.chip--ai {
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.3);
}

.chip--live-sub {
  color: var(--accent-violet);
  border-color: rgba(129, 140, 248, 0.35);
}

.steps-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-compact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.steps-compact__item span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-ai);
  border-radius: 6px;
}

.sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn--block { width: 100%; }
.btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
}

.btn--glass {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}

.btn--glass:hover { background: rgba(255, 255, 255, 0.1); }

.btn--glow {
  color: #fff;
  background: var(--gradient-ai);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn--glow:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Subtitles in sidebar */
.subtitles {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.subtitles__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.subtitles__latency {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.subtitles__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.subtitles__body::-webkit-scrollbar {
  width: 6px;
}

.subtitles__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.subtitles__body::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.45);
  border-radius: 3px;
}

.subtitles__body::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.65);
}

.subtitles__block {
  margin-bottom: 12px;
}

.subtitles__block--target { margin-bottom: 0; }

.subtitles__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.subtitles__label--glow { color: var(--accent-violet); }

.subtitles__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.subtitles__text--target {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
}

body.is-live .subtitles__text--target {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Transport */
.transport {
  padding: 16px;
  border-radius: var(--radius);
}

.transport__buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-transport {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-transport:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-transport--play {
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--gradient-ai);
  border: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-transport--play:hover:not(:disabled) { transform: scale(1.06); }

.transport__volume {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.volume__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.volume__label--ai { color: var(--accent-teal); }

.volume__slider {
  width: 100%;
  accent-color: var(--accent-indigo);
  cursor: pointer;
}

.volume__slider--ai { accent-color: var(--accent-teal); }

.sidebar__footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar__footer-tag {
  color: var(--text-secondary);
  font-weight: 500;
}

.sidebar__footer-dot { opacity: 0.35; }

/* Tablet / mobile — stack vertically, video on top */
@media (max-width: 900px) {
  html, body { overflow: auto; }

  .page { height: auto; min-height: 100dvh; }

  .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .product-tabs {
    justify-self: center;
    width: 100%;
    max-width: 320px;
  }

  .product-tabs__btn { flex: 1; justify-content: center; }

  .topbar__spacer { display: none; }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: min(50vh, 420px) auto;
  }

  .stage { padding: 12px 16px 8px; }
  .sidebar {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding: 16px;
    overflow: visible;
  }

  .topbar { padding: 0 16px; }
}

@media (max-width: 520px) {
  .topbar {
    height: auto;
    padding: 12px 16px;
  }

  .sidebar__toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .select-label--grow {
    flex: 1 1 100%;
  }

  .lang-row {
    flex-wrap: wrap;
  }

  .lang-row__arrow {
    display: none;
  }

  .status-badge {
    align-self: auto;
    margin-left: auto;
  }

  .brand__tagline {
    white-space: normal;
    font-size: 0.625rem;
  }

  .brand__media,
  .brand__voice { font-size: 1.2rem; }
  .brand__tld { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
