/* Watch Together — mobile-first. Dark, quiet, precise. */

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #111113;
  --surface-3: #18181b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6e6e73;
  --accent: #fff;
  --on-accent: #000;
  --green: #30d158;
  --amber: #ffd60a;
  --red: #ff453a;
  --blue: #0a84ff;
  --material: rgba(22, 22, 24, 0.72);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1); /* Apple-style spring-ish */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gutter: 16px;
  --dock-h: 76px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
svg { width: 22px; height: 22px; flex: none; }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--text-2); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Primitives ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, opacity 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #e6e6e6; }
.btn-secondary { background: var(--surface-3); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: #222225; }
.btn-ghost { color: var(--text-2); min-height: 44px; }
.btn-ghost:hover { color: var(--text); }
.btn-icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(2px); }
.btn.loading { pointer-events: none; opacity: 0.7; }

input[type="text"],
input[type="url"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px; /* ≥16px prevents iOS zoom on focus */
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: var(--text-3); }
input:focus { border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); background: var(--surface-3); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.view { animation: view-in 0.5s var(--ease-out) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home ---------- */
#home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-t) + 12px) calc(var(--gutter) + var(--safe-r)) calc(var(--safe-b) + 20px) calc(var(--gutter) + var(--safe-l));
  max-width: 560px;
  margin: 0 auto;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 60%);
}
.home-top { height: 48px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-size: 15px; }
.brand-mark {
  width: 22px; height: 22px; position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff;
}
.brand-mark::before { left: 0; }
.brand-mark::after { left: 7px; opacity: 0.5; }

.hero { padding: 9vh 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; font-size: 13px; color: var(--text-2);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero .dim {
  background: linear-gradient(180deg, #8a8a8e, #4a4a4e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 18px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 34ch; }

/* Actions sit low on the screen — inside the thumb's reach. */
.home-actions { margin-top: auto; display: grid; gap: 14px; }
.composer { padding: 16px; display: grid; gap: 14px; box-shadow: 0 30px 80px -40px rgba(255, 255, 255, 0.08); }
.field { display: grid; gap: 8px; }
.field-label { font-size: 13px; color: var(--text-2); font-weight: 500; padding-left: 2px; }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-left: 44px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.form-error { margin: -4px 0 0; color: var(--red); font-size: 14px; padding-left: 2px; }
.join-row { display: flex; gap: 8px; }
.join-row input { min-height: 48px; border-radius: 999px; padding: 0 18px; }
.home-foot { padding-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------- Gate ---------- */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--safe-t) + 24px) var(--gutter) calc(var(--safe-b) + 20px);
  max-width: 480px; margin: 0 auto;
}
.gate-card { padding: 24px 20px 12px; display: grid; gap: 10px; justify-items: start; }
.gate-card h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.gate-card p { margin: 0 0 8px; }
.gate-card form { display: grid; gap: 10px; width: 100%; }
.gate-card .btn-ghost { justify-self: center; }

/* ---------- Room ---------- */
#room {
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 24px);
}

.room-bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: calc(52px + var(--safe-t));
  padding: var(--safe-t) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text-2); transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.room-id { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transition: background-color 0.3s; }
.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--amber); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.people-mini { justify-self: end; display: flex; padding-right: 4px; }
.people-mini .av { width: 24px; height: 24px; font-size: 10px; margin-left: -7px; box-shadow: 0 0 0 2px #000; }

.room-layout {
  display: grid; gap: 16px;
  padding: 12px calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l));
}

/* Stage */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--border);
  isolation: isolate;
}
.player-host, .player-host > *, .player-host iframe, .player-host video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000;
}
.player-host video { object-fit: contain; }
.stage-hit { position: absolute; inset: 0; z-index: 2; }
.stage-empty {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px;
  color: var(--text-2); text-align: center; padding: 16px; font-size: 14px;
  background: radial-gradient(80% 80% at 50% 40%, #141416, #050505);
}
.stage-empty p { margin: 0; max-width: 28ch; }
.empty-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border); }
.empty-icon svg { width: 20px; height: 20px; color: var(--text-2); margin-left: 2px; }
.stage-empty.error .empty-icon { border-color: rgba(255, 69, 58, 0.4); }
.stage-empty.error p { color: var(--text); }

