/* FilmMyFight — Claude Code beta build
   Faithful to the supplied "NEW design" handoff (FilmMyFight Demo / standalone).
   Tokens: HANDOFF.md / README.md from design_handoff_filmmyfight. */

:root {
  --bg: #0b0b0d;
  --bg-chrome: #16161b;
  --surface: #101016;
  --surface-2: #14141b;
  --surface-raised: #17171f;
  --red: #ff4040;
  --red-soft: #ff8a8a;
  --blue: #3d7bff;
  --blue-soft: #9cc0ff;
  --yellow: #ffc233;
  --gold: #ffce5c;
  --text: #f4f4f6;
  --muted: #9b9ba4;
  --dim: #7a7a85;
  --dim-2: #5f5f68;
  --hairline: rgba(255, 255, 255, .12);
  --hairline-soft: rgba(255, 255, 255, .07);
  --ok: #34d27b;
  --maxw: 440px;
  --pad: 20px;
  font-synthesis-weight: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Disable double-tap-to-zoom (a stray tap near the +/- steppers was zooming the menus);
     pinch-zoom + scrolling are preserved. */
  touch-action: manipulation;
}

button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; color: inherit; }

.oswald { font-family: Oswald, sans-serif; }

/* ---------- App surface (mobile-first, centred on desktop) ---------- */
.app-root {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 64, 64, .07), transparent 60%),
    var(--bg);
}

.phone-app, .broadcast-app, .phone-camera {
  width: 100%;
  max-width: var(--maxw);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(env(safe-area-inset-top), 14px) var(--pad) calc(env(safe-area-inset-bottom) + 18px);
  position: relative;
}
.phone-app.has-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 86px); }

/* scrollable inner content */
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Brand mark (real FilmMyFight app icon) ---------- */
.brandmark { display: inline-block; object-fit: cover; border-radius: 22%; vertical-align: middle; }
.brandmark.sm { width: 30px; height: 30px; border-radius: 8px; }
.brandmark.lg { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 14px 44px rgba(255, 64, 64, .32); }
.brandword { display: block; width: min(280px, 72vw); height: auto; margin: 0 auto; }
/* splash intro */
.splash-app { min-height: 100dvh; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity .36s ease; }
.splash-app.leaving { opacity: 0; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
/* will-change promotes the mark to its own GPU layer so the scale (incl. its big shadow) composites
   smoothly instead of repainting every frame. */
.splash-mark { width: 172px; height: 172px; border-radius: 40px; box-shadow: 0 18px 64px rgba(255,64,64,.42); animation: splashPop .6s cubic-bezier(.2,.85,.3,1.12) both; will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden; }
.splash-tag { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; font-size: 15px; color: var(--gold); animation: splashRise .5s ease .28s both; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .splash-mark, .splash-tag { animation: none; } }
@keyframes splashPop { from { opacity: 0; transform: scale(.62); } to { opacity: 1; transform: scale(1); } }
@keyframes splashRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.logout-btn { color: var(--red-soft, #ff7a7a); }

/* ---------- Legacy brand mark (unused) ---------- */
.mark {
  display: inline-grid;
  place-items: center;
  position: relative;
  background: linear-gradient(160deg, #ff5a5a, var(--red) 60%, #e22f2f);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  border-radius: 26%;
}
.mark::after {
  content: "";
  position: absolute;
  top: 16%; right: 16%;
  width: 14%; height: 14%;
  min-width: 5px; min-height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .7);
}
.mark.sm { width: 30px; height: 30px; font-size: 19px; }
.mark.lg {
  width: 84px; height: 84px; font-size: 50px;
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(255, 64, 64, .42);
}

/* ---------- Topbar / header ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.topbar .brand { display: flex; align-items: center; gap: 9px; }
.wordmark { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 16px; }
.topbar .spacer { flex: 1; }

.chip {
  font-family: Oswald, sans-serif; font-weight: 500;
  letter-spacing: .12em; font-size: 11px;
  padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--hairline); color: var(--muted);
}
.live-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .12em;
  font-size: 11px; padding: 5px 10px; border-radius: 99px;
  background: rgba(255, 64, 64, .14); color: var(--red-soft);
  border: 1px solid rgba(255, 64, 64, .3);
}

.page-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--muted);
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.head-title {
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .1em;
  font-size: 14px; color: var(--muted); text-transform: uppercase;
}

/* ---------- Labels / typography ---------- */
.label {
  display: block;
  font-family: Oswald, sans-serif; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  font-size: 11px; color: var(--dim); margin-bottom: 9px;
}
.section-title {
  font-family: Oswald, sans-serif; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  font-size: 11px; color: var(--dim); margin: 4px 0 11px;
}
.h-display {
  font-family: Oswald, sans-serif; font-weight: 600;
  font-size: 30px; line-height: 1.02; letter-spacing: .005em;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.micro { font-size: 12.5px; color: var(--dim); line-height: 1.45; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font-family: Oswald, sans-serif; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface-raised); border: 1px solid var(--hairline);
  color: var(--text);
  transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--yellow); color: #14110a; border-color: transparent; }
.btn.red { background: linear-gradient(160deg, #ff5656, var(--red)); color: #fff; border-color: transparent; }
.btn.blue { background: var(--blue); color: #fff; border-color: transparent; }
.btn.white { background: #f4f4f6; color: #15131a; border-color: transparent; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.sm { width: auto; padding: 10px 14px; font-size: 12px; border-radius: 11px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 16px; }
.input {
  width: 100%;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 15px 16px;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.input::placeholder { color: var(--dim-2); }
.input:focus { outline: none; border-color: rgba(255, 194, 51, .55); }
.input.oswald { font-family: Oswald, sans-serif; letter-spacing: .02em; }

.select-row, .phone-input {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 14px 16px;
}
.select-row strong { font-weight: 700; font-size: 15px; flex: 1; text-align: left; }
.select-row .chev, .select-row > span:last-child { color: var(--dim); }
.phone-input .dial {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--muted); padding-right: 12px;
  border-right: 1px solid var(--hairline);
}
.phone-input input { flex: 1; background: none; border: none; font-size: 16px; font-weight: 600; }
.phone-input input:focus { outline: none; }
.flag { font-size: 18px; line-height: 1; }
/* country / dial-code picker */
.phone-input .dial-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; font-size: 16px;
  font-weight: 700; color: var(--muted); padding: 0 12px 0 0;
  border-right: 1px solid var(--hairline);
}
.phone-input .dial-btn .chev { color: var(--dim); font-size: 12px; }
.phone-input .dial-btn:active { opacity: .65; }
.country-search { position: sticky; top: 0; z-index: 2; margin-bottom: 8px; }
.lang-row .dialv { color: var(--muted); font-weight: 600; font-size: 14px; }
.list-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 12px 12px 4px; }
.list-label:first-child { padding-top: 2px; }

/* ---------- Landing (coming soon / join beta) ---------- */
.landing-app { justify-content: center; align-items: center; text-align: center; gap: 0; }
.landing-logo { width: 100%; display: flex; justify-content: center; margin-bottom: 6px; }
.landing-logo img { width: min(86vw, 420px); height: auto; display: block; }
.logo-fallback { flex-direction: column; align-items: center; gap: 14px; }
.logo-fallback h1 { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 28px; }
.landing-soon {
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; font-size: 15px; color: var(--gold); margin-top: 16px;
}
.landing-tag { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 8px; }
.landing-cta { width: 100%; max-width: 340px; margin-top: 28px; }
.install-app-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,194,51,.13), rgba(255,255,255,.025)), var(--surface-2);
  border: 1px solid rgba(255,194,51,.34);
  color: var(--text);
}
.landing-install { max-width: 340px; }
.waitlist-install { margin: 18px 0 12px; }
.install-app-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.install-app-icon .brandmark { width: 100%; height: 100%; display: block; border-radius: 12px; }
.install-app-copy { flex: 1; min-width: 0; }
.install-app-copy strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.install-app-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}
.install-app-cta {
  flex: 0 0 auto;
  max-width: 116px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--yellow);
  color: #171107;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.install-sheet-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.install-sheet-head .brandmark { width: 48px; height: 48px; border-radius: 14px; }
.install-sheet-head .sheet-title { text-align: left; margin-bottom: 4px; }
.install-sheet-head p { color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.38; }
.install-steps {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
}
.install-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.install-steps span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,194,51,.16);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-weight: 700;
}
.install-steps b { font-size: 13px; line-height: 1.3; }
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .landing-app {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .landing-logo { margin-bottom: 2px; }
  .landing-logo img {
    width: min(44vw, 280px);
    max-height: 150px;
    object-fit: contain;
  }
  .landing-soon {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: .24em;
  }
  .landing-tag { margin-top: 4px; font-size: 13px; }
  .landing-cta {
    max-width: 310px;
    min-height: 48px;
    margin-top: 12px;
  }
  .landing-install {
    max-width: 440px;
    min-height: 0;
    margin-top: 8px;
    padding: 9px 10px;
  }
  .landing-install .install-app-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .landing-install .install-app-copy strong { font-size: 13px; }
  .landing-install .install-app-copy small { font-size: 11px; }
  .landing-install .install-app-cta {
    max-width: 132px;
    padding: 7px 9px;
    font-size: 10px;
  }
}

/* ---------- Beta terms ---------- */
.terms-check { display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left; padding: 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); margin-top: 14px; }
.terms-check .box { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--yellow); }
.terms-check.on { border-color: rgba(255,194,51,.5); }
.terms-check.on .box { border-color: var(--yellow); background: rgba(255,194,51,.14); }
.terms-check .lbl { font-size: 13.5px; font-weight: 600; line-height: 1.4; }

