/* BNFx Show — shared styles (dark, "premium sportif") */
:root {
  --bg: #060914;
  --bg2: #0D1326;
  --card: #121A33;
  --line: #22305A;
  --text: #F4F6FF;
  --muted: #9AA6C8;
  --blue: #2F5BFF;
  --orange: #FF7A1A;
  --ok: #19C37D;
  --bad: #FF4D5E;
  --A: #FF7A1A;
  --B: #2F5BFF;
  --C: #19B37D;
  --D: #9B5CFF;
  --radius: 18px;
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Sora", "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
input, select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.brand { font-family: var(--head); font-weight: 800; letter-spacing: 0.02em; }
.brand b { color: var(--orange); }
.demo-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #3a2a00; color: #FFD27A; font-size: 12px; text-align: center; padding: 4px 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; transition: transform .08s ease, background .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #1a0d00; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { border-color: #5a1f2a; color: #ffb3bd; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============ PLAYER ============ */
.player { min-height: 100dvh; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 14px; }
.p-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-team .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.p-team .name { font-family: var(--head); font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-score { font-family: var(--head); font-weight: 800; font-size: 20px; white-space: nowrap; }
.p-score small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.p-sub { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.p-sub button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; padding: 4px 0; }
.p-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.p-msg { text-align: center; padding: 24px 8px; }
.p-msg h2 { font-size: 26px; margin-bottom: 8px; }
.p-msg p { color: var(--muted); margin: 0; line-height: 1.45; }
.p-big { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ans { aspect-ratio: 1 / 0.82; border-radius: 22px; font-family: var(--head); font-size: 54px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 0 rgba(0,0,0,.35); transition: transform .08s, opacity .15s, box-shadow .15s; }
.ans:active { transform: translateY(3px); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.ans.A { background: var(--A); } .ans.B { background: var(--B); } .ans.C { background: var(--C); } .ans.D { background: var(--D); }
.answers.has-choice .ans:not(.sel) { opacity: .35; }
.ans.sel { outline: 5px solid #fff; outline-offset: -5px; }
.ans.sel::after { content: "✓"; position: absolute; top: 10px; right: 14px; font-size: 22px; }
.timer { height: 8px; background: var(--card); border-radius: 99px; overflow: hidden; }
.timer > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FFB36B); transition: width .25s linear; }
.timer-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.result { border-radius: var(--radius); padding: 28px 18px; text-align: center; }
.result.ok { background: rgba(25,195,125,.14); border: 1px solid rgba(25,195,125,.4); }
.result.ko { background: rgba(255,122,26,.10); border: 1px solid rgba(255,122,26,.35); }
.result .pts { font-family: var(--head); font-size: 44px; font-weight: 800; color: var(--ok); margin-top: 6px; }
.chip-ans { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 22px; color: #fff; vertical-align: middle; margin: 0 4px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 14px; color: var(--muted); font-weight: 600; }
.team-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-pick button { padding: 18px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-family: var(--head); font-weight: 700; font-size: 16px; }
.team-pick button.on.A { border-color: var(--blue); background: rgba(47,91,255,.18); }
.team-pick button.on.B { border-color: var(--orange); background: rgba(255,122,26,.16); }
.err { color: #ffb3bd; font-size: 14px; min-height: 18px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 520px; background: var(--bg2); border-radius: 22px 22px 0 0; padding: 22px 16px 28px; border-top: 1px solid var(--line); }
.sheet h3 { margin-bottom: 14px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* ============ SCREEN ============ */
.screen { position: fixed; inset: 0; background: #000; overflow: hidden; cursor: none; }
.screen .stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: all .5s ease; }
.screen .stage img, .screen .stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.screen .stage .missing { color: #556; font-family: var(--head); font-size: 3vw; text-align: center; }
.screen.split .stage { right: 40%; }
.s-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2.2vw; padding: 1.4vw 2.4vw; background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.0)); font-family: var(--head); }
.s-count { font-size: 2.2vw; font-weight: 700; }
.s-count b { color: var(--orange); font-size: 3vw; }
.s-clock { width: 6vw; height: 6vw; position: relative; flex: none; }
.s-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.s-clock span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2vw; font-weight: 800; }
.s-teams { margin-left: auto; display: flex; gap: 1.6vw; }
.s-team { display: flex; align-items: center; gap: .8vw; font-size: 1.7vw; font-weight: 700; padding: .5vw 1.2vw; border-radius: 99px; background: rgba(255,255,255,.07); }
.s-team i { width: 1vw; height: 1vw; border-radius: 50%; }
.s-team b { font-size: 2.2vw; }
.s-closed { font-size: 2.4vw; font-weight: 800; color: var(--orange); }
.s-hint { font-size: 1.4vw; color: #b9c3e6; font-family: var(--font); }
.s-results { position: absolute; top: 0; bottom: 0; right: 0; width: 40%; background: var(--bg2); padding: 3.4vw 2.6vw; display: flex; flex-direction: column; gap: 1.4vw; transform: translateX(100%); transition: transform .5s ease; font-family: var(--head); }
.screen.split .s-results { transform: none; }
.s-results h3 { font-size: 1.6vw; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rbar { display: grid; grid-template-columns: 4vw 1fr 6vw; align-items: center; gap: 1vw; }
.rbar .l { width: 4vw; height: 4vw; border-radius: 1vw; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.2vw; color: #fff; }
.rbar .track { height: 3vw; background: rgba(255,255,255,.06); border-radius: .8vw; overflow: hidden; }
.rbar .fill { height: 100%; width: 0; border-radius: .8vw; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.rbar .pct { font-size: 2vw; font-weight: 800; text-align: right; }
.rbar.dim { opacity: .35; }
.rbar.win .l { box-shadow: 0 0 0 .35vw #fff; }
.s-teamcards { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1vw; }
.tcard { border-radius: 1.2vw; padding: 1.2vw 1.4vw; background: rgba(255,255,255,.05); border-top: .4vw solid var(--blue); }
.tcard.B { border-top-color: var(--orange); }
.tcard .n { font-size: 1.4vw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .v { font-size: 3.4vw; font-weight: 800; line-height: 1.1; }
.tcard .d { font-size: 1.05vw; color: var(--muted); font-family: var(--font); }
.s-board { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #17224a 0%, #060914 60%); padding: 4vw 6vw; display: grid; grid-template-columns: 1fr 1.1fr; gap: 5vw; opacity: 0; pointer-events: none; transition: opacity .5s; font-family: var(--head); }
.s-board.on { opacity: 1; }
.s-board h2 { font-size: 2vw; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 2vw; }
.duel { display: flex; flex-direction: column; gap: 2vw; justify-content: center; }
.duel .tcard { padding: 2.2vw 2.6vw; border-top-width: .6vw; }
.duel .tcard .n { font-size: 2.4vw; }
.duel .tcard .v { font-size: 7vw; }
.duel .tcard .d { font-size: 1.5vw; }
.top10 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8vw; }
.top10 li { display: grid; grid-template-columns: 3.2vw 1.2vw 1fr auto; align-items: center; gap: 1vw; font-size: 2vw; font-weight: 700; padding: .7vw 1.2vw; border-radius: 1vw; background: rgba(255,255,255,.05); }
.top10 li .r { color: var(--muted); }
.top10 li:nth-child(1) .r { color: var(--orange); }
.top10 li i { width: 1.1vw; height: 1.1vw; border-radius: 50%; }
.top10 li .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-start { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); cursor: pointer; text-align: center; padding: 20px; z-index: 30; }
.s-start .brand { font-size: 64px; }
.s-start p { color: var(--muted); margin: 0; }

/* ============ DJ ============ */
.dj { max-width: 1100px; margin: 0 auto; padding: 14px 16px 60px; }
.dj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dj-head .brand { font-size: 22px; }
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 5px; border-radius: 14px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 9px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
.tabs button.on { background: var(--card); color: var(--text); }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumb { background: #000; border-radius: 12px; aspect-ratio: 16/9; overflow: hidden; position: relative; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .tag { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.7); }
.thumb .missing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #556; font-size: 13px; text-align: center; padding: 6px; }
.caption { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; font-size: 15px; }
.pill { padding: 5px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.pill.open { background: rgba(255,122,26,.18); border-color: var(--orange); color: #FFC08F; }
.pill.reveal { background: rgba(25,195,125,.15); border-color: var(--ok); color: #9EF0C9; }
.next { width: 100%; padding: 26px 18px; font-size: 24px; font-family: var(--head); font-weight: 800; border-radius: 18px; background: var(--orange); color: #1a0d00; box-shadow: 0 6px 0 #a64c0b; }
.next:active { transform: translateY(3px); box-shadow: 0 3px 0 #a64c0b; }
.next small { display: block; font-family: var(--font); font-size: 13px; font-weight: 600; opacity: .75; margin-top: 4px; }
.ctrl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ctrl .btn { padding: 12px 6px; font-size: 14px; }
.ctrl .btn.on { background: var(--blue); border-color: var(--blue); }
.teamctl { display: grid; gap: 10px; }
.teamctl .t { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border-left: 5px solid var(--blue); }
.teamctl .t.B { border-left-color: var(--orange); }
.teamctl .t .sc { font-family: var(--head); font-weight: 800; font-size: 26px; text-align: right; }
.teamctl .t .sub { font-size: 12px; color: var(--muted); }
.teamctl .btns { grid-column: 1 / -1; display: flex; gap: 6px; }
.teamctl .btns .btn { flex: 1; padding: 9px 4px; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kbd { font-size: 12px; color: var(--muted); margin-top: 10px; }
.kbd kbd { background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-family: inherit; }
.section { margin-top: 14px; }
.section h3 { font-size: 16px; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.slide-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.srow { display: grid; grid-template-columns: 34px 120px 1fr; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 8px; }
.srow .num { font-family: var(--head); font-weight: 800; color: var(--muted); text-align: center; }
.srow .thumb { border-radius: 8px; }
.srow .opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.srow select, .srow input { width: auto; padding: 8px 10px; font-size: 14px; }
.srow input.vid { min-width: 160px; flex: 1; }
.srow input.num-in { width: 72px; }
@media (max-width: 640px) { .srow { grid-template-columns: 26px 1fr; } .srow .thumb { display: none; } }
textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; min-height: 90px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.login { max-width: 380px; margin: 12vh auto; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: 14px; }

/* Printable room cards */
.cards { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; color: #000; }
  body.print-cards > *:not(.cards) { display: none !important; }
  body.print-cards .cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .rcard { border: 1px dashed #999; border-radius: 4mm; padding: 6mm; height: 66mm; display: grid; grid-template-columns: 38mm 1fr; gap: 5mm; align-items: center; break-inside: avoid; font-family: var(--font); }
  .rcard .qr img, .rcard .qr canvas { width: 38mm !important; height: 38mm !important; }
  .rcard .t1 { font-family: var(--head); font-weight: 800; font-size: 16pt; }
  .rcard .t1 b { color: #FF7A1A; }
  .rcard .room { font-size: 10pt; color: #555; margin: 1mm 0 3mm; }
  .rcard p { margin: 0 0 2mm; font-size: 9pt; line-height: 1.35; }
}

/* ============ GENERATED SLIDES (container units: place inside .slidebox) ============ */
.fitbox { position: absolute; inset: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
.slidebox { width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; container-type: inline-size; position: relative; background: #000; overflow: hidden; }
.slidebox > img, .slidebox > video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl { position: absolute; inset: 0; padding: 7cqw 6cqw 5cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--head); color: #fff;
  background: radial-gradient(90% 70% at 50% 0%, #121c45 0%, #000 70%); }
.sl-brand { position: absolute; left: 4cqw; top: 3.4cqw; font-weight: 800; font-size: 2.3cqw; letter-spacing: .08em; }
.sl-brand b { color: var(--orange); } .sl-brand span { color: #9AA6C8; font-weight: 600; font-size: .8em; }
.sl-kick { color: var(--orange); font-weight: 700; font-size: 2.2cqw; letter-spacing: .12em; margin-bottom: 1.6cqw; }
.sl-title { font-weight: 800; font-size: 4.2cqw; line-height: 1.15; max-width: 88cqw; }
.sl-title.big { font-size: 6.4cqw; }
.sl-text { margin-top: 2.6cqw; font-family: var(--font); font-weight: 600; font-size: 2.6cqw; line-height: 1.5; color: #C9D2F0; max-width: 80cqw; white-space: normal; }
.sl-q { justify-content: flex-start; padding-top: 8cqw; padding-bottom: 10cqw; }
.sl-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw 3cqw; width: 84cqw; margin-top: auto; }
.sl-a { display: flex; align-items: center; gap: 2cqw; background: #121A33; border: .25cqw solid; border-radius: 1.6cqw; padding: 1.1cqw; text-align: left; min-height: 8cqw; }
.sl-a b { flex: none; width: 5.8cqw; height: 5.8cqw; border-radius: 1.2cqw; display: flex; align-items: center; justify-content: center; font-size: 3.6cqw; }
.sl-a span { font-size: 2.8cqw; font-weight: 700; line-height: 1.15; }
.sl-a.A { border-color: var(--A); } .sl-a.A b { background: var(--A); }
.sl-a.B { border-color: var(--B); } .sl-a.B b { background: var(--B); }
.sl-a.C { border-color: var(--C); } .sl-a.C b { background: var(--C); }
.sl-a.D { border-color: var(--D); } .sl-a.D b { background: var(--D); }
.sl-duel { display: flex; align-items: center; gap: 3cqw; width: 88cqw; }
.sl-team { flex: 1; border-radius: 2cqw; padding: 4cqw 2cqw; background: rgba(47,91,255,.18); border-top: .7cqw solid var(--blue); }
.sl-team.B { background: rgba(255,122,26,.16); border-top-color: var(--orange); }
.sl-team .n { font-size: 5cqw; font-weight: 800; line-height: 1.1; }
.sl-team .s { font-family: var(--font); font-size: 1.8cqw; color: #C9D2F0; margin-top: 1cqw; }
.sl-vs { font-size: 4cqw; font-weight: 800; color: #9AA6C8; }
.sl-black { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; color: #333; font-size: 2cqw; font-family: var(--font); }
.sl-missing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #667; font-size: 2.4cqw; font-family: var(--font); padding: 4cqw; }

/* Prize views on the big screen */
.prize { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #17224a 0%, #060914 60%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vw; font-family: var(--head); text-align: center; opacity: 0; pointer-events: none; transition: opacity .6s; }
.prize.on { opacity: 1; }
.prize .kick { color: var(--orange); font-size: 2.2vw; letter-spacing: .14em; font-weight: 700; }
.prize .win { font-size: 8vw; font-weight: 800; line-height: 1; }
.prize .sub { font-size: 2vw; color: var(--muted); font-family: var(--font); }
.podium { display: flex; align-items: flex-end; gap: 2vw; margin-top: 2vw; }
.podium .p { width: 25vw; border-radius: 1.4vw 1.4vw 0 0; background: rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: flex-start; padding: 1.6vw 1vw; }
.podium .p .r { font-size: 4vw; font-weight: 800; }
.podium .p .n { font-size: 2.2vw; font-weight: 800; margin-top: .6vw; line-height: 1.15; overflow-wrap: anywhere; }
.podium .p .s { font-size: 1.6vw; color: var(--muted); }
.podium .p1 { height: 26vw; border-top: .5vw solid var(--orange); }
.podium .p2 { height: 20vw; border-top: .5vw solid #C9D2F0; }
.podium .p3 { height: 15vw; border-top: .5vw solid #B87333; }

/* ============ RUNDOWN EDITOR ============ */
.rd-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.rd-head .field { margin: 0; }
.rd-head .field input { width: 110px; }
.rd-sum { color: var(--muted); font-size: 14px; margin-left: auto; }
.cue { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.cue.live { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.cue-row { display: grid; grid-template-columns: 34px 54px 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 10px; cursor: pointer; }
.cue-row .n { font-family: var(--head); font-weight: 800; color: var(--muted); text-align: center; }
.cue-row .tm { font-variant-numeric: tabular-nums; font-size: 14px; }
.cue-row .du { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.cue-row .ti { min-width: 0; }
.cue-row .ti b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue-row .ti small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cue-row .acts { display: flex; gap: 4px; }
.cue-row .acts .btn { padding: 6px 8px; font-size: 13px; border-radius: 8px; }
.cue-edit { border-top: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
@media (max-width: 860px) { .cue-edit { grid-template-columns: 1fr; } .cue-row { grid-template-columns: 26px 46px 1fr auto; } .cue-row .du { display: none; } }
.cue-edit .prev { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.cue-edit h4 { margin: 14px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-grid textarea { min-height: 64px; font-size: 14px; }
.ans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ans-grid label { display: flex; align-items: center; gap: 8px; }
.ans-grid label b { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.dirty { color: var(--orange); font-weight: 700; font-size: 13px; }
.thumb .fitbox { position: absolute; inset: 0; }

/* ============ CREW / RÉGIE ============ */
.crew { max-width: 1000px; margin: 0 auto; padding: 14px 16px 60px; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.roles button { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--muted); }
.roles button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.live-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
@media (max-width: 760px) { .live-cards { grid-template-columns: 1fr; } }
.lc { border-radius: 16px; padding: 16px; background: var(--bg2); border: 1px solid var(--line); }
.lc.now { border-color: var(--orange); background: rgba(255,122,26,.07); }
.lc .lab { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--orange); }
.lc.stby .lab { color: #8FB0FF; }
.lc h2 { font-size: 24px; margin: 6px 0 4px; }
.lc .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.lc .nt { margin-top: 8px; }
.lc .nt b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lc .nt div { white-space: pre-wrap; font-size: 17px; line-height: 1.4; }
.prompter .nt div { font-size: 28px; line-height: 1.35; }
.crew-list { margin-top: 18px; }
.crew-list .it { display: grid; grid-template-columns: 30px 52px 1fr; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.crew-list .it.past { opacity: .45; }
.crew-list .it.now { background: rgba(255,122,26,.08); border-radius: 10px; }
.crew-list .it .n { font-family: var(--head); font-weight: 800; color: var(--muted); }
.crew-list .it .tm { font-variant-numeric: tabular-nums; font-size: 14px; }
.crew-list .it .d { font-size: 14px; white-space: pre-wrap; color: #D7DDF5; margin-top: 4px; }
.crew-list .it .d i { color: var(--muted); font-style: normal; font-weight: 700; }
.answer-tag { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; font-weight: 800; color: #fff; }
@media print {
  .crew .noprint, .demo-banner { display: none !important; }
  .crew { max-width: none; padding: 0; }
  .crew, .crew * { color: #000 !important; background: #fff !important; box-shadow: none !important; }
  .crew-list .it { break-inside: avoid; border-bottom: 1px solid #ccc; opacity: 1 !important; }
  .print-head { display: block !important; margin-bottom: 8px; }
}
.print-head { display: none; }

a.btn { text-decoration: none; color: inherit; }

.langsel { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 10px; background: var(--card); }
.rcard p { font-size: 7.5pt !important; margin: 0 0 1mm !important; }
