/* JustPlay · Portal de casting — neo-brutalista (mismo sistema que justplaycr.com/casting) */
:root {
  --o: #FF6A00; --o-text: #B84A00; --y: #FFC646; --p: #A45CFF; --g: #1FA45B; --red: #E5484D;
  --bg: #F3F3F1; --surface: #FFFFFF; --alt: #E9E9E6; --text: #141414; --muted: #5F5F5B; --line: #141414;
  --grad: linear-gradient(115deg, #FFC646 0%, #FF8A1F 30%, #FF6A00 55%, #FF5A36 75%, #A45CFF 100%);
  --fd: "Anybody", "Arial Black", Impact, sans-serif;
  --ft: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --fm: "Courier Prime", "Courier New", Courier, monospace;
  --b: 3px; --r: 16px; --sh: 5px 5px 0 var(--line); --sh-s: 3px 3px 0 var(--line); --sh-l: 8px 8px 0 var(--line);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --l1: #FF5A5F; --l2: #FF8A3D; --l3: #C9C24B; --l4: #E6DE6E; --l5: #D6D6CF;
  --l6: #7FE0A6; --l7: #1FA45B; --l8: #4FD3E3; --l9: #A45CFF; --l10: var(--grad);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1A19; --surface: #242422; --alt: #2E2E2B; --text: #F3F3F1; --muted: #B3B3AD; --line: #F3F3F1; --o-text: #FF8A3D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1A19; --surface: #242422; --alt: #2E2E2B; --text: #F3F3F1; --muted: #B3B3AD; --line: #F3F3F1; --o-text: #FF8A3D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.4px);
  background-size: 18px 18px;
  color: var(--text); font-family: var(--ft); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; display: block; }
.boot, .fatal { padding: 60px 16px; text-align: center; font-family: var(--fd); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 22px; }
.mono { font-family: var(--fm); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Niveles de la escalera ─────────────────────────── */
.l1 { --c: var(--l1); } .l2 { --c: var(--l2); } .l3 { --c: var(--l3); } .l4 { --c: var(--l4); } .l5 { --c: var(--l5); }
.l6 { --c: var(--l6); } .l7 { --c: var(--l7); } .l8 { --c: var(--l8); } .l9 { --c: var(--l9); } .l10 { --c: var(--l10); }
.l0 { --c: var(--alt); }

/* ── Barra superior ─────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: var(--b) solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand b { font-family: var(--fd); font-weight: 900; font-size: 22px; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.stk { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 2px solid var(--line); border-radius: 999px; background: var(--y); color: #141414; font-family: var(--fd); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; box-shadow: 2px 2px 0 var(--line); white-space: nowrap; }
.brand .stk { transform: rotate(-4deg); }
.stk.o { background: var(--o); } .stk.p { background: var(--p); color: #fff; } .stk.g { background: var(--g); color: #fff; }
.stk.r { background: var(--red); color: #fff; } .stk.w { background: var(--surface); color: var(--text); } .stk.ink { background: var(--text); color: var(--bg); }
.stk.gray { background: #BDBDB6; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-family: var(--fd); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: -.01em; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.nav a:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-s); }
.nav a.on { background: var(--text); color: var(--bg); }
.who { display: flex; align-items: center; gap: 10px; flex: none; }
.sync { display: flex; align-items: center; gap: 6px; font-family: var(--fm); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--g); border: 2px solid var(--line); }
.dot.off { background: var(--red); }
.pend { background: var(--red); color: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0 7px; font-family: var(--ft); font-weight: 800; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--y); color: #141414; border: var(--b) solid var(--line); font-family: var(--fd); font-weight: 900; font-size: 15px; box-shadow: 2px 2px 0 var(--line); }
.who button { background: none; border: 0; padding: 0; }

main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 130px; }
main.narrow { max-width: 780px; }

/* ── Títulos ────────────────────────────────────────── */
.h-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.h1 { font-family: var(--fd); font-weight: 900; font-stretch: 104%; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; font-size: clamp(38px, 7vw, 64px); margin: 0; }
.h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; }
.kicker { font-family: var(--fm); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.h2 { font-family: var(--fd); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-size: 20px; line-height: 1; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h2 .opt { font-family: var(--fm); font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* ── Botones y campos ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: var(--b) solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--ft); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; box-shadow: 4px 4px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn:disabled { opacity: .45; transform: none; box-shadow: 2px 2px 0 var(--line); cursor: not-allowed; }
.btn.o { background: var(--o); color: #141414; }
.btn.y { background: var(--y); color: #141414; }
.btn.grad { background: var(--grad); color: #141414; }
.btn.ink { background: var(--text); color: var(--bg); }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 14px; box-shadow: var(--sh-s); }
.btn.block { width: 100%; min-height: 56px; font-size: 18px; }
.btn.icon { width: 48px; padding: 0; }
.btn.sm.icon { width: 38px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-family: var(--fm); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.input, textarea, select.input { width: 100%; padding: 12px 14px; border: var(--b) solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; box-shadow: inset 3px 3px 0 color-mix(in srgb, var(--line) 10%, transparent); }
.input:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--o); }
textarea { min-height: 100px; resize: vertical; line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--red); font-weight: 700; min-height: 22px; margin: 10px 0; font-size: 14px; }

.seg { display: inline-flex; flex-wrap: wrap; border: var(--b) solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--sh-s); }
.seg button { border: 0; border-right: 2px solid var(--line); background: none; padding: 8px 13px; font-family: var(--fd); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--text); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .1s var(--ease), box-shadow .1s var(--ease); }
.chip:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--line); }
.chip.on { background: var(--y); color: #141414; box-shadow: 2px 2px 0 var(--line); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 240px; }

.card { background: var(--surface); border: var(--b) solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh); }
.empty-state { text-align: center; padding: 40px 18px; border: var(--b) dashed var(--line); border-radius: var(--r); background: var(--surface); font-weight: 600; }
.empty-state .btn { margin-top: 16px; }

