/* Panel de ligas: televisoras y YouTube por partido.
   Admin clasico: claro, barra lateral, chips con casillas, Geist, acento azul. */
:root {
  --bg: #f6f7f9;
  --card: #fff;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --acc: #2563eb;
  --acc-ink: #1d4ed8;
  --acc-soft: #eff4ff;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font: 400 14px/1.5 Geist, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--acc); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- layout */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.liga { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.liga__logo { flex: none; width: 42px; height: 42px; padding: 5px; border-radius: 8px; background: #0f1b2d; object-fit: contain; }
.liga__logo--empty { display: grid; place-items: center; color: #fff; font-weight: 600; }
.liga__txt { min-width: 0; }
.liga b { display: block; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liga select { max-width: 100%; border: 0; background: none; color: var(--acc); font-size: 12px; font-weight: 500; padding: 0; cursor: pointer; }
.menu { display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.menu a svg { flex: none; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.menu a:hover { background: #f2f4f7; color: var(--ink); }
.menu a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.side__foot { margin-top: auto; display: grid; gap: 12px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.user { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; min-width: 0; }
.user i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 3px 9px; font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.logout { font-size: 12px; color: var(--ink-3); text-decoration: none; font-weight: 500; }
.logout:hover { color: var(--ink); }

main { padding: 28px 32px 80px; max-width: 1100px; width: 100%; }

/* ---------- header */
.head { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.head__titles { min-width: 0; }
.eyebrow { margin: 0 0 2px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.head h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head .sub { margin: 2px 0 0; color: var(--ink-2); }
.tag { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); letter-spacing: 0; }
.pager { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pager__hint { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.btn--refresh svg { flex: none; }
.pager select { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #f2f4f7; }
.btn[aria-disabled="true"], .btn:disabled { color: var(--ink-3); pointer-events: none; background: transparent; opacity: .5; }
.btn--primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--primary:hover { background: var(--acc-ink); }
.btn--danger { color: var(--bad); }
.btn--danger:hover { background: var(--bad-soft); }
.btn--sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn--icon { width: 32px; padding: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- defaults */
.defaults { margin-top: 22px; padding: 16px 18px; display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 12px 20px; align-items: start; }
.defaults h2 { margin: 0; font-size: 14px; font-weight: 600; }
.defaults p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.defaults__body { display: grid; gap: 8px; }

/* ---------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: var(--line-2); color: var(--ink); }
.chip__box { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); background: #fff; }
.chip__logo { box-sizing: content-box; height: 16px; width: auto; max-width: 52px; padding: 3px 5px; border-radius: 4px; background: #0f1b2d; object-fit: contain; }
.chip[aria-pressed="true"] { border-color: var(--acc); color: var(--acc-ink); background: var(--acc-soft); }
.chip[aria-pressed="true"] .chip__box { background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--acc); }
.chip.is-inherited[aria-pressed="true"] { border-style: dashed; background: var(--card); color: var(--ink-2); }
.chip.is-inherited[aria-pressed="true"] .chip__box { background-color: #84adff; border-color: #84adff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip__n { font-size: 11px; font-weight: 600; color: var(--acc); font-family: 'Geist Mono', monospace; }
.hint { color: var(--ink-3); font-size: 12px; margin: 0; }

/* ---------- matches */
.day { margin: 30px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.day::first-letter { text-transform: uppercase; }
.list { overflow: hidden; }
.row { display: grid; grid-template-columns: 76px minmax(220px, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: start; padding: 16px 18px; }
.row + .row { border-top: 1px solid var(--line); }
.row__when .time { font-size: 18px; font-weight: 600; line-height: 1.3; }
.row__when .venue { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.state { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.state--live { color: #d92d20; }
.teams { display: grid; gap: 8px; padding-top: 2px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team img, .team .crest { flex: none; width: 24px; height: 24px; object-fit: contain; }
.team .crest { border-radius: 50%; background: #f2f4f7; }
.team b { font-weight: 600; font-family: 'Geist Mono', monospace; font-size: 13px; min-width: 34px; }
.team span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .score { margin-left: auto; padding-left: 12px; font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.team .score.is-win { color: var(--ink); font-weight: 700; }
.cfg { display: grid; gap: 10px; min-width: 0; }
.cfg__meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; min-height: 22px; }
.badge { padding: 2px 8px; border-radius: 999px; background: #f2f4f7; color: var(--ink-2); font-weight: 500; }
.badge--own { background: var(--acc-soft); color: var(--acc-ink); }
.link { background: none; border: 0; padding: 0; color: var(--acc); cursor: pointer; font-size: 12px; font-weight: 500; }
.link:hover { text-decoration: underline; }
.status { margin-left: auto; color: var(--ink-3); }
.status.is-saved { color: var(--ok); }
.status.is-error { color: var(--bad); }
.yt { position: relative; display: block; }
.yt input { width: 100%; height: 38px; padding: 0 10px 0 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' rx='4' fill='%23ff0033'/%3E%3Cpath d='M8 4l5 3-5 3z' fill='white'/%3E%3C/svg%3E") 11px center/16px no-repeat; }
.yt input:hover { border-color: var(--line-2); }
.yt input[aria-invalid="true"] { border-color: var(--bad); }
.yt__err { color: var(--bad); font-size: 12px; margin: 4px 0 0; }

/* ---------- forms / pages */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.page-head p { margin: 2px 0 0; color: var(--ink-2); }
.tv-list { list-style: none; margin: 0; padding: 0; }
.tv { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; }
.tv + .tv { border-top: 1px solid var(--line); }
.tv__logo { width: 92px; height: 48px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 6px; background: #0f1b2d; }
.tv__logo img { max-height: 34px; object-fit: contain; }
.tv__name { font-weight: 600; }
.tv__meta { color: var(--ink-3); font-size: 12px; display: flex; gap: 4px 12px; flex-wrap: wrap; }
.tv__meta .off { color: var(--bad); font-weight: 500; }
.tv__actions { display: flex; gap: 6px; align-items: center; }
.tv__actions form { margin: 0; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; font-weight: 600; }
.empty p { margin: 0 auto 18px; max-width: 46ch; }
.empty--page { margin-top: 8vh; }
.empty__icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.empty__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }

.form { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-weight: 600; font-size: 13px; }
.field input[type=text], .field input[type=url], .field input[type=email], .field input[type=password] { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; width: 100%; }
.field input[type=file] { font-size: 13px; max-width: 100%; min-width: 0; }
.field .help { color: var(--ink-3); font-size: 12px; margin: 0; }
.field .errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--acc); }
.check b { display: block; font-weight: 600; }
.check small { color: var(--ink-3); }
.logo-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.logo-preview .tv__logo { width: 120px; height: 56px; }
.form__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.flash { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.flash li { padding: 10px 14px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.flash li.error { background: var(--bad-soft); color: var(--bad); }

dialog { border: 0; border-radius: 12px; padding: 22px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 40px rgba(16, 24, 40, .18); }
dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog h2 { margin: 0 0 6px; font-size: 18px; }
dialog p { margin: 0 0 18px; color: var(--ink-2); }
dialog .form__actions { justify-content: flex-end; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: calc(100% - 32px); transform: translateY(16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; transition: opacity .2s ease-out, transform .2s ease-out; }
.toast.is-on { opacity: 1; transform: none; }
.toast.is-error { background: var(--bad); }

/* ---------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; max-width: none; } /* el main del login ocupa todo el ancho, no los 1100px del panel */
.login__card { width: 100%; max-width: 400px; padding: 32px 28px 26px; }
.login__brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.login__brand img { height: 22px; width: auto; }
.login__brand .genius { height: 30px; }
.login__brand i { width: 1px; height: 22px; background: var(--line-2); }
.login h1 { margin: 0 0 24px; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.login .btn--primary { width: 100%; height: 42px; margin-top: 6px; }
.login__foot { margin-top: 18px; display: flex; justify-content: center; }
.login .alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* ---------- celular */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px 0; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .liga { border: 0; padding: 0; flex: 1 1 auto; }
  .liga__logo { width: 36px; height: 36px; }
  .menu { order: 3; width: 100%; display: flex; gap: 0; margin: 0 -4px; }
  .menu a { flex: 1; justify-content: center; border-radius: 0; padding: 10px 6px; border-bottom: 2px solid transparent; }
  .menu a[aria-current="page"] { background: none; border-bottom-color: var(--acc); }
  .menu a svg { display: none; }
  .side__foot { margin: 0; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
  .user span { display: none; }
  main { padding: 18px 16px 72px; }
  .head h1, .page-head h1 { font-size: 22px; }
  .pager { margin-left: 0; width: 100%; margin-top: 10px; flex-wrap: wrap; }
  .pager .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .pager form { flex: 1.3 1 0; min-width: 0; }
  .pager__hint { flex-basis: 100%; order: 3; text-align: center; }
  .pager .btn--refresh { flex: 0 0 auto; }
  .pager select { width: 100%; }
  .defaults { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .row__when { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .chips .chip { flex: 1 1 calc(50% - 6px); min-width: 0; justify-content: flex-start; height: 44px; padding: 0 10px; font-size: 13px; }
  .chip__name { overflow: hidden; text-overflow: ellipsis; }
  .chip__logo { max-width: 40px; }
  .tv { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; }
  .tv__logo { width: 72px; height: 44px; }
  .tv__actions { grid-column: 1 / -1; }
  .form { padding: 16px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

/* Contrasena con el ojo para mostrarla u ocultarla */
.pass { position: relative; }
.pass input { padding-right: 44px !important; }
.pass__toggle { position: absolute; top: 0; right: 0; width: 44px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 0 8px 8px 0; }
.pass__toggle:hover { color: var(--ink); }
.pass__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.pass__eye-off { display: none; }
.pass__toggle[aria-pressed="true"] .pass__eye { display: none; }
.pass__toggle[aria-pressed="true"] .pass__eye-off { display: block; }

/* Usuarios (solo admin general) */
.users-hint { margin: 14px 0 0; }
.users-tools { margin: 22px 0 10px; }
.users-tools input { height: 38px; width: 100%; max-width: 360px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.users { margin-top: 0; }
.user-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; }
.user-row + .user-row { border-top: 1px solid var(--line); }
.user-row[hidden] { display: none; }
.user-row__main { min-width: 0; }
.user-row .tv__name { overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-row .badge { font-size: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; font-size: 13px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field[hidden] { display: none; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.roles { gap: 8px; }
.liga-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.check--sm { padding: 10px 12px; }
.check--sm small { display: block; font-size: 12px; overflow-wrap: anywhere; }
.form__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.pwd-own__row { display: flex; gap: 8px; flex-wrap: wrap; }
.pwd-own__row .pass { flex: 1 1 220px; }
.pwd-own__row .pass input { width: 100%; }
.access__list { margin: 0; display: grid; gap: 12px; }
.access__list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.access__list dt { color: var(--ink-3); font-size: 13px; }
.access__list dd { margin: 0; overflow-wrap: anywhere; }
.access__pwd { font-size: 22px; font-weight: 600; letter-spacing: .08em; }
@media (max-width: 860px) {
  .user-row { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .user-row .tv__actions { grid-column: 1 / -1; }
  .access__list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.liga-group { margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }

/* Grupos del menu */
.menu__group { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.menu__group:first-child { margin-top: 0; }

/* Estados */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap; background: #f2f4f7; color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--scheduled { background: var(--acc-soft); color: var(--acc-ink); }
.pill--pending { background: #fffaeb; color: #b54708; }
.pill--pending::before { animation: pulse 1.2s ease-in-out infinite; }
.pill--sent { background: var(--ok-soft); color: var(--ok); }
.pill--error { background: var(--bad-soft); color: var(--bad); }
.pill--paused, .pill--done { background: #f2f4f7; color: var(--ink-3); }
@keyframes pulse { 50% { opacity: .3; } }

/* Notificaciones: listado */
.tabs { display: flex; gap: 4px; margin: 22px 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--acc); border-bottom-color: var(--acc); }
.tabs .mono { margin-left: 4px; font-size: 12px; color: var(--ink-3); }
.bulk { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 32px; }
.bulk__all { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; cursor: pointer; padding-left: 18px; }
.bulk input, .push-row__sel { width: 16px; height: 16px; accent-color: var(--acc); }
.push-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.push-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; }
.push-row + .push-row { border-top: 1px solid var(--line); }
.push-row.is-sel { background: var(--acc-soft); }
.push-row__sel { margin-top: 3px; }
.push-row__main { min-width: 0; display: grid; gap: 3px; }
.push-row__top { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.push-row__title { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.push-row__title:hover { color: var(--acc); }
.push-row__text { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.push-row__next { color: var(--acc-ink); font-weight: 500; }

/* Notificaciones: formulario */
.push-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(240px, 300px); gap: 16px; align-items: start; margin-top: 22px; }
.push-grid .form { max-width: none; }
.push-grid .when { grid-column: 1; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.count { font-size: 12px; color: var(--ink-3); }
.count.is-near { color: #b54708; }
.field textarea, .field input[type=date], .field input[type=time], .field input[type=number], .select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; width: 100%; font: inherit; color: inherit; }
.field textarea { padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.when__panel { display: grid; gap: 16px; }
.when__panel[hidden] { display: none; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #f2f4f7; border-radius: 10px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: grid; place-items: center; height: 34px; padding: 0 8px; border-radius: 7px; font-weight: 500; color: var(--ink-2); text-align: center; white-space: nowrap; }
.seg__opt input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 0 0 1px var(--line); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 1px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip { position: relative; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day-chip span { display: grid; place-items: center; min-width: 52px; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 500; color: var(--ink-2); background: var(--card); }
.day-chip:hover span { border-color: var(--ink-3); }
.day-chip input:checked + span { background: var(--acc); border-color: var(--acc); color: #fff; }
.day-chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.quick { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.hours { display: flex; flex-wrap: wrap; gap: 8px; }
.hour { display: flex; align-items: center; gap: 4px; }
.hour input { width: 128px !important; }
.hour [hidden] { display: none; }
#add-hour { justify-self: start; margin-top: 2px; }
#add-hour[hidden] { display: none; }
.tz { padding-top: 14px; border-top: 1px solid var(--line); gap: 10px; }
.tz__now { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); flex-wrap: wrap; }
.tz__now svg { color: var(--ink-3); flex: none; }
.tz__now b { color: var(--ink); font-weight: 600; }
.tz .field[hidden] { display: none; }
.preview { position: sticky; top: 20px; grid-row: 1 / span 2; grid-column: 2; display: grid; gap: 8px; }
.preview__label { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.notif { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); display: grid; gap: 2px; min-width: 0; }
.notif__app { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.notif__app > span:last-child { margin-left: auto; }
.notif__icon { width: 20px; height: 20px; border-radius: 5px; background: #0f1b2d; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.notif b { font-weight: 600; overflow-wrap: anywhere; }
.notif p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.notif .is-empty { color: var(--ink-3); font-weight: 400; font-style: italic; }
.push-view { margin-top: 22px; }
.push-view .notif { max-width: 380px; }
.push-actions { margin-top: 16px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; }
.history li { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 8px 0; font-size: 13px; }
.history li + li { border-top: 1px solid var(--line); }
.history .off { color: var(--bad); }

/* Accesos */
.mods-legend { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.mods-legend dt { font-weight: 600; }
.mods-legend dd { margin: 0; color: var(--ink-2); font-size: 13px; }
.access-grid { margin-top: 18px; overflow-x: auto; }
.access-row { min-width: calc(196px + var(--mods, 1) * 162px); display: grid; grid-template-columns: minmax(160px, 1fr) repeat(var(--mods, 1), 150px); gap: 12px; align-items: center; padding: 12px 18px; }
.access-row + .access-row { border-top: 1px solid var(--line); }
.access-row--head { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; background: #f9fafb; padding-block: 10px; }
.access-country { margin: 0; padding: 14px 18px 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }
.access-liga { min-width: 0; display: grid; }
.access-liga b { font-weight: 600; overflow-wrap: anywhere; }
.access-liga small { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.access-liga .off { color: var(--ink-3); font-style: italic; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 36px; height: 20px; margin: 0; cursor: pointer; }
.switch i { flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s ease-out; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform .15s ease-out; }
.switch input:checked + i { background: var(--acc); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.switch__label { display: none; font-size: 13px; color: var(--ink-2); }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
#dirty { color: #b54708; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .pill--pending::before { animation: none; }
  .switch i, .switch i::after { transition: none; }
}
@media (max-width: 860px) {
  .menu { overflow-x: auto; }
  .menu a { flex: 1 0 auto; }
  .menu__group { display: none; }
  .push-row { grid-template-columns: 16px minmax(0, 1fr); padding: 14px; }
  .push-row .tv__actions { grid-column: 2; flex-wrap: wrap; }
  .push-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; grid-row: auto; grid-column: auto; }
  .push-grid .when { grid-column: auto; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg__opt:last-child:nth-child(odd) { grid-column: span 2; }
  .day-chip { flex: 1 1 calc(25% - 6px); }
  .day-chip span { min-width: 0; }
  .access-row { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; }
  .access-row--head { display: none; }
  .access-country { padding-inline: 14px; }
  .switch__label { display: inline; }
}

/* Actualizaciones OTA */
.flash li.warn { background: #fffaeb; color: #b54708; }
.flash li.warn a { color: inherit; font-weight: 600; }
.ota-group { margin-top: 22px; }
.ota-group__head { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ota-group__head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ota-group__head .hint { flex: 1 1 auto; }
.ota-group__head .tv__actions form { margin: 0; }
.ota-row { grid-template-columns: minmax(0, 1fr) auto; }
.ota-foot { margin-top: 14px; }
.ota-add { max-width: none; margin-bottom: 8px; }
.ota-sub { margin: 26px 0 10px; font-size: 16px; font-weight: 600; }
.ota-dev { grid-template-columns: minmax(0, 1fr) auto; }
.ota-dev form { margin: 0; }
.ota-dev .mono { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .ota-row, .ota-dev { grid-template-columns: minmax(0, 1fr); }
}

/* Playoffs: lista, alta y tablero (una columna por fase) */
.po-item { grid-template-columns: minmax(0, 1fr) auto; }
.po-item__name { display: block; text-decoration: none; color: var(--ink); }
.po-item__name:hover { color: var(--acc); }
.po-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.po-actions { margin-left: auto; }
.po-board { margin-top: 22px; display: grid; grid-template-columns: repeat(var(--po-cols, 1), minmax(280px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.po-col { display: grid; gap: 10px; min-width: 0; }
.po-col__head { display: flex; align-items: flex-start; gap: 8px; padding: 0 2px; }
.po-col__head div { min-width: 0; flex: 1; }
.po-col__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.po-col__head p { margin: 0; color: var(--ink-3); font-size: 12px; }
.po-col__ties { display: grid; gap: 10px; }
.po-tie { padding: 12px; display: grid; gap: 8px; }
.po-tie__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.po-tie__head .status { font-size: 12px; }
.po-team { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.po-team.is-win .po-select { font-weight: 600; }
.po-crest { width: 26px; height: 26px; object-fit: contain; }
.po-crest--empty { display: block; border-radius: 50%; background: #f2f4f7; border: 1px dashed var(--line-2); }
.po-select { min-height: 34px; width: 100%; min-width: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13px; }
.po-score { font-style: normal; font-weight: 600; font-size: 16px; min-width: 22px; text-align: right; color: var(--ink-2); }
.po-score.is-win { color: var(--ok); }
.po-score small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.po-tie__foot { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.po-tie__foot:empty { display: none; }
.po-legs { display: grid; gap: 6px; }
.po-leg { display: grid; gap: 2px; font-size: 12px; color: var(--ink-3); }
.po-bye { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.po-bye input { accent-color: var(--acc); }
/* Playoffs basket: guia por pasos y series */
.po-guide { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
/* propuesta del aviso por mail */
.po-proposal { margin-top: 22px; padding: 14px 16px; display: grid; gap: 10px; border-left: 4px solid var(--acc); }
.po-proposal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.po-proposal__head h2 { margin: 0; font-size: 16px; }
.po-proposal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.po-proposal__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.po-proposal__before { color: var(--ink-3); }
.po-proposal__after { font-weight: 600; }
.po-proposal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.po-step { padding: 14px 16px; display: grid; gap: 8px; }
.po-step:first-child { grid-column: 1 / -1; }
.po-step__head { display: flex; align-items: center; gap: 10px; }
.po-step__head h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.po-step__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-size: 13px; font-weight: 600; flex: none; }
.po-step__text { margin: 0; color: var(--ink-2); font-size: 13px; max-width: 80ch; }
.po-finish { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #eaecf0); }
.po-step__status { margin: 0; font-size: 13px; font-weight: 500; }
.po-step__status:empty { display: none; }
.po-step .btn { justify-self: start; }
.po-source { display: grid; gap: 12px; }
.po-source .field { margin: 0; }
.po-phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.po-help { margin-top: 12px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); }
.po-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.po-help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.po-team--bq { grid-template-columns: 26px minmax(0, 1fr) 46px 22px; }
.po-seed { width: 46px; min-height: 34px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; text-align: center; }
.po-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12px; color: var(--ink-3); }
.po-games li { display: grid; grid-template-columns: 30px 56px 70px minmax(0, 1fr); gap: 6px; }
.po-games b { font-weight: 500; color: var(--ink-2); }
.po-games b.is-win { font-weight: 700; color: var(--ink); }
.po-note { margin: 0; padding: 6px 8px; border-radius: 6px; background: #fffaeb; color: #b54708; font-size: 12px; }
.po-manual { font-size: 12px; color: var(--ink-2); display: grid; gap: 4px; }
.po-manual summary { cursor: pointer; color: var(--ink-3); }
.po-manual[open] { display: grid; gap: 6px; }
.po-manual .po-bye { font-size: 12px; }
@media (max-width: 860px) {
  .po-board { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .po-actions { margin-left: 0; }
}

/* Votaciones */
.list-title { margin: 24px 0 10px; font-size: 15px; font-weight: 600; }
.poll-row { grid-template-columns: minmax(0, 1fr) auto; }
.poll-winners { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.poll-winners span { color: var(--ink-3); }
.poll-winners .mono { margin-left: 4px; }

/* Editor de contenido de votaciones */
.pe { margin-top: 16px; padding: 20px; }
.pe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pe-groups, .pe-choices { list-style: none; margin: 0; padding: 0; }
.pe-cat + .pe-cat { margin-top: 18px; }
.pe-cat__loose { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pe-group { border: 1px solid var(--line); border-radius: var(--r); }
.pe-group + .pe-group { margin-top: 10px; }
.pe-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; }
.pe-row--cat { padding: 0 0 10px; }
.pe-row--choice { grid-template-columns: 44px minmax(0, 1fr) auto; border-top: 1px solid var(--line); padding-left: 24px; }
.pe-thumb { width: 64px; height: 40px; border-radius: 6px; background: #f2f4f7; overflow: hidden; }
.pe-thumb--sm { width: 44px; height: 32px; }
.pe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-txt { min-width: 0; overflow-wrap: anywhere; }
.pe-add { padding: 10px 12px 12px 24px; border-top: 1px solid var(--line); }
.pe-groups > .pe-add { border: 0; padding: 10px 0 0; }
.pe-empty { color: var(--ink-2); margin: 0; }
.pe-media { display: grid; gap: 10px; }
.pe-media video, .pe-media img { max-width: 100%; max-height: 280px; border-radius: 8px; background: #0f1b2d; }
.pe-media__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .pe { padding: 16px; }
  .pe-row, .pe-row--choice { grid-template-columns: 44px minmax(0, 1fr); padding-left: 12px; }
  .pe-thumb { width: 44px; height: 32px; }
  .pe-row .tv__actions { grid-column: 1 / -1; }
}

/* Resultados de votaciones */
.pr { padding: 16px 18px; margin-top: 10px; }
.pr__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pr__head h3 { margin: 0; font-size: 15px; }
.pr__head .mono { color: var(--ink-3); font-size: 13px; }
.pr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr__label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.pr__label .mono { color: var(--ink-2); white-space: nowrap; }
.pr__bar { height: 8px; border-radius: 999px; background: #f2f4f7; overflow: hidden; }
.pr__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink-3); }
.pr__item.is-winner .pr__label span:first-child { font-weight: 600; }
.pr__item.is-winner .pr__bar i { background: var(--acc); }

/* Estadisticas: dos listas ordenables (jugadores / equipos). */
.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.stats-col { padding: 16px; display: grid; gap: 10px; }
.stats-col__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stats-col__head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.stats-sub { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stats-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: grab; }
.stats-item.is-drag { opacity: .45; }
.stats-item.is-over { border-color: var(--acc); box-shadow: 0 -2px 0 var(--acc); }
.stats-grip { color: var(--line-2); letter-spacing: -2px; font-size: 13px; }
.stats-n { width: 18px; color: var(--ink-3); font-size: 12px; text-align: right; }
.stats-label { flex: 1; font-weight: 500; }
.stats-acts { display: flex; gap: 2px; }
.stats-btn { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 15px; }
.stats-btn:hover { background: #f2f4f7; color: var(--ink); }
.stats-btn--x:hover { background: var(--bad-soft); color: var(--bad); }
.stats-pool { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stats-add { width: auto; height: 30px; padding: 0 10px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.stats-add:hover:not(:disabled) { border-color: var(--acc); color: var(--acc-ink); background: var(--acc-soft); }
.stats-add:disabled { opacity: .5; cursor: not-allowed; }
.stats-empty { padding: 10px; border: 1px dashed var(--line-2); border-radius: 8px; }
.stats-col.is-locked .stats-item { cursor: default; background: #f9fafb; color: var(--ink-2); }
.stats-col__foot { display: flex; justify-content: flex-end; }
.stats-btn:disabled { visibility: hidden; }
.stats-section { margin: 28px 0 2px; font-size: 19px; font-weight: 600; }
.stats-form > .stats-section:first-of-type { margin-top: 18px; }
.stats-form > .hint { margin: 0; }
.stats-full { flex-basis: 100%; }
.stats-add:disabled { visibility: visible; }
.stats-comp { padding: 14px 16px; margin-top: 18px; display: grid; gap: 6px; max-width: 640px; }
.stats-comp label { font-weight: 600; font-size: 14px; }
.stats-comp .hint { margin: 0; }

/* ---------- sanciones */
.sanc-note { padding: 12px 16px; margin-top: 14px; max-width: 640px; color: var(--bad); background: var(--bad-soft); border-color: #fecdca; }
.sanc-list { margin-top: 18px; max-width: 640px; overflow: hidden; }
.sanc-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); }
.sanc-row:first-child { border-top: 0; }
.sanc-row--head { padding-block: 10px; color: var(--ink-3); font-size: 12px; font-weight: 500; background: #f9fafb; }
.sanc-row--head span:last-child { text-align: right; }
.sanc-row.is-on { background: var(--bad-soft); }
.sanc-row.is-on .team span { color: var(--ink); }
.sanc-row .team { cursor: pointer; }
.sanc-input { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; text-align: right; }
.sanc-row.is-on .sanc-input { border-color: var(--bad); color: var(--bad); font-weight: 600; }
.sanc-form .savebar { max-width: 640px; }