.stage-controls {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.28), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.stage.show-controls .stage-controls { opacity: 1; }
.stage.show-controls .stage-controls > * { pointer-events: auto; }
.glass-btn {
  position: absolute; display: grid; place-items: center; border-radius: 50%;
  background: rgba(30, 30, 32, 0.55);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; transition: transform 0.25s var(--ease), background-color 0.2s;
}
.glass-btn:active { transform: scale(0.9); }
.glass-btn.big { width: 68px; height: 68px; left: 50%; top: 50%; translate: -50% -50%; }
.glass-btn.big svg { width: 28px; height: 28px; }
.glass-btn.big.is-play svg { margin-left: 3px; }
.glass-btn.corner { width: 40px; height: 40px; right: 10px; bottom: 10px; }
.glass-btn.corner svg { width: 18px; height: 18px; }

.sound-pill {
  position: absolute; z-index: 5; left: 50%; bottom: 14px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: pop 0.45s var(--ease) both;
}
.sound-pill svg { width: 18px; height: 18px; }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }

.spinner {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.18); border-top-color: #fff;
  animation: spin 0.8s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Now playing + scrubber */
.now { padding: 14px 2px 0; }
.now-head { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.now-title { flex: 1; min-width: 0; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2);
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.sync-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sync-badge.warn::before { background: var(--amber); }
.sync-badge.off::before { background: var(--text-3); }

.scrub { position: relative; height: 36px; margin: 6px 0 0; cursor: pointer; touch-action: none; outline: none; }
.scrub-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 5px; translate: 0 -50%;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden;
  transition: height 0.2s var(--ease);
}
.scrub-fill { height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.scrub-knob {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transform: scale(0.6); opacity: 0;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.scrub:hover .scrub-knob, .scrub.dragging .scrub-knob, .scrub:focus-visible .scrub-knob { transform: scale(1); opacity: 1; }
.scrub.dragging .scrub-track, .scrub:hover .scrub-track { height: 7px; }
.scrub-tip {
  position: absolute; bottom: 100%; left: 0; translate: -50% 0; padding: 4px 8px; border-radius: 8px;
  background: #fff; color: #000; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
}
.scrub.dragging .scrub-tip { opacity: 1; }
.scrub.disabled { pointer-events: none; opacity: 0.4; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: -4px; }

/* Side panels */
.side { display: grid; gap: 12px; align-content: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 14px 10px; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 0 2px; }
.panel h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--text-2); flex: 1; }
.count { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

.people { list-style: none; margin: 0; padding: 0; }
.person {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 2px;
  animation: view-in 0.4s var(--ease-out) both;
}
.person + .person { border-top: 1px solid var(--border); }
.person.offline { opacity: 0.45; }
.av {
  --lvl: 0;
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--av, #333);
}
.av::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--green);
  opacity: calc(var(--lvl) * 1.6);
  transform: scale(calc(1 + var(--lvl) * 0.12));
  transition: opacity 0.12s linear, transform 0.12s linear;
}
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-sub { font-size: 12px; color: var(--text-3); }
.person-mic { width: 18px; height: 18px; color: var(--text-3); }
.person-mic.on { color: var(--text); }

.media-form { display: flex; gap: 8px; padding: 4px 0 4px; }
.media-form input { min-height: 48px; }