/* ── Login ─────────────────────────────────────────── */
.login { max-width: 460px; margin: 0 auto; padding: 48px 16px; }
.login .h1 { font-size: clamp(54px, 15vw, 84px); }
.login .lead { font-weight: 600; margin: 16px 0 26px; }
.userpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.userpick button { padding: 16px 10px; border: var(--b) solid var(--line); border-radius: 14px; background: var(--surface); font-family: var(--fd); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: -.02em; box-shadow: 4px 4px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.userpick button small { display: block; font-family: var(--fm); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.userpick button.on { background: var(--o); color: #141414; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.userpick button.on small { color: #141414; }
.pin { width: 100%; padding: 16px; font-size: 30px; letter-spacing: 12px; text-align: center; border: var(--b) solid var(--line); border-radius: 14px; background: var(--surface); font-family: var(--fm); font-weight: 700; box-shadow: 4px 4px 0 var(--line); }
.pin:focus { outline: none; box-shadow: 4px 4px 0 var(--o); }

/* ── Lista (calificar) ─────────────────────────────── */
.progress { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; font-family: var(--fm); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.bar { flex: 1; height: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-right: 2px solid var(--line); }
.bar i[style*="width:0"] { border-right: 0; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pitem { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: var(--b) solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: 4px 4px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.pitem:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.pnum { min-width: 58px; height: 46px; display: grid; place-items: center; background: var(--y); color: #141414; border: 2px solid var(--line); border-radius: 10px; font-family: var(--fd); font-weight: 900; font-size: 20px; letter-spacing: -.03em; }
.pnum.none { background: var(--alt); color: var(--muted); }
.pmain { flex: 1; min-width: 0; }
.pname { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-weight: 600; }
.clipt { font-family: var(--fm); font-weight: 700; font-size: 12px; background: var(--alt); color: var(--text); border: 2px solid var(--line); padding: 0 6px; border-radius: 6px; }
.score { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--fd); font-weight: 900; font-size: 19px; background: var(--c); color: #141414; border: var(--b) solid var(--line); flex: none; }
.score.empty { background: var(--surface); border-style: dashed; color: var(--muted); }

/* ── Ficha para calificar ──────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fd); font-weight: 800; font-size: 14px; text-transform: uppercase; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--o-text); }
.phead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.bignum { min-width: 86px; height: 76px; padding: 0 10px; display: grid; place-items: center; background: var(--y); color: #141414; border: var(--b) solid var(--line); border-radius: 14px; font-family: var(--fd); font-weight: 900; font-size: 40px; letter-spacing: -.05em; box-shadow: var(--sh); transform: rotate(-2deg); }
.bignum.none { background: var(--alt); color: var(--muted); }
.phead h1 { font-family: var(--fd); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; font-size: clamp(26px, 5vw, 40px); margin: 0; }
.phead .sub { color: var(--muted); font-weight: 600; margin-top: 6px; }
.phead .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; }
.rung { aspect-ratio: 1; width: 100%; max-width: 66px; justify-self: center; border-radius: 50%; border: var(--b) solid var(--line); background: var(--c); color: #141414; font-family: var(--fd); font-weight: 900; font-size: 24px; box-shadow: 3px 3px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease), opacity .12s; }
.rung:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.ladder.has .rung:not(.on) { opacity: .35; }
.rung.on { transform: translate(-3px, -3px) scale(1.08); box-shadow: 6px 6px 0 var(--line); opacity: 1; }
.rlabels { display: none; }
.rinfo { margin-top: 18px; padding: 16px 18px; border: var(--b) solid var(--line); border-radius: 14px; background: var(--c); color: #141414; box-shadow: var(--sh-s); }
.rinfo.l0 { background: var(--alt); color: var(--text); font-weight: 600; text-align: center; }
.rinfo .t { display: flex; align-items: baseline; gap: 12px; }
.rinfo .n { font-family: var(--fd); font-weight: 900; font-size: 46px; line-height: .85; letter-spacing: -.05em; }
.rinfo .lbl { font-family: var(--fd); font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: -.03em; }
.rinfo .d { font-weight: 600; margin: 8px 0 6px; line-height: 1.4; }
.rinfo .q { font-family: var(--fm); font-weight: 700; font-size: 17px; }

.cliprow { display: flex; gap: 10px; }
.cliprow .input { font-family: var(--fm); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: 2px; }
.cliplist { margin-top: 12px; }
.clipchip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-weight: 700; font-size: 16px; background: var(--y); color: #141414; border: 2px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 12px; box-shadow: 2px 2px 0 var(--line); }
.clipchip button { border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; width: 28px; height: 28px; font-weight: 800; }
.hint { color: var(--muted); font-size: 13px; font-weight: 600; margin: 12px 0 0; }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: var(--b) solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.savebar-in { max-width: 780px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.savebar .btn.o { flex: 1; min-height: 56px; font-size: 18px; font-family: var(--fd); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }

.tr { display: flex; gap: 12px; padding: 12px 0; border-top: 2px solid var(--line); }
.tr:first-of-type { border-top: 0; }
.tr .score { width: 40px; height: 40px; font-size: 16px; }
.tr .who-n { font-weight: 800; }
.tr .tnotes { font-size: 14px; margin-top: 4px; white-space: pre-wrap; line-height: 1.45; }
.tr .roles { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.blind { text-align: center; font-weight: 600; padding: 6px 0; }
.blind .btn { margin-top: 12px; }
.warn { color: var(--o-text); font-weight: 800; }
.team-avg { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.team-avg .score { width: 62px; height: 62px; font-size: 24px; }
.team-avg .lbl { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: -.03em; }

/* ── Revisión: ranking ─────────────────────────────── */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.filters .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.flabel { font-family: var(--fm); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rrow { display: grid; grid-template-columns: 40px 62px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: var(--b) solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: 4px 4px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.rrow:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.rrow.top3 .rpos { background: var(--o); color: #141414; }
.rpos { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--fd); font-weight: 900; font-size: 17px; background: var(--surface); }
.ravg { width: 62px; height: 62px; border-radius: 14px; background: var(--c); color: #141414; border: var(--b) solid var(--line); display: grid; place-items: center; font-family: var(--fd); font-weight: 900; font-size: 23px; letter-spacing: -.04em; }
.rname { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rname em { font-style: normal; font-family: var(--fd); font-weight: 900; margin-right: 6px; color: var(--o-text); }
.rmeta { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mini { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px 1px 2px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); }
.mini b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #141414; border: 1.5px solid var(--line); font-size: 11px; font-family: var(--fd); font-weight: 900; }
.mini.role { padding: 1px 9px; background: var(--alt); }
.rthumb { width: 132px; aspect-ratio: 16 / 9; border: var(--b) solid var(--line); border-radius: 10px; overflow: hidden; background: var(--alt); position: relative; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.unrated { margin-top: 20px; text-align: center; font-family: var(--fm); font-weight: 700; font-size: 13px; text-transform: uppercase; }

/* ── Revisión: comparar ────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ccard { background: var(--surface); border: var(--b) solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; }
.cthumb { position: relative; aspect-ratio: 16 / 9; background: var(--alt); border-bottom: var(--b) solid var(--line); overflow: hidden; }
.cthumb img, .cthumb video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.cthumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; }
.cthumb .play span { width: 58px; height: 58px; border-radius: 50%; background: var(--y); border: var(--b) solid var(--line); display: grid; place-items: center; box-shadow: var(--sh-s); font-size: 20px; color: #141414; }
.cthumb .tl { position: absolute; left: 10px; top: 10px; }
.cthumb .tr2 { position: absolute; right: 10px; top: 10px; }
.cbody { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; flex: 1; }
.cbody .top-line { display: flex; gap: 12px; align-items: center; }
.cbody .ravg { width: 54px; height: 54px; font-size: 20px; flex: none; }
.cbody .btn { margin-top: auto; }

/* ── Ficha de revisión ─────────────────────────────── */
.rvnav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rvnav .pos { font-family: var(--fm); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.rvnav .sp { flex: 1; }
.rv { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.player { padding: 0; overflow: hidden; }
.player .stage { background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: var(--b) solid var(--line); }
.player .stage video { width: 100%; height: 100%; object-fit: contain; }
.player .stage .msg { color: #F3F3F1; text-align: center; padding: 20px; font-weight: 700; }
.player .meta { padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: var(--b) solid var(--line); }
.player .meta .fname { font-family: var(--fm); font-weight: 700; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cliptabs { display: flex; gap: 10px; padding: 14px 16px; overflow-x: auto; scrollbar-width: thin; }
.ctab { flex: none; width: 150px; border: var(--b) solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); padding: 0; text-align: left; box-shadow: var(--sh-s); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.ctab:hover { transform: translate(-1px, -1px); }
.ctab.on { box-shadow: 4px 4px 0 var(--o); outline: 3px solid var(--o); outline-offset: -3px; }
.ctab .th { aspect-ratio: 16 / 9; background: var(--alt); border-bottom: 2px solid var(--line); overflow: hidden; }
.ctab .th img { width: 100%; height: 100%; object-fit: cover; }
.ctab .nm { font-family: var(--fm); font-weight: 700; font-size: 12px; padding: 5px 8px; display: flex; justify-content: space-between; gap: 4px; }
.idrow { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.idrow .bignum { min-width: 70px; height: 62px; font-size: 30px; }
.idrow h1 { font-family: var(--fd); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; font-size: 28px; line-height: .95; margin: 0; }
.idrow .sub { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
.scorebig { display: flex; gap: 16px; align-items: center; padding: 14px; border: var(--b) solid var(--line); border-radius: 14px; background: var(--c); color: #141414; margin-bottom: 14px; }
.scorebig .n { font-family: var(--fd); font-weight: 900; font-size: 54px; line-height: .85; letter-spacing: -.06em; }
.scorebig .lbl { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: -.03em; line-height: 1; }
.scorebig .q { font-family: var(--fm); font-weight: 700; font-size: 14px; margin-top: 4px; }
.scorebig.l0 { background: var(--alt); color: var(--text); }
.dist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; align-items: end; height: 54px; margin: 6px 0 4px; }
.dist i { display: block; background: var(--c); border: 2px solid var(--line); border-radius: 4px 4px 0 0; min-height: 4px; }
.dist i.z { background: transparent; border-color: color-mix(in srgb, var(--line) 25%, transparent); border-bottom-color: var(--line); }
.distl { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; font-family: var(--fm); font-size: 11px; font-weight: 700; text-align: center; }
.rolebars { display: grid; gap: 8px; }
.rolebar { display: grid; grid-template-columns: 130px 1fr 26px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.rolebar .b { height: 14px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); }
.rolebar .b i { display: block; height: 100%; background: var(--p); }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.st-btn { border: var(--b) solid var(--line); border-radius: 999px; padding: 8px 14px; font-family: var(--fd); font-weight: 900; font-size: 14px; text-transform: uppercase; background: var(--surface); box-shadow: var(--sh-s); }
.st-btn.on.callback { background: var(--y); color: #141414; } .st-btn.on.elegido { background: var(--g); color: #fff; }
.st-btn.on.reserva { background: var(--p); color: #fff; } .st-btn.on.descartado { background: #BDBDB6; color: #141414; }
.st-btn.on.none { background: var(--text); color: var(--bg); }
.decided { padding: 12px 14px; border: var(--b) solid var(--line); border-radius: 12px; background: var(--alt); font-weight: 600; }

/* ── Fichas (mesa de inscripción) ──────────────────── */
.fx { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.fx-form { position: sticky; top: 90px; }
.fx-num { font-family: var(--fd); font-weight: 900; font-size: 24px; }
.pitem.fx-new { background: color-mix(in srgb, var(--y) 30%, var(--surface)); }
@media (max-width: 860px) { .fx { grid-template-columns: 1fr; } .fx-form { position: static; } }

/* ── Metraje ───────────────────────────────────────── */
.wbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 18px; border: var(--b) solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--sh-s); flex-wrap: wrap; }
.wbar .bar { min-width: 160px; }
.wbar .txt { font-family: var(--fm); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fcard { background: var(--surface); border: var(--b) solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 4px 4px 0 var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease); text-align: left; padding: 0; display: flex; flex-direction: column; }
.fcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.fthumb { position: relative; aspect-ratio: 16 / 9; background: var(--alt); border-bottom: var(--b) solid var(--line); overflow: hidden; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fdur { position: absolute; right: 8px; bottom: 8px; background: #141414; color: #fff; font-family: var(--fm); font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 5px; }
.fthumb .tl { position: absolute; left: 8px; top: 8px; }
.fbody { padding: 10px 12px 12px; display: grid; gap: 6px; }
.fname { font-family: var(--fm); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fdir { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.who-chip em { font-style: normal; font-family: var(--fd); font-weight: 900; color: var(--o-text); }
.thumbph { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--alt) 0 12px, var(--surface) 12px 24px); font-family: var(--fm); font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--muted); text-align: center; padding: 8px; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.assign-list { max-height: 260px; overflow: auto; border: var(--b) solid var(--line); border-radius: 12px; margin-top: 10px; }
.assign-list button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--line); background: var(--surface); text-align: left; font-weight: 700; }
.assign-list button:last-child { border-bottom: 0; }
.assign-list button:hover { background: var(--y); color: #141414; }
.assign-list button em { font-style: normal; font-family: var(--fd); font-weight: 900; min-width: 38px; }

/* ── Modal y avisos ────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { width: 100%; max-width: 540px; max-height: 94vh; overflow: auto; background: var(--surface); border: var(--b) solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .2s var(--ease); }
.modal.wide { max-width: 980px; }
.modal h2 { font-family: var(--fd); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; font-size: 30px; line-height: .95; margin: 0 0 16px; }
.modal .actions { display: flex; gap: 12px; margin-top: 18px; }
.modal .actions .btn.o { flex: 1; }
.modal .x { float: right; }
.mplayer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.mplayer .stage { background: #000; border: var(--b) solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.mplayer .stage video { width: 100%; height: 100%; object-fit: contain; }
.mplayer .stage .msg { color: #F3F3F1; text-align: center; padding: 20px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 0 0 14px; }
.kv dt { font-family: var(--fm); font-weight: 700; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 100px; z-index: 70; display: grid; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: var(--surface); border: var(--b) solid var(--line); padding: 12px 16px; border-radius: 12px; font-weight: 700; box-shadow: var(--sh); animation: up .2s var(--ease); pointer-events: auto; }
.toast.ok { background: var(--g); color: #fff; }
.toast.bad { background: var(--red); color: #fff; }

/* ── Responsive ────────────────────────────────────── */
@media (min-width: 760px) {
  .ladder { grid-template-columns: repeat(10, 1fr); gap: 8px; }
  .rlabels { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 10px; }
  .rlabels span { font-family: var(--fm); font-size: 11px; font-weight: 700; text-align: center; line-height: 1.15; text-transform: uppercase; color: var(--muted); }
  .rlabels span.on { color: var(--text); }
  .modal-bg { align-items: center; padding: 20px; }
  .modal { border-radius: 22px; border-bottom: var(--b) solid var(--line); box-shadow: var(--sh-l); padding: 26px; }
}
@media (max-width: 980px) {
  .rv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rv > div { display: contents; }
  #rvplayer { order: 1; } #rvid { order: 2; } #rvdec { order: 3; } #rvteam { order: 4; } #rvroles { order: 5; }
  .mplayer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1; text-align: center; padding: 8px 10px; font-size: 13px; }
  .who { margin-left: auto; }
  .rrow { grid-template-columns: 34px 54px 1fr; gap: 10px; padding: 10px 12px; }
  .rpos { width: 34px; height: 34px; font-size: 15px; }
  .ravg { width: 54px; height: 54px; font-size: 20px; }
  .rthumb { display: none; }
  .rolebar { grid-template-columns: 100px 1fr 22px; }
  .sync .txt { display: none; }
}
@media (max-width: 400px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fname { font-size: 13px; }
  .pnum { min-width: 50px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