/* ---------- Login ---------- */
.auth-app { justify-content: flex-start; }
.login-brand { text-align: center; padding: 26px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-brand h1 {
  font-family: Oswald, sans-serif; font-weight: 700;
  letter-spacing: .14em; font-size: 26px; margin-top: 2px;
}
.login-brand p { color: var(--muted); font-size: 15px; line-height: 1.4; font-weight: 600; }
.auth-cta { margin-top: 4px; }
.micro-copy { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.micro-copy .i { flex: 0 0 auto; color: var(--dim); }
.login-gsi { width: 100%; margin: 2px 0 8px; }
.login-gsi > div { width: 100% !important; }
.login-gsi iframe { width: 100% !important; min-width: 100% !important; min-height: 48px !important; border-radius: 14px !important; }
.google-live-shell {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
}
.login-google-panel {
  min-height: 64px;
  border-color: rgba(255,64,64,.72);
  box-shadow:
    0 0 0 1px rgba(255,64,64,.2) inset,
    0 12px 34px rgba(255,64,64,.09);
  background:
    linear-gradient(120deg, rgba(255,64,64,.12), rgba(255,64,64,.02) 48%, transparent),
    var(--surface-2);
}
.google-live-shell .login-google-panel {
  pointer-events: none;
}
.login-gsi-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  opacity: .01;
  overflow: hidden;
}
.login-gsi-overlay > div,
.login-gsi-overlay iframe {
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 64px !important;
}
.login-merged {
  padding-top: clamp(82px, 10.8dvh, 98px);
}
.login-merged .login-brand {
  padding: 0 0 42px;
  gap: 24px;
}
.login-merged .brandword {
  width: min(226px, 58vw);
}
.login-merged .login-brand h1 {
  font-size: 25px;
  letter-spacing: .16em;
}
.login-merged .divider-label {
  margin: 16px 0 14px;
  color: #c9c9d1;
  font-size: 12px;
  font-weight: 600;
}
.login-merged .divider-label::before,
.login-merged .divider-label::after {
  background: rgba(255,255,255,.18);
}
.login-merged .login-email-field { margin-bottom: 12px; }
.login-email-hint { margin: 8px 2px 0; color: var(--dim); }
.login-merged .auth-cta { margin-top: 0; }
.login-merged .email-login-cta {
  background: rgba(255,194,51,.08);
  color: var(--gold);
  border-color: rgba(255,194,51,.45);
  box-shadow: inset 0 0 0 1px rgba(255,194,51,.07);
}
.login-merged .email-login-cta:active {
  filter: brightness(1.08);
}
.login-error { color: var(--red-soft); margin: 0 0 10px; }
.remember-check { margin: 10px 0 0; align-items: center; }
.remember-check .lbl { display: grid; gap: 3px; }
.remember-check .lbl strong {
  display: block; font-family: Oswald, sans-serif; letter-spacing: .08em;
  text-transform: uppercase; font-size: 14px; color: var(--text);
}
.remember-check .lbl small { display: block; color: var(--dim); font-size: 12px; line-height: 1.35; font-weight: 600; }
@media (min-aspect-ratio: 1/1) {
  .login-merged {
    justify-content: center;
    min-height: 100dvh;
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .login-merged .login-brand { padding: 0 0 14px; gap: 11px; }
  .login-merged .brandword { width: min(230px, 38vw); }
  .login-merged .login-brand h1 { font-size: 22px; letter-spacing: .15em; }
  .login-merged .google-live-shell { margin-bottom: 10px; }
  .login-merged .login-google-panel {
    min-height: 54px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 18px;
    text-align: left;
  }
  .login-merged .google-demo-copy b { font-size: 16px; }
  .login-merged .google-demo-copy small { font-size: 11px; }
  .login-merged .login-gsi-overlay > div,
  .login-merged .login-gsi-overlay iframe {
    min-height: 54px !important;
  }
  .login-merged .divider-label { margin: 8px 0; }
  .login-merged .input { padding: 10px 14px; border-radius: 11px; }
  .login-merged .login-email-hint { display: none; }
  .login-merged > .auth-cta { padding: 12px 18px; border-radius: 12px; }
  .login-merged .remember-check { padding: 9px 11px; }
  .login-merged .remember-check .lbl { gap: 0; }
  .login-merged .remember-check .lbl small { display: none; }
}
.login-options-app {
  padding-top: clamp(44px, 7.5dvh, 70px);
}
.login-options-app .login-brand { padding-bottom: 18px; }
.google-option-stack {
  display: grid;
  gap: 13px;
}
.google-option-card {
  display: grid;
  gap: 8px;
}
.google-demo {
  width: 100%;
  min-height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 15px;
}
.google-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}
.google-badge svg { width: 20px; height: 20px; }
.google-demo-official {
  background: #f7f7f8;
  color: #17171d;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.26);
}
.google-demo-fmf {
  background: linear-gradient(180deg, rgba(255,194,51,.16), rgba(255,194,51,.07)), var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(255,194,51,.62);
}
.google-demo-panel {
  justify-content: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--hairline);
  text-align: left;
}
.google-demo-copy {
  display: grid;
  gap: 1px;
}
.google-demo-copy b {
  font-family: Oswald, sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.google-demo-copy small {
  color: var(--muted);
  font-size: 12px;
}
.login-merged .login-google-panel {
  border-color: rgba(255,64,64,.72);
  box-shadow:
    0 0 0 1px rgba(255,64,64,.2) inset,
    0 12px 34px rgba(255,64,64,.09);
  background:
    linear-gradient(120deg, rgba(255,64,64,.12), rgba(255,64,64,.02) 48%, transparent),
    var(--surface-2);
}
@media (min-aspect-ratio: 1/1) {
  .login-options-app {
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .login-options-app .brandword { width: min(280px, 44vw); }
  .login-options-app .login-brand h1 { font-size: 22px; }
  .google-option-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .google-demo {
    min-height: 86px;
    flex-direction: column;
    gap: 9px;
    padding: 12px 10px;
    text-align: center;
  }
  .google-demo-panel {
    justify-content: center;
    text-align: center;
  }
}
.profile-complete-app .profile-card { padding: 16px; }
.profile-complete-app .pill-multi { margin-top: 0; }
.phone-input .dialv { color: var(--muted); font-weight: 700; padding-left: 8px; }

/* ---------- Welcome / hub ---------- */
.welcome-head { display: flex; align-items: center; gap: 13px; padding: 8px 0 20px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-raised); border: 1px solid var(--hairline);
  display: grid; place-items: center; font-family: Oswald, sans-serif;
  font-weight: 600; font-size: 22px; color: var(--muted);
  background-size: cover; background-position: center;
}
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.ring-red { border: 2px solid rgba(255,64,64,.6); }
.avatar { overflow: hidden; }
.ava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-img.bw { filter: grayscale(1) contrast(1.05); }
.avatar.photo-pick { position: relative; padding: 0; cursor: pointer; overflow: visible; }
.avatar.photo-pick .ava-img { border-radius: 50%; }
.photo-cam { position: absolute; bottom: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: #14110a; display: grid; place-items: center; border: 2px solid var(--bg, #0b0b0d); }
.photo-cam svg { width: 12px; height: 12px; stroke: #14110a; }
.link-btn.sm { font-size: 12px; padding: 0; margin-top: 5px; color: var(--blue-soft, #9cc0ff); background: none; border: none; cursor: pointer; }
.welcome-head .who { flex: 1; }
.welcome-head h1 { font-family: Oswald, sans-serif; font-weight: 600; font-size: 26px; line-height: 1.05; }
.welcome-q { color: var(--text); font-size: 22px; margin: 4px 0 18px; font-weight: 600; font-family: Oswald, sans-serif; letter-spacing: .01em; }

.choice-card {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  padding: 20px 18px; border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  position: relative;
}
.choice-card .ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.choice-card .txt { flex: 1; min-width: 0; }
.choice-card .txt strong {
  display: block; font-family: Oswald, sans-serif; font-weight: 600;
  letter-spacing: .05em; font-size: 20px; text-transform: uppercase;
}
.choice-card .txt small { display: block; color: rgba(244, 244, 246, .78); font-size: 14px; line-height: 1.35; margin-top: 5px; font-weight: 700; }
.choice-card .chev { color: var(--dim); font-size: 22px; font-weight: 400; }

.choice-card.film {
  background: linear-gradient(120deg, rgba(255, 64, 64, .22), rgba(255, 64, 64, .05) 70%), var(--surface-2);
  border-color: rgba(255, 64, 64, .35);
  box-shadow: 0 14px 40px rgba(255, 64, 64, .12);
}
.choice-card.film .ico { background: linear-gradient(160deg, #ff5a5a, var(--red)); }
.choice-card.film .ico::after { content:""; width:16px; height:16px; border-radius:50%; background:#fff; }

.watch-block {
  border: 1px solid rgba(61, 123, 255, .4);
  background: linear-gradient(120deg, rgba(61, 123, 255, .2), rgba(61, 123, 255, .04) 70%), var(--surface-2);
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 14px 40px rgba(61, 123, 255, .1);
}
.watch-block .top { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.watch-block .ico { width: 50px; height: 50px; border-radius: 13px; background: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.watch-block .txt { flex: 1; }
.watch-block .txt strong { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; }
.watch-block .txt small { display: block; color: rgba(214, 227, 255, .9); font-size: 14px; line-height: 1.35; margin-top: 5px; font-weight: 700; }
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick-row button {
  text-align: left; padding: 12px 13px; border-radius: 12px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--hairline-soft);
}
.quick-row strong { display: flex; align-items: center; gap: 6px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .06em; }
.quick-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 600; }

.choice-card.shop .ico { background: rgba(255, 206, 92, .14); color: var(--gold); }

/* icon glyph helpers */
.gly { width: 24px; height: 24px; display:block; }
.gly-eye, .gly-cam, .gly-bag, .gly-gear, .gly-trophy, .gly-person, .gly-hub { color: currentColor; }

/* ---------- Gate / complete account ---------- */
.gate-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 18px; }
.gate-hero h2 { font-family: Oswald, sans-serif; font-weight: 600; font-size: 26px; }
.gate-hero p { color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 600; max-width: 340px; }
.divider-label {
  display: flex; align-items: center; gap: 12px;
  color: var(--dim); font-family: Oswald, sans-serif; font-weight: 500;
  letter-spacing: .18em; font-size: 11px; margin: 20px 0 14px;
}
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.connect-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.connect-btn.mobilepay { background: #5a78ff; color: #fff; border-color: transparent; }
.gsi-wrap { width: 100%; display: flex; justify-content: center; margin-bottom: 12px; min-height: 44px; }

/* ---------- Onboarding / option cards ---------- */
.opt-card {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px; border-radius: 16px; margin-bottom: 13px;
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.opt-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(255,194,51,.4) inset; }
.opt-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.opt-card .ico.red { background: rgba(255,64,64,.16); color: var(--red-soft); }
.opt-card .ico.gold { background: rgba(255,206,92,.16); color: var(--gold); }
.opt-card .ico.blue { background: rgba(61,123,255,.18); color: var(--blue-soft); }
.opt-card .ico.record { background: linear-gradient(160deg, #ff5a5a, var(--red)); box-shadow: 0 14px 34px rgba(255,64,64,.16); }
.opt-card .ico.record::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.opt-card .ico.app { background: none; padding: 0; overflow: hidden; }
.opt-card .ico.app .opt-ico-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; display: block; }
.opt-card .txt { flex: 1; }
.opt-card .txt strong { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 19px; }
.opt-card .txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 600; }
.opt-card .chev { color: var(--dim); font-size: 20px; }
.opt-card.solo {
  background: linear-gradient(120deg, rgba(255, 64, 64, .18), rgba(255, 64, 64, .045) 70%), var(--surface-2);
  border-color: rgba(255, 64, 64, .32);
}
.opt-card.event {
  background: linear-gradient(120deg, rgba(255, 194, 51, .18), rgba(255, 194, 51, .04) 70%), var(--surface-2);
  border-color: rgba(255, 194, 51, .34);
}
.film-onboard-toolbar {
  display: flex;
  align-items: center;
  padding: 2px 0 10px;
}
.film-onboard-app .opt-card {
  position: relative;
  min-height: 154px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  padding: 22px 18px;
}
.film-onboard-app .opt-card .ico {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}
.film-onboard-app .opt-card .ico.record::after {
  width: 21px;
  height: 21px;
}
.film-onboard-app .opt-card .ico .gly {
  width: 30px;
  height: 30px;
}
.film-onboard-app .opt-card .txt {
  flex: 0 1 auto;
  max-width: min(30ch, 94%);
  text-align: center;
}
.film-onboard-app .opt-card .txt strong {
  letter-spacing: .05em;
  text-transform: uppercase;
}
.film-onboard-app .opt-card .txt small {
  line-height: 1.4;
  margin-top: 6px;
  text-wrap: balance;
}
.film-onboard-app .opt-card .chev {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

@media (min-width: 760px) {
  .film-onboard-app {
    max-width: min(1120px, calc(100vw - 40px));
    padding-left: 24px;
    padding-right: 24px;
  }
  .film-mode-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .film-mode-grid .opt-card {
    min-height: 210px;
    margin-bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 22px);
    text-align: center;
    padding: clamp(22px, 3vw, 34px);
    position: relative;
  }
  .film-mode-grid .opt-card .ico {
    width: clamp(74px, 10vw, 108px);
    height: clamp(74px, 10vw, 108px);
    border-radius: clamp(16px, 2.2vw, 24px);
  }
  .film-mode-grid .opt-card .ico.record::after {
    width: clamp(22px, 3.2vw, 34px);
    height: clamp(22px, 3.2vw, 34px);
  }
  .film-mode-grid .opt-card .ico .gly {
    width: clamp(34px, 4.7vw, 50px);
    height: clamp(34px, 4.7vw, 50px);
  }
  .film-mode-grid .opt-card .txt {
    flex: 0 1 auto;
    max-width: min(34ch, 92%);
    text-align: center;
  }
  .film-mode-grid .opt-card .txt strong {
    font-size: 24px;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .film-mode-grid .opt-card .txt small {
    font-size: 15px;
    line-height: 1.45;
    margin-top: 8px;
    text-wrap: balance;
  }
  .film-mode-grid .opt-card .chev {
    position: absolute;
    top: 18px;
    right: 18px;
    transform: none;
  }
}

@media (min-width: 760px) and (max-height: 520px) {
  .film-onboard-app {
    max-width: none;
    padding: 10px 14px 12px;
  }
  .film-onboard-app .app-head { padding: 0 0 6px; }
  .film-onboard-toolbar { padding-bottom: 6px; }
  .film-onboard-app .brand-logo { height: 14px; }
  .film-onboard-app .avatar.sm { width: 32px; height: 32px; }
  .film-onboard-app .h-display {
    font-size: 26px;
    margin: 0 0 10px !important;
  }
  .film-mode-grid { gap: 10px; }
  .film-mode-grid .opt-card {
    height: 242px;
    min-height: 0;
    padding: 15px;
    gap: 8px;
  }
  .film-mode-grid .opt-card .ico {
    width: clamp(54px, 9vw, 70px);
    height: clamp(54px, 9vw, 70px);
    border-radius: 12px;
  }
  .film-mode-grid .opt-card .ico.record::after {
    width: clamp(17px, 2.8vw, 22px);
    height: clamp(17px, 2.8vw, 22px);
  }
  .film-mode-grid .opt-card .ico .gly {
    width: clamp(25px, 4vw, 34px);
    height: clamp(25px, 4vw, 34px);
  }
  .film-mode-grid .opt-card .txt strong { font-size: 19px; }
  .film-mode-grid .opt-card .txt small {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 5px;
  }
}

/* ---------- Setup wizard ---------- */
.wizard-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 16px; }
.film-back-top { padding: 2px 0 10px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); display: block; }
.dots i.on { background: var(--yellow); }
.step-count { color: var(--dim); font-family: Oswald, sans-serif; letter-spacing: .1em; font-size: 13px; }

.corner-card {
  border-radius: 14px; padding: 16px; margin-bottom: 13px;
  display: flex; align-items: center; gap: 13px;
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.corner-card.red { border-color: rgba(255,64,64,.45); background: linear-gradient(120deg, rgba(255,64,64,.12), transparent 70%), var(--surface-2); }
.corner-card.blue { border-color: rgba(61,123,255,.45); background: linear-gradient(120deg, rgba(61,123,255,.12), transparent 70%), var(--surface-2); }
.corner-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.corner-dot.red { background: var(--red); }
.corner-dot.blue { background: var(--blue); }
.corner-card .info { flex: 1; }
.corner-card .clabel { font-family: Oswald, sans-serif; letter-spacing: .14em; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.you-pill { background: rgba(255,64,64,.2); color: var(--red-soft); border-radius: 6px; font-size: 9px; letter-spacing: .1em; padding: 2px 6px; }
.corner-card .cname { font-family: Oswald, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.16; margin-top: 2px; display: block; min-height: 27px; overflow: visible; }
.corner-card .cname input { background: none; border: none; font: inherit; line-height: inherit; color: inherit; width: 100%; min-width: 0; padding: 1px 0 2px; }
.corner-card .cname input:focus { outline: none; }
.corner-card .cweight { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.corner-card .cweight input { background: rgba(255,255,255,.06); border: 1px solid var(--hairline); border-radius: 8px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; color: var(--text); width: 46px; padding: 5px 6px; text-align: center; }
.corner-card .cweight input:focus { outline: none; border-color: var(--gold); }
.corner-card .cweight .kgs { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.corner-card .cclass {
  display: inline-flex;
  align-items: center;
  min-height: 13px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--gold);
}
.corner-card .cclass.empty {
  color: var(--dim);
  opacity: .82;
}
.setup-fighters-app .corner-card {
  display: block;
}
.setup-fighters-app .corner-card .info {
  display: block;
  min-width: 0;
}
.fighter-name-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 13px;
  margin-top: 2px;
}
.fighter-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-left: 29px;
}
.setup-fighters-app .corner-card .cweight {
  margin-top: 0;
}
.setup-fighters-app .corner-card .cname {
  margin-top: 0;
}
/* fight sport picker (single-select) reuses .pill-multi .p / .on */
.setup-fighters-app .h-display { margin: 0 0 16px; }
.setup-fighters-layout { display: flex; flex-direction: column; }
.fighter-card-stack { display: flex; flex-direction: column; gap: 0; }
.setup-fighters-right { display: flex; flex-direction: column; }
.setup-next { margin-top: 30px; }
.setup-rounds-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setup-rounds-main,
.setup-rounds-side { min-width: 0; }
.rounds-standards {
  margin-top: 0;
  margin-bottom: 18px;
}
.schedule-panel {
  margin-top: 0;
  padding: 14px;
}
.schedule-label { margin: 0 0 10px; }
.schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.schedule-mode button {
  min-height: 64px;
  border-radius: 12px;
  padding: 10px 11px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.schedule-mode button b {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
}
.schedule-mode button span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--muted);
}
.schedule-mode button.on {
  border-color: var(--yellow);
  background: rgba(255,194,51,.1);
  box-shadow: 0 0 0 1px rgba(255,194,51,.24) inset;
}
.schedule-mode button.on b { color: var(--gold); }
.schedule-fields {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, .65fr);
  gap: 10px;
}
.schedule-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.schedule-fields label span {
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.standards-label { margin: 0 0 8px; }
.setup-rounds-next { margin-top: 18px; }
.sport-pick .label {
  margin: 10px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.sport-pick .pill-multi.sports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
/* on a mouse, hovering a sport lightens it; the cursor stays the default arrow. Touch shows nothing until tap. */
.sport-pick .pill-multi.sports .p {
  cursor: default;
  text-align: center;
  white-space: nowrap;
  padding-left: 7px;
  padding-right: 7px;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
@media (hover: hover) and (pointer: fine) {
  .sport-pick .pill-multi.sports .p:hover { background: rgba(255,255,255,.10); border-color: var(--muted); color: var(--text); }
  .sport-pick .pill-multi.sports .p.on:hover { border-color: var(--yellow); color: var(--gold); }
}
.warning-sheet { max-width: var(--maxw); }
.warning-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 700;
}

@media (min-width: 760px) {
  .setup-fighters-app {
    max-width: min(900px, calc(100vw - 40px));
    padding-left: 24px;
    padding-right: 24px;
  }
  .setup-fighters-app .wizard-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 2px 0 12px;
  }
  .setup-fighters-app .wizard-top .step-count { justify-self: end; }
  .setup-fighters-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .setup-fighters-left,
  .setup-fighters-right { min-width: 0; }
  .setup-fighters-app .h-display {
    font-size: clamp(28px, 4.2vw, 38px);
    margin: 0 0 14px;
  }
  .fighter-card-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .setup-fighters-app .corner-card {
    margin-bottom: 0;
    min-height: 122px;
    padding: 16px;
  }
  .setup-fighters-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 26px;
  }
  .setup-fighters-right .sport-pick {
    width: 100%;
  }
  .setup-fighters-right .sport-pick .label {
    margin: 0 0 12px;
    color: #c9c9d1;
    font-size: 12px;
    font-weight: 700;
  }
  .setup-fighters-app .sport-pick .pill-multi.sports {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .setup-fighters-app .sport-pick .pill-multi.sports .p {
    font-size: clamp(10px, 1.25vw, 12px);
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .setup-fighters-app .setup-next {
    margin-top: 0;
    min-height: 56px;
    width: 100%;
  }
}

@media (min-width: 760px) and (max-height: 520px) {
  .setup-rounds-app {
    max-width: none;
    padding: 8px 12px 8px;
  }
  .setup-rounds-app .wizard-top {
    padding: 0 0 4px;
  }
  .setup-rounds-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(248px, .68fr);
    gap: 12px;
    align-items: start;
  }
  .setup-rounds-main {
    grid-column: 1;
    grid-row: 1;
  }
  .setup-rounds-side {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    padding-top: 68px;
  }
  .setup-rounds-app .h-display {
    font-size: 24px;
    margin-bottom: 5px !important;
  }
  .setup-rounds-app .panel {
    border-radius: 12px;
  }
  .setup-rounds-app .rounds-panel {
    padding: 2px 12px;
  }
  .setup-rounds-app .stepper-row {
    padding: 6px 2px;
  }
  .setup-rounds-app .stepper-row .name {
    font-size: 18px;
  }
  .setup-rounds-app .stepper button {
    width: 30px;
    height: 30px;
  }
  .setup-rounds-app .stepper .val {
    font-size: 18px;
    min-width: 44px;
  }
  .setup-rounds-app .schedule-panel {
    margin-top: 0;
    padding: 10px 12px;
  }
  .setup-rounds-app .schedule-mode {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .setup-rounds-app .schedule-mode button {
    min-height: 48px;
    padding: 8px 10px;
  }
  .setup-rounds-app .schedule-mode button b {
    font-size: 13px;
  }
  .setup-rounds-app .schedule-mode button span {
    font-size: 10px;
    line-height: 1.2;
  }
  .setup-rounds-app .schedule-fields {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 8px;
    margin-top: 8px;
    align-items: end;
  }
  .setup-rounds-app .schedule-fields label {
    gap: 4px;
  }
  .setup-rounds-app .schedule-fields label span {
    font-size: 9px;
  }
  .setup-rounds-app .schedule-fields .input {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .setup-rounds-app .preset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .setup-rounds-app .preset-card {
    min-height: 48px;
    padding: 7px 9px;
  }
  .setup-rounds-app .preset-card b {
    font-size: 12px;
  }
  .setup-rounds-app .preset-card span {
    font-size: 10px;
  }
  .setup-rounds-app .standards-label {
    margin: 0 0 7px;
  }
  .setup-rounds-app .rounds-standards {
    margin-top: 0;
    margin-bottom: 8px;
  }
  .setup-rounds-next {
    margin-top: auto;
    min-height: 48px;
  }
  .setup-fighters-app {
    max-width: none;
    padding: 10px 14px 12px;
  }
  .setup-fighters-app .wizard-top {
    padding: 0 0 6px;
  }
  .setup-fighters-layout {
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: start;
  }
  .setup-fighters-app .h-display {
    font-size: 28px;
    margin-bottom: 9px;
  }
  .fighter-card-stack { gap: 10px; }
  .setup-fighters-app .corner-card {
    min-height: 104px;
    padding: 12px;
    gap: 10px;
  }
  .setup-fighters-app .corner-card .cname { font-size: 19px; min-height: 23px; }
  .setup-fighters-app .corner-card .clabel { font-size: 10px; }
  .setup-fighters-app .corner-card .cweight { margin-top: 0; }
  .setup-fighters-app .corner-card .btn.sm {
    padding: 9px 12px;
    font-size: 11px;
  }
  .setup-fighters-right {
    justify-content: flex-end;
    padding-top: 0;
    gap: 48px;
  }
  .setup-fighters-right .sport-pick .label {
    margin-bottom: 8px;
  }
  .setup-fighters-app .sport-pick .pill-multi.sports {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
  .setup-fighters-app .sport-pick .pill-multi.sports .p {
    font-size: clamp(9px, 1.2vw, 11px);
    padding: 8px 5px;
  }
  .setup-fighters-app .setup-next {
    padding: 14px 16px;
  }
}
/* editable profile weight */
/* soft underline field — looks like left-aligned text when idle, gold underline on focus (no heavy box) */
.kv-input { background: transparent; border: none; border-bottom: 1px solid var(--hairline); border-radius: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--text); width: auto; min-width: 60px; padding: 2px 0; text-align: left; }
.kv-input:focus { outline: none; border-bottom-color: var(--gold); }
.kv-input::placeholder { color: var(--dim); font-weight: 600; }
/* ---- expanded 3-section profile ---- */
.kv.col { align-items: flex-start; }
.kv.col .k { margin-bottom: 2px; }
.kv-input.wide { width: auto; min-width: 200px; max-width: 100%; text-align: left; }
.kv-input[type="date"] { text-align: left; min-width: 150px; color: var(--text); }
.kv-pick { background: transparent; border: none; border-bottom: 1px solid var(--hairline); border-radius: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--text); padding: 2px 0; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.kv-pick .chev { color: var(--dim); font-size: 11px; }
.kv-pick:active { opacity: .7; }
.postal-v { display: inline-flex; align-items: center; gap: 10px; }
.postal-v .kv-input { width: 90px; min-width: 0; }
.postal-city { color: var(--muted); font-size: 14px; font-weight: 700; }
/* email/phone value rows: keep value + Ændr LEFT-aligned (Ændr sits right after the value, not floated right) */
.email-v { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.email-v .link-btn.sm, .kv .v .link-btn.sm { margin-top: 0; }
.pend-badge { font-family: Oswald, sans-serif; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #ffcf66; background: rgba(255,194,51,.16); border: 1px solid rgba(255,194,51,.4); border-radius: 99px; padding: 2px 7px; }
.ok-badge { color: #57d08a; display: inline-flex; }
.ok-badge svg { width: 15px; height: 15px; }
.pend-row .v { text-align: right; }
.pend-row .dim { color: var(--dim); font-size: 12px; }
/* Pro / Amateur / Motion segment (matches .seg2) */
.seg3 { display: flex; gap: 8px; }
.seg3 button { flex: 1; padding: 11px 6px; border-radius: 11px; background: var(--surface); border: 1px solid var(--hairline); font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg3 button.on { border-color: var(--yellow); color: var(--gold); }
/* invite-a-boxer sheet */
.invite-sheet .input { width: 100%; }
/* boxer search results inside the invite sheet */
.invite-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.invite-results .ir-row { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); cursor: pointer; }
.invite-results .ir-row:active { border-color: var(--yellow); }
.invite-results .ir-name { font-weight: 700; font-size: 14px; color: var(--text); }
.invite-results .ir-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.invite-results .ir-hint { color: var(--dim); font-size: 13px; padding: 6px 2px; font-weight: 600; }
/* swipe-left-to-delete on "my fights" rows */
.swipe-hint-row { color: var(--dim); margin: -2px 0 8px; font-weight: 600; }
.swipe-wrap { position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 8px; }
.swipe-wrap .swipe-del { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 24px; background: var(--red, #e23b3b); color: #fff; font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.swipe-wrap .swipe-del.armed { background: #ff4d4d; }
.swipe-wrap .swipe-del svg { width: 20px; height: 20px; }
.swipe-wrap .fight-row { position: relative; z-index: 1; margin-bottom: 0; background: var(--surface-2); touch-action: pan-y; will-change: transform; }
.deleted-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline-soft); margin-bottom: 8px; }
.deleted-row .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deleted-row .dr-names { font-weight: 700; font-size: 14px; color: var(--muted); }
.deleted-row .fmeta { font-size: 12px; color: var(--dim); }
.deleted-row .restore-btn { flex: 0 0 auto; }
.invite-sheet .label { display: block; margin-bottom: 6px; font-family: Oswald, sans-serif; letter-spacing: .06em; font-size: 11px; color: var(--muted); text-transform: uppercase; }

.help-box {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: 12px; padding: 14px; color: var(--muted);
  font-size: 13px; line-height: 1.5; font-weight: 600;
}
.help-box em { color: var(--dim); font-style: italic; }

.stepper-row {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 4px; border-bottom: 1px solid var(--hairline-soft);
}
.stepper-row:last-child { border-bottom: none; }
.stepper-row .name {
  flex: 1;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.stepper {
  display: flex; align-items: center; gap: 14px;
}
.stepper button {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 20px; display: grid; place-items: center; color: var(--muted);
}
.stepper .val { font-family: Oswald, sans-serif; font-weight: 600; font-size: 22px; min-width: 56px; text-align: center; }
.panel {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 6px 16px;
}
/* discipline-aware standard-format preset cards */
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.preset-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 10px 13px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
}
.preset-card b { font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--text); text-transform: uppercase; }
.preset-card span { font-size: 12px; font-weight: 700; color: var(--muted); }
.preset-card.on { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(255,194,51,.3) inset; }
.preset-card.on b { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .preset-card:hover { border-color: var(--muted); } }

/* role pick (controller/camera) */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 18px; }
.role-card {
  padding: 16px; border-radius: 14px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.role-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(255,194,51,.35) inset; }
.role-card .rico { display: flex; align-items: center; gap: 8px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 16px; }
.role-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; font-weight: 600; }

.segmented {
  display: inline-flex; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 11px; padding: 4px; gap: 4px;
}
.segmented button {
  min-width: 42px; padding: 8px 12px; border-radius: 8px;
  font-family: Oswald, sans-serif; font-weight: 600; color: var(--muted);
}
.segmented button.active { background: var(--yellow); color: #14110a; }

/* auto-director sub-setting row (zoom tightness / cut pace) under the toggles */
.dir-seg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0 11px; border-bottom: none; }
.dir-seg-row .ds-label { font-family: Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.dir-seg-row .segmented button { min-width: 0; padding: 7px 11px; font-size: 12px; }

/* result entry (after a fight) */
.result-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.result-box .segmented.result-win { display: flex; width: 100%; }
.result-box .segmented.result-win button { flex: 1; }
.result-scores { display: flex; gap: 10px; margin-top: 12px; }
.result-scores label { flex: 1; font-family: Oswald, sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.result-scores input { width: 100%; padding: 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); font-size: 18px; font-weight: 700; text-align: center; box-sizing: border-box; }

/* result shown on the replay scoreboards + list */
.ws-side .ws-win, .cs-side .cs-win { display: inline-block; font-family: Oswald, sans-serif; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: #14110a; background: var(--yellow); padding: 2px 7px; border-radius: 6px; margin-bottom: 4px; }
.ws-side.lost { opacity: .62; }
.ws-mid.result .ws-rscore { font-family: Oswald, sans-serif; font-weight: 700; font-size: 30px; color: var(--gold); display: flex; gap: 8px; align-items: baseline; justify-content: center; }
.ws-mid.result .ws-rscore span { opacity: .5; font-size: 20px; }
.cs-side.won .cs-name, .ws-side.won .ws-name { color: var(--gold); }
.cs-mid.result .cs-time { color: var(--gold); }
.frow-result { display: block; font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 2px; }

/* event / tournament builder */
.evt-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-note { color: var(--muted); font-size: 13px; line-height: 1.45; padding: 12px 14px; }
.fc-list { display: flex; flex-direction: column; gap: 14px; }
.event-card-app .h-display { font-size: 29px; line-height: 1.26; padding-bottom: 1px; }
.fc-card { padding: 14px 15px 16px; }
.fc-head { display: grid; grid-template-columns: auto minmax(104px, 116px) minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 12px; }
.fc-n { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .06em; color: var(--gold); flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
.fc-card input[type="time"], .fc-card select { background: var(--surface); border: 1px solid var(--hairline); color: var(--text); border-radius: 9px; padding: 8px 10px; font-family: Archivo, system-ui, sans-serif; font-size: 15px; font-weight: 800; min-width: 0; }
.fc-time { width: 100%; min-width: 0; }
.fc-disc { flex: 1; min-width: 0; }
.fc-card .corner-card { margin: 8px 0; }
.fc-card .fc-corner { align-items: center; min-height: 104px; gap: 12px; padding: 14px; }
.fc-card .fc-corner .info { min-width: 0; }
.fc-card .fc-corner .cname { font-size: 20px; max-width: 100%; }
.fc-card .fc-corner .cweight input { width: 68px; }
.fc-invite { flex: 0 0 auto; align-self: center; max-width: 116px; padding-left: 10px; padding-right: 10px; line-height: 1.05; white-space: normal; }
.fc-belt { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.fc-belt-ico { color: var(--gold); display: inline-flex; width: 26px; justify-content: center; }
.fc-belt input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); border-radius: 9px; padding: 9px 11px; font-family: Archivo, system-ui, sans-serif; font-size: 15px; font-weight: 800; }
.fc-rounds { display: grid; grid-template-columns: minmax(142px, 1fr) minmax(96px, .58fr) minmax(96px, .58fr); align-items: end; gap: 10px; }
.rds-stepper { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; }
.rds-lbl { font-family: Oswald, sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fc-sel { display: flex; flex-direction: column; gap: 3px; }
.fc-sel span { font-family: Oswald, sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-sel select { width: 100%; }
.fc-rounds .stepper { gap: 6px; justify-content: space-between; }
.fc-rounds .stepper button { width: 34px; height: 34px; border-radius: 10px; }
.fc-rounds .stepper .val { min-width: 28px; font-size: 20px; }
@media (max-width: 390px) {
  .fc-head { grid-template-columns: 1fr 1fr; }
  .fc-n { grid-column: 1 / -1; }
  .fc-card .fc-corner { align-items: flex-start; }
  .fc-invite { max-width: 104px; }
  .fc-rounds { grid-template-columns: 1fr 1fr; }
  .rds-stepper { grid-column: 1 / -1; }
}
.ed-list { display: flex; flex-direction: column; gap: 8px; }
.ed-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; }
.ed-i { font-family: Oswald, sans-serif; font-weight: 700; color: var(--gold); width: 20px; flex: 0 0 auto; }
.ed-mid { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ed-names { font-weight: 700; font-size: 15px; }
.ed-res { font-size: 13px; color: var(--gold); }

/* event: planned-start countdown */
.sched-box { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; }
.sched-input { width: 140px; text-align: center; font-size: 20px; font-weight: 700; }
.sched-cd { font-family: Oswald, sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); letter-spacing: .02em; min-height: 22px; }


/* report / feedback + admin */
.choice-card.report .ico, .choice-card.admin .ico, .choice-card.resume .ico { display: grid; place-items: center; font-size: 20px; }
.choice-card.report {
  background: linear-gradient(120deg, rgba(255, 194, 51, .18), rgba(255, 194, 51, .04) 70%), var(--surface-2);
  border-color: rgba(255, 194, 51, .38);
  box-shadow: 0 12px 32px rgba(255, 194, 51, .08);
}
.choice-card.report .ico {
  background: rgba(255, 194, 51, .14);
  border: 1px solid rgba(255, 194, 51, .55);
  color: var(--gold);
}
.choice-card.report .txt strong { white-space: nowrap; font-size: clamp(17px, 5vw, 20px); letter-spacing: .035em; }
.choice-card.resume { border-color: rgba(255,194,51,.45); }
.choice-card.resume .ico { color: var(--gold); }

@media (min-width: 760px) {
  .welcome-app {
    max-width: min(1120px, calc(100vw - 40px));
    padding-left: 24px;
    padding-right: 24px;
  }
  .welcome-app .app-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding-bottom: 18px;
  }
  .welcome-app .app-head .ah-greet {
    justify-self: start;
    margin-left: clamp(12px, 3vw, 42px);
    text-align: left;
  }
  .welcome-actions {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
  }
  .welcome-actions .choice-card.film { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .welcome-actions .watch-block { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .welcome-actions .choice-card.report,
  .welcome-actions .choice-card.admin {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .welcome-actions.has-admin .choice-card.report {
    grid-column: 1;
  }
  .welcome-actions .choice-card.admin {
    grid-column: 2;
  }
  .welcome-actions .choice-card.film,
  .welcome-actions .watch-block {
    height: 100%;
    min-height: 210px;
    padding: clamp(22px, 3vw, 34px);
  }
  .welcome-actions .watch-block {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .welcome-actions .watch-block .top,
  .welcome-actions .choice-card.film {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 22px);
    text-align: center;
  }
  .welcome-actions .watch-block .top {
    height: 100%;
    min-height: 0;
  }
  .welcome-actions .choice-card.film .txt,
  .welcome-actions .watch-block .txt {
    flex: 0 1 auto;
    text-align: center;
  }
  .welcome-actions .choice-card.film .txt { max-width: min(27ch, 92%); }
  .welcome-actions .watch-block .txt { max-width: min(43ch, 92%); }
  .welcome-actions .choice-card.film .ico,
  .welcome-actions .watch-block .ico {
    width: clamp(74px, 10vw, 108px);
    height: clamp(74px, 10vw, 108px);
    border-radius: clamp(16px, 2.2vw, 24px);
  }
  .welcome-actions .choice-card.film .ico::after {
    width: clamp(22px, 3.2vw, 34px);
    height: clamp(22px, 3.2vw, 34px);
  }
  .welcome-actions .watch-block .ico .gly {
    width: clamp(34px, 4.7vw, 50px);
    height: clamp(34px, 4.7vw, 50px);
  }
  .welcome-actions .choice-card.film .chev,
  .welcome-actions .watch-block .chev {
    position: absolute;
    top: 18px;
    right: 18px;
  }
  .welcome-actions .choice-card.film .txt strong,
  .welcome-actions .watch-block .txt strong { font-size: 24px; white-space: nowrap; }
  .welcome-actions .choice-card.film .txt small,
  .welcome-actions .watch-block .txt small { font-size: 15px; line-height: 1.45; margin-top: 8px; text-wrap: balance; }
  .welcome-actions .choice-card.report .txt strong { font-size: 20px; }
}

@media (min-width: 760px) and (max-height: 520px) {
  .welcome-app {
    max-width: none;
    padding: 10px 14px 12px;
  }
  .welcome-app .app-head { padding: 0 0 8px; }
  .welcome-app .app-head .ah-greet { margin-left: clamp(8px, 2.5vw, 26px); }
  .welcome-app .brand-logo { height: 14px; }
  .welcome-app .avatar.sm { width: 32px; height: 32px; }
  .welcome-q { display: none; }
  .welcome-actions { gap: 10px; }
  .welcome-actions .choice-card.film,
  .welcome-actions .watch-block {
    min-height: 0;
    padding: 15px;
  }
  .welcome-actions .watch-block .top,
  .welcome-actions .choice-card.film {
    gap: 8px;
  }
  .welcome-actions .choice-card.report,
  .welcome-actions .choice-card.admin {
    padding: 10px 14px;
  }
  .welcome-actions .choice-card.film .ico,
  .welcome-actions .watch-block .ico {
    width: clamp(54px, 9vw, 70px);
    height: clamp(54px, 9vw, 70px);
    border-radius: 12px;
  }
  .welcome-actions .choice-card.film .ico::after {
    width: clamp(17px, 2.8vw, 22px);
    height: clamp(17px, 2.8vw, 22px);
  }
  .welcome-actions .watch-block .ico .gly {
    width: clamp(25px, 4vw, 34px);
    height: clamp(25px, 4vw, 34px);
  }
  .welcome-actions .choice-card.film .txt strong,
  .welcome-actions .watch-block .txt strong { font-size: 19px; }
  .welcome-actions .choice-card.film .txt small,
  .welcome-actions .watch-block .txt small { font-size: 13px; line-height: 1.3; margin-top: 5px; }
}
.admin-app .segmented.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-app .segmented.admin-tabs button { flex: 1; min-width: 70px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; text-align: center; }
.stat-card .sv { font-family: Oswald, sans-serif; font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-card .sl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.admin-sec { margin-top: 20px; }
.kv-row { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.kv-row b { color: var(--gold); }
.admin-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.admin-row { background: var(--surface); border: 1px solid var(--hairline); border-radius: 11px; padding: 11px 13px; }
.admin-row.deleted { opacity: .5; }
.admin-row .ar-main { font-size: 14px; }
.admin-row .ar-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.admin-row .ar-actions { display: flex; gap: 6px; margin-top: 9px; }
.admin-row .ar-actions .mini-chip { flex: 0 0 auto; padding: 6px 12px; }
.mini-chip.danger, .mini-chip.danger.on { border-color: var(--red); color: var(--red-soft); }
.mini-chip.on { border-color: var(--yellow); color: var(--gold); }
.mini-chip.warn { border-color: var(--yellow); color: var(--gold); background: rgba(255,200,0,.08); }
.admin-hint { font-size: 12px; color: var(--gold); margin: 2px 0 8px; font-weight: 600; }
.admin-row.pending { border-color: var(--yellow); background: rgba(255,200,0,.05); }
.waitlist-email { font-weight: 700; color: var(--gold); margin-top: 6px; }
.admin-row .ar-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.admin-row .ar-head .ar-headtxt { flex: 1 1 auto; min-width: 0; }
.admin-row .ar-head .chev { color: var(--muted); font-size: 18px; flex: 0 0 auto; }
.admin-row.open { border-color: var(--yellow); }
.ar-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.ar-detail .adm-kv { display: flex; flex-direction: column; min-width: 0; }
.ar-detail .adm-kv span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ar-detail .adm-kv b { font-size: 13px; word-break: break-word; }
.ae-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ae-grid .input { width: 100%; box-sizing: border-box; padding: 8px; font-size: 13px; }
.ae-grid .segmented.sm { grid-column: 1 / -1; display: flex; }
.ae-grid .segmented.sm button { flex: 1; min-width: 0; padding: 6px 4px; font-size: 11px; }
.ae-invite { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.aei-corner { min-width: 0; }
.aei-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.aei-corner-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--hairline); }
.aei-corner-tag.red { color: var(--red-soft); border-color: var(--red); }
.aei-corner-tag.blue { color: var(--blue-soft, #7db6ff); border-color: var(--blue, #3a6fd8); }
.aei-cur { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aei-row { display: flex; gap: 5px; }
.aei-row .input { flex: 1; min-width: 0; padding: 8px; font-size: 13px; box-sizing: border-box; }
.aei-row .mini-chip { flex: 0 0 auto; padding: 6px 10px; }
.aei-results { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.aei-results .ir-row { text-align: left; padding: 7px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); cursor: pointer; font-size: 13px; }
.aei-results .ir-row:active { border-color: var(--yellow); }
.aei-status { font-size: 12px; color: var(--gold); margin-top: 5px; min-height: 1px; }

/* ============ Admin v2 — organiser dashboard (pixel spec: Oswald+Archivo, dark, type-led) ============ */
.admin2 { background: #0b0b0d; color: #f4f4f6; font-family: Archivo, -apple-system, BlinkMacSystemFont, sans-serif; min-height: 100vh; padding: 0 14px 36px; }
.admin2 .a2-top { position: sticky; top: 0; z-index: 6; background: #0b0b0d; padding-top: 12px; }
.a2-brandrow { display: flex; align-items: center; gap: 8px; }
.a2-mark { width: 26px; height: 26px; border-radius: 7px; background: #ff4040; color: #0b0b0d; font-family: Oswald, sans-serif; font-weight: 700; font-size: 15px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.a2-word { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.a2-ver { font-family: Oswald, sans-serif; color: #7a7a85; font-size: 11px; }
.a2-spacer { flex: 1; }
.a2-avatar { width: 30px; height: 30px; border-radius: 50%; background: #1a1a22; color: #ffc233; font-family: Oswald, sans-serif; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.a2-hi { color: #9b9ba4; font-size: 13px; margin-top: 12px; }
.a2-title { font-family: Oswald, sans-serif; font-weight: 700; font-size: 40px; line-height: 1; margin: 1px 0 0; }
.a2-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.04); border-radius: 14px; padding: 4px; margin: 14px 0; }
.a2-tab { flex: 1; border: 0; background: none; color: #9b9ba4; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; padding: 9px 4px; border-radius: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; }
.a2-tab.active { background: #ffc233; color: #0b0b0d; }
.a2-badge { background: #ff4040; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.a2-sub { color: #7a7a85; font-size: 12px; margin: 2px 0 12px; }
.a2-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a2-kpi { background: #101016; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.a2-kpi.bord { border-color: rgba(255,64,64,.5); }
.a2-kpi.click { cursor: pointer; }
.a2-kico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.a2-kpi.blue .a2-kico { background: rgba(61,123,255,.16); }
.a2-kpi.red .a2-kico { background: rgba(255,64,64,.16); }
.a2-kpi.yellow .a2-kico { background: rgba(255,194,51,.16); }
.a2-knum { font-family: Oswald, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; margin-top: 8px; }
.a2-klbl { font-family: Oswald, sans-serif; font-size: 12px; color: #9b9ba4; }
.a2-sec { margin-top: 22px; }
.a2-secrow { display: flex; align-items: center; justify-content: space-between; }
.a2-seclbl { font-family: Oswald, sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #7a7a85; }
.a2-pill { background: rgba(255,194,51,.14); border: 1px solid rgba(255,194,51,.4); color: #ffce5c; font-family: Oswald, sans-serif; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.a2-bar { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.a2-bk { font-size: 13px; width: 84px; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-btrack { flex: 1; height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.a2-bfill { display: block; height: 100%; border-radius: 999px; }
.a2-bfill.blue { background: #3d7bff; }
.a2-bfill.yellow { background: #ffc233; }
.a2-bc { font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; width: 26px; text-align: right; color: #9b9ba4; }
.a2-chart { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 12px; }
.a2-cbar { flex: 1; background: rgba(255,255,255,.08); border-radius: 3px; min-height: 6px; }
.a2-cbar.on { background: #ffc233; }
.a2-crange { display: flex; justify-content: space-between; color: #7a7a85; font-size: 10px; margin-top: 6px; }
.a2-card { background: #101016; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 13px 14px; margin-top: 10px; }
.a2-card.off { opacity: .55; }
.a2-card.open { border-color: rgba(255,194,51,.4); }
.a2-cardhead { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.a2-ava { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: #1a1a22; color: #ffc233; font-family: Oswald, sans-serif; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.a2-cmain { flex: 1; min-width: 0; }
.a2-crow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.a2-name, .a2-fr, .a2-fb { font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; }
.a2-fr { color: #ff6a6a; } .a2-fb { color: #9cc0ff; } .a2-vs { color: #7a7a85; font-size: 12px; }
.a2-win { color: #ffc233; font-family: Oswald, sans-serif; }
.a2-cmeta { color: #9b9ba4; font-size: 12px; margin-top: 3px; word-break: break-word; }
.a2-time { color: #7a7a85; font-size: 11px; margin-left: auto; }
.a2-msg { font-size: 14px; margin-top: 8px; }
.a2-chev { color: #7a7a85; font-size: 18px; flex: 0 0 auto; }
.a2-tag { font-family: Oswald, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.a2-tag.gold { background: rgba(255,194,51,.14); color: #ffce5c; }
.a2-tag.grey { background: rgba(255,255,255,.07); color: #9b9ba4; }
.a2-tag.red { background: rgba(255,64,64,.16); color: #ff8080; }
.a2-tag.blue { background: rgba(61,123,255,.16); color: #9cc0ff; }
.a2-tag.green { background: rgba(126,224,176,.16); color: #7ee0b0; }
.a2-cact { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.a2-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #f4f4f6; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.a2-btn.sm { padding: 7px 12px; font-size: 12px; }
.a2-btn.on { border-color: #ffc233; color: #ffc233; }
.a2-btn.danger { border-color: rgba(255,64,64,.5); color: #ff8080; }
.a2-btn.dis { opacity: .5; cursor: default; font-size: 12px; }
.a2-chips { display: flex; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.a2-chip { border: 1px solid rgba(255,255,255,.12); background: none; color: #9b9ba4; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.a2-chip.on { background: rgba(255,194,51,.14); border-color: rgba(255,194,51,.4); color: #ffce5c; }
.admin2 .ar-detail { border-top-color: rgba(255,255,255,.07); }
.admin2 .ar-detail .adm-kv span { color: #7a7a85; }
.admin2 .ir-hint { color: #7a7a85; font-size: 13px; padding: 18px 0; text-align: center; }

/* ===================================================================== */
/* Admin — WIDE / DESKTOP layout (big Mac screen). Design-panel winner:   */
/* fluid card-wall (unanimous 90/86/90) + grafts: split edit-row >=1360,  */
/* full-row open-member detail, ultrawide cap. All gated on min-width —   */
/* mobile + tablet-portrait are byte-for-byte unchanged. Needs .a2-wall   */
/* around the card lists + an a2-<tab> class on #adminBody (both in JS).   */
/* ===================================================================== */
@media (min-width: 1000px) {
  /* 1. Break .admin2 out of the inherited 440px phone cap and center it. */
  .admin2 { max-width: 1360px; margin: 0 auto; padding: 0 28px 48px; }
  /* the sticky top bar spans the full padded width */
  .admin2 .a2-top { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
  /* tabs shouldn't stretch into a full-width ribbon */
  .admin2 .a2-tabs { max-width: 640px; }

  /* 2. STATISTIK — KPIs 4-across; the two bar blocks pair up; chart full-width. */
  .admin2 .a2-kpis { grid-template-columns: repeat(4, 1fr); }
  .admin2 #adminBody.a2-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-items: start; }
  .admin2 #adminBody.a2-stats > .a2-kpis { grid-column: 1 / -1; }
  .admin2 #adminBody.a2-stats > .a2-sec:last-child { grid-column: 1 / -1; }

  /* 3. MEDLEMMER / KAMPE / FEEDBACK — dense, responsive card-wall. */
  .a2-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; margin-top: 8px; }
  .a2-wall > .a2-card { margin-top: 0; }
  /* an OPEN member card spans the whole wall so its detail grid is legible */
  .a2-wall > .a2-card.member.open { grid-column: 1 / -1; }
  .a2-wall > .a2-card.member.open .ar-detail { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* 4. THE INLINE EDIT ROW — swaps a match card in place, so it is a grid
        child; span the whole wall + widen the form to fill the width. */
  .a2-wall > .admin-row.editing {
    grid-column: 1 / -1; margin-top: 0;
    background: #101016; border: 1px solid rgba(255, 194, 51, .4);
    border-radius: 16px; padding: 16px 18px;
  }
  .a2-wall > .admin-row.editing .ae-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 900px; }
  .a2-wall > .admin-row.editing .ae-grid .segmented.sm { grid-column: 1 / -1; }
  .a2-wall > .admin-row.editing .ae-invite { max-width: 900px; }
}

/* 5. WIDE (>=1360px) — the edit row splits: form fields LEFT, invite RIGHT. */
@media (min-width: 1360px) {
  .a2-wall > .admin-row.editing {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas: "grid invite" "actions actions";
    column-gap: 24px; row-gap: 12px; align-items: start;
  }
  .a2-wall > .admin-row.editing .ae-grid { grid-area: grid; max-width: none; }
  .a2-wall > .admin-row.editing .ae-invite {
    grid-area: invite; max-width: none;
    grid-template-columns: 1fr;                 /* stack the two corners in the narrower right column */
    border-left: 1px solid var(--hairline); padding-left: 24px;
  }
  .a2-wall > .admin-row.editing .ar-actions { grid-area: actions; }
}

/* 6. ULTRAWIDE (big Mac / >=1500px) — widen the frame; richer open-member detail. */
@media (min-width: 1500px) {
  .admin2 { max-width: 1600px; }
  .a2-wall > .a2-card.member.open .ar-detail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cam-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0 6px; } /* stacked → each preview is full-width & big */
.cam-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; padding: 11px; }
.cam-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 10px;
  background: radial-gradient(120% 120% at 50% 30%, #2a2a33, #101015);
  display: grid; place-items: end start; padding: 8px;
  font-family: Oswald, sans-serif; color: var(--muted); font-size: 13px;
}
.cam-thumb.live { cursor: zoom-in; }
.cam-thumb .cam-expand { position: absolute; bottom: 8px; right: 9px; z-index: 3; font-size: 15px; color: #fff; background: rgba(10,10,12,.66); border-radius: 7px; padding: 2px 7px; }
/* Tilt the iPad/phone to landscape on "Connect cameras" → a wide 2-column layout: big stacked
   previews on the left, the controls (how many · is-this-a-camera · auto-director · Start) on the right.
   Pure CSS reflow on rotation — grid-template-areas place the sections regardless of DOM order. */
@media (min-aspect-ratio: 1/1) {
  /* Landscape "Forbind kameraer": previews on the LEFT, all controls in one compact column on the RIGHT —
     the whole thing fits one screen (no scroll) and the two columns stay aligned regardless of DOM order. */
  .connect-app {
    max-width: none; width: 100%; min-height: 100%;
    display: grid; column-gap: 20px; row-gap: 3px; align-content: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  /* v0.142 per-camera layout keeps real boxes in landscape (single centered column) */
  .connect-app.connect-app-v2 { display: block; max-width: 780px; margin: 0 auto; column-gap: 0; }
  .connect-app.connect-app-v2 .cn-box { display: block; padding: 2px 16px; }
  .connect-app.connect-app-v2 .cn-box > * { border-top: 1px solid var(--hairline-soft); }
  .connect-app.connect-app-v2 .cn-box > *:first-child { border-top: none; }
  .connect-app.connect-app-v2 .cam-box-head { border-top: none; }
  .connect-app.is-controller {
    grid-template-areas:
      "nav  nav"
      "head head"
      "cams q1"
      "cams q2"
      "cams azoom"
      "cams aklip"
      "cams start";
  }
  .connect-app.is-cam {
    grid-template-areas:
      "nav  nav"
      "head head"
      "self q1"
      "self q2"
      "sett azoom"
      "cams aklip"
      "cams start";
  }
  .connect-app > .wizard-top { grid-area: nav; padding: 0 0 2px; }
  .connect-app > .cn-head { grid-area: head; margin: 0; }
  .connect-app > .cn-head .h-display { margin: 2px 0 0 !important; font-size: 21px; }
  .connect-app.is-cam .cn-head .h-display { font-size: 19px; }
  .connect-app .cn-q1.set-row { padding: 3px 2px; }
  .connect-app .cn-q2.toggle-row { padding: 6px 2px !important; }
  .connect-app .cn-settings { padding: 0; }
  .connect-app .cn-settings .set-row { padding: 4px 2px; }
  .connect-app .cn-autozoom .set-row.seg, .connect-app .cn-autoklip .set-row.seg { padding: 3px 2px; }
  .connect-app > .cn-start { padding-top: 9px; padding-bottom: 9px; margin-top: 2px !important; }
  .connect-app .cn-settings .set-label, .connect-app .cn-autozoom .set-label, .connect-app .cn-autoklip .set-label { font-size: 10px; }
  .connect-app .segmented.sm button { padding: 6px 9px; }
  .connect-app .segmented.sm.four button { padding: 6px 4px; }
  .connect-app .switch { transform: scale(.92); }
  .connect-app .cn-box { display: contents; }
  .connect-app .cn-box > *, .connect-app .cn-box .set-row { border-top: none !important; }
  .connect-app .cn-q1 { grid-area: q1; margin: 0; }
  .connect-app .cn-q2 { grid-area: q2; margin: 0 !important; align-self: start; }
  .connect-app .cn-self { grid-area: self; align-self: start; margin: 0; }
  .connect-app .cn-settings { grid-area: sett; align-self: start; margin: 0; }
  .connect-app > .cn-cams { grid-area: cams; align-self: start; margin: 0; }
  .connect-app .cn-autozoom { grid-area: azoom; margin: 0; align-self: end; }
  .connect-app .cn-autoklip { grid-area: aklip; margin: 0; align-self: end; }
  .connect-app > .cn-start { grid-area: start; align-self: end; margin: 0 !important; }
  /* fit one screen: cap the previews so the left column never overflows the short landscape height */
  .connect-app .cam-grid { grid-template-columns: 1fr; gap: 6px; }
  .connect-app .cam-thumb { aspect-ratio: 16 / 9; }
  .connect-app .set-label { white-space: nowrap; }
  .connect-app.is-cam .cn-self .cam-thumb { max-width: 150px; margin: 0; }
  .connect-app.is-cam .cn-cams { display: flex; flex-wrap: wrap; gap: 8px; }   /* remote cams as ONE short row of thumbnails */
  .connect-app.is-cam .cn-cams .cam-card { flex: 0 0 auto; width: 108px; padding: 5px; }
  .connect-app.is-cam .cn-cams .cam-thumb { max-width: 100%; }
  .connect-app.is-cam .cn-cams .cam-cn-row { font-size: 10px; margin-top: 3px; flex-wrap: nowrap; }
  .connect-app.is-cam .cn-cams .cam-cn-row .cn { font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
  .connect-app.is-cam .cn-cams .cam-cn-row .cs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .connect-app.is-controller .cn-cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
  .connect-app.is-controller .cn-cams .cam-thumb { max-width: none; margin: 0; }
  .connect-app.is-cam .cn-cams .cam-thumb { max-height: 13vh; }
  .connect-app.is-controller .cn-cams .cam-thumb { max-height: 20vh; }
  .connect-app .cn-cams .cam-cn-row { margin-top: 4px; }
}
.cam-thumb .on { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52,210,123,.8); animation: blink 1.4s infinite; z-index: 2; }
.cam-thumb.live { padding: 0; background: #000; overflow: hidden; }
.cam-thumb video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; } /* contain → show the WHOLE filmed image */
.cam-thumb .cam-letter { place-self: center; font-family: Oswald, sans-serif; font-weight: 700; font-size: 26px; color: var(--dim); }
/* Per-camera QR shown in a waiting slot — scan it with the phone you want in this exact slot.
   The QR is sized to the thumb HEIGHT (square) with border-box padding so it always stays inside the frame. */
.cam-thumb .cam-qr { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; padding: 0; }
.cam-thumb .cam-qr .qr-img { width: auto; height: 86%; aspect-ratio: 1 / 1; max-width: 86%; padding: 6px; background: #fff; border-radius: 8px; box-sizing: border-box; }
.cam-thumb .cam-qr .qr-img img { width: 100%; height: 100%; display: block; }
.cam-thumb .cam-letter.qr { position: absolute; top: 6px; left: 7px; z-index: 3; font-size: 12px; font-weight: 700; color: #fff; background: rgba(10,10,12,.72); border-radius: 6px; padding: 1px 7px; }
.cam-card .cs.off { color: var(--accent, var(--gold)); }
.cam-card .cn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; margin-top: 8px; }
.cam-card .cs { color: var(--ok); font-size: 11px; font-weight: 700; margin: 2px 0 9px; }
.chip-row { display: flex; gap: 6px; }
.mini-chip {
  flex: 1; text-align: center; font-size: 11px; padding: 7px 4px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
  font-family: Oswald, sans-serif; letter-spacing: .02em; cursor: pointer;
}
.mini-chip.on { border-color: var(--yellow); color: var(--gold); }
.mini-chip:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .mini-chip:hover { border-color: var(--muted); color: var(--text); } }

/* camera quality picker (connect screens) */
.camq { display: flex; flex-direction: column; gap: 7px; }
.camq-label { font-family: Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.camq-row { display: flex; gap: 6px; flex-wrap: wrap; }
.camq-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  font-size: 12px; font-weight: 700; padding: 9px 4px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
  font-family: Oswald, sans-serif; letter-spacing: .02em; cursor: pointer;
}
.camq-chip.wide { flex-basis: 100%; color: var(--gold); border-color: rgba(255,194,51,.44); background: rgba(255,194,51,.08); }
.camq-help { display: block; margin-top: -2px; color: var(--dim); font-size: 11px; line-height: 1.3; }
.camq-chip small { font-size: 9px; letter-spacing: .04em; opacity: .85; font-weight: 600; }
.camq-chip.on { border-color: var(--yellow); color: var(--gold); }
.camq-chip:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .camq-chip:hover { border-color: var(--muted); color: var(--text); } }

/* ---- Camera setup — compact one-line setting rows (v0.133 redesign) ---- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; }
.set-label { font-family: Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.set-label.bright { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.set-ctrl { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.cn-q1.set-row { margin: 8px 0 6px; }
.segmented.sm { display: flex; gap: 4px; }
.segmented.sm button { min-width: 0; padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.segmented.sm.four { flex: 1 1 auto; }
.segmented.sm.four button { flex: 1 1 0; padding: 8px 4px; font-size: 11px; white-space: nowrap; letter-spacing: .01em; }
.switch.sm { width: 42px; height: 25px; }
.switch.sm i { width: 17px; height: 17px; top: 3px; left: 3px; }
.switch.sm.on i { left: 21px; }
.hd-toggle { display: inline-flex; align-items: center; gap: 10px; }
.hd-toggle .hd-name { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.info-dot { display: inline-grid; place-items: center; width: 21px; height: 21px; padding: 0; border-radius: 50%; border: 1.5px solid var(--dim); background: none; color: var(--dim); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 13px; font-weight: 700; line-height: 1; vertical-align: middle; cursor: pointer; }
.info-dot[aria-expanded="true"] { border-color: var(--yellow); color: var(--gold); }
.cn-intro-pop { margin: 2px 0 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 13px; font-size: 13px; line-height: 1.4; }
.self-cam { margin: 10px 0 4px; }
.self-cam .cam-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.cam-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; text-align: center; padding: 0 14px; }
.cam-ph.err { color: var(--red, #e5484d); font-weight: 600; }
.cam-cn-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cam-cn-row .cn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; margin: 0; }
.cam-cn-row .cs { margin: 0; font-size: 12px; }
/* Combined settings box (portrait): how-many · this-device · preview · KVALITET/KAMERA/OPTIK · auto-zoom */
.cn-box { padding: 2px 16px; margin: 10px 0 4px; }
.cn-box > * { border-top: 1px solid var(--hairline-soft); }
.cn-box > *:first-child { border-top: none; }
.cn-box .cn-q1.set-row { margin: 0; padding: 10px 2px; }
.cn-box .cn-q2.toggle-row { padding: 10px 2px; border-bottom: none; }
.cn-box .cn-self { margin: 0; padding: 8px 0 6px; }
.cn-box .cn-self .cam-thumb { max-width: 300px; margin: 0 auto; }
.cn-box .cn-settings { padding: 0; margin: 0; }
.cn-box .cn-settings > .set-row { border-top: 1px solid var(--hairline-soft); padding: 8px 2px; }
.cn-box .cn-settings > .set-row:first-child { border-top: none; }
.cn-box .cn-autozoom .set-row.seg { padding: 9px 2px; }
.cn-autoklip { margin-top: 12px; }
.cn-autoklip .set-row.seg { padding: 10px 2px; }
.cn-autoklip .set-row.seg .set-label, .cn-box .cn-autozoom .set-row.seg .set-label { flex: 0 0 auto; }

/* v0.142 — top box (how-many + auto-klip) then one box per camera */
.cn-box.cn-top { margin-bottom: 10px; }
.cn-box.cn-top .cn-autoklip { margin-top: 0; }
.cn-box.cn-top .cn-autoklip .set-row.seg { padding: 11px 2px; }
.cam-box { margin: 10px 0; }
.cam-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; }
.cam-box-head .set-label.bright { font-size: 15px; }
.cbh-toggle { display: inline-flex; align-items: center; gap: 9px; }
.cbh-tname { font-size: 13px; font-weight: 700; color: var(--text); }
.cam-box-head .cs { color: var(--ok); font-size: 12px; font-weight: 700; margin: 0; }
.cam-box-head .cs.off { color: var(--accent, var(--gold)); }
.cam-box .cn-self { margin: 0; padding: 6px 0; }
.cam-box .cn-self .cam-thumb { max-width: 300px; margin: 0 auto; }
.cam-box > .cam-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; max-width: 300px; margin: 8px auto; }
.settings-ro .segmented { opacity: .5; pointer-events: none; }
.settings-ro .switch { opacity: .5; pointer-events: none; }
.settings-ro .hd-toggle .hd-name { opacity: .5; }
.settings-ro .set-label { opacity: .8; }
.ro-note { color: var(--muted); font-size: 11.5px; line-height: 1.35; padding: 8px 2px 3px; margin: 0; }

.qr-box {
  margin-top: 12px; padding: 20px; border-radius: 16px;
  background: var(--surface-2); border: 1px dashed var(--hairline);
  text-align: center;
}
.qr-box .qr-title { font-family: Oswald, sans-serif; letter-spacing: .14em; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.qr-img { width: 168px; height: 168px; background: #fff; border-radius: 8px; padding: 10px; margin: 0 auto; }
.qr-img img, .qr-img svg { width: 100%; height: 100%; display: block; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--hairline-soft); }
.toggle-row .t-name { font-weight: 700; font-size: 15px; }
.toggle-row .t-name small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 600; }
.switch { width: 48px; height: 28px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hairline); position: relative; flex: 0 0 auto; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--dim); transition: all .16s ease; }
.switch.on { background: rgba(255,194,51,.25); border-color: var(--yellow); }
.switch.on i { left: 23px; background: var(--yellow); }

/* ---------- Live counter / filming ---------- */
.film-stage-wrap { display: flex; flex-direction: column; min-height: 100dvh; }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.rec-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .1em; font-size: 12px;
  color: var(--red-soft);
}
.rec-pill.standby { color: var(--muted); }
.rec-pill.live { color: #43d17a; }
.rec-pill.live .live-dot { background: #43d17a; box-shadow: 0 0 7px rgba(67,209,122,.85); }
.rec-pill.connecting { color: var(--gold); }
.rec-pill.connecting .live-dot { background: var(--gold); box-shadow: none; animation: none; }
.rec-pill.standby .live-dot { background: var(--dim); box-shadow: none; animation: none; }
.auto-pill {
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 12px;
  background: rgba(255,194,51,.16); color: var(--gold);
  border: 1px solid rgba(255,194,51,.4); border-radius: 99px; padding: 6px 11px;
}
.auto-pill.rec-live { background: rgba(255,64,64,.16); color: var(--red-soft); border-color: rgba(255,64,64,.4); display: inline-flex; align-items: center; gap: 6px; }
.auto-pill.codex-pill { background: rgba(61,123,255,.13); color: var(--blue-soft); border-color: rgba(61,123,255,.38); }
/* owner-only fight controls */
.owner-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.owner-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 6px; }
.owner-row .t-name { font-weight: 700; font-size: 15px; }
.owner-row .t-name small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 600; }
.btn.ghost.danger { color: var(--red-soft); }
.stage {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, #20202a, #0c0c11);
  border: 1px solid var(--hairline);
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; }
.stage .placeholder.hidden { display: none; }
.stage .play-mark {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 10px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(160deg, #ff5a5a, var(--red)); color: #fff;
}
.stage .pl-title { font-family: Oswald, sans-serif; font-weight: 600; font-size: 16px; }
.stage .pl-meta { color: var(--muted); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
.name-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px;
}
.name-strip .nr { background: linear-gradient(90deg, rgba(255,64,64,.85), rgba(255,64,64,.15)); position:absolute; inset:0; right:50%; }
.name-strip .nb { background: linear-gradient(270deg, rgba(61,123,255,.85), rgba(61,123,255,.15)); position:absolute; inset:0; left:50%; }
.name-strip span { position: relative; z-index: 2; }

.stage .repbtn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 16px; }
/* break: just a pause icon over the live feed (the rec-pill shows the live "Hvil" signal) */
.break-pause { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.break-pause .bp-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(8,8,11,.5); color: #fff; backdrop-filter: blur(3px); }

.big-clock { text-align: center; margin-top: auto; padding: 26px 0; }
.big-clock .rlabel { font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: .18em; font-size: 14px; color: var(--muted); }
.big-clock .rlabel b { color: var(--text); font-weight: 600; }
.big-clock .t { font-family: Oswald, sans-serif; font-weight: 700; font-size: 88px; line-height: .95; color: var(--yellow); letter-spacing: .01em; }
.big-clock.break .t { color: var(--text); }
.progress { height: 4px; border-radius: 99px; background: var(--hairline); margin: 8px auto 0; max-width: 260px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.big-clock.break .progress i { background: var(--text); }
.big-clock.countdown .t { color: var(--red); }
.big-clock.countdown .progress i { background: var(--red); }
.big-clock.ended .t { color: var(--muted); }
.film-controls { padding-top: 14px; }

/* ---------- Countdown / fight-end overlay ---------- */
.rec-pill.countdown { color: var(--red); }
.rec-pill.countdown .live-dot { background: var(--red); }
.rec-pill.ended { color: var(--muted); }
.countdown-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(0,0,0,.18), rgba(0,0,0,.66)); z-index: 4; pointer-events: none; }
.countdown-overlay .cd-num { font-family: Oswald, sans-serif; font-weight: 700; font-size: 132px; line-height: 1;
  color: #fff; text-shadow: 0 4px 30px rgba(255,64,64,.6); animation: cdpop 1s ease-out infinite; }
.countdown-overlay .cd-label { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .32em;
  font-size: 15px; color: var(--red-soft); margin-top: 10px; text-transform: uppercase; }
.countdown-overlay .cd-label.big { font-size: 30px; letter-spacing: .12em; color: #fff; margin-top: 0; }
@keyframes cdpop { 0% { transform: scale(.74); opacity: .35; } 45% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.04); opacity: .92; } }

/* ---------- Watch (portrait) ---------- */
.watch-hub-title { padding: 4px 0 10px; }
.watch-hub-title h1 { font-family: Oswald, sans-serif; font-weight: 600; font-size: 26px; }
.search-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.search-row input { flex: 1; background: none; border: none; font-size: 15px; font-weight: 600; }
.search-row input:focus { outline: none; }

.fight-row {
  width: 100%; display: flex; align-items: stretch; gap: 12px; text-align: left;
  padding: 12px; border-radius: 14px; margin-bottom: 10px;
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.fight-row .info { flex: 1; min-width: 0; }
.tag-row { display: flex; gap: 6px; margin-bottom: 6px; }
.tag {
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 9.5px;
  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--hairline); color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.tag.live { background: rgba(255,64,64,.16); border-color: rgba(255,64,64,.4); color: var(--red-soft); }
.tag.soon { background: rgba(155,155,164,.1); color: var(--muted); }
.tag.replay { background: rgba(255,206,92,.14); border-color: rgba(255,206,92,.35); color: var(--gold); }
.fight-row .info { display: flex; flex-direction: column; }
.fight-row .ftitle { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 16px; }
.fight-row .fnames { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 17px; }
.fight-row .fmeta { display: block; color: var(--dim); font-size: 12px; margin-top: 4px; font-weight: 600; }
.fight-row .fnames .vs { color: var(--dim); font-weight: 600; }
.fight-row .fthumb {
  width: 92px; flex: 0 0 auto; border-radius: 10px;
  background: radial-gradient(120% 120% at 60% 30%, #26262f, #0e0e13);
  position: relative; display: grid; place-items: center;
}
/* watch hub header + sections (match original storyboard) */
.hub-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
/* Shared menu header: logo (→ start) · "Hi {name} 🥊🔥" · profile avatar */
.app-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.app-head .ah-left { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.app-head .ah-ver { font-family: Oswald, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--dim); }
.app-head .ah-logo { flex: 0 0 auto; background: none; border: none; padding: 0; display: inline-flex; align-items: center; cursor: pointer; }
/* official wordmark logo (the video watermark) — top-left of every menu, links home */
.brand-logo { height: 16px; width: auto; display: block; }
.app-head .ah-logo .brand-logo { height: 13px; }
.hub-brand { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.hub-brand .brand-logo { height: 15px; }
.brand { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.brand .brand-logo { height: 16px; }
.app-head .ah-logo .brandmark { width: 40px; height: 40px; border-radius: 11px; display: block; }
.app-head .ah-greet { flex: 1; min-width: 0; text-align: center; font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.app-head .avatar.sm { flex: 0 0 auto; }
.hub-brand { display: inline-flex; align-items: center; gap: 9px; }
.hub-brand .wordmark { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 16px; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; border: 1px solid var(--hairline); }
.section-title.red { color: var(--red-soft); }
.section-title.blue { color: var(--blue-soft); }
.section-title.red::before, .section-title.blue::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.section-title.red::before { background: var(--red); }
.section-title.blue::before { background: var(--blue); }
.sub-label { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; margin: 10px 0 7px; }
.sub-label.red { color: var(--red-soft); }
.sub-label.blue { color: var(--blue-soft); }
.fight-row .frow-head { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; color: var(--text); letter-spacing: .02em; margin-bottom: 2px; }
.you-badge { font-family: Oswald, sans-serif; font-weight: 700; font-size: 9.5px; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: rgba(255,64,64,.18); color: var(--red-soft); }
.thumb-badge { position: absolute; top: 7px; left: 7px; font-family: Oswald, sans-serif; font-weight: 700; font-size: 9px; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; }
.thumb-badge.live { background: rgba(255,64,64,.9); color: #fff; }
.thumb-badge.live .live-dot { background: #fff; box-shadow: none; }
.thumb-badge.soon { background: rgba(155,155,164,.35); color: #fff; }
.thumb-play { color: var(--gold); font-size: 22px; }
/* watch / replay player (match original storyboard) */
.watch-app .stacked { padding-bottom: 8px; }
.watch-top { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.link-btn { background: none; border: none; color: var(--muted); font-weight: 700; font-size: 14px; font-family: Archivo, sans-serif; cursor: pointer; }
.watch-badge { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .08em; font-size: 12px; padding: 6px 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 7px; }
.watch-badge.live { background: rgba(255,64,64,.16); color: var(--red-soft); border: 1px solid rgba(255,64,64,.4); }
.watch-badge.replay { background: rgba(61,123,255,.16); color: var(--blue-soft); border: 1px solid rgba(61,123,255,.4); }
.watch-stage { aspect-ratio: 16/9; }
.watch-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-stage .rp-pool-vid.rp-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; pointer-events: none; }
.watch-stage .rp-pool-vid.rp-portrait.rp-active { opacity: 1; }
.watch-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--hairline); margin-top: 10px; }
.ws-fighter { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ws-fighter.blue { flex-direction: row-reverse; text-align: right; }
.ws-meta { min-width: 0; }
.wsn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsw { color: var(--muted); font-size: 11px; font-weight: 600; }
.ws-react { display: flex; gap: 8px; margin-top: 3px; }
.ws-fighter.blue .ws-react { justify-content: flex-end; }
.ws-react .react { background: none; border: none; font-size: 14px; color: var(--muted); display: inline-flex; gap: 3px; align-items: center; cursor: pointer; padding: 0; }
.ws-react .react b { font-weight: 700; font-size: 11px; }
.ws-clock { text-align: center; }
.ws-clock .rd { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .1em; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.ws-clock .tt { font-family: Oswald, sans-serif; font-weight: 700; font-size: 22px; color: var(--gold); line-height: 1.05; }
.ws-clock .wm { font-size: 9px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.avatar.ring-blue { border: 2px solid rgba(61,123,255,.6); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 7px rgba(255,64,64,.8); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ===== Watch screen — matches the two-window design ===== */
.watch-app.has-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 104px); }
.watch-head { margin: 2px 0 12px; }
/* video windows */
.watch-app .win { margin-bottom: 0; }
.watch-app .win video { object-fit: contain; }
.watch-app .main-win { border: 1px solid rgba(255,64,64,.5); box-shadow: inset 0 0 80px rgba(0,0,0,.55); }
.watch-app .pick-win { border: 1px solid rgba(255,255,255,.14); }
.win-badge { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.5); color: #fff; border: none; }
.win-badge.tl { top: 11px; left: 12px; }
.win-badge.tr { top: 11px; right: 12px; }
.win-badge.meta { color: #cfcfd6; letter-spacing: .12em; }
.win-badge.replay { color: var(--blue-soft); }
.win-badge.pick { color: #cfcfd6; letter-spacing: .12em; }
.win-badge.slowmo { color: var(--gold); background: rgba(255,194,51,.1); border: 1px solid rgba(255,194,51,.4); cursor: pointer; }
.win-badge.slowmo.on { background: rgba(255,194,51,.2); }
.win-badge .live-dot { width: 6px; height: 6px; box-shadow: none; }
.win-badge.slowmo .live-dot { background: var(--red); }
.watch-app .win-views { position: absolute; bottom: 10px; right: 12px; z-index: 4; background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 8px; }
/* FilmMyFight watermark — top-left of the replay video (also burned into shared clips by ffmpeg) */
.rp-logo { position: absolute; top: 11px; left: 13px; z-index: 5; height: 13px; width: auto; opacity: .92; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.cast .caststage .rp-logo { top: 13px; left: 15px; height: 16px; pointer-events: auto; cursor: pointer; transition: opacity .15s, transform .15s; }
.cast .caststage .rp-logo:hover { opacity: 1; transform: scale(1.06); }
.swipe-hint { text-align: center; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--dim); margin: 12px 0; }
.stage .placeholder .spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.16); border-top-color: var(--red); animation: spin 0.9s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.saving-fight { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.055); }
.saving-fight strong { display: block; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.saving-fight small { display: block; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.saving-spin { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 3px solid rgba(255,255,255,.16); border-top-color: var(--yellow); animation: spin .9s linear infinite; }
/* broadcast scoreboard */
.watch-score3 { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: #0c0c10; }
.watch-score3 .ws-bar { height: 3px; background: linear-gradient(90deg, var(--red) 0 38%, var(--yellow) 38% 62%, var(--blue) 62% 100%); }
.watch-score3 .ws-cols { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.watch-score3 .ws-side { padding: 11px 11px; display: flex; flex-direction: column; gap: 7px; min-width: 0; justify-content: center; }
.watch-score3 .ws-side.red { background: linear-gradient(90deg, rgba(255,64,64,.28), transparent); }
.watch-score3 .ws-side.blue { background: linear-gradient(270deg, rgba(61,123,255,.28), transparent); align-items: flex-end; text-align: right; }
.watch-score3 .ws-name { font-family: Oswald, sans-serif; font-weight: 600; font-size: 18px; letter-spacing: .01em; text-transform: uppercase; color: var(--text); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.watch-score3 .ws-sub { font-family: Archivo, sans-serif; font-size: 9px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.watch-score3 .ws-side.red .ws-sub { color: #ffb3b3; }
.watch-score3 .ws-side.blue .ws-sub { color: var(--blue-soft); }
.watch-score3 .ws-react-block { display: flex; flex-direction: column; gap: 4px; max-width: 100%; align-items: flex-start; }
.watch-score3 .ws-side.blue .ws-react-block { align-items: flex-end; }
.watch-score3 .ws-pills { display: flex; gap: 6px; margin-top: 1px; }
.watch-score3 .ws-side.blue .ws-pills { justify-content: flex-end; }
.ws-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 10px; font-size: 13px; line-height: 1; }
.watch-score3 .ws-side.red .ws-pill { background: rgba(255,64,64,.14); border: 1px solid rgba(255,64,64,.4); color: #ffb3b3; }
.watch-score3 .ws-side.blue .ws-pill { background: rgba(61,123,255,.14); border: 1px solid rgba(61,123,255,.4); color: var(--blue-soft); }
.ws-pill b { font-family: Oswald, sans-serif; font-weight: 700; font-size: 12px; }
.ws-pill.reacted { opacity: .5; }
.ws-pill, .cs-pill, .react { cursor: pointer; }
.reaction-from {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  max-width: 100%; color: var(--muted); opacity: .86;
  font-family: Archivo, sans-serif; font-size: 10.5px; line-height: 1.25; font-weight: 700;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.reaction-from:active { opacity: 1; transform: translateY(1px); }
.watch-score3 .ws-side.red .reaction-from, .cast-score .cs-side.red .reaction-from { color: #ffb3b3; }
.watch-score3 .ws-side.blue .reaction-from, .cast-score .cs-side.blue .reaction-from { color: var(--blue-soft); text-align: right; }
.watch-score3 .ws-mid { width: 104px; background: #0a0a0d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; text-align: center; }
.watch-score3 .ws-rnd { font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.watch-score3 .ws-of { color: var(--muted); }
.watch-score3 .ws-tl { font-family: Archivo, sans-serif; font-size: 8px; letter-spacing: .16em; color: var(--dim); font-weight: 700; }
.watch-score3 .ws-time { font-family: Oswald, sans-serif; font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1; }
.watch-score3 .ws-len { font-family: Archivo, sans-serif; font-size: 8px; letter-spacing: .14em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.watch-app .chat { margin-top: 14px; }

/* watch program (portrait) */
.program-stage { margin-bottom: 10px; position: relative; }
.program-stage .film-status { position: absolute; top: 10px; left: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; transform: scale(.9); transform-origin: top left; opacity: .8; pointer-events: none; }
.program-stage .film-status .rec-pill { background: rgba(0,0,0,.5); padding: 5px 11px; border-radius: 8px; }
.program-stage .film-status [data-action] { pointer-events: auto; }
/* Wide "director" layout for the filming/controller screen on a desktop or landscape device:
   big 16:9 program video + camera switcher on the left, clock + controls on the right.
   On a narrow phone the two columns simply stack (default flow), so portrait is unchanged. */
@media (min-width: 820px) and (min-aspect-ratio: 1/1) {
  .film-app { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px 24px; align-items: start; }
  .film-app .film-back-top { grid-column: 1 / -1; }
  .film-app .film-stage-col, .film-app .film-side-col { min-width: 0; display: flex; flex-direction: column; }
  .film-app .program-stage { aspect-ratio: 16 / 9; margin-bottom: 12px; }
  .film-app .film-stage-col .angle-row { justify-content: center; }
  .film-app .film-side-col { position: sticky; top: 16px; }
  .film-app .big-clock { padding: 16px 0 18px; }
  /* v0.175: use the free space under the program — bigger AUTO/CAM tiles so switching the best picture is easy (Ronnie) */
  .film-app .film-angle { width: clamp(120px, 13vw, 200px); }
  .film-app .film-angle .fa-label { font-size: 13px; padding: 7px 0; }
  .film-app .film-angle .fa-auto { font-size: 28px; }
  .film-app .film-angle .fa-nosig { font-size: 10px; }
  .film-app .film-angle-strip { gap: 12px; }
}
/* Landscape PHONE (short viewport): bigger video pulled up, compact right column → bottom button visible, no scroll */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .film-app { grid-template-columns: minmax(0, 1fr) 288px; gap: 8px 16px; align-content: start; }
  .film-app.has-nav { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); } /* no phantom scroll under the bottom button */
  .film-app .film-back-top { padding: 0 0 2px; }
  .film-app .program-stage { margin: 0; }
  .film-app .film-side-col { position: static; top: 0; }
  .film-app .big-clock { padding: 2px 0 2px; }
  .film-app .big-clock .t { font-size: 40px; }
  .film-app .big-clock .rlabel { font-size: 11px; letter-spacing: .1em; }
  .film-app .big-clock .progress { max-width: 66%; margin: 5px auto 0; }
  .film-app .film-controls .btn-row .btn { padding: 11px 10px; }
  .film-app .film-controls > .micro { margin: 3px 0 !important; font-size: 11px; }
  .film-app .owner-box { margin-top: 4px; }
  .film-app .owner-box .owner-row { padding: 8px 2px; }
  .film-app .owner-box .btn { margin-top: 8px !important; padding: 12px; }
}
.program-hud { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 11px; color: var(--red-soft); }
.matchup { position: absolute; top: 12px; right: 12px; z-index: 3; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; color: var(--text); }
.angle-row { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; }
.angle-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .06em; font-size: 12px;
  padding: 9px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
}
.angle-btn .d { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.angle-btn.on { background: rgba(255,206,92,.12); border-color: var(--gold); color: var(--gold); }
/* Colour-coded camera cuts (matches the corner colours): A red, B blue, C green. */
.angle-btn[data-angle="A"].on { background: rgba(255,64,64,.18); border-color: #ff4040; color: #ff8a8a; }
.angle-btn[data-angle="B"].on { background: rgba(61,123,255,.18); border-color: #3d7bff; color: #9cc0ff; }
.angle-btn[data-angle="C"].on { background: rgba(52,210,123,.16); border-color: #34d27b; color: #7fe3aa; }
.round-row { gap: 6px; }
.round-row .angle-btn { padding: 6px 12px; font-size: 12px; background: rgba(0,0,0,.5); }
/* Filming angle strip — live preview of every camera; tap to make it the main picture */
.film-angle-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.film-angle { flex: 0 0 auto; width: 96px; padding: 0; border-radius: 11px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--hairline); cursor: pointer; }
.film-angle.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.film-angle .fa-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: radial-gradient(circle at 50% 40%, #23232c, #0a0a0e 80%); display: grid; place-items: center; }
.film-angle .fa-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-angle .fa-nosig { font-family: Oswald, sans-serif; font-weight: 600; font-size: 8px; letter-spacing: .1em; color: var(--dim); }
.film-angle .fa-stage.live .fa-nosig { display: none; }
.film-angle .fa-auto { font-size: 20px; color: var(--gold); }
.film-angle .fa-label { display: block; text-align: center; font-family: Oswald, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .04em; color: var(--text); padding: 5px 0; }
.film-angle.on .fa-label { color: var(--gold); }
.viewer-count { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.viewer-count b { color: var(--text); font-weight: 700; }
.cast-title .viewer-count { margin-left: 10px; }

/* ---------- Replay transport bar (custom controls below the video, like the design) ---------- */
/* Replay timeline: playhead + two draggable gold clip markers, all on one track */
.rp-track { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.rp-track::before { content: ""; position: absolute; left: 0; right: 0; height: 5px; border-radius: 99px; background: var(--hairline); }
.rp-track .rp-played { position: absolute; left: 0; height: 5px; border-radius: 99px; background: var(--blue); width: 0; pointer-events: none; }
.rp-track .rp-clipsel { position: absolute; height: 5px; background: rgba(255,194,51,.4); border-radius: 2px; left: 0; width: 100%; pointer-events: none; }
.rp-track .rp-head { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.55); transform: translate(-50%,-50%); pointer-events: none; z-index: 2; }
.rp-track .rp-mark { position: absolute; top: 50%; left: 0; width: 18px; height: 24px; transform: translate(-50%,-50%); cursor: ew-resize; z-index: 4; touch-action: none; }
.rp-track .rp-mark::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 4px; height: 24px; border-radius: 3px; background: var(--yellow); box-shadow: 0 1px 5px rgba(0,0,0,.55); }
.rp-track .rp-mark::after { content: ""; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
/* compact one-row replay transport (sits UNDER the video) — play · time · timeline+markers · time · step · slow · share */
.rp-below { margin-top: 10px; }
.rp-bar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 8px 0 4px; }
.rp-timeline-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.rp-control-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.rp-bar .rp-track { flex: 1 1 auto; min-width: 130px; }
.rp-bar .rp-cur, .rp-bar .rp-dur { font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; color: var(--muted); min-width: 34px; }
.rp-bar .rp-dur { text-align: right; }
.rp-btn { flex: none; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.rp-btn.play { width: 38px; padding: 0; border-radius: 50%; background: var(--blue); color: #fff; border: none; }
.rp-playbtn { touch-action: none; } /* the drag-for-speed gesture must not become a page pan */
.rp-btn.share { background: var(--yellow); color: #1a1306; border: none; font-weight: 700; }
.rp-btn.share svg { width: 15px; height: 15px; }
.angle-row.replay-angles { margin: 4px 0 6px; justify-content: center; flex-wrap: wrap; }
.angle-row.round-row { margin: 0 0 4px; justify-content: center; }
.angle-btn.step { padding: 9px 11px; color: var(--muted); letter-spacing: 0; }
.cast .cast-rounds { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; }
.cast .cast-replay-controls { position: absolute; bottom: 8px; left: 12px; right: 12px; z-index: 4; background: rgba(8,8,11,.62); border-radius: 12px; padding: 4px 14px 8px; backdrop-filter: blur(5px); }
.cast .cast-replay-controls .player-bar { margin: 6px 0 2px; }
.cast .cast-replay-controls .angle-row.replay-angles { margin: 0 0 2px; }
/* Wide overlay: keep the clip length + Share on one slim row within the frame. */
.cast .cast-replay-controls .rp-actions { margin: 2px 0 0; }
.cast .cast-replay-controls .rp-share { padding: 6px 12px; font-size: 12px; }
.cast .cast-replay-controls .clip-bar .btn-row { margin-top: 6px !important; gap: 8px; }
.cast .cast-replay-controls .clip-bar .btn { padding: 6px 10px; font-size: 12px; }

/* scoreboard */
.scorebar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline);
  background: var(--surface-2); margin-bottom: 12px;
}
.scorebar .corner { display: flex; align-items: center; gap: 8px; padding: 9px 9px; min-width: 0; }
.scorebar .corner > div { min-width: 0; }
.scorebar .corner.blue { justify-content: flex-end; text-align: right; }
.scorebar .corner.red { background: linear-gradient(90deg, rgba(255,64,64,.22), transparent); }
.scorebar .corner.blue { background: linear-gradient(270deg, rgba(61,123,255,.22), transparent); }
.scorebar .cn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 19px; line-height: 1; color: #f4f4f6; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.scorebar .cm { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: .12em; white-space: nowrap; margin-top: 3px; text-transform: uppercase; }
.scorebar .clock { text-align: center; padding: 8px 8px; }
.scorebar .clock .rd { font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: .08em; font-size: 10px; color: var(--muted); white-space: nowrap; }
.scorebar .clock .tt { font-family: Oswald, sans-serif; font-weight: 700; font-size: 22px; color: var(--yellow); }
/* Wide desktop "cast" layout — give the scoreboard more presence (bigger fighter names + clock). */
.cast .scorebar .corner { padding: 12px 22px; gap: 16px; }
.cast .scorebar .cn { font-size: 26px; max-width: 320px; }
.cast .scorebar .cm { font-size: 10px; }
.cast .scorebar .clock { padding: 10px 22px; }
.cast .scorebar .clock .tt { font-size: 28px; }
.cast .scorebar .clock .rd { font-size: 12px; }
.react-row { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.react {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,.3); border: 1px solid var(--hairline-soft); border-radius: 8px;
  padding: 6px 6px; font-size: 13px; line-height: 1; transition: transform .08s ease;
}
.react:active { transform: scale(1.14); }
.react b { font-size: 10px; color: var(--muted); font-weight: 700; }
/* Once you've reacted with an icon it locks (one per icon per fight) — dim it and show a tick. */
.react.reacted { opacity: .5; cursor: default; position: relative; }
.react.reacted::after { content: "✓"; position: absolute; top: -5px; right: -5px; font-size: 9px; color: var(--ok, #34d27b); background: var(--surface, #15151a); border-radius: 50%; width: 13px; height: 13px; display: grid; place-items: center; line-height: 1; }
.ws-react .react.reacted { opacity: .5; }
.ws-react .react.reacted::after { top: -7px; right: -8px; }
.react-bar { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.react-bar::-webkit-scrollbar { display: none; }
.react-group { display: inline-flex; flex-direction: column; gap: 4px; flex: 0 1 46%; min-width: 0; }
.react-group.blue { align-items: flex-end; text-align: right; }
.react-group.red .react { border-color: rgba(255,64,64,.25); }
.react-group.blue .react { border-color: rgba(61,123,255,.25); }
.vote-mid {
  flex: 0 0 auto;
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 11px;
  color: var(--gold); background: rgba(255,206,92,.1); border: 1px solid rgba(255,206,92,.3);
  border-radius: 99px; padding: 8px 12px;
}

/* chat */
.chat { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px; }
.chat .label { margin-bottom: 12px; }
.chat .msg, .cast .castchat .msg { font-size: 13px; line-height: 1.4; margin-bottom: 11px; font-weight: 600; }
.chat .msg .ts, .cast .castchat .msg .ts { color: var(--dim); font-size: 10px; font-family: Oswald, sans-serif; letter-spacing: .06em; margin-right: 6px; }
.chat .msg .nm, .cast .castchat .msg .nm { font-weight: 800; margin-right: 5px; }
.chat .msg .nm.red, .cast .castchat .msg .nm.red { color: var(--red-soft); }
.chat .msg .nm.blue, .cast .castchat .msg .nm.blue { color: var(--blue-soft); }
.chat .msg .nm.gold, .cast .castchat .msg .nm.gold { color: var(--gold); }
.chat .msg .nm.green, .cast .castchat .msg .nm.green { color: var(--ok); }
.chat-input { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 8px 8px 8px 14px; margin-top: 6px; }
.chat-input input { flex: 1; background: none; border: none; font-size: 14px; font-weight: 600; }
.chat-input input:focus { outline: none; }
.chat-send { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg,#ff5a5a,var(--red)); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }

/* ---------- Phone camera sender ---------- */
.phone-camera { padding: max(env(safe-area-inset-top),14px) 16px calc(env(safe-area-inset-bottom)+18px); }
.cam-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.cam-top .brand { display: flex; align-items: center; gap: 9px; }
.cam-preview { position: relative; flex: 1; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--hairline); min-height: 320px; }
.cam-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-hud { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; }
.cam-controls { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cam-reveal-hint { display: none; } /* only shown in immersive landscape (see the media query) — the controls are inline in portrait */
.cam-tip { color: var(--muted); font-size: 13px; text-align: center; font-weight: 600; }

/* ---------- Profile ---------- */
.profile-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-head .pn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 23px; }
.profile-head .pm { color: var(--muted); font-size: 13px; font-weight: 600; }
/* Profile rows: LEFT-aligned, label stacked over the value, soft inputs (no heavy boxes when idle). */
.kv { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kv .v { font-size: 16px; font-weight: 700; width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; justify-content: flex-start; }
.kv .v.gold { color: var(--gold); }
.kv .v.coming { color: var(--dim); }
.pill-multi { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-multi .p { appearance: none; font-family: Oswald, sans-serif; font-size: 12px; line-height: 1.2; padding: 7px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); }
.pill-multi .p.on { border-color: var(--yellow); color: var(--gold); }
.seg2 { display: flex; gap: 8px; }
.seg2 button { flex: 1; padding: 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--hairline); font-family: Oswald, sans-serif; font-weight: 600; color: var(--muted); }
.seg2 button.on { border-color: var(--yellow); color: var(--gold); }

/* ---------- Shop ---------- */
.shop-section { margin-bottom: 20px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.shop-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px; padding: 12px; }
.shop-card .pic { aspect-ratio: 1/1; border-radius: 10px; background: radial-gradient(120% 120% at 50% 30%, #26262f, #0e0e13); margin-bottom: 10px; display: grid; place-items: center; color: var(--dim-2); }
.shop-card .pn { font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; }
.shop-card .pp { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 600; }
.coming-badge { font-family: Oswald, sans-serif; font-size: 9px; letter-spacing: .1em; color: var(--gold); background: rgba(255,206,92,.12); border: 1px solid rgba(255,206,92,.3); border-radius: 6px; padding: 3px 7px; display: inline-block; margin-top: 8px; }


/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px);
  transform: translateX(-50%) translateY(8px); z-index: 60;
  background: rgba(20, 20, 26, .96); border: 1px solid var(--hairline);
  color: var(--text); padding: 11px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Ronnie/admin-only engine HUD ---------- */
.admin-hud {
  position: fixed;
  width: 280px;
  max-width: calc(100vw - 16px);
  z-index: 70;
  color: var(--text);
  background: rgba(12, 12, 17, .94);
  border: 1px solid rgba(255, 194, 51, .36);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.admin-hud.dragging { box-shadow: 0 22px 64px rgba(0,0,0,.68), 0 0 0 1px rgba(255,194,51,.28) inset; }
.admin-hud-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: linear-gradient(90deg, rgba(255,194,51,.13), rgba(61,123,255,.08));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-hud.dragging .admin-hud-head { cursor: grabbing; }
.admin-hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(255,194,51,.85); }
.admin-hud-title { min-width: 0; font-family: Oswald, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.admin-hud-sub { font-family: Archivo, system-ui, sans-serif; font-size: 10px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.admin-hud-btn {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.admin-hud-btn:hover { border-color: rgba(255,194,51,.55); color: var(--gold); }
.admin-hud-body { padding: 10px; }
.admin-hud.collapsed { width: 244px; }
.admin-hud.collapsed .admin-hud-body { display: none; }
.admin-hud.collapsed .admin-hud-sub { display: none; }
.admin-hud-grid {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 7px 9px;
  align-items: baseline;
}
.admin-hud-grid span, .admin-hud-section {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.admin-hud-grid b {
  min-width: 0;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}
.admin-hud-section { margin: 12px 0 6px; color: var(--gold); }
.admin-hud-recs { display: flex; flex-direction: column; gap: 5px; max-height: 156px; overflow: auto; }
.admin-hud-recs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
}
.admin-hud-recs a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-hud-recs a em { flex: none; font-style: normal; color: var(--dim); }
.admin-hud-empty { color: var(--dim); font-size: 12px; font-weight: 700; padding: 8px; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px; }

@media (max-width: 520px) {
  .admin-hud { width: min(280px, calc(100vw - 16px)); }
  .admin-hud-sub { display: none; }
}

/* ---------- Landscape broadcast (watch rotated) ---------- */
.cast { display: none; }
.broadcast-app.rotate { max-width: none; padding: 0; }
.broadcast-app.rotate .stacked { display: none; }
.broadcast-app.rotate .cast {
  display: grid;
  grid-template-columns: var(--cast-left, clamp(158px, 17vw, 236px)) 6px minmax(0, 1fr) 6px var(--cast-right, clamp(168px, 18vw, 240px));
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "list split-left stage split-right chat" "score score score score score";
  gap: 8px 0; width: 100%; height: 100dvh; padding: 5px; box-sizing: border-box; /* near full-bleed — ~5px from the screen edge */
}
/* synced replay angle pool — the same <video> moves between the centre stage and the left cards (no reload) */
.cast .cast-main-slot { position: absolute; inset: 0; }
.cast .cast-main-slot .rp-pool-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cast-split { position: relative; width: 6px; height: 100%; min-height: 0; padding: 0; border: none; background: transparent; cursor: col-resize; touch-action: none; }
.cast-split-left { grid-area: split-left; }
.cast-split-right { grid-area: split-right; }
.cast-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 99px; background: rgba(255,64,64,.76); box-shadow: 0 0 8px rgba(255,64,64,.32); }
.cast-split:hover::before, .cast-split.dragging::before { width: 3px; background: var(--red); box-shadow: 0 0 14px rgba(255,64,64,.7); }
.angle-card .ac-slot { position: absolute; inset: 0; }
.angle-card .ac-slot .rp-pool-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.angle-card.replay .ac-replay-ico { display: none; }
.angle-card.replay.on .ac-stage { background: radial-gradient(circle at 50% 35%, rgba(255,194,51,.22), #111116 76%); }
.angle-card .ac-current {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  font-family: Oswald, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: rgba(0,0,0,.36); text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
/* replay nav: compact "RUNDE" + number chips · "CAM" + chips · 2× — all on one line */
.angle-row.replay-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; justify-content: space-between; margin: 6px 0; }
.replay-nav .rp-controls { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.replay-nav .rn-grp { display: inline-flex; align-items: center; gap: 5px; }
.replay-nav .rn-label { font-family: Oswald, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.replay-nav .nav-chip { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.replay-nav .nav-chip.on { border-color: var(--yellow); color: var(--gold); }
.replay-nav .nav-chip.speed { color: var(--text); margin-left: 2px; }
.replay-nav .nav-chip.speed.on { border-color: var(--yellow); color: var(--gold); background: rgba(255,194,51,.12); }
/* LEFT — MORE ANGLES (angle preview cards) */
.cast .cast-angles { grid-area: list; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.cast .cast-angles .label { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .14em; font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 1px; }
.angle-card { position: relative; width: 100%; padding: 0; border-radius: 13px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--hairline); text-align: left; cursor: pointer; flex: none; }
.angle-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.angle-card .ac-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: radial-gradient(circle at 50% 40%, #23232c, #0a0a0e 80%); display: grid; place-items: center; }
.angle-card .ac-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.angle-card .ac-nosig { font-family: Oswald, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.angle-card .ac-stage.live .ac-nosig { display: none; }
.angle-card.slow .ac-nosig { display: none; } /* the slow-mo/replay card isn't a camera — no "no signal" */
.angle-card .ac-replay-ico { position: absolute; font-size: 22px; color: var(--gold); opacity: .45; }
.angle-card .ac-frame { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-top: 2px solid rgba(255,255,255,.3); border-right: 2px solid rgba(255,255,255,.3); border-radius: 0 4px 0 0; }
.angle-card .ac-badge { position: absolute; top: 7px; left: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 9px; letter-spacing: .08em; color: #fff; background: rgba(0,0,0,.55); padding: 3px 7px; border-radius: 6px; }
.angle-card .ac-badge.slow { color: #0b0b0d; background: var(--yellow); }
.angle-card .ac-badge .ac-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.angle-card .ac-label { position: absolute; bottom: 7px; left: 9px; z-index: 2; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
/* CENTRE — program / countdown */
.cast .cast-center { grid-area: stage; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 0; gap: 8px; padding: 0 8px; }
.cast .caststage { flex: 0 0 auto; width: min(100%, calc((100dvh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; min-height: 0; position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--hairline); }
.cast .cast-rp-below { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.cast .cast-rp-below .rp-bar { margin: 2px 0 0; }
.cast .caststage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cast .cast-ratio { position: absolute; top: 12px; right: 14px; z-index: 3; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
/* v0.170: owner can flip a replay public/private from the top-right of the wide player */
.cast .caststage .cast-vis { position: absolute; top: 12px; right: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 9px; background: rgba(8,8,11,.66); padding: 5px 7px 5px 13px; border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cast .caststage .cast-vis .cv-label { font: 600 12px/1 Oswald, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.cast .caststage .cast-vis .switch { flex: none; }
.cast .cast-pl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 18px; }
.cast .cast-brand { display: inline-flex; align-items: center; gap: 9px; }
.cast .cast-brand svg { width: 26px; height: 26px; }
.cast .cast-brandword { font-family: Oswald, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .01em; color: var(--text); }
.cast .cast-brandword .dim { color: var(--muted); }
.cast .cast-cd-label { font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .22em; color: var(--red-soft); text-transform: uppercase; margin-top: 6px; }
.cast .cast-cd { font-family: Oswald, sans-serif; font-weight: 700; font-size: clamp(48px, 8vw, 88px); color: var(--text); line-height: 1; letter-spacing: .02em; }
.cast .cast-pl-title { font-family: Oswald, sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase; color: var(--text); margin-top: 4px; }
.cast .cast-pl-title .dim, .cast .cast-prog-pill .dim { color: var(--muted); }
.cast .cast-prog-pill { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(8,8,11,.66); padding: 7px 13px; border-radius: 99px; }
.cast .cast-views { position: absolute; top: 12px; left: 14px; z-index: 3; background: rgba(0,0,0,.42); padding: 5px 10px; border-radius: 8px; }
/* RIGHT — LIVE CHAT */
.cast .castchat { grid-area: chat; overflow: hidden; min-height: 0; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px; padding: 13px; display: flex; flex-direction: column; }
.cast .castchat > .label { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .14em; font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; flex: none; }
.cast .castchat .chat-list { flex: 1; min-height: 0; overflow-y: auto; }
.cast .castchat .chat-input { flex: none; margin-top: 10px; }
/* BOTTOM — broadcast scoreboard */
.cast .castscore { grid-area: score; }
.cast-score { border-radius: 14px; overflow: hidden; background: #0c0c10; border: 1px solid var(--hairline); }
.cast-score .cs-bar { height: 3px; background: linear-gradient(90deg, var(--red) 0 38%, var(--yellow) 38% 62%, var(--blue) 62% 100%); }
.cast-replay-dock { display: grid; grid-template-columns: auto minmax(260px, 1fr); align-items: center; gap: 12px; padding: 8px 16px 7px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(4,4,7,.52); }
.cast-replay-dock .angle-row.replay-nav { margin: 0; justify-content: flex-start; overflow: visible; }
.cast-replay-dock .replay-nav .rn-grp { gap: 4px; }
.cast-replay-dock .replay-nav .rn-label { font-size: 9px; }
.cast-replay-dock .replay-nav .nav-chip { height: 28px; min-width: 28px; border-radius: 8px; }
.cast-replay-dock .rp-bar { margin: 0; display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 11px; }
.cast-replay-dock .rp-timeline-row { min-width: 0; }
.cast-replay-dock .rp-control-row { width: auto; justify-content: flex-end; }
.cast-replay-dock .rp-btn.share { height: 38px; border-radius: 11px; }
.cast-score .cs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cast-score .cs-side { display: flex; align-items: center; gap: 16px; padding: 10px 22px; min-width: 0; }
.cast-score .cs-side.red { background: linear-gradient(90deg, rgba(255,64,64,.32), transparent); }
.cast-score .cs-side.blue { background: linear-gradient(270deg, rgba(61,123,255,.32), transparent); justify-content: flex-end; }
.cast-score .cs-name { font-family: Oswald, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; color: var(--text); line-height: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cast-score .cs-side.blue .cs-name { text-align: right; }
.cast-score .cs-sub { font-family: Archivo, sans-serif; font-size: 10px; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.cast-score .cs-side.red .cs-sub { color: #ffb3b3; }
.cast-score .cs-side.blue .cs-sub { color: var(--blue-soft); }
.cast-score .cs-react-block { display: flex; flex-direction: column; gap: 4px; flex: 0 1 140px; min-width: 0; align-items: flex-start; }
.cast-score .cs-side.blue .cs-react-block { align-items: flex-end; }
.cast-score .cs-pills { display: flex; gap: 9px; flex: none; }
.cs-pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 46px; padding: 6px 0; border-radius: 11px; font-size: 17px; line-height: 1; }
.cast-score .cs-side.red .cs-pill { background: rgba(255,64,64,.14); border: 1px solid rgba(255,64,64,.4); color: #ffb3b3; }
.cast-score .cs-side.blue .cs-pill { background: rgba(61,123,255,.14); border: 1px solid rgba(61,123,255,.4); color: var(--blue-soft); }
.cs-pill b { font-family: Oswald, sans-serif; font-weight: 700; font-size: 11px; }
.cs-pill.reacted { opacity: .5; }
.cast-score .cs-mid { min-width: 210px; padding: 8px 26px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.cast-score .cs-rnd { font-family: Oswald, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.cast-score .cs-of { font-family: Archivo, sans-serif; font-size: 9px; letter-spacing: .16em; color: var(--dim); font-weight: 700; }
.cast-score .cs-prog { width: 200px; max-width: 34vw; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); margin: 5px 0 3px; overflow: hidden; }
.cast-score .cs-prog-i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.cast-score .cs-time { font-family: Oswald, sans-serif; font-weight: 700; font-size: 22px; color: var(--gold); line-height: 1; }

/* Wide layout proposals for design review.
   ?wide=cinema keeps thumbnails and chat, but makes the panels leaner.
   ?wide=compact turns angles into a fixed skinny rail, giving the player the most room. */
.broadcast-app.rotate .cast.cast-cinema {
  grid-template-columns: clamp(150px, 13vw, 182px) 5px minmax(0, 1fr) 5px clamp(170px, 15vw, 210px);
  gap: 5px 0; padding: 4px;
}
.cast.cast-cinema .cast-center { padding: 0 5px; justify-content: center; }
.cast.cast-cinema .caststage { width: min(100%, calc((100dvh - 122px) * 16 / 9)); border-radius: 12px; }
.cast.cast-cinema .cast-angles { gap: 7px; }
.cast.cast-cinema .angle-card { border-radius: 10px; }
.cast.cast-cinema .castchat { border-radius: 12px; padding: 10px; }
.cast.cast-cinema .castchat > .label { margin-bottom: 6px; }
.cast.cast-cinema .cast-replay-dock { padding: 6px 12px; }
.cast.cast-cinema .cast-score .cs-side { padding: 8px 18px; }
.cast.cast-cinema .cast-score .cs-mid { padding: 6px 22px; }

.broadcast-app.rotate .cast.cast-compact {
  grid-template-columns: clamp(82px, 7vw, 104px) 5px minmax(0, 1fr) 5px clamp(150px, 13vw, 190px);
  gap: 5px 0; padding: 4px;
}
.cast.cast-compact .cast-center { padding: 0 5px; justify-content: center; }
.cast.cast-compact .caststage { width: min(100%, calc((100dvh - 112px) * 16 / 9)); border-radius: 10px; }
.cast.cast-compact .cast-angles { gap: 6px; }
.cast.cast-compact .cast-angles .label { font-size: 9px; text-align: center; margin-bottom: 0; }
.cast.cast-compact .angle-card {
  min-height: 54px; border-radius: 10px; padding: 8px 5px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center;
}
.cast.cast-compact .angle-card .ac-stage { display: none; }
.cast.cast-compact .angle-card .ac-badge,
.cast.cast-compact .angle-card .ac-label {
  position: static; transform: none; text-shadow: none; background: none; padding: 0; border-radius: 0;
}
.cast.cast-compact .angle-card .ac-badge { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.cast.cast-compact .angle-card .ac-label { color: var(--text); font-size: 16px; line-height: 1; }
.cast.cast-compact .angle-card.on { background: rgba(255,194,51,.12); }
.cast.cast-compact .angle-card.on .ac-badge, .cast.cast-compact .angle-card.on .ac-label { color: var(--gold); }
.cast.cast-compact .castchat { border-radius: 10px; padding: 9px; }
.cast.cast-compact .castchat > .label { margin-bottom: 5px; font-size: 9px; }
.cast.cast-compact .castchat .chat-input { display: none; }
.cast.cast-compact .cast-replay-dock { padding: 5px 10px; gap: 8px; }
.cast.cast-compact .cast-replay-dock .rp-bar { gap: 8px; }
.cast.cast-compact .cast-score .cs-side { padding: 7px 16px; }
.cast.cast-compact .cast-score .cs-mid { padding: 5px 18px; min-width: 170px; }

/* ---------- i18n: keep design's uppercase on translated labels ---------- */
.nav-btn, .rlabel, .qr-title, .repbtn, .rec-pill, .auto-pill,
.clabel, .you-pill, .scorebar .cm, .tag.live, .tag.soon, .tag.replay { text-transform: uppercase; }
.cs.off { color: var(--muted); }

/* ---------- Language bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: var(--maxw);
  background: var(--surface-raised);
  border: 1px solid var(--hairline); border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 18px);
  max-height: 80dvh; overflow-y: auto;
  animation: sheetup .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes sheetup { from { transform: translateY(100%); } }
.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: var(--hairline); margin: 4px auto 12px; }
.sheet-title { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .04em; font-size: 18px; margin-bottom: 12px; }
.lang-list { display: flex; flex-direction: column; gap: 4px; }
.lang-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 12px; border-radius: 12px; background: transparent; border: 1px solid transparent;
}
.lang-row:active { background: var(--surface); }
.lang-row.sel { background: var(--surface); border-color: rgba(255,194,51,.35); }
.lang-row .flag { font-size: 22px; }
.lang-row .lname { flex: 1; font-weight: 700; font-size: 15px; }
.lang-row.soon { opacity: .55; }
.lang-row.soon .lname { font-weight: 600; }
.lang-row .ck { color: var(--yellow); display: inline-flex; }
.soon-pill {
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .1em; font-size: 10px;
  text-transform: uppercase; color: var(--dim);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 99px; padding: 4px 9px;
}
.reaction-sheet { max-width: min(420px, calc(100vw - 22px)); }
.reaction-title { display: flex; align-items: center; gap: 9px; }
.reaction-list { display: grid; gap: 9px; margin: 4px 0 14px; max-height: min(48dvh, 360px); overflow: auto; }
.reaction-person {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 11px;
  border: 1px solid var(--hairline); background: rgba(255,255,255,.045);
}
.reaction-person strong { font-family: Archivo, sans-serif; font-size: 14px; }
.avatar.mini { width: 30px; height: 30px; font-size: 14px; }
.reaction-empty {
  padding: 18px 12px; border-radius: 11px; text-align: center;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--hairline);
  font-weight: 700;
}

.hidden { display: none !important; }

/* Offline banner (toggled by the browser online/offline events) */
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: var(--red); color: #fff; text-align: center; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 7px; transform: translateY(-100%); transition: transform .25s ease; }
.offline-banner.show { transform: translateY(0); }

/* ---------- Profile photo crop/zoom editor ---------- */
.crop-backdrop { align-items: center; }
.crop-modal { width: 100%; max-width: 360px; margin: 0 18px; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px; animation: sheetup .2s cubic-bezier(.2,.7,.3,1); }
.crop-head { font-family: Oswald, sans-serif; font-weight: 600; font-size: 18px; letter-spacing: .02em; text-align: center; margin-bottom: 14px; }
.crop-view { position: relative; width: 280px; max-width: 80vw; aspect-ratio: 1; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; }
.crop-view:active { cursor: grabbing; }
.crop-view #cropImg { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 49.4%, rgba(0,0,0,.55) 50%); }
.crop-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.crop-zoom-row { display: flex; align-items: center; gap: 10px; margin: 16px 4px 2px; }
.crop-zoom-row input { flex: 1; accent-color: var(--yellow); height: 4px; }
.crop-zico { color: var(--muted); font-family: Oswald, sans-serif; letter-spacing: .1em; }
.crop-zico.sm { font-size: 10px; }
.crop-hint { text-align: center; color: var(--dim); font-size: 12px; margin: 8px 0 0; }
.crop-view img.bw { filter: grayscale(1) contrast(1.05); } /* live B&W preview while cropping */
.crop-bw-row { display: flex; justify-content: center; margin: 12px 0 2px; }
.crop-bw-btn.on { border-color: var(--yellow); color: var(--gold); }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ============ Live-audio toggle chip (operator monitor + spectator) ============ */
/* Operator monitor defaults muted: the venue speaker feeding the ring mic back = feedback howl. */
/* bottom: 52px clears the operator name-strip and the spectator viewer-count (both live at bottom 10-12px). */
.mon-audio {
  position: absolute; right: 10px; bottom: 52px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(12,12,16,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 17px; line-height: 1; display: grid; place-items: center; cursor: pointer;
  opacity: .82; transition: opacity .15s ease, border-color .15s ease;
}
.mon-audio:hover { opacity: 1; }
.mon-audio.on { border-color: var(--yellow, #ffd400); opacity: 1; }

/* ============ Landscape immersive ("viewfinder mode"): phone camera + watch on small screens ============ */
/* Rotate the phone to landscape → the picture takes the WHOLE display. Tap the picture to slide the
   controls up (auto-hides). Rotate back to portrait for the full UI (score, chat, pickers). */
@media (orientation: landscape) and (max-height: 560px) {
  body.immersive { overflow: hidden; }
  body.immersive .phone-camera .cam-preview,
  body.immersive .watch-app .main-win {
    position: fixed; inset: 0; z-index: 380;
    width: 100vw; height: 100dvh; min-height: 0;
    border: none; border-radius: 0; background: #000; aspect-ratio: auto;
  }
  body.immersive .phone-camera .cam-preview video,
  body.immersive .watch-app .main-win video { width: 100%; height: 100%; object-fit: contain; }
  /* Floating top chips (brand + room) over the picture on the camera phone */
  body.immersive .phone-camera .cam-top {
    position: fixed; z-index: 382; top: calc(6px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
    background: transparent; pointer-events: none;
  }
  /* Camera controls become a tap-to-reveal bottom sheet */
  body.immersive .phone-camera .cam-controls {
    position: fixed; z-index: 383; left: 0; right: 0; bottom: 0;
    max-height: 70dvh; overflow-y: auto;
    padding: 12px calc(14px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px));
    background: rgba(10,10,14,.93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline, rgba(255,255,255,.12));
    transform: translateY(110%); transition: transform .28s ease;
  }
  body.immersive.chrome-up .phone-camera .cam-controls { transform: none; }
  /* v0.169: a discoverable hint that the camera settings are a tap-to-reveal sheet in landscape (Ronnie couldn't find them) */
  body.immersive .phone-camera .cam-reveal-hint {
    display: block; position: fixed; z-index: 384; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); font: 600 12px/1 Oswald, sans-serif; letter-spacing: .07em; text-transform: uppercase;
    color: #fff; background: rgba(10,10,14,.72); padding: 7px 14px; border-radius: 99px; pointer-events: none;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  body.immersive.chrome-up .phone-camera .cam-reveal-hint { display: none; } /* controls revealed → hide the hint */
  /* Watch view: everything below the main window is reachable in portrait — hide it behind the picture */
  body.immersive .watch-app .main-win .win-badge,
  body.immersive .watch-app .main-win .viewer-count,
  body.immersive .watch-app .main-win .mon-audio { z-index: 382; }
  body.immersive .watch-app .main-win .win-views { bottom: 52px; } /* clear of the fullbleed bottom bar */
  body.immersive .watch-app .main-win .mon-audio { bottom: 96px; } /* stack the audio chip above the counter */
  /* Toasts, sheets and the admin HUD normally sit at z 60-80 — lift them above the fixed immersive layer */
  body.immersive .toast { z-index: 600; }
  body.immersive .sheet-backdrop, body.immersive .sheet { z-index: 590; }
  body.immersive .admin-hud { z-index: 580; }

  /* ---- fullbleed WATCH overlay (iPhone landscape): thin translucent bar over the video ---- */
  body.immersive .watch-app .win-badge.cam-cycle { cursor: pointer; }
  body.immersive .watch-app .win-badge .cam-cyc { margin-left: 4px; opacity: .8; font-style: normal; }
  /* v0.146 (Ronnie): the logo is the way BACK — in wide replay show it top-left as a tap target
     and slide the camera badge right so they don't overlap. Fades with the rest of the chrome. */
  body.immersive .watch-app .rp-logo { display: block; pointer-events: auto; cursor: pointer; height: 15px; top: 13px; left: 14px; }
  body.immersive .watch-app .main-win .rp-logo ~ .win-badge.tl { left: 156px; }
  body.immersive .watch-app .win-badge.cam-cycle.replay { display: inline-flex; } /* fullscreen: cam switching lives up here */

  /* LIVE bar */
  body.immersive .watch-app .wov {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; z-index: 382;
    position: fixed; left: 0; right: 0; bottom: 0; min-height: 44px;
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
    background: linear-gradient(to top, rgba(5,6,9,.5), transparent);
  }
  body.immersive .watch-app .wov-side { display: flex; align-items: center; gap: 8px; padding: 5px 14px; min-width: 0; overflow: hidden; }
  body.immersive .watch-app .wov-side.red { background: linear-gradient(90deg, rgba(255,64,64,.34), transparent 82%); }
  body.immersive .watch-app .wov-side.blue { background: linear-gradient(270deg, rgba(61,123,255,.34), transparent 82%); justify-content: flex-end; }
  body.immersive .watch-app .wov-nm { font-family: Oswald, sans-serif; font-weight: 600; text-transform: uppercase; color: #fff; font-size: 15px; line-height: 1; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  body.immersive .watch-app .wov-fire { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  body.immersive .watch-app .wov-mid { display: flex; align-items: center; gap: 9px; padding: 0 8px; white-space: nowrap; }
  body.immersive .watch-app .wov-rnd { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  body.immersive .watch-app .wov-of { color: rgba(255,255,255,.5); }
  body.immersive .watch-app .wov-prog { width: 150px; max-width: 24vw; height: 4px; border-radius: 99px; background: rgba(255,255,255,.24); position: relative; overflow: hidden; }
  body.immersive .watch-app .wov-prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yellow); border-radius: 99px; }
  body.immersive .watch-app .wov-time { font-family: Oswald, sans-serif; font-weight: 700; font-size: 17px; color: var(--gold); line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

  /* REPLAY: float the existing round/cam nav + scrubber + share as the bottom overlay (reuses all its wiring) */
  body.immersive .watch-app .rp-below {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 383; margin: 0;
    padding: 4px calc(10px + env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) calc(10px + env(safe-area-inset-left,0px));
    background: linear-gradient(to top, rgba(5,6,9,.66), rgba(5,6,9,.12));
    display: flex; flex-direction: row; align-items: center; gap: 12px;
  }
  body.immersive .watch-app .rp-below .rn-cam { display: none; } /* camera lives in the top-left badge here */
  /* fullscreen replay chrome: gold clock top-centre, ROUND pill + picker top-right, cam menu under the badge */
  body.immersive .watch-app .wrv-time {
    display: block; position: fixed; z-index: 382; top: calc(8px + env(safe-area-inset-top, 0px));
    left: 50%; transform: translateX(-50%);
    font-family: Oswald, sans-serif; font-weight: 700; font-size: 22px; color: var(--gold); line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none;
  }
  body.immersive .watch-app .wrv-round {
    display: inline-flex; align-items: center; gap: 5px; position: fixed; z-index: 382;
    top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
    background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
    padding: 4px 11px; color: #fff; font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 12px; cursor: pointer;
  }
  body.immersive .watch-app .wrv-round b { color: var(--gold); font-weight: 700; }
  body.immersive .watch-app .wrv-car { font-style: normal; color: var(--gold); font-size: 11px; }
  body.immersive .watch-app .wrv-menu.open {
    display: flex; flex-direction: column; gap: 6px; position: fixed; z-index: 384;
    top: calc(44px + env(safe-area-inset-top, 0px)); padding: 10px;
    background: rgba(10,10,14,.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  }
  body.immersive .watch-app .wrv-cam-menu.open { left: calc(12px + env(safe-area-inset-left, 0px)); }
  body.immersive .watch-app .wrv-round-menu.open { right: calc(12px + env(safe-area-inset-right, 0px)); }
  /* ONE-line bottom bar: [timeline —————] [▶] [share] — RUNDE + CAMERA live in the top pills */
  body.immersive .watch-app .rp-below .replay-nav { display: contents; }        /* flatten so the play+share join the bar */
  body.immersive .watch-app .rp-below .replay-nav .rn-grp { display: none; }     /* RUNDE + CAMERA are the top pills here */
  body.immersive .watch-app .rp-below .rp-bar { order: 2; flex: 1 1 auto; margin: 0; }
  body.immersive .watch-app .rp-below .rp-timeline-row { flex: 1 1 auto; min-width: 0; margin: 0; }
  body.immersive .watch-app .rp-below .rp-controls { order: 3; display: inline-flex; align-items: center; gap: 9px; }
  /* fullscreen replay: graphics fade after 5s untouched; tap the picture to bring them back */
  body.immersive .watch-app .rp-below, body.immersive .watch-app .main-win .win-badge,
  body.immersive .watch-app .main-win .viewer-count, body.immersive .watch-app .main-win .mon-audio { transition: opacity .3s ease; }
  body.immersive .tune-fab, body.immersive .tune-panel, body.immersive .tune-sim { opacity: 1 !important; pointer-events: auto !important; }
  body.immersive.gfx-hide .watch-app .rp-logo,
  body.immersive.gfx-hide .watch-app .rp-below,
  body.immersive.gfx-hide .watch-app .main-win .win-badge,
  body.immersive.gfx-hide .watch-app .main-win .viewer-count,
  body.immersive.gfx-hide .watch-app .wrv-time,
  body.immersive.gfx-hide .watch-app .wrv-round,
  body.immersive.gfx-hide .watch-app .wrv-menu,
  body.immersive.gfx-hide .watch-app .main-win .mon-audio { opacity: 0; pointer-events: none; }
}

/* Portrait: let the main watch video go edge-to-edge so it's a touch bigger (per Ronnie) */
@media (orientation: portrait) {
  /* full-bleed: negative margins alone only shifted it left (flex item kept content width) → set the width too */
  .watch-app .stacked .main-win { width: calc(100% + 2 * var(--pad)); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); border-radius: 0; border-left: none; border-right: none; }
}
.wov { display: none; } /* only shown in the immersive (iPhone-landscape) watch view */
.wrv-time, .wrv-round, .wrv-menu { display: none; } /* fullscreen-replay chrome — immersive only */
.watch-app .win-badge.cam-cycle.replay { display: none; } /* portrait replay: the nav row below has cam chips (badge would collide with the wordmark) */

/* ---------- v0.122 — TRAINING TIMER (home card + timer view; reuses .big-clock/.stepper) ---------- */
.choice-card.timer {
  background: linear-gradient(120deg, rgba(52, 199, 123, .22), rgba(52, 199, 123, .05) 70%), var(--surface-2);
  border-color: rgba(52, 199, 123, .35);
  box-shadow: 0 14px 40px rgba(52, 199, 123, .12);
} /* same inner glow as FILM (red) / SE (blue) per Ronnie */
.choice-card.timer .ico { display: grid; place-items: center; background: linear-gradient(160deg, #63c177, #2f9150); color: #eafff0; }
.choice-card.timer .ico .gly { width: 24px; height: 24px; }
.timer-app .timer-title { margin: 20px 0 12px; }
.timer-app .timer-setup { margin-bottom: 4px; }
.timer-app .timer-setup.locked { opacity: .55; }
.timer-app .timer-setup.locked .wheel { pointer-events: none; }
/* iOS-style scroll wheels — far quicker than +/- steppers */
.wheel-row { display: flex; gap: 10px; }
.wheel-col { flex: 1; min-width: 0; text-align: center; }
.wc-label { font-family: Oswald, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.wh-wrap { position: relative; }
.wheel { height: 170px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 68px 0; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wh-opt { height: 34px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-family: Oswald, sans-serif; font-size: 17px; font-weight: 600; color: rgba(244, 244, 246, .55); font-variant-numeric: tabular-nums; }
.wh-opt.on { color: var(--gold); font-size: 19px; font-weight: 700; }
.wh-band { position: absolute; top: 50%; left: 0; right: 0; height: 34px; transform: translateY(-50%); border-top: 1px solid rgba(255, 206, 92, .35); border-bottom: 1px solid rgba(255, 206, 92, .35); background: rgba(255, 255, 255, .035); border-radius: 8px; pointer-events: none; }
/* Fight-setup wheels — shorter than the timer's: only one value shows above/below the selected */
.rounds-wheels { padding: 6px 14px; }
.rounds-wheels .wheel-row { gap: 8px; }
.rounds-wheels .wheel { height: 102px; padding: 34px 0; }
.timer-app .big-clock { margin-top: 0; padding: 34px 0 22px; }
.film-app .big-clock.ended { display: none; }
.film-app .result-box { margin-top: 4px; }
.film-app .result-win button { padding: 12px 6px; }
.timer-app .timer-actions { margin-top: 4px; }
@media (min-width: 760px) {
  /* home grid: timer joins report/admin as a full-width row under the two hero cards */
  .welcome-actions .choice-card.timer { grid-column: 1 / -1; margin-bottom: 0; }
  .timer-app { max-width: 720px; }
  .timer-app .big-clock .t { font-size: 120px; }
}
/* Wide/landscape timer: HUGE clock beside a compact settings column (gym-wall readability) */
@media (orientation: landscape) and (min-width: 700px) {
  .timer-app { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 6px 26px; align-items: start; }
  .timer-app > header { grid-column: 1 / -1; grid-row: 1; } /* logo top-LEFT, avatar top-right — full width like the rest of the app */
  .timer-app .h-display { grid-column: 2; margin: 0 0 4px; font-size: 22px; }
  .timer-app .timer-setup { grid-column: 2; margin-bottom: 0; }
  .timer-app .wheel { height: 150px; padding: 58px 0; }
  .timer-app .timer-actions { grid-column: 2; margin-top: 8px; }
  .timer-app .big-clock { grid-column: 1; grid-row: 2 / span 3; align-self: center; padding: 10px 0; margin: 0; }
  .timer-app .big-clock .t { font-size: min(32vh, 19vw); line-height: 1; }
  .timer-app .big-clock .rlabel { font-size: 30px; font-weight: 700; letter-spacing: .06em; } /* "Runde 1 af X" gym-wall size */
  .timer-app .big-clock .progress { max-width: 70%; margin-left: auto; margin-right: auto; }
}

/* ===== v0.146 — admin tuning module (tune.js; isAdmin + replay only) ===== */
.tune-fab { position: fixed; left: 10px; bottom: 12px; z-index: 401; background: rgba(20,20,24,.86); color: var(--gold, #ffd25a); border: 1px solid rgba(255,210,90,.5); border-radius: 9px; font: 700 11px/1 Oswald, sans-serif; letter-spacing: .14em; padding: 9px 12px; }
.tune-fab.active { background: var(--gold, #ffd25a); color: #141416; }
.tune-panel { position: fixed; right: 8px; bottom: 8px; z-index: 402; width: min(340px, 92vw); max-height: 72vh; overflow-y: auto; background: rgba(14,14,18,.94); border: 1px solid var(--hairline, rgba(255,255,255,.14)); border-radius: 14px; padding: 10px 12px; display: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tune-panel.open { display: block; }
.tune-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tune-head b { font: 700 13px Oswald, sans-serif; letter-spacing: .08em; color: var(--text, #fff); }
.tune-x { background: none; border: none; color: var(--muted, #999); font-size: 20px; line-height: 1; padding: 2px 6px; }
.tune-status { font: 11px ui-monospace, Menlo, monospace; color: #8f8; background: rgba(0,0,0,.4); border-radius: 7px; padding: 5px 8px; margin-bottom: 8px; white-space: nowrap; overflow-x: auto; }
.tune-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tune-tog { background: rgba(255,255,255,.07); border: 1px solid var(--hairline, rgba(255,255,255,.14)); color: var(--muted, #aaa); border-radius: 8px; font: 600 11px -apple-system, sans-serif; padding: 6px 9px; }
.tune-tog.on { background: rgba(255,210,90,.18); border-color: var(--gold, #ffd25a); color: var(--gold, #ffd25a); }
.tune-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.06); }
.tune-lbl { font: 600 11px -apple-system, sans-serif; color: var(--text, #ddd); }
.tune-val { font: 11px ui-monospace, Menlo, monospace; color: var(--gold, #ffd25a); }
.tune-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--gold, #ffd25a); }
.tune-btns { display: flex; gap: 8px; margin-top: 10px; }
.tune-btn { flex: 1; background: rgba(255,210,90,.14); border: 1px solid var(--gold, #ffd25a); color: var(--gold, #ffd25a); border-radius: 9px; font: 700 12px -apple-system, sans-serif; padding: 9px 6px; }
.tune-ta { width: 100%; min-height: 90px; margin-top: 8px; background: rgba(0,0,0,.5); color: #ddd; border: 1px solid var(--hairline, rgba(255,255,255,.14)); border-radius: 8px; font: 11px ui-monospace, Menlo, monospace; padding: 7px; }
.tune-overlay { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tune-sim { position: absolute; right: 10px; bottom: 10px; z-index: 7; width: min(38%, 300px); border: 1px solid var(--gold, #ffd25a); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 4px 18px rgba(0,0,0,.6); }
.tune-sim-label { font: 700 9px Oswald, sans-serif; letter-spacing: .12em; color: var(--gold, #ffd25a); background: rgba(14,14,18,.9); padding: 3px 7px; }
.tune-sim-canvas { display: block; width: 100%; height: auto; }
.rp-track .tune-mark { position: absolute; top: 50%; width: 10px; height: 18px; transform: translate(-50%,-50%); z-index: 3; cursor: pointer; }
.rp-track .tune-mark::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 3px; height: 14px; border-radius: 2px; }
.rp-track .tune-mark.rec::before { background: #ff9d2e; box-shadow: 0 0 5px rgba(255,157,46,.8); }
.rp-track .tune-mark.sim::before { background: #37e0d8; box-shadow: 0 0 5px rgba(55,224,216,.8); }

/* ===== v0.147 — tuning panel docked in the wide cast layout (params replace chat; PiP under the cameras) ===== */
.tune-grp { font: 700 10px Oswald, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #ffd25a); margin: 12px 0 2px; padding-top: 8px; border-top: 1px solid rgba(255,210,90,.22); }
.tune-grp:first-child { margin-top: 2px; padding-top: 0; border-top: none; }
.tune-hint { grid-column: 1 / -1; font: 500 10.5px -apple-system, sans-serif; color: var(--muted, #9a9aa2); line-height: 1.3; margin-top: 2px; }
.tune-tog { position: relative; }
/* fab: top-right in wide so it sits over the chat/params column; hidden in portrait via inline display:none */
body.tune-in-cast .tune-fab { left: auto; right: 16px; top: 10px; bottom: auto; z-index: 404; }
/* panel docks into the chat grid-area, fills the column height, scrolls internally */
.cast > .tune-panel.tune-docked { grid-area: chat; position: relative; right: auto; bottom: auto; left: auto; top: auto;
  width: auto; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cast > .tune-panel.tune-docked.open { display: block; overflow-y: auto; }
.cast > .tune-panel.tune-docked .tune-head { position: sticky; top: 0; background: rgba(14,14,18,.98); margin: -10px -12px 6px; padding: 8px 12px; z-index: 2; }
.cast.tune-hide-chat > .castchat { display: none; }
.cast > .tune-panel.tune-docked .tune-x { display: none; } /* the TUNE fab toggles it — no redundant close */
/* PiP as a card at the bottom of the left camera column (under the last camera) */
.cast-angles > .tune-sim { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 2px; box-shadow: none; flex: none; }
.tune-sim-note { padding: 14px 12px; font: 600 11.5px -apple-system, sans-serif; color: var(--muted, #9a9aa2); line-height: 1.4; text-align: center; }

/* ===== v0.150 — finish-fight SAVING overlay + live-filming tuning panel ===== */
.program-stage .countdown-overlay.saving { background: rgba(8,8,11,.9); z-index: 8; gap: 4px; padding: 20px; }
.program-stage .countdown-overlay.saving .saving-spin { width: 34px; height: 34px; border-width: 4px; margin-bottom: 6px; }
.program-stage .countdown-overlay.saving .cd-label.big { font-size: 22px; }
.saving-body { color: var(--muted); font-size: 13px; line-height: 1.4; max-width: 340px; margin-top: 6px; }
.saving-progress { color: var(--gold, #ffd25a); font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
/* live tuning: float the panel top-right, out of the way of the filming controls */
body.tune-live .tune-panel { top: 52px; right: 10px; bottom: auto; max-height: calc(100dvh - 68px); }
body.tune-live .tune-fab { left: auto; right: 14px; top: 10px; bottom: auto; z-index: 404; }