/* Dock — bottom, thumb zone */
.dock {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center;
  height: calc(var(--dock-h) + var(--safe-b));
  padding: 0 calc(8px + var(--safe-r)) var(--safe-b) calc(8px + var(--safe-l));
  background: var(--material);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--border);
}
.dock-btn {
  width: 64px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; align-content: center; gap: 3px;
  color: var(--text-2); font-size: 11px; font-weight: 500;
  transition: color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.dock-btn svg { width: 24px; height: 24px; }
.dock-btn:hover { color: var(--text); }
.dock-btn:active { transform: scale(0.9); }
.dock-btn.on { color: #000; }
.dock-btn.on svg { background: #fff; border-radius: 50%; padding: 4px; width: 32px; height: 32px; margin: -4px; }
#mic-btn.on span { color: var(--text); }
.dock-play {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #000;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.dock-play svg { width: 26px; height: 26px; }
.dock-play.is-play svg { margin-left: 3px; }
.dock-play:active { transform: scale(0.9); }
.dock button:disabled { opacity: 0.35; pointer-events: none; }

/* Banner + toasts */
.banner {
  position: fixed; z-index: 50; left: 50%; top: calc(var(--safe-t) + 60px);
  translate: -50% 0; padding: 8px 14px; border-radius: 999px;
  background: var(--amber); color: #000; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(-8px) scale(0.96); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.banner.show { opacity: 1; transform: none; }
.toasts {
  position: fixed; z-index: 40; left: 0; right: 0;
  bottom: calc(var(--dock-h) + var(--safe-b) + 12px);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; pointer-events: none;
  padding: 0 var(--gutter);
}
#home ~ .toasts { bottom: calc(var(--safe-b) + 16px); }
.toast {
  max-width: min(420px, 100%); padding: 10px 16px; border-radius: 999px;
  background: rgba(38, 38, 40, 0.9);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-strong);
  font-size: 14px; color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.45s var(--ease) both;
}
.toast.out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ---------- Tablet portrait & up: centre, don't stretch ---------- */
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  #home { max-width: 600px; justify-content: center; }
  .hero { padding-top: 0; }
  .home-actions { margin-top: 12px; }
  .home-top { position: absolute; top: calc(var(--safe-t) + 16px); left: 32px; }
  .gate { justify-content: center; }

  #room { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 48px); }
  .room-layout { max-width: 760px; margin: 0 auto; padding-top: 20px; gap: 20px; }
  .stage { border-radius: var(--r-lg); }
  .side { grid-template-columns: 1fr 1fr; gap: 16px; }
  .side .panel:only-child { grid-column: 1 / -1; }

  /* Floating pill dock instead of a full-width bar */
  .dock {
    left: 50%; right: auto; bottom: calc(var(--safe-b) + 20px); translate: -50% 0;
    width: 440px; height: 76px; padding: 0 10px;
    border: 1px solid var(--border-strong); border-radius: 999px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  }
  .toasts { bottom: calc(var(--safe-b) + 112px); }
}

/* ---------- Tablet landscape & desktop: two columns ---------- */
@media (min-width: 1000px) and (orientation: landscape), (min-width: 1200px) {
  .room-layout {
    max-width: 1440px;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    padding-top: 20px;
  }
  .side { grid-template-columns: 1fr; position: sticky; top: 72px; }
  /* Size the video so video + scrubber + dock fit one screen, never stretched */
  .stage-col { min-width: 0; width: min(100%, calc((100dvh - var(--safe-t) - 290px) * 16 / 9)); justify-self: center; }
  /* Centre the dock under the video column */
  .dock { left: calc(max(0px, (100vw - 1440px) / 2) + 24px + (min(100vw, 1440px) - 48px - 356px) / 2); }
  .toasts { left: 0; right: 356px; }
}

/* ---------- Phone landscape: immersive ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .room-bar, .side, .now-head, .times { display: none; }
  #room { padding: 0; min-height: 100dvh; }
  .room-layout { padding: 0; gap: 0; }
  .stage {
    position: fixed; inset: 0; aspect-ratio: auto; height: 100dvh; width: 100vw;
    border-radius: 0; border: 0; z-index: 10;
  }
  .now {
    position: fixed; z-index: 31; left: calc(var(--safe-l) + 24px); right: calc(var(--safe-r) + 24px); bottom: 84px; padding: 0;
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  }
  .dock {
    left: 50%; right: auto; bottom: 12px; translate: -50% 0; width: 400px; height: 64px;
    border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  }
  .dock-btn span { display: none; }
  .dock-play { width: 50px; height: 50px; }
  #room.chrome .now, #room.chrome .dock { opacity: 1; pointer-events: auto; }
  .glass-btn.corner { display: none; }
  .toasts { bottom: 90px; }
}

/* Large tap targets for coarse pointers, hover polish for fine */
@media (hover: none) {
  .scrub-knob { transform: scale(1); opacity: 1; }
}

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