/* Kayıt kabini: replikler tek tek gelir; oyuncu listesinde ilerleme çubukları */

.booth { display: grid; gap: 16px; padding: var(--pad); border-radius: var(--radius-card); background: var(--surface); }
.booth .screen { background: var(--ground); }

/* Üst satır: "Replik 2 / 5" ve replik noktaları */
.booth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.booth-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.booth-count strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-right: 2px; }
.step-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.step-dots button {
  width: 26px; height: 8px; padding: 0; border: 0; border-radius: 4px;
  background: var(--control); transition: background .15s, transform .15s;
}
.step-dots button:hover:not(:disabled) { transform: scaleY(1.4); }
.step-dots button.is-done { background: var(--positive); }
.step-dots button.is-current { background: var(--text); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--text); }
.step-dots button:disabled { cursor: default; }

/* Replik kartı: önceki replik bağlam için soluk, asıl replik büyük */
.cue-card { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--raised); }
.cue-context { color: var(--faint); font-size: 14px; }
.cue-context span { font-weight: 600; }
.cue-card .cue-who { font-size: 14px; font-weight: 600; color: var(--c, var(--muted)); }
.cue-line { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.cue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.cue-meta .ok { display: inline-flex; align-items: center; gap: 4px; }
.cue-meta .icon { width: 14px; height: 14px; }

/* Kontroller: önceki · orijinali dinle · KAYDET · kaydımı dinle · sonraki */
.booth-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-icon-lg { width: 48px; height: 48px; padding: 0; }
.btn-icon-lg .icon { width: 22px; height: 22px; }
.rec-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 30px 0 22px; border: 0; border-radius: 999px;
  background: var(--tally); color: #fff; font-size: 17px; font-weight: 600;
  transition: background .15s, transform .1s var(--ease);
}
.rec-btn:hover:not(:disabled) { background: var(--tally-hover); }
.rec-btn:active:not(:disabled) { transform: scale(.97); }
.rec-btn:disabled { opacity: .4; cursor: not-allowed; }
.rec-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.rec-btn.is-retake { background: var(--control); color: var(--text); }
.rec-btn.is-retake .rec-dot { background: var(--tally); }
.rec-btn.is-retake:hover:not(:disabled) { background: var(--control-hover); }
.kbd-hints { text-align: center; color: var(--faint); font-size: 13px; }

/* Bitiş alanı */
.booth-finish > p { text-align: center; }
.finish-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: var(--raised); }
.finish-card p { color: var(--muted); font-size: 14px; }
.finish-card.is-sent > .icon { width: 28px; height: 28px; color: var(--positive); }

/* Kayıt öncesi ipuçları */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tips li { padding: 12px 14px; border-radius: 14px; background: var(--raised); font-size: 13px; color: var(--muted); }
.tips strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }

/* Oyuncu listesi ilerleme çubuğu: herkeste aynı yer ve uzunluk */
.pbar-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pbar { flex: 1; height: 6px; border-radius: 3px; background: var(--control); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; background: var(--progress); transition: width .4s var(--ease); }
.pbar-row.is-done .pbar i { background: var(--positive); }
.pbar-count { display: inline-flex; align-items: center; gap: 2px; min-width: 44px; justify-content: flex-end; font-size: 12px; font-weight: 600; color: var(--progress); font-variant-numeric: tabular-nums; }
.pbar-row.is-done .pbar-count { color: var(--positive); }
.pbar-count .icon { width: 14px; height: 14px; }
.player.is-me { background: var(--raised); }

@media (max-width: 600px) {
  .booth { padding: 14px; }
  .booth-controls { gap: 8px; }
  .booth-controls .btn span { display: none; } /* dar ekranda yalnızca ikonlar */
  .rec-btn { height: 56px; padding: 0 22px 0 18px; }
  .kbd-hints { display: none; }
  .tips { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pbar i { transition: none; }
}

/* Replik rehberi: orijinalin seviyesi ve tonlaması, üstünde oyuncunun sesi */
.guide {
  --guide-axis: rgba(255, 255, 255, .18); --guide-peak: rgba(255, 255, 255, .22); --guide-rms: rgba(255, 255, 255, .62);
  --guide-pitch: #ffffff; --guide-you: #f2b544;
  /* Oynatılan kısım ve konum çizgisi */
  --guide-played: #5cc8ff; --guide-played-peak: rgba(92, 200, 255, .38); --guide-played-pitch: #e6f7ff; --guide-head: #ffffff;
  border-radius: 14px; background: var(--raised); overflow: hidden;
}
:root[data-theme="light"] .guide { --guide-axis: rgba(0, 0, 0, .14); --guide-peak: rgba(0, 0, 0, .14); --guide-rms: rgba(0, 0, 0, .42); --guide-pitch: rgba(0, 0, 0, .85); --guide-you: #d48a00; --guide-played: #0a8fd6; --guide-played-peak: rgba(10, 143, 214, .28); --guide-played-pitch: #04466b; --guide-head: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .guide { --guide-axis: rgba(0, 0, 0, .14); --guide-peak: rgba(0, 0, 0, .14); --guide-rms: rgba(0, 0, 0, .42); --guide-pitch: rgba(0, 0, 0, .85); --guide-you: #d48a00; --guide-played: #0a8fd6; --guide-played-peak: rgba(10, 143, 214, .28); --guide-played-pitch: #04466b; --guide-head: #000; } }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 12px; }
.guide-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.guide-state[data-state="rec.guideLive"] { color: var(--tally); }
.guide-state[data-state="rec.guideYours"] { color: var(--guide-you); }
.guide-legend { display: flex; gap: 14px; color: var(--muted); }
.guide-legend span { display: inline-flex; align-items: center; gap: 6px; }
.guide-legend span::before { content: ""; width: 14px; height: 6px; border-radius: 2px; }
.guide-legend .is-orig::before { background: var(--guide-rms); }
.guide-legend .is-you::before { background: var(--guide-you); }
.guide canvas { display: block; width: 100%; height: 104px; }
.guide-note { padding: 8px 14px 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); }
