/*
 * =====================================================
 * LIGAYA PRO - TEMAS
 * =====================================================
 *
 * El tema claro utiliza los estilos actuales.
 * Este archivo contiene solamente las variaciones
 * visuales de cada tema.
 */


/*
 * =====================================================
 * TEMA OSCURO
 * =====================================================
 */

:root[data-theme="dark"] {

  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-soft: #172554;

  --success: #22c55e;
  --success-soft: #052e16;

  --danger: #f87171;
  --danger-soft: #450a0a;

  --warning: #fbbf24;
  --warning-soft: #422006;

  --bg: #07111f;
  --card: #0d1b2d;

  --text: #f8fafc;
  --muted: #94a3b8;

  --border: #1e3552;

  --shadow: 0 12px 30px rgba(0, 0, 0, .28);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, .20);

  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .22);
  --shadow-md: 0 14px 35px rgba(0, 0, 0, .28);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, .34);
}


/*
 * Fondo general.
 */

:root[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
/*
 * =====================================================
 * LIGAYA PRO DARK - ESTRUCTURA PRINCIPAL
 * =====================================================
 */

:root[data-theme="dark"] .settings-card,
:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] .match-card,
:root[data-theme="dark"] .match-card-pro,
:root[data-theme="dark"] .more-list,
:root[data-theme="dark"] .equipo-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .team-section-card,
:root[data-theme="dark"] .team-match-card,
:root[data-theme="dark"] .performance-card,
:root[data-theme="dark"] .kpi-card-pro {
  background: #0d1b2d;
  border-color: #1e3552;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}


/*
 * CONFIGURACION
 */

:root[data-theme="dark"] .settings-card h3,
:root[data-theme="dark"] .settings-card-header h3 {
  color: #eaf2ff;
}

:root[data-theme="dark"] .settings-label {
  color: #94a3b8;
}

:root[data-theme="dark"] .settings-value {
  color: #f8fafc;
}


/*
 * SELECTOR DE CATEGORIA
 */

:root[data-theme="dark"] .config-categoria-bar,
:root[data-theme="dark"] .tabla-page .tabla-categoria-bar,
:root[data-theme="dark"] .fixture-page .fixture-categoria-bar {
  background: #0d1b2d;
  border-color: #1e3552;
  color: var(--text);
}

:root[data-theme="dark"] .config-categoria-info strong,
:root[data-theme="dark"] .tabla-page .tabla-categoria-info strong,
:root[data-theme="dark"] .fixture-page .fixture-categoria-info strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .config-categoria-eyebrow,
:root[data-theme="dark"] .tabla-page .tabla-categoria-info span,
:root[data-theme="dark"] .fixture-page .fixture-categoria-info span {
  color: #8fa3bf;
}

:root[data-theme="dark"] .config-categoria-control select,
:root[data-theme="dark"] .tabla-page .tabla-categoria-control select,
:root[data-theme="dark"] .fixture-page .fixture-categoria-control select {
  background: #081525;
  border-color: #294564;
  color: #f8fafc;
}


/*
 * MODALES
 */

:root[data-theme="dark"] .config-modal-card,
:root[data-theme="dark"] .modal-window,
:root[data-theme="dark"] .modal-card {
  background: #0d1b2d;
  color: #f8fafc;
  border: 1px solid #1e3552;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

:root[data-theme="dark"] .config-modal-header h2,
:root[data-theme="dark"] .modal-header h2,
:root[data-theme="dark"] .modal-card h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .config-modal-header p,
:root[data-theme="dark"] .modal-header p,
:root[data-theme="dark"] .config-modal-body label {
  color: #94a3b8;
}

:root[data-theme="dark"] .config-modal-icon,
:root[data-theme="dark"] .modal-icon {
  background: #14243a;
}

:root[data-theme="dark"] .config-modal-close {
  background: #14243a;
  color: #f8fafc;
}

:root[data-theme="dark"] .config-modal-actions {
  border-color: #1e3552;
}


/*
 * INPUTS Y SELECTS
 */

:root[data-theme="dark"] .config-modal-body input,
:root[data-theme="dark"] .config-modal-body select,
:root[data-theme="dark"] .settings-card input,
:root[data-theme="dark"] .settings-card select {
  background: #081525;
  border-color: #294564;
  color: #f8fafc;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}


/*
 * TARJETAS DE TABLA
 */

:root[data-theme="dark"] .tabla-card {
  background: #0d1b2d;
  border-color: #1e3552;
  color: #f8fafc;
}


/*
 * CABECERAS GENERALES
 */

:root[data-theme="dark"] .page-title h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .page-title p {
  color: #94a3b8;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - FIXTURE
 * =====================================================
 */

:root[data-theme="dark"] .fixture-phase-header {
  background: #0d1b2d;
  border-color: #1e3552;
  color: #f8fafc;
}

:root[data-theme="dark"] .fixture-phase-title h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .fixture-phase-title small,
:root[data-theme="dark"] .fixture-phase-meta small {
  color: #8fa3bf;
}

:root[data-theme="dark"] .fixture-phase-icon {
  background: #14243a;
  color: #f8fafc;
}

:root[data-theme="dark"] .round-header {
  background: #101f33;
  border-color: #1e3552;
  color: #f8fafc;
  box-shadow: none;
}

:root[data-theme="dark"] .round-header h3 {
  color: #f8fafc;
}

:root[data-theme="dark"] .round-header p {
  color: #8fa3bf;
}


/*
 * Tarjetas de partidos.
 */

:root[data-theme="dark"] .match-card-pro,
:root[data-theme="dark"] .match-card {
  background: #0b1929;
  border-color: #1e3552;
  color: #f8fafc;
}

:root[data-theme="dark"] .match-card-pro strong,
:root[data-theme="dark"] .match-card strong {
  color: #f8fafc;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - TABLA
 * =====================================================
 */

:root[data-theme="dark"] .tabla-card-pro {
  background: #0d1b2d;
  border-color: #1e3552;
  color: #f8fafc;
  box-shadow: var(--shadow-sm);
}


/*
 * Primer puesto.
 * Dorado sutil, sin fondo blanco.
 */

:root[data-theme="dark"] .tabla-card-pro.is-first {
  background:
    linear-gradient(
      135deg,
      rgba(250, 204, 21, .16),
      #111f31 72%
    );
  border-color: rgba(250, 204, 21, .70);
}


/*
 * Datos de equipo.
 */

:root[data-theme="dark"] .tabla-team-head strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .tabla-rank {
  background: #14243a;
  color: #dbeafe;
}


/*
 * Clasificacion previa a playoffs.
 */

:root[data-theme="dark"] .tabla-subtitulo-playoff {
  background: #101f33;
  border-color: #294564;
  color: #f8fafc;
}

:root[data-theme="dark"] .tabla-subtitulo-playoff strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .tabla-subtitulo-playoff span {
  color: #8fa3bf;
}


/*
 * =====================================================
 * RESULTADO FINAL / PODIO
 * =====================================================
 */

:root[data-theme="dark"] .tabla-finales {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(250, 204, 21, .12),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      #101c3d,
      #081426
    );

  border: 1px solid #1e3552;
}


/*
 * Campeon.
 */

:root[data-theme="dark"] .tabla-campeon {
  background:
    linear-gradient(
      135deg,
      rgba(250, 204, 21, .18),
      #13233a
    );

  border-color: rgba(250, 204, 21, .65);
  color: #f8fafc;
}

:root[data-theme="dark"] .tabla-campeon strong {
  color: #f8fafc;
}


/*
 * Segundo, tercero y demas puestos.
 */

:root[data-theme="dark"] .tabla-final-item,
:root[data-theme="dark"] .tabla-final-mini {
  background: #15233f;
  border-color: #29405f;
  color: #f8fafc;
}

:root[data-theme="dark"] .tabla-final-item strong,
:root[data-theme="dark"] .tabla-final-mini strong {
  color: #f8fafc;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - ESTADOS Y CAMPEON
 * =====================================================
 */


/*
 * ESTADOS DE PARTIDO
 */

:root[data-theme="dark"] .match-status,
:root[data-theme="dark"] .estado {
  background: #14243a;
  color: #cbd5e1;
  border: 1px solid #294564;
}


/*
 * Partido finalizado.
 */

:root[data-theme="dark"] .match-status.finalizado,
:root[data-theme="dark"] .estado.finalizado {
  background: rgba(16, 185, 129, .14);
  color: #5ee6a8;
  border-color: rgba(16, 185, 129, .32);
}


/*
 * Partido en vivo.
 */

:root[data-theme="dark"] .match-status.en-vivo,
:root[data-theme="dark"] .estado.en-vivo {
  background: rgba(239, 68, 68, .14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .34);
}


/*
 * ESTADOS DE FASE
 */

:root[data-theme="dark"] .fixture-phase-status {
  background: #14243a;
  color: #cbd5e1;
  border: 1px solid #294564;
}

:root[data-theme="dark"] .fixture-phase.is-active .fixture-phase-status {
  background: rgba(59, 130, 246, .16);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, .40);
}

:root[data-theme="dark"] .fixture-phase.is-finished .fixture-phase-status {
  background: rgba(16, 185, 129, .14);
  color: #5ee6a8;
  border-color: rgba(16, 185, 129, .32);
}


/*
 * =====================================================
 * CAMPEON - ACENTO DORADO PREMIUM
 * =====================================================
 */

:root[data-theme="dark"] .tabla-campeon {
  background:
    radial-gradient(
      circle at 8% 50%,
      rgba(250, 204, 21, .18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #172238,
      #101c31
    );

  border: 1px solid rgba(250, 204, 21, .58);
  color: #f8fafc;

  box-shadow:
    inset 0 0 0 1px rgba(250, 204, 21, .05),
    0 12px 30px rgba(0, 0, 0, .20);
}


:root[data-theme="dark"] .tabla-campeon-copa {
  background:
    linear-gradient(
      135deg,
      rgba(250, 204, 21, .24),
      rgba(245, 158, 11, .10)
    );

  border: 1px solid rgba(250, 204, 21, .28);
}


:root[data-theme="dark"] .tabla-campeon-identidad span {
  color: #facc15;
}


:root[data-theme="dark"] .tabla-campeon-identidad strong,
:root[data-theme="dark"] .tabla-campeon strong {
  color: #f8fafc;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - RESULTADO DE PARTIDO
 * =====================================================
 */

:root[data-theme="dark"] .match-result-final {
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, .18),
      rgba(13, 27, 45, .96)
    );

  color: #f8fafc;

  border: 1px solid rgba(59, 130, 246, .42);

  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, .04),
    0 8px 20px rgba(0, 0, 0, .16);
}


:root[data-theme="dark"] .match-result-final strong {
  color: #ffffff;
}


:root[data-theme="dark"] .match-result-final span {
  color: #93c5fd;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - CABECERA SUPERIOR
 * =====================================================
 */

:root[data-theme="dark"] .topbar {
  background:
    linear-gradient(
      135deg,
      #101f33 0%,
      #0b1929 100%
    );

  border: 1px solid #23405f;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .025);

  backdrop-filter: blur(14px);
}


/*
 * Titulo.
 */

:root[data-theme="dark"] .topbar h2 {
  color: #f8fafc;
}


/*
 * Subtitulo.
 */

:root[data-theme="dark"] .topbar p {
  color: #8fa3bf;
}


/*
 * Boton / icono lateral.
 */

:root[data-theme="dark"] .menu-btn {
  background:
    linear-gradient(
      145deg,
      #17315a,
      #122343
    );

  color: #f8fafc;

  border: 1px solid #294d78;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06);
}


/*
 * Estado superior en escritorio.
 */

:root[data-theme="dark"] .top-actions {
  background: rgba(16, 185, 129, .12);
  color: #5ee6a8;
  border: 1px solid rgba(16, 185, 129, .25);
}


/*
 * =====================================================
 * LIGAYA PRO DARK - PROGRESO FIXTURE
 * =====================================================
 */

:root[data-theme="dark"] .fixture-progress div {
  background:
    linear-gradient(
      90deg,
      #2563eb 0%,
      #3b82f6 65%,
      #facc15 100%
    );
}


/*
 * =====================================================
 * LIGAYA PRO DARK - BOTONES DE CONFIGURACION
 * =====================================================
 */

:root[data-theme="dark"] .btn-edit-settings {
  background:
    linear-gradient(
      135deg,
      #17315a 0%,
      #122343 100%
    );

  color: #93c5fd;

  border:
    1px solid #294d78;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.05);

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}


:root[data-theme="dark"] .btn-edit-settings:hover {
  background:
    linear-gradient(
      135deg,
      #1d4ed8 0%,
      #1e40af 100%
    );

  color: #ffffff;

  border-color: #3b82f6;
}


:root[data-theme="dark"] .btn-edit-settings:active {
  transform: scale(.98);
}


/*
 * =====================================================
 * LIGAYA PRO DARK - SUPERFICIES INTERNAS
 * =====================================================
 */

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .quick-actions button,
:root[data-theme="dark"] .torneo-tabs,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .summary-item,
:root[data-theme="dark"] .team-profile-stats,
:root[data-theme="dark"] .team-section-card,
:root[data-theme="dark"] .team-options-list,
:root[data-theme="dark"] .team-summary > div,
:root[data-theme="dark"] .stat-box-pro,
:root[data-theme="dark"] .mi-cuenta-card {
  background: #0d1b2d;
  border-color: #1e3552;
  color: #f8fafc;

  box-shadow:
    0 12px 28px
    rgba(0,0,0,.18);
}


/* =====================================================
   MENU MAS
   ===================================================== */

:root[data-theme="dark"] .more-row {
  background: #0d1b2d;
  color: #f8fafc;
}

:root[data-theme="dark"] .more-row:hover {
  background: #11243a;
}

:root[data-theme="dark"] .more-row strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .more-row small {
  color: #94a3b8;
}


/* =====================================================
   RESUMENES / ESTADISTICAS
   ===================================================== */

:root[data-theme="dark"] .summary-item strong,
:root[data-theme="dark"] .team-summary strong,
:root[data-theme="dark"] .stat-box-pro strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .summary-item span,
:root[data-theme="dark"] .summary-item small,
:root[data-theme="dark"] .team-summary span,
:root[data-theme="dark"] .team-summary small,
:root[data-theme="dark"] .stat-box-pro span,
:root[data-theme="dark"] .stat-box-pro small {
  color: #94a3b8;
}


/* =====================================================
   PERFIL DE EQUIPO
   ===================================================== */

:root[data-theme="dark"] .team-profile-stats {
  border: 1px solid #1e3552;
}

:root[data-theme="dark"] .team-stat-card {
  color: #f8fafc;
}

:root[data-theme="dark"] .team-section-header h3,
:root[data-theme="dark"] .team-section-card h3,
:root[data-theme="dark"] .team-section-card h4 {
  color: #f8fafc;
}


/* =====================================================
   MI CUENTA
   ===================================================== */

:root[data-theme="dark"] .mi-cuenta-card h2,
:root[data-theme="dark"] .mi-cuenta-card h3,
:root[data-theme="dark"] .mi-cuenta-card strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .mi-cuenta-card p,
:root[data-theme="dark"] .mi-cuenta-card small,
:root[data-theme="dark"] .mi-cuenta-card label {
  color: #94a3b8;
}

:root[data-theme="dark"] .mi-cuenta-password-wrap input,
:root[data-theme="dark"] .mi-cuenta-password-wrap input:focus {
  background: #091827;
  color: #f8fafc;
  border-color: #294564;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - MAS / OPCIONES
 * =====================================================
 */

:root[data-theme="dark"] .more-list {
  background:
    linear-gradient(
      180deg,
      #0d1b2d 0%,
      #0a1726 100%
    );

  border:
    1px solid #23405f;

  box-shadow:
    0 14px 34px
    rgba(0,0,0,.22);

  overflow: hidden;
}


/* FILAS */

:root[data-theme="dark"] .more-row {
  background:
    linear-gradient(
      90deg,
      rgba(15,31,50,.96) 0%,
      rgba(10,24,39,.96) 100%
    );

  border-bottom:
    1px solid #1c3550;

  color: #f8fafc;

  transition:
    background .18s ease,
    transform .18s ease;
}


:root[data-theme="dark"] .more-row:hover {
  background:
    linear-gradient(
      90deg,
      #132844 0%,
      #0d2035 100%
    );
}


:root[data-theme="dark"] .more-row:active {
  transform:
    scale(.992);
}


/* ICONOS */

:root[data-theme="dark"] .more-icon {
  background:
    linear-gradient(
      145deg,
      #17325c 0%,
      #15254b 100%
    );

  border:
    1px solid #294d78;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.05);
}


/* TITULOS Y SUBTITULOS */

:root[data-theme="dark"] .more-row strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .more-row span {
  color: #8fa8c6;
}


/* FLECHA */

:root[data-theme="dark"] .more-row em {
  color: #6fa8dc;
  font-size: 22px;
}


/* CERRAR SESION */

:root[data-theme="dark"] .danger-list {
  border:
    1px solid rgba(248,113,113,.18);
}

:root[data-theme="dark"] .danger-list .more-row,
:root[data-theme="dark"] .more-row.danger {
  background:
    linear-gradient(
      90deg,
      rgba(69,10,10,.28) 0%,
      rgba(13,27,45,.96) 58%
    );
}

:root[data-theme="dark"] .more-row.danger .more-icon,
:root[data-theme="dark"] .danger-list .more-icon {
  background:
    linear-gradient(
      145deg,
      #641313 0%,
      #3f0d12 100%
    );

  border-color:
    rgba(248,113,113,.24);
}


/*
 * =====================================================
 * ICONOS SVG - MENU MAS
 * =====================================================
 */

.more-icon svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;

  display: block;
}


/* CLARO */

.more-icon {
  color: #2563eb;
}


/* =====================================================
 * LIGAYA PRO DARK
 * =====================================================
 */

:root[data-theme="dark"] .more-icon {
  color: #79b8ff;
}

:root[data-theme="dark"] .more-row:hover .more-icon {
  color: #bfdbfe;

  border-color: #3b6ba1;

  box-shadow:
    0 0 0 3px
    rgba(59,130,246,.08),
    inset 0 1px 0
    rgba(255,255,255,.06);
}


/* CERRAR SESION */

.more-row.danger .more-icon,
.danger-list .more-icon {
  color: #ef4444;
}

:root[data-theme="dark"] .more-row.danger .more-icon,
:root[data-theme="dark"] .danger-list .more-icon {
  color: #fca5a5;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - MI CUENTA
 * =====================================================
 */


/* INFORMACION DE LA CUENTA */

:root[data-theme="dark"] .mi-cuenta-info-item {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);
}


:root[data-theme="dark"] .mi-cuenta-info-item span {
  color: #8fa8c6;
}


:root[data-theme="dark"] .mi-cuenta-info-item strong {
  color: #f8fafc;
}


/* ROL */

:root[data-theme="dark"] .mi-cuenta-role.admin {
  color: #93c5fd;

  background:
    rgba(37,99,235,.18);

  border:
    1px solid
    rgba(59,130,246,.22);
}


:root[data-theme="dark"] .mi-cuenta-role.mesa {
  color: #c4b5fd;

  background:
    rgba(124,58,237,.16);
}


:root[data-theme="dark"] .mi-cuenta-role.delegado {
  color: #7dd3fc;

  background:
    rgba(14,165,233,.14);
}


/* ICONOS DE TARJETA */

:root[data-theme="dark"] .mi-cuenta-card-icon {
  background:
    linear-gradient(
      145deg,
      #17315a 0%,
      #122343 100%
    );

  border:
    1px solid #294d78;
}


:root[data-theme="dark"] .mi-cuenta-card-icon.seguridad {
  background:
    linear-gradient(
      145deg,
      #10362f 0%,
      #0b2724 100%
    );

  border-color:
    rgba(52,211,153,.22);
}


/* FORMULARIO */

:root[data-theme="dark"] .mi-cuenta-field > span {
  color: #8fa8c6;
}


:root[data-theme="dark"]
.mi-cuenta-password-wrap input::placeholder {
  color: #6f89a8;
}


:root[data-theme="dark"] .mi-cuenta-eye {
  color: #93c5fd;
}


:root[data-theme="dark"] .mi-cuenta-eye:hover {
  background:
    rgba(59,130,246,.12);
}


/* CONSEJO DE SEGURIDAD */

:root[data-theme="dark"] .mi-cuenta-password-hint {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0a1828 100%
    );

  border:
    1px solid #254563;
}


:root[data-theme="dark"] .mi-cuenta-password-hint p {
  color: #94a3b8;
}


:root[data-theme="dark"] .mi-cuenta-password-hint > span {
  color: #60a5fa;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - EQUIPOS
 * =====================================================
 */


/* =====================================================
   TARJETAS DE EQUIPOS
   ===================================================== */

:root[data-theme="dark"] .equipos-page .team-card,
:root[data-theme="dark"] .equipos-page .equipo-card,
:root[data-theme="dark"] .equipos-page .team-sport-card {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  color: #f8fafc;

  box-shadow:
    0 12px 28px
    rgba(0,0,0,.18);
}


:root[data-theme="dark"] .equipos-page .team-card h3,
:root[data-theme="dark"] .equipos-page .equipo-card h3,
:root[data-theme="dark"] .equipos-page .team-sport-card h3 {
  color: #f8fafc;
}


:root[data-theme="dark"] .equipos-page .equipo-body p,
:root[data-theme="dark"] .equipos-page .equipo-meta small {
  color: #94a3b8;
}


/* ESTADO ACTIVO */

:root[data-theme="dark"] .equipos-page .equipo-top span {
  background:
    rgba(16,185,129,.13);

  color: #5ee6a8;

  border:
    1px solid
    rgba(16,185,129,.22);
}


/* =====================================================
   MODAL NUEVO / EDITAR EQUIPO
   ===================================================== */

:root[data-theme="dark"] #modalEquipo {
  color: #f8fafc;
}


/* CAMPOS */

:root[data-theme="dark"] #modalEquipo input[type="text"],
:root[data-theme="dark"] #modalEquipo input[type="search"],
:root[data-theme="dark"] #modalEquipo select {
  background: #091827;

  color: #f8fafc;

  border:
    1px solid #294d78;
}


:root[data-theme="dark"] #modalEquipo input::placeholder {
  color: #6f89a8;
}


:root[data-theme="dark"] #modalEquipo label {
  color: #8fa8c6;
}


/* TIPO DE IDENTIDAD */

:root[data-theme="dark"]
#modalEquipo
.equipo-tipo-opcion span {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  color: #94a3b8;

  border:
    1px solid #254563;
}


:root[data-theme="dark"]
#modalEquipo
.equipo-tipo-opcion
input:checked + span {
  background:
    linear-gradient(
      145deg,
      #17315a 0%,
      #122343 100%
    );

  color: #93c5fd;

  border-color: #3b82f6;

  box-shadow:
    0 0 0 3px
    rgba(59,130,246,.08);
}


/* PAIS */

:root[data-theme="dark"]
#modalEquipo
.equipo-pais-bandera {
  background: #102238;

  border:
    1px solid #254563;
}


/* =====================================================
   ESCUDO DEL EQUIPO
   ===================================================== */

:root[data-theme="dark"]
#modalEquipo
.equipo-logo-section {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;
}


:root[data-theme="dark"]
#modalEquipo
.equipo-logo-title strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
#modalEquipo
.equipo-logo-title span,
:root[data-theme="dark"]
#modalEquipo
.equipo-logo-file {
  color: #94a3b8;
}


:root[data-theme="dark"]
#modalEquipo
.equipo-logo-preview {
  background: #0a1828;

  border:
    1px solid #294d78;
}


/* BOTON SELECCIONAR ESCUDO */

:root[data-theme="dark"]
#modalEquipo
.equipo-logo-select {
  color: #93c5fd;

  background:
    rgba(37,99,235,.14);

  border:
    1px solid
    rgba(59,130,246,.28);
}


/* ELIMINAR ESCUDO */

:root[data-theme="dark"]
#modalEquipo
.equipo-logo-remove {
  color: #fca5a5;

  background:
    rgba(127,29,29,.22);

  border:
    1px solid
    rgba(248,113,113,.24);
}


/* =====================================================
   FOOTER DEL MODAL
   ===================================================== */

:root[data-theme="dark"]
#modalEquipo
.modal-actions {
  background: #0d1b2d;

  border-top:
    1px solid #254563;

  box-shadow:
    0 -10px 24px
    rgba(0,0,0,.15);
}


/*
 * =====================================================
 * LIGAYA PRO DARK - EQUIPOS / AJUSTE FINAL
 * =====================================================
 */


/* TARJETAS REALES DE EQUIPOS */

:root[data-theme="dark"]
.equipos-page
.team-list-card {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  color: #f8fafc;

  box-shadow:
    0 12px 28px
    rgba(0,0,0,.18);
}


:root[data-theme="dark"]
.equipos-page
.team-list-info h3 {
  color: #f8fafc;
}


:root[data-theme="dark"]
.equipos-page
.team-list-info p {
  color: #94a3b8;
}


:root[data-theme="dark"]
.equipos-page
.team-list-meta span {
  color: #8fa8c6;
}


/* BOTON GESTIONAR */

:root[data-theme="dark"]
.equipos-page
.team-detail-btn {
  background:
    linear-gradient(
      135deg,
      #17315a 0%,
      #122343 100%
    );

  color: #93c5fd;

  border:
    1px solid #294d78;
}


/* SELECT REAL DE PAIS */

:root[data-theme="dark"]
#modalEquipo
#paisEquipo {
  background: #091827 !important;

  color: #f8fafc !important;

  border:
    1px solid #294d78 !important;

  color-scheme: dark;
}


:root[data-theme="dark"]
#modalEquipo
#paisEquipo option {
  background: #0d1b2d;
  color: #f8fafc;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - DETALLE DEL EQUIPO
 * =====================================================
 */


/* KPIS */

:root[data-theme="dark"]
.team-profile-page
.team-profile-stats {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  box-shadow:
    0 12px 28px
    rgba(0,0,0,.18);
}


:root[data-theme="dark"]
.team-profile-page
.team-stat-card {
  border-right-color:
    #254563;
}


:root[data-theme="dark"]
.team-profile-page
.team-stat-card strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
.team-profile-page
.team-stat-card small {
  color: #8fa8c6;
}


/* PLANTEL */

:root[data-theme="dark"]
.team-profile-page
.team-section-card {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  color: #f8fafc;
}


:root[data-theme="dark"]
.team-profile-page
.team-section-header h3 {
  color: #f8fafc;
}


/* BOTON VER TODOS LOS JUGADORES */

:root[data-theme="dark"]
.team-profile-page
.team-add-player {
  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,.16) 0%,
      rgba(23,49,90,.32) 100%
    );

  color: #93c5fd;

  border:
    2px dashed #315b85;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}


:root[data-theme="dark"]
.team-profile-page
.team-add-player:hover {
  background:
    rgba(37,99,235,.22);

  border-color:
    #60a5fa;

  color: #dbeafe;
}


/* OPCIONES DEL EQUIPO */

:root[data-theme="dark"]
.team-profile-page
.team-options-title {
  color: #f8fafc;
}


:root[data-theme="dark"]
.team-profile-page
.team-options-list {
  background: #0d1b2d;

  border:
    1px solid #254563;
}


:root[data-theme="dark"]
.team-profile-page
.team-options-list
.more-row {
  border-bottom-color:
    #1e3552;
}


/*
 * =====================================================
 * LIGAYA PRO DARK - PARTIDOS DEL EQUIPO
 * =====================================================
 */


/* TARJETA DEL PARTIDO */

:root[data-theme="dark"]
.team-matches-page
.team-match-card {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border-top:
    1px solid #254563;

  border-right:
    1px solid #254563;

  border-bottom:
    1px solid #254563;

  color: #f8fafc;

  box-shadow:
    0 12px 28px
    rgba(0,0,0,.18);
}


/* ESTADO */

:root[data-theme="dark"]
.team-matches-page
.team-match-top span {
  background:
    rgba(37,99,235,.14);

  color: #93c5fd;

  border:
    1px solid
    rgba(59,130,246,.24);
}


:root[data-theme="dark"]
.team-matches-page
.team-match-top strong {
  color: #60a5fa;
}


/* EQUIPOS */

:root[data-theme="dark"]
.team-matches-page
.team-match-side strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
.team-matches-page
.mini-flag {
  background: #102238;

  border:
    1px solid #254563;
}


/* MARCADOR CENTRAL */

:root[data-theme="dark"]
.team-matches-page
.team-match-score {
  background:
    linear-gradient(
      145deg,
      #17315a 0%,
      #102238 100%
    );

  color: #f8fafc;

  border:
    1px solid #315b85;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.035);
}


:root[data-theme="dark"]
.team-matches-page
.team-match-score strong {
  color: #ffffff;
}


:root[data-theme="dark"]
.team-matches-page
.team-match-score small {
  color: #93c5fd;
}


/* SETS */

:root[data-theme="dark"]
.team-matches-page
.team-match-sets span {
  background:
    rgba(37,99,235,.14);

  color: #93c5fd;

  border:
    1px solid
    rgba(59,130,246,.24);
}


/* RESUMEN SUPERIOR */

:root[data-theme="dark"]
.team-matches-page
.team-summary > div {
  background:
    linear-gradient(
      145deg,
      #102238 0%,
      #0b1929 100%
    );

  border:
    1px solid #254563;

  box-shadow:
    0 10px 24px
    rgba(0,0,0,.16);
}


:root[data-theme="dark"]
.team-matches-page
.team-summary strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
.team-matches-page
.team-summary span {
  color: #8fa8c6;
}


/*
 * =====================================================
 * NAVEGACION INTERNA DE EQUIPO
 * CLARO + OSCURO
 * =====================================================
 */

.team-profile-page > .back-btn,
.team-matches-page > .back-btn,
.team-stats-page > .back-btn {
  align-self: flex-start;

  margin-top: -8px;
  margin-bottom: -8px;

  padding: 4px 0;

  font-size: 13px;
  font-weight: 750;

  color: #3b82f6;

  opacity: .82;

  transition:
    opacity .18s ease,
    transform .18s ease;
}


.team-profile-page > .back-btn:hover,
.team-matches-page > .back-btn:hover,
.team-stats-page > .back-btn:hover {
  opacity: 1;
  transform: translateX(-2px);
}


/* DARK */

:root[data-theme="dark"]
.team-profile-page > .back-btn,
:root[data-theme="dark"]
.team-matches-page > .back-btn,
:root[data-theme="dark"]
.team-stats-page > .back-btn {
  color: #79b8ff;
}


/*
 * =====================================================
 * VISTAS INTERNAS DE EQUIPO
 * REDUCIR ESPACIO SUPERIOR
 * CLARO + OSCURO
 * =====================================================
 */

.team-profile-page,
.team-matches-page,
.team-stats-page {
  padding-top: 6px;
}


/* El enlace queda cerca de la cabecera
   sin pegarse al hero */

.team-profile-page > .back-btn,
.team-matches-page > .back-btn,
.team-stats-page > .back-btn {
  margin-top: 0;
  margin-bottom: -6px;
}


/*
 * =====================================================
 * VISTAS INTERNAS DE EQUIPO
 * REDUCIR ESPACIO SUPERIOR
 * CLARO + OSCURO
 * =====================================================
 */

.team-profile-page,
.team-matches-page,
.team-stats-page {
  padding-top: 6px;
}


/* El enlace queda cerca de la cabecera
   sin pegarse al hero */

.team-profile-page > .back-btn,
.team-matches-page > .back-btn,
.team-stats-page > .back-btn {
  margin-top: 0;
  margin-bottom: -6px;
}


/* ===== LIGAYA EMPTY STATES ===== */

/* Estado vacío general: Fixture y Tabla */

.fixture-empty,
.tabla-empty {
    width: 100%;
    box-sizing: border-box;

    display: flex !important;
    align-items: center;
    gap: 14px;

    padding: 18px 20px !important;

    border-radius: 20px !important;
    border: 1px solid #dbe7f5 !important;

    background: #ffffff !important;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06) !important;

    overflow: hidden;
}

.fixture-empty-icon,
.tabla-empty-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: #eef5ff !important;

    font-size: 21px;
    line-height: 1;
}

.fixture-empty-content {
    min-width: 0;
    flex: 1;
}

.fixture-empty-content strong,
.tabla-empty strong {
    display: block;

    margin: 0 0 4px;

    color: #0f172a !important;

    font-size: 16px;
    line-height: 1.25;
    font-weight: 850;
}

.fixture-empty-content p,
.tabla-empty span {
    display: block;

    margin: 0;

    color: #64748b !important;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}


/* DARK */

:root[data-theme="dark"] .fixture-empty,
:root[data-theme="dark"] .tabla-empty {
    border-color: #244462 !important;

    background:
        linear-gradient(
            145deg,
            #102238 0%,
            #0b1929 100%
        ) !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

:root[data-theme="dark"] .fixture-empty-icon,
:root[data-theme="dark"] .tabla-empty-icon {
    background:
        linear-gradient(
            145deg,
            rgba(59, 130, 246, 0.18),
            rgba(37, 99, 235, 0.08)
        ) !important;

    border: 1px solid rgba(96, 165, 250, 0.18);
}

:root[data-theme="dark"] .fixture-empty-content strong,
:root[data-theme="dark"] .tabla-empty strong {
    color: #f8fbff !important;
}

:root[data-theme="dark"] .fixture-empty-content p,
:root[data-theme="dark"] .tabla-empty span {
    color: #9db2ca !important;
}


/* Tabla necesita distribución interna propia */

.tabla-empty {
    align-items: center !important;
}

.tabla-empty strong,
.tabla-empty span {
    min-width: 0;
}

/* ===== LIGAYA TOAST DARK ===== */

:root[data-theme="dark"] .toast {
  background: #0d1b2d;
  color: #f8fafc;
  border: 1px solid #244462;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(59, 130, 246, .05);
}

:root[data-theme="dark"] .toast-body {
  color: #f8fafc;
  line-height: 1.35;
}

:root[data-theme="dark"] .toast-success {
  border-color: rgba(34, 197, 94, .45);
}

:root[data-theme="dark"] .toast-success .toast-icon {
  background: rgba(34, 197, 94, .16);
}

:root[data-theme="dark"] .toast-error {
  border-color: rgba(239, 68, 68, .45);
}

:root[data-theme="dark"] .toast-error .toast-icon {
  background: rgba(239, 68, 68, .16);
}

:root[data-theme="dark"] .toast-warning {
  border-color: rgba(245, 158, 11, .45);
}

:root[data-theme="dark"] .toast-warning .toast-icon {
  background: rgba(245, 158, 11, .16);
}

:root[data-theme="dark"] .toast-info {
  border-color: rgba(59, 130, 246, .45);
}

:root[data-theme="dark"] .toast-info .toast-icon {
  background: rgba(59, 130, 246, .16);
}
/* ===== LIGAYA DARK - MODAL JUGADOR ===== */

:root[data-theme="dark"] .modal-jugador .modal-card {
  background: #0d1b2d;
  color: #f8fafc;
  border: 1px solid #244462;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .52);
}

:root[data-theme="dark"] .modal-jugador .modal-header {
  border-color: #1e3552;
}

:root[data-theme="dark"] .modal-jugador .modal-header h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .modal-jugador .modal-header p {
  color: #94a3b8;
}

:root[data-theme="dark"] .modal-jugador .modal-icon {
  background: #14243a;
  border: 1px solid #244462;
}

:root[data-theme="dark"] .modal-jugador .form-group label {
  color: #cbd5e1;
}

:root[data-theme="dark"] .modal-jugador .form-group input {
  background: #101f33;
  color: #f8fafc;
  border-color: #2a4666;
  box-shadow: none;
}

:root[data-theme="dark"] .modal-jugador .form-group input::placeholder {
  color: #64748b;
}

:root[data-theme="dark"] .modal-jugador .form-group input:focus {
  background: #10243b;
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .16);
}

:root[data-theme="dark"] .modal-jugador .btn-secondary {
  background: #14243a;
  color: #cbd5e1;
  border: 1px solid #2a4666;
}

:root[data-theme="dark"] .modal-jugador .btn-secondary:hover {
  background: #1a2d46;
}

/* ===== LIGAYA DARK - ICONO JUGADOR ===== */

:root[data-theme="dark"] .modal-jugador .modal-icon {
  color: #60a5fa;
}

:root[data-theme="dark"] .modal-jugador .modal-icon svg {
  display: block;
}

/* ===== LIGAYA DARK - TARJETA JUGADOR ===== */

:root[data-theme="dark"] .players-page .player-list-card {
  background: #0d1b2d;
  color: #f8fafc;
  border: 1px solid #1e3552;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .20);
}


:root[data-theme="dark"] .players-page .player-number {
  background: #14243a;
  color: #60a5fa;
  border: 1px solid #244462;
}


:root[data-theme="dark"] .players-page .player-number svg {
  display: block;
}


:root[data-theme="dark"] .players-page .player-info h3 {
  color: #f8fafc;
}


:root[data-theme="dark"] .players-page .player-info p {
  color: #94a3b8;
}


/* ESTADO ACTIVO */

:root[data-theme="dark"] .players-page .player-status.activo {
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .26);
}


/* ESTADO INACTIVO */

:root[data-theme="dark"] .players-page .player-status.inactivo {
  color: #fca5a5;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .26);
}


/* BOTON EDITAR */

:root[data-theme="dark"] .players-page .player-action-btn.editar {
  color: #93c5fd;
  background: rgba(59, 130, 246, .12);
  border-color: rgba(96, 165, 250, .28);
}


:root[data-theme="dark"] .players-page .player-action-btn.editar:hover {
  color: #dbeafe;
  background: rgba(59, 130, 246, .20);
  border-color: rgba(96, 165, 250, .45);
}


/* BOTON DESACTIVAR */

:root[data-theme="dark"] .players-page .player-action-btn.desactivar {
  color: #cbd5e1;
  background: #14243a;
  border-color: #2a4666;
}


:root[data-theme="dark"] .players-page .player-action-btn.desactivar:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .32);
}


/* BOTON ACTIVAR */

:root[data-theme="dark"] .players-page .player-action-btn.activar {
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
}


/* JUGADOR INACTIVO */

:root[data-theme="dark"] .players-page .player-card-inactivo {
  opacity: .78;
}


:root[data-theme="dark"] .players-page .player-card-inactivo .player-info h3 {
  color: #94a3b8;
}

/* ===== LIGAYA DARK - PLANTEL EQUIPO ===== */

:root[data-theme="dark"] .team-profile-page .team-player-row {
  background: #0d1b2d;
  border-color: #244462;
  color: #f8fafc;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, .16);
}


:root[data-theme="dark"] .team-profile-page .team-player-row strong {
  color: #f8fafc;
}


:root[data-theme="dark"] .team-profile-page .player-avatar {
  background: #14243a;
  color: #60a5fa;
  border: 1px solid #244462;
}


:root[data-theme="dark"] .team-profile-page .player-avatar svg {
  display: block;
}


:root[data-theme="dark"] .team-profile-page .team-player-row span {
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .26);
}

/* ===== LIGAYA DARK - ESTADISTICAS EQUIPO ===== */

:root[data-theme="dark"]
.team-stats-page
.performance-header strong {
  color: #f8fafc;
}

:root[data-theme="dark"]
.team-stats-page
.performance-header span {
  color: #60a5fa;
}

:root[data-theme="dark"]
.team-stats-page
.performance-bar {
  background: #17263a;
}

:root[data-theme="dark"]
.team-stats-page
.streak-list small {
  color: #94a3b8;
}

/* ===== LIGAYA DARK - USUARIOS ===== */


/* PANEL FORMULARIO */

:root[data-theme="dark"]
.usuarios-page
.usuarios-form-panel {
  background: #0d1b2d;
  border-color: #244462;
  color: #f8fafc;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, .24);
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-form-header h3 {
  color: #f8fafc;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-form-header p {
  color: #94a3b8;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-field > span {
  color: #cbd5e1;
}


/* CAMPOS */

:root[data-theme="dark"]
.usuarios-page
.usuarios-field input,

:root[data-theme="dark"]
.usuarios-page
.usuarios-field select {
  background: #101f33;
  color: #f8fafc;
  border-color: #2a4666;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-field input::placeholder {
  color: #64748b;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-field input:focus,

:root[data-theme="dark"]
.usuarios-page
.usuarios-field select:focus {
  background: #10243b;
  color: #f8fafc;
  border-color: #3b82f6;

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .15);
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-field select option {
  background: #101f33;
  color: #f8fafc;
}


/* CERRAR FORMULARIO */

:root[data-theme="dark"]
.usuarios-page
.usuarios-close-btn {
  background: #14243a;
  color: #60a5fa;
  border-color: #2a4666;
}


/* CANCELAR */

:root[data-theme="dark"]
.usuarios-page
.usuarios-secondary-btn {
  background: #14243a;
  color: #cbd5e1;
  border-color: #2a4666;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-secondary-btn:hover {
  background: #1a2d46;
  color: #f8fafc;
}


/* LISTADO GENERAL */

:root[data-theme="dark"]
.usuarios-page
.usuarios-content {
  background: #0d1b2d;
  border-color: #244462;
  color: #f8fafc;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, .20);
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-list-header h3 {
  color: #f8fafc;
}


:root[data-theme="dark"]
.usuarios-page
.usuarios-list-header p {
  color: #94a3b8;
}


/* TARJETAS DE USUARIO */

:root[data-theme="dark"]
.usuarios-page
.usuario-row {
  background: #101f33;
  border-color: #2a4666;
  color: #f8fafc;
}


:root[data-theme="dark"]
.usuarios-page
.usuario-datos strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
.usuarios-page
.usuario-datos small {
  color: #94a3b8;
}


/* AVATAR */

:root[data-theme="dark"]
.usuarios-page
.usuario-avatar {
  background: #14243a;
  color: #93c5fd;
  border: 1px solid #2a4666;
}


/* EDITAR */

:root[data-theme="dark"]
.usuarios-page
.usuario-accion-btn.editar {
  color: #93c5fd;
  background: rgba(59, 130, 246, .12);
  border-color: rgba(96, 165, 250, .28);
}


:root[data-theme="dark"]
.usuarios-page
.usuario-accion-btn.editar:hover {
  color: #dbeafe;
  background: rgba(59, 130, 246, .20);
}


/* DESACTIVAR */

:root[data-theme="dark"]
.usuarios-page
.usuario-accion-btn.desactivar {
  color: #cbd5e1;
  background: #14243a;
  border-color: #2a4666;
}


:root[data-theme="dark"]
.usuarios-page
.usuario-accion-btn.desactivar:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .30);
}


/* ACTIVAR */

:root[data-theme="dark"]
.usuarios-page
.usuario-accion-btn.activar {
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
}


/* TU CUENTA */

:root[data-theme="dark"]
.usuarios-page
.usuario-cuenta-actual {
  color: #94a3b8;
  border-color: #2a4666;
}


/* USUARIO INACTIVO */

:root[data-theme="dark"]
.usuarios-page
.usuario-row-inactivo
.usuario-datos strong {
  color: #94a3b8;
}

/* ===== LIGAYA CONFIG - SEPARADORES ===== */

/*
 * Sustituye las líneas punteadas tradicionales
 * por separadores sólidos y discretos.
 */

.settings-page .settings-row {
  border-bottom:
    1px solid
    rgba(148, 163, 184, .16);
}

.settings-page .settings-row:last-child {
  border-bottom: none;
}


/* En claro usamos un contraste ligeramente mayor */

:root[data-theme="light"]
.settings-page .settings-row {
  border-bottom:
    1px solid
    rgba(15, 23, 42, .10);
}

:root[data-theme="light"]
.settings-page .settings-row:last-child {
  border-bottom: none;
}

/* ===== LIGAYA - CENTRO DE TORNEO V2 ===== */


/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

.admin-sport-dashboard {
  display: grid;
  gap: 16px;
  padding-bottom: 125px;
}


.admin-sport-dashboard .ds-card {
  box-sizing: border-box;
}


.admin-sport-dashboard button {
  font-family: inherit;
}


/* =========================================================
   HERO
   ========================================================= */

.sport-hero-card {
  position: relative;
  overflow: hidden;

  padding: 22px;

  border-radius: 28px;
}


.sport-hero-card::before {
  content: "";

  position: absolute;
  width: 230px;
  height: 230px;

  top: -120px;
  right: -80px;

  border-radius: 50%;

  pointer-events: none;
}


.sport-hero-card::after {
  content: "";

  position: absolute;
  width: 170px;
  height: 170px;

  bottom: -115px;
  left: 35%;

  border-radius: 50%;

  pointer-events: none;
}


.sport-hero-main,
.sport-hero-meta,
.sport-chip-row {
  position: relative;
  z-index: 1;
}


.sport-hero-main {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;
}


.sport-eyebrow {
  display: block;

  margin-bottom: 7px;

  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
}


.sport-hero-main h1 {
  margin: 0;

  font-size: clamp(29px, 7vw, 42px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.04em;
}


.sport-hero-main p {
  max-width: 520px;

  margin: 11px 0 0;

  font-size: 14px;
  line-height: 1.5;
}


.sport-status-pill {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 31px;

  padding: 6px 11px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .04em;
}


.sport-chip-row {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 8px;

  margin-top: 20px;
}


.sport-hero-chip {
  min-width: 0;

  padding: 10px 8px;

  border-radius: 15px;

  text-align: center;
}


.sport-hero-chip small {
  display: block;

  overflow: hidden;

  font-size: 9px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.sport-hero-chip strong {
  display: block;

  margin-top: 4px;

  font-size: 18px;
  font-weight: 1000;
}


.sport-hero-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 7px 14px;

  margin-top: 16px;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   ZONA PRINCIPAL
   ========================================================= */

.sport-main-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, .9fr);

  gap: 14px;
}


/* =========================================================
   PARTIDO DESTACADO
   ========================================================= */

.sport-spotlight-card {
  display: flex;
  flex-direction: column;

  min-height: 285px;

  padding: 18px;

  border-radius: 25px;
}


.sport-spotlight-head {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 10px;
}


.spotlight-badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 27px;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .04em;
}


.spotlight-meta {
  font-size: 10px;
  font-weight: 800;

  text-align: right;
}


.sport-spotlight-body {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    42px
    minmax(0, 1fr);

  align-items: center;

  gap: 10px;

  flex: 1;

  padding: 26px 0 20px;
}


.sport-team-block {
  min-width: 0;

  text-align: center;
}


.sport-team-block strong {
  display: block;

  font-size: 17px;
  line-height: 1.2;
  font-weight: 1000;

  overflow-wrap: anywhere;
}


.sport-team-block span {
  display: block;

  margin-top: 6px;

  font-size: 10px;
  font-weight: 700;
}


.sport-team-block h2 {
  margin: 4px 0 0;

  font-size: 48px;
  line-height: 1;

  font-weight: 1000;
}


.sport-versus {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  font-size: 12px;
  font-weight: 1000;
}


.sport-spotlight-footer {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 12px;
}


.sport-mini-info {
  display: flex;
  flex-wrap: wrap;

  gap: 5px 12px;

  font-size: 10px;
  font-weight: 700;
}


.sport-result-body {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;

  flex: 1;

  padding: 36px 0 22px;

  text-align: center;
}


.sport-result-body > strong {
  font-size: 17px;
  font-weight: 1000;

  overflow-wrap: anywhere;
}


.sport-result-score {
  font-size: 34px;
  font-weight: 1000;
}


.sport-result-winner {
  margin: 0 0 16px;

  text-align: center;

  font-size: 12px;
}


/* =========================================================
   RADAR
   ========================================================= */

.sport-radar-card {
  padding: 18px;

  border-radius: 25px;
}


.section-title.compact {
  margin-bottom: 14px;
}


.section-title.compact h3 {
  margin: 0;

  font-size: 17px;
  font-weight: 1000;
}


.section-title.compact p {
  margin: 4px 0 0;

  font-size: 11px;
}


.sport-radar-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}


.sport-radar-item {
  min-width: 0;

  padding: 11px;

  border-radius: 15px;
}


.sport-radar-item span {
  display: block;

  font-size: 9px;
  font-weight: 800;
}


.sport-radar-item strong {
  display: block;

  margin-top: 4px;

  font-size: 17px;
  line-height: 1.2;

  font-weight: 1000;

  overflow-wrap: anywhere;
}


.sport-progress-block {
  margin-top: 14px;
}


.sport-progress-head {
  display: flex;

  justify-content: space-between;

  margin-bottom: 7px;

  font-size: 10px;
  font-weight: 900;
}


.sport-progress-bar,
.mini-progress {
  overflow: hidden;

  height: 7px;

  border-radius: 999px;
}


.sport-progress-bar > div,
.mini-progress > div {
  height: 100%;

  border-radius: inherit;

  transition: width .3s ease;
}


.sport-action-row {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;

  margin-top: 16px;
}


.sport-action-row .btn-primary {
  grid-column: 1 / -1;
}


/* =========================================================
   KPI
   ========================================================= */

.sport-kpi-grid {
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
}


.sport-kpi-card {
  min-height: 103px;

  padding: 13px 10px;

  border-radius: 18px;

  text-align: center;
}


.sport-kpi-card small {
  display: block;

  font-size: 9px;
  font-weight: 900;
}


.sport-kpi-card h3 {
  margin: 7px 0 3px;

  font-size: 24px;
  line-height: 1;

  font-weight: 1000;
}


.sport-kpi-card p {
  margin: 0;

  font-size: 9px;
  line-height: 1.2;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.sport-section-card,
.sport-podium-card,
.sport-results-card {
  padding: 18px;

  border-radius: 25px;
}


.category-overview-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 11px;
}


/* =========================================================
   CATEGORIAS
   ========================================================= */

.category-overview-card {
  position: relative;

  overflow: hidden;

  padding: 15px;

  border-radius: 20px;
}


.category-overview-card.principal::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;
}


.category-card-head {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;
}


.category-card-head strong {
  display: block;

  font-size: 15px;
  font-weight: 1000;
}


.category-card-head small {
  display: block;

  margin-top: 3px;

  font-size: 9px;
}


.category-state-badge {
  flex: 0 0 auto;

  padding: 5px 7px;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 1000;
}


.category-score-strip {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 5px;

  margin-top: 15px;
}


.category-score-strip div {
  min-width: 0;

  text-align: center;
}


.category-score-strip span {
  display: block;

  font-size: 8px;
  font-weight: 700;
}


.category-score-strip strong {
  display: block;

  margin-top: 3px;

  font-size: 15px;
  font-weight: 1000;
}


.category-overview-card .mini-progress {
  margin-top: 13px;
}


.category-card-footer {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 7px;

  margin-top: 13px;
}


/* =========================================================
   PODIO Y RESULTADOS
   ========================================================= */

.sport-bottom-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 14px;
}


.sport-podium-list,
.recent-results-list {
  display: grid;

  gap: 9px;
}


.podium-row {
  display: grid;

  grid-template-columns:
    40px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 10px;

  padding: 11px;

  border-radius: 16px;
}


.podium-rank {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 1000;
}


.podium-info {
  min-width: 0;
}


.podium-info strong {
  display: block;

  font-size: 13px;
  font-weight: 1000;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.podium-info small {
  display: block;

  margin-top: 3px;

  font-size: 9px;
}


.podium-points {
  text-align: center;
}


.podium-points strong {
  display: block;

  font-size: 21px;
  line-height: 1;

  font-weight: 1000;
}


.podium-points span {
  display: block;

  margin-top: 3px;

  font-size: 8px;
  font-weight: 800;
}


.recent-result-row {
  padding: 12px;

  border-radius: 17px;
}


.recent-result-meta {
  display: flex;

  justify-content: space-between;

  gap: 10px;
}


.recent-result-meta strong {
  font-size: 10px;
  font-weight: 1000;
}


.recent-result-meta small {
  font-size: 9px;
}


.recent-result-score {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;

  gap: 7px;

  margin-top: 11px;

  text-align: center;
}


.recent-result-score span {
  font-size: 11px;
  font-weight: 800;

  overflow-wrap: anywhere;
}


.recent-result-score strong {
  font-size: 20px;
  font-weight: 1000;
}


.recent-result-winner {
  display: block;

  margin-top: 9px;

  font-size: 9px;
  font-weight: 800;

  text-align: center;
}


/* =========================================================
   DARK
   ========================================================= */

:root[data-theme="dark"] .sport-hero-card {
  background:
    linear-gradient(
      135deg,
      #1e4fd2 0%,
      #152a68 47%,
      #071426 100%
    );

  border-color:
    rgba(96,165,250,.24);

  color: #ffffff;

  box-shadow:
    0 22px 55px rgba(0,0,0,.28);
}


:root[data-theme="dark"]
.sport-hero-card::before {
  background:
    rgba(56,189,248,.12);
}


:root[data-theme="dark"]
.sport-hero-card::after {
  background:
    rgba(99,102,241,.13);
}


:root[data-theme="dark"]
.sport-eyebrow {
  color: #bfdbfe;
}


:root[data-theme="dark"]
.sport-hero-main p,
:root[data-theme="dark"]
.sport-hero-meta {
  color: #dbeafe;
}


:root[data-theme="dark"]
.sport-status-pill.normal {
  background: #d1fae5;
  color: #047857;
}


:root[data-theme="dark"]
.sport-status-pill.live {
  background: #fee2e2;
  color: #dc2626;
}


:root[data-theme="dark"]
.sport-hero-chip {
  background:
    rgba(255,255,255,.09);

  border:
    1px solid
    rgba(255,255,255,.10);
}


:root[data-theme="dark"]
.sport-hero-chip small {
  color: #bfdbfe;
}


:root[data-theme="dark"]
.sport-hero-chip strong {
  color: #ffffff;
}


:root[data-theme="dark"]
.sport-spotlight-card,
:root[data-theme="dark"]
.sport-radar-card,
:root[data-theme="dark"]
.sport-section-card,
:root[data-theme="dark"]
.sport-podium-card,
:root[data-theme="dark"]
.sport-results-card {
  background: #0d1b2d;
  color: #f8fafc;

  border:
    1px solid #244462;
}


:root[data-theme="dark"]
.sport-spotlight-card.live-mode {
  border-color:
    rgba(248,113,113,.45);

  box-shadow:
    inset 4px 0 0 #ef4444;
}


:root[data-theme="dark"]
.sport-spotlight-card.next-mode {
  box-shadow:
    inset 4px 0 0 #3b82f6;
}


:root[data-theme="dark"]
.spotlight-badge.danger {
  background:
    rgba(239,68,68,.17);
  color: #fca5a5;
}


:root[data-theme="dark"]
.spotlight-badge.primary {
  background:
    rgba(59,130,246,.16);
  color: #93c5fd;
}


:root[data-theme="dark"]
.spotlight-badge.success {
  background:
    rgba(34,197,94,.15);
  color: #86efac;
}


:root[data-theme="dark"]
.spotlight-badge.neutral {
  background:
    rgba(148,163,184,.12);
  color: #cbd5e1;
}


:root[data-theme="dark"]
.spotlight-meta,
:root[data-theme="dark"]
.sport-team-block span,
:root[data-theme="dark"]
.sport-mini-info,
:root[data-theme="dark"]
.sport-result-winner,
:root[data-theme="dark"]
.section-title.compact p {
  color: #94a3b8;
}


:root[data-theme="dark"]
.sport-versus {
  background: #172a44;
  color: #dbeafe;
}


:root[data-theme="dark"]
.sport-radar-item {
  background: #101f33;

  border:
    1px solid #1f3a57;
}


:root[data-theme="dark"]
.sport-radar-item span {
  color: #8fa8c2;
}


:root[data-theme="dark"]
.sport-radar-item strong {
  color: #f8fafc;
}


:root[data-theme="dark"]
.sport-progress-bar,
:root[data-theme="dark"]
.mini-progress {
  background: #17263a;
}


:root[data-theme="dark"]
.sport-progress-bar > div,
:root[data-theme="dark"]
.mini-progress > div {
  background:
    linear-gradient(
      90deg,
      #3b82f6,
      #06b6d4,
      #22c55e
    );
}


:root[data-theme="dark"]
.sport-kpi-card {
  background: #0d1b2d;
  border-color: #244462;
}


:root[data-theme="dark"]
.sport-kpi-card small,
:root[data-theme="dark"]
.sport-kpi-card p {
  color: #8fa8c2;
}


:root[data-theme="dark"]
.sport-kpi-card h3 {
  color: #ffffff;
}


:root[data-theme="dark"]
.category-overview-card {
  background: #101f33;

  border:
    1px solid #244462;
}


:root[data-theme="dark"]
.category-overview-card.principal {
  border-color:
    rgba(59,130,246,.55);
}


:root[data-theme="dark"]
.category-overview-card.principal::before {
  background: #3b82f6;
}


:root[data-theme="dark"]
.category-card-head small,
:root[data-theme="dark"]
.category-score-strip span {
  color: #8fa8c2;
}


:root[data-theme="dark"]
.category-state-badge.ok {
  background:
    rgba(34,197,94,.15);
  color: #86efac;
}


:root[data-theme="dark"]
.category-state-badge.muted {
  background:
    rgba(148,163,184,.12);
  color: #cbd5e1;
}


:root[data-theme="dark"]
.podium-row,
:root[data-theme="dark"]
.recent-result-row {
  background: #101f33;

  border:
    1px solid #1f3a57;
}


:root[data-theme="dark"]
.podium-row.leader {
  border-color:
    rgba(250,204,21,.42);

  background:
    linear-gradient(
      135deg,
      rgba(250,204,21,.08),
      #101f33 55%
    );
}


:root[data-theme="dark"]
.podium-rank {
  background: #172a44;
  color: #bfdbfe;
}


:root[data-theme="dark"]
.podium-row.leader
.podium-rank {
  background:
    rgba(250,204,21,.15);
  color: #fde68a;
}


:root[data-theme="dark"]
.podium-info small,
:root[data-theme="dark"]
.podium-points span,
:root[data-theme="dark"]
.recent-result-meta small,
:root[data-theme="dark"]
.recent-result-winner {
  color: #8fa8c2;
}


:root[data-theme="dark"]
.podium-points strong {
  color: #60a5fa;
}


/* =========================================================
   LIGHT
   ========================================================= */

:root[data-theme="light"] .sport-hero-card {
  background:
    linear-gradient(
      135deg,
      #2563eb 0%,
      #1d4ed8 48%,
      #172554 100%
    );

  color: #ffffff;

  border-color:
    rgba(37,99,235,.18);

  box-shadow:
    0 18px 40px
    rgba(30,64,175,.18);
}


:root[data-theme="light"]
.sport-hero-card::before {
  background:
    rgba(255,255,255,.10);
}


:root[data-theme="light"]
.sport-hero-card::after {
  background:
    rgba(255,255,255,.07);
}


:root[data-theme="light"]
.sport-eyebrow {
  color: #dbeafe;
}


:root[data-theme="light"]
.sport-hero-main p,
:root[data-theme="light"]
.sport-hero-meta {
  color: #dbeafe;
}


:root[data-theme="light"]
.sport-status-pill.normal {
  background: #dcfce7;
  color: #047857;
}


:root[data-theme="light"]
.sport-status-pill.live {
  background: #fee2e2;
  color: #dc2626;
}


:root[data-theme="light"]
.sport-hero-chip {
  background:
    rgba(255,255,255,.12);

  border:
    1px solid
    rgba(255,255,255,.14);
}


:root[data-theme="light"]
.sport-hero-chip small {
  color: #dbeafe;
}


:root[data-theme="light"]
.sport-hero-chip strong {
  color: #ffffff;
}


:root[data-theme="light"]
.sport-spotlight-card,
:root[data-theme="light"]
.sport-radar-card,
:root[data-theme="light"]
.sport-section-card,
:root[data-theme="light"]
.sport-podium-card,
:root[data-theme="light"]
.sport-results-card {
  background: #ffffff;
  color: #0f172a;

  border:
    1px solid #dbe5f0;

  box-shadow:
    0 12px 30px
    rgba(15,23,42,.06);
}


:root[data-theme="light"]
.sport-spotlight-card.live-mode {
  border-color: #fecaca;

  box-shadow:
    inset 4px 0 0 #ef4444,
    0 12px 30px rgba(15,23,42,.06);
}


:root[data-theme="light"]
.sport-spotlight-card.next-mode {
  box-shadow:
    inset 4px 0 0 #2563eb,
    0 12px 30px rgba(15,23,42,.06);
}


:root[data-theme="light"]
.spotlight-badge.danger {
  background: #fee2e2;
  color: #dc2626;
}


:root[data-theme="light"]
.spotlight-badge.primary {
  background: #dbeafe;
  color: #1d4ed8;
}


:root[data-theme="light"]
.spotlight-badge.success {
  background: #dcfce7;
  color: #15803d;
}


:root[data-theme="light"]
.spotlight-badge.neutral {
  background: #f1f5f9;
  color: #64748b;
}


:root[data-theme="light"]
.spotlight-meta,
:root[data-theme="light"]
.sport-team-block span,
:root[data-theme="light"]
.sport-mini-info,
:root[data-theme="light"]
.sport-result-winner,
:root[data-theme="light"]
.section-title.compact p {
  color: #64748b;
}


:root[data-theme="light"]
.sport-versus {
  background: #eff6ff;
  color: #1d4ed8;
}


:root[data-theme="light"]
.sport-radar-item {
  background: #f8fafc;

  border:
    1px solid #e2e8f0;
}


:root[data-theme="light"]
.sport-radar-item span {
  color: #64748b;
}


:root[data-theme="light"]
.sport-radar-item strong {
  color: #0f172a;
}


:root[data-theme="light"]
.sport-progress-bar,
:root[data-theme="light"]
.mini-progress {
  background: #e2e8f0;
}


:root[data-theme="light"]
.sport-progress-bar > div,
:root[data-theme="light"]
.mini-progress > div {
  background:
    linear-gradient(
      90deg,
      #2563eb,
      #06b6d4,
      #22c55e
    );
}


:root[data-theme="light"]
.sport-kpi-card {
  background: #ffffff;

  border:
    1px solid #dbe5f0;

  box-shadow:
    0 8px 20px
    rgba(15,23,42,.05);
}


:root[data-theme="light"]
.sport-kpi-card small,
:root[data-theme="light"]
.sport-kpi-card p {
  color: #64748b;
}


:root[data-theme="light"]
.sport-kpi-card h3 {
  color: #0f172a;
}


:root[data-theme="light"]
.category-overview-card {
  background: #f8fafc;

  border:
    1px solid #e2e8f0;
}


:root[data-theme="light"]
.category-overview-card.principal {
  border-color: #93c5fd;

  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #ffffff
    );
}


:root[data-theme="light"]
.category-overview-card.principal::before {
  background: #2563eb;
}


:root[data-theme="light"]
.category-card-head small,
:root[data-theme="light"]
.category-score-strip span {
  color: #64748b;
}


:root[data-theme="light"]
.category-state-badge.ok {
  background: #dcfce7;
  color: #15803d;
}


:root[data-theme="light"]
.category-state-badge.muted {
  background: #f1f5f9;
  color: #64748b;
}


:root[data-theme="light"]
.podium-row,
:root[data-theme="light"]
.recent-result-row {
  background: #f8fafc;

  border:
    1px solid #e2e8f0;
}


:root[data-theme="light"]
.podium-row.leader {
  border-color: #facc15;

  background:
    linear-gradient(
      135deg,
      #fffbeb,
      #ffffff 60%
    );
}


:root[data-theme="light"]
.podium-rank {
  background: #eff6ff;
  color: #2563eb;
}


:root[data-theme="light"]
.podium-row.leader
.podium-rank {
  background: #fef3c7;
  color: #b45309;
}


:root[data-theme="light"]
.podium-info small,
:root[data-theme="light"]
.podium-points span,
:root[data-theme="light"]
.recent-result-meta small,
:root[data-theme="light"]
.recent-result-winner {
  color: #64748b;
}


:root[data-theme="light"]
.podium-points strong {
  color: #2563eb;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {

  .sport-main-grid,
  .sport-bottom-grid {
    grid-template-columns: 1fr;
  }


  .sport-kpi-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  .category-overview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 520px) {

  .admin-sport-dashboard {
    gap: 14px;
  }


  .sport-hero-card {
    padding: 20px 18px;
    border-radius: 25px;
  }


  .sport-hero-main {
    display: block;
  }


  .sport-status-pill {
    margin-top: 14px;
  }


  .sport-chip-row {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  .sport-chip-row
  .sport-hero-chip:nth-child(4),
  .sport-chip-row
  .sport-hero-chip:nth-child(5) {
    grid-column: auto;
  }


  .sport-main-grid {
    grid-template-columns: 1fr;
  }


  .sport-kpi-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 8px;
  }


  .sport-kpi-card {
    min-height: 92px;
  }


  .sport-kpi-card h3 {
    font-size: 21px;
  }


  .category-overview-grid {
    grid-template-columns: 1fr;
  }


  .sport-bottom-grid {
    grid-template-columns: 1fr;
  }


  .sport-spotlight-card {
    min-height: 260px;
  }


  .sport-spotlight-footer {
    grid-template-columns: 1fr;
  }


  .sport-spotlight-footer
  .btn-primary {
    width: 100%;
  }


  .sport-action-row {
    grid-template-columns: 1fr;
  }


  .sport-action-row
  .btn-primary {
    grid-column: auto;
  }

}

/* ===== LIGAYA - DASHBOARD SPORT CLEAN V3 ===== */


/* ---------------------------------------------------------
   RITMO GENERAL
   --------------------------------------------------------- */

.admin-sport-dashboard {
  gap: 14px;
}


/* ---------------------------------------------------------
   HERO MÁS COMPACTO
   --------------------------------------------------------- */

.admin-sport-dashboard .sport-hero-card {
  padding: 21px 20px 18px;
}

.admin-sport-dashboard .sport-chip-row {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;

  margin-top: 18px;
}

.admin-sport-dashboard .sport-hero-chip {
  padding: 11px 8px;
}

.admin-sport-dashboard .sport-hero-chip strong {
  font-size: 20px;
}

.admin-sport-dashboard .sport-hero-meta {
  padding-top: 3px;

  gap: 6px 16px;

  line-height: 1.45;
}


/* ---------------------------------------------------------
   PARTIDO COMO BLOQUE PROTAGONISTA
   --------------------------------------------------------- */

.sport-match-stage {
  display: block;
}

.sport-match-stage .sport-spotlight-card {
  min-height: 220px;
}

.sport-match-stage .sport-spotlight-body {
  padding:
    22px 8px
    18px;
}

.sport-match-stage .sport-team-block strong {
  font-size: 18px;
}

.sport-match-stage .sport-spotlight-footer {
  margin-top: 4px;
}


/* ---------------------------------------------------------
   CATEGORÍAS - MÁS PRESENCIA DEPORTIVA
   --------------------------------------------------------- */

.admin-sport-dashboard .sport-section-card {
  padding: 19px;
}

.admin-sport-dashboard
.category-overview-card {
  padding: 16px;
}

.admin-sport-dashboard
.category-card-head strong {
  font-size: 16px;
}

.admin-sport-dashboard
.category-score-strip {
  margin-top: 17px;
}

.admin-sport-dashboard
.category-score-strip strong {
  font-size: 17px;
}

.admin-sport-dashboard
.category-card-footer button {
  min-height: 42px;
}


/* ---------------------------------------------------------
   PODIO
   --------------------------------------------------------- */

.admin-sport-dashboard
.podium-row {
  padding: 12px;
}

.admin-sport-dashboard
.podium-row.leader {
  transform: translateZ(0);
}

.admin-sport-dashboard
.podium-info strong {
  font-size: 14px;
}

.admin-sport-dashboard
.podium-points strong {
  font-size: 23px;
}


/* ---------------------------------------------------------
   RESULTADOS
   --------------------------------------------------------- */

.admin-sport-dashboard
.recent-result-row {
  padding: 14px;
}

.admin-sport-dashboard
.recent-result-score {
  margin-top: 13px;
}

.admin-sport-dashboard
.recent-result-score strong {
  font-size: 23px;
}


/* ---------------------------------------------------------
   DARK - PROFUNDIDAD SUTIL
   --------------------------------------------------------- */

:root[data-theme="dark"]
.admin-sport-dashboard
.sport-section-card,

:root[data-theme="dark"]
.admin-sport-dashboard
.sport-podium-card,

:root[data-theme="dark"]
.admin-sport-dashboard
.sport-results-card {
  box-shadow:
    0 16px 38px
    rgba(0, 0, 0, .14);
}


/* ---------------------------------------------------------
   LIGHT - MISMA JERARQUÍA
   --------------------------------------------------------- */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-section-card,

:root[data-theme="light"]
.admin-sport-dashboard
.sport-podium-card,

:root[data-theme="light"]
.admin-sport-dashboard
.sport-results-card {
  box-shadow:
    0 12px 30px
    rgba(15, 23, 42, .055);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 520px) {

  .admin-sport-dashboard
  .sport-hero-card {
    padding:
      20px 18px
      17px;
  }

  .admin-sport-dashboard
  .sport-chip-row {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .admin-sport-dashboard
  .sport-hero-chip {
    padding:
      10px 5px;
  }

  .admin-sport-dashboard
  .sport-hero-chip small {
    font-size: 8px;
  }

  .admin-sport-dashboard
  .sport-hero-chip strong {
    font-size: 18px;
  }

  .sport-match-stage
  .sport-spotlight-card {
    min-height: 230px;
  }

  .sport-match-stage
  .sport-spotlight-body {
    padding:
      25px 0
      20px;
  }

  .admin-sport-dashboard
  .sport-bottom-grid {
    gap: 14px;
  }

}

/* ===== LIGAYA HERO - ESTADO SUPERIOR ===== */

.admin-sport-dashboard .sport-hero-main {
  display: block;
}

.admin-sport-dashboard .sport-hero-heading {
  width: 100%;
}

.admin-sport-dashboard .sport-hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 8px;
}

.admin-sport-dashboard .sport-hero-kicker-row .sport-eyebrow {
  margin-bottom: 0;
}

.admin-sport-dashboard .sport-hero-kicker-row .sport-status-pill {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 520px) {

  .admin-sport-dashboard .sport-hero-main {
    display: block;
  }

  .admin-sport-dashboard .sport-hero-kicker-row {
    align-items: center;
  }

  .admin-sport-dashboard .sport-status-pill {
    margin-top: 0;
  }

}

/* ===== LIGAYA - SPORT BOTTOM NAV ===== */

@media (max-width: 900px) {

  /*
   * DOCK PRINCIPAL
   */

  .bottom-nav {
    left: 12px;
    right: 12px;

    bottom:
      max(
        9px,
        env(safe-area-inset-bottom)
      );

    height: 72px;

    padding: 7px;

    border-radius: 23px;

    overflow: visible;

    isolation: isolate;

    backdrop-filter:
      blur(18px);

    -webkit-backdrop-filter:
      blur(18px);

    transition:
      background .25s ease,
      border-color .25s ease,
      box-shadow .25s ease;
  }


  /*
   * DESTELLO SUPERIOR DEL DOCK
   */

  .bottom-nav::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 22%;
    right: 22%;

    height: 1px;

    border-radius: 999px;

    pointer-events: none;
  }


  /*
   * CADA OPCION
   */

  .bottom-nav a,
  .bottom-nav .bottom-item {
    position: relative;

    min-width: 0;
    height: 58px;

    padding: 4px 3px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    border-radius: 17px;

    text-decoration: none;

    transition:
      transform .18s ease,
      background .2s ease,
      color .2s ease,
      box-shadow .2s ease;
  }


  /*
   * CONTENEDOR DEL ICONO
   */

  .bottom-nav a > div:first-child,
  .bottom-nav .bottom-item > div:first-child {
    position: relative;

    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 11px;

    font-size: 17px;
    line-height: 1;

    transition:
      transform .2s ease,
      background .2s ease,
      box-shadow .2s ease;
  }


  /*
   * TEXTO
   */

  .bottom-nav a span,
  .bottom-nav .bottom-item span {
    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .01em;

    transition:
      color .2s ease,
      opacity .2s ease;
  }


  /*
   * ACTIVO
   */

  .bottom-nav a.active,
  .bottom-nav .bottom-item.active {
    transform:
      translateY(-2px);

    border-radius: 18px;
  }


  .bottom-nav a.active::after,
  .bottom-nav .bottom-item.active::after {
    content: "";

    position: absolute;

    bottom: 3px;

    width: 18px;
    height: 3px;

    border-radius: 999px;
  }


  .bottom-nav a.active > div:first-child,
  .bottom-nav .bottom-item.active > div:first-child {
    transform:
      translateY(-1px)
      scale(1.05);
  }


  /*
   * INTERACCION
   */

  .bottom-nav a:active,
  .bottom-nav .bottom-item:active {
    transform:
      scale(.95);
  }

}


/* =========================================================
   DARK
   ========================================================= */

@media (max-width: 900px) {

  :root[data-theme="dark"]
  .bottom-nav {
    background:
      linear-gradient(
        180deg,
        rgba(8, 20, 38, .96) 0%,
        rgba(2, 8, 23, .985) 100%
      );

    border:
      1px solid
      rgba(96, 165, 250, .18);

    box-shadow:
      0 -8px 32px
        rgba(0, 0, 0, .34),

      0 14px 34px
        rgba(0, 0, 0, .30),

      inset 0 1px 0
        rgba(255, 255, 255, .035);
  }


  :root[data-theme="dark"]
  .bottom-nav::before {
    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(96, 165, 250, .72),
        transparent
      );

    box-shadow:
      0 0 16px
      rgba(59, 130, 246, .35);
  }


  :root[data-theme="dark"]
  .bottom-nav a,
  :root[data-theme="dark"]
  .bottom-nav .bottom-item {
    color: #8194ad;
  }


  :root[data-theme="dark"]
  .bottom-nav a > div:first-child,
  :root[data-theme="dark"]
  .bottom-nav .bottom-item > div:first-child {
    background:
      rgba(148, 163, 184, .06);
  }


  :root[data-theme="dark"]
  .bottom-nav a.active,
  :root[data-theme="dark"]
  .bottom-nav .bottom-item.active {
    color: #ffffff;

    background:
      linear-gradient(
        145deg,
        rgba(37, 99, 235, .95),
        rgba(59, 130, 246, .88)
      );

    box-shadow:
      0 8px 20px
        rgba(37, 99, 235, .28),

      inset 0 1px 0
        rgba(255, 255, 255, .16);
  }


  :root[data-theme="dark"]
  .bottom-nav a.active > div:first-child,
  :root[data-theme="dark"]
  .bottom-nav .bottom-item.active > div:first-child {
    background:
      rgba(255, 255, 255, .13);

    box-shadow:
      0 0 18px
      rgba(147, 197, 253, .17);
  }


  :root[data-theme="dark"]
  .bottom-nav a.active::after,
  :root[data-theme="dark"]
  .bottom-nav .bottom-item.active::after {
    background: #bfdbfe;

    box-shadow:
      0 0 9px
      rgba(147, 197, 253, .70);
  }

}


/* =========================================================
   LIGHT
   ========================================================= */

@media (max-width: 900px) {

  :root[data-theme="light"]
  .bottom-nav {
    background:
      rgba(255, 255, 255, .96);

    border:
      1px solid #dbe5f0;

    box-shadow:
      0 -7px 28px
        rgba(15, 23, 42, .07),

      0 12px 30px
        rgba(15, 23, 42, .10),

      inset 0 1px 0
        rgba(255, 255, 255, .85);
  }


  :root[data-theme="light"]
  .bottom-nav::before {
    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, .48),
        transparent
      );
  }


  :root[data-theme="light"]
  .bottom-nav a,
  :root[data-theme="light"]
  .bottom-nav .bottom-item {
    color: #64748b;
  }


  :root[data-theme="light"]
  .bottom-nav a > div:first-child,
  :root[data-theme="light"]
  .bottom-nav .bottom-item > div:first-child {
    background: #f1f5f9;
  }


  :root[data-theme="light"]
  .bottom-nav a.active,
  :root[data-theme="light"]
  .bottom-nav .bottom-item.active {
    color: #ffffff;

    background:
      linear-gradient(
        145deg,
        #2563eb,
        #3b82f6
      );

    box-shadow:
      0 8px 20px
      rgba(37, 99, 235, .22);
  }


  :root[data-theme="light"]
  .bottom-nav a.active > div:first-child,
  :root[data-theme="light"]
  .bottom-nav .bottom-item.active > div:first-child {
    background:
      rgba(255, 255, 255, .16);
  }


  :root[data-theme="light"]
  .bottom-nav a.active::after,
  :root[data-theme="light"]
  .bottom-nav .bottom-item.active::after {
    background: #dbeafe;
  }

}

/* ===== LIGAYA - FOCUS CLEAN ===== */

/*
 * Evita el destello / cuadro azul del navegador
 * al pulsar controles con mouse o pantalla táctil.
 */

button,
select,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}


/* Click / touch */

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}


select:focus:not(:focus-visible) {
  outline: none;

  box-shadow: none !important;
}


/*
 * Conservamos un foco elegante para navegación
 * mediante teclado.
 */

button:focus-visible,
select:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline:
    2px solid
    #60a5fa;

  outline-offset: 2px;
}

/* ===== LIGAYA - BOTTOM NAV SVG ===== */

@media (max-width: 900px) {

  .bottom-nav .bottom-icon {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: inherit;
  }


  .bottom-nav .bottom-icon svg {
    display: block;

    width: 21px;
    height: 21px;

    overflow: visible;

    transition:
      transform .18s ease,
      stroke-width .18s ease;
  }


  /*
   * ACTIVO
   */

  .bottom-nav a.active
  .bottom-icon svg,

  .bottom-nav .bottom-item.active
  .bottom-icon svg {
    transform:
      scale(1.06);

    stroke-width: 2.15;
  }


  /*
   * DARK
   */

  :root[data-theme="dark"]
  .bottom-nav .bottom-icon {
    color: #7f94ad;
  }


  :root[data-theme="dark"]
  .bottom-nav a.active
  .bottom-icon,

  :root[data-theme="dark"]
  .bottom-nav .bottom-item.active
  .bottom-icon {
    color: #ffffff;
  }


  /*
   * LIGHT
   */

  :root[data-theme="light"]
  .bottom-nav .bottom-icon {
    color: #64748b;
  }


  :root[data-theme="light"]
  .bottom-nav a.active
  .bottom-icon,

  :root[data-theme="light"]
  .bottom-nav .bottom-item.active
  .bottom-icon {
    color: #ffffff;
  }

}

/* ===== LIGAYA DASHBOARD LIGHT FINAL V4 ===== */


/* =========================================================
   HERO - MANTIENE IDENTIDAD AZUL TAMBIEN EN LIGHT
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-card.ds-card {
  background:
    radial-gradient(
      circle at 93% 5%,
      rgba(56, 189, 248, .22) 0,
      rgba(56, 189, 248, .22) 20%,
      transparent 20.5%
    ),
    radial-gradient(
      circle at 42% 118%,
      rgba(99, 102, 241, .24) 0,
      rgba(99, 102, 241, .24) 20%,
      transparent 20.5%
    ),
    linear-gradient(
      135deg,
      #315bea 0%,
      #233f9f 48%,
      #172554 100%
    ) !important;

  color: #ffffff !important;

  border:
    1px solid
    rgba(37, 99, 235, .28) !important;

  box-shadow:
    0 18px 40px
    rgba(30, 64, 175, .18) !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-card h1,

:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-card p,

:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-card
.sport-eyebrow,

:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-card
.sport-hero-meta {
  color: #ffffff !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-chip {
  background:
    rgba(255, 255, 255, .11) !important;

  border:
    1px solid
    rgba(255, 255, 255, .16) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .08);
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-chip small {
  color: #dbeafe !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-hero-chip strong {
  color: #ffffff !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-status-pill.normal {
  background: #d1fae5 !important;
  color: #047857 !important;

  border:
    1px solid
    rgba(16, 185, 129, .18);
}


/* =========================================================
   PROXIMO ENCUENTRO
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-spotlight-card.next-mode.ds-card {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f4f8ff 55%,
      #edf4ff 100%
    ) !important;

  border:
    1px solid #bfd4ff !important;

  box-shadow:
    inset 4px 0 0 #3b82f6,
    0 14px 30px
    rgba(37, 99, 235, .09) !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-spotlight-card.next-mode
.spotlight-badge.primary {
  background: #dbeafe !important;
  color: #1d4ed8 !important;

  border:
    1px solid #bfdbfe;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-spotlight-card.next-mode
.sport-versus {
  background: #dbeafe !important;
  color: #1d4ed8 !important;

  border:
    1px solid #bfdbfe;
}


/* =========================================================
   CATEGORIAS
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-section-card.ds-card {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7faff 100%
    ) !important;

  border:
    1px solid #d6e4ff !important;

  box-shadow:
    0 14px 30px
    rgba(37, 99, 235, .065) !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.category-overview-card {
  background:
    linear-gradient(
      145deg,
      #f8fbff,
      #eef5ff
    ) !important;

  border:
    1px solid #cbdcff !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.category-overview-card.principal {
  background:
    linear-gradient(
      145deg,
      #eff6ff 0%,
      #ffffff 68%
    ) !important;

  border-color: #93c5fd !important;

  box-shadow:
    0 10px 24px
    rgba(37, 99, 235, .08);
}


:root[data-theme="light"]
.admin-sport-dashboard
.category-overview-card.principal::before {
  background:
    linear-gradient(
      180deg,
      #2563eb,
      #06b6d4
    ) !important;
}


/* =========================================================
   PODIO
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-podium-card.ds-card {
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fffdf7
    ) !important;

  border:
    1px solid #e8dfc8 !important;

  box-shadow:
    0 14px 28px
    rgba(120, 90, 20, .055) !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.podium-row {
  background: #f8fafc !important;

  border:
    1px solid #e2e8f0 !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.podium-row.leader {
  background:
    linear-gradient(
      135deg,
      #fff9df 0%,
      #ffffff 70%
    ) !important;

  border:
    1px solid #f2c94c !important;

  box-shadow:
    0 8px 20px
    rgba(234, 179, 8, .10);
}


:root[data-theme="light"]
.admin-sport-dashboard
.podium-row.leader
.podium-rank {
  background: #fef3c7 !important;
  color: #a16207 !important;
}


/* =========================================================
   RESULTADOS RECIENTES
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-results-card.ds-card {
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f5faff
    ) !important;

  border:
    1px solid #d7e6f7 !important;

  box-shadow:
    0 14px 28px
    rgba(30, 64, 175, .055) !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.recent-result-row {
  background:
    linear-gradient(
      135deg,
      #f8fbff,
      #eef6ff
    ) !important;

  border:
    1px solid #d5e4f5 !important;
}


/* =========================================================
   ENCABEZADOS DE LAS SECCIONES
   ========================================================= */

:root[data-theme="light"]
.admin-sport-dashboard
.sport-section-card
.section-title h3 {
  color: #172554 !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-podium-card
.section-title h3 {
  color: #854d0e !important;
}


:root[data-theme="light"]
.admin-sport-dashboard
.sport-results-card
.section-title h3 {
  color: #1e3a8a !important;
}

/* ===== LIGAYA DASHBOARD TEAM IDENTITY ===== */

.admin-sport-dashboard
.sport-team-identity {
  width: 68px;
  height: 68px;

  margin:
    0 auto
    10px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    rgba(59, 130, 246, .08);

  border:
    1px solid
    rgba(59, 130, 246, .16);

  font-size: 38px;

  overflow: hidden;
}


.admin-sport-dashboard
.sport-team-identity
.team-flag-img {
  width: 58px !important;
  height: 58px !important;

  object-fit: cover;

  border-radius: 50%;

  border:
    2px solid #ffffff;

  box-shadow:
    0 5px 14px
    rgba(15, 23, 42, .14);
}


.admin-sport-dashboard
.sport-team-identity
.team-identity-logo {
  width: 58px !important;
  height: 58px !important;

  max-width: 58px !important;
  max-height: 58px !important;

  object-fit: contain;

  border-radius: 14px;
}


:root[data-theme="dark"]
.admin-sport-dashboard
.sport-team-identity {
  background:
    rgba(59, 130, 246, .12);

  border-color:
    rgba(96, 165, 250, .22);
}


@media (max-width: 600px) {

  .admin-sport-dashboard
  .sport-team-identity {
    width: 58px;
    height: 58px;

    margin-bottom: 8px;
  }


  .admin-sport-dashboard
  .sport-team-identity
  .team-flag-img,

  .admin-sport-dashboard
  .sport-team-identity
  .team-identity-logo {
    width: 50px !important;
    height: 50px !important;

    max-width: 50px !important;
    max-height: 50px !important;
  }
}

/* ===== LIGAYA TEAM IDENTITY VISUAL BALANCE ===== */

/*
 * Los escudos personalizados suelen incluir
 * espacio transparente interno.
 * Se muestran ligeramente más grandes que
 * las banderas para equilibrar su peso visual.
 */

.admin-sport-dashboard
.sport-team-identity
.team-identity-logo {
  width: 64px !important;
  height: 64px !important;

  max-width: 64px !important;
  max-height: 64px !important;

  object-fit: contain;
}


.admin-sport-dashboard
.sport-team-identity
.team-flag-img {
  width: 56px !important;
  height: 56px !important;
}


@media (max-width: 600px) {

  .admin-sport-dashboard
  .sport-team-identity
  .team-identity-logo {
    width: 56px !important;
    height: 56px !important;

    max-width: 56px !important;
    max-height: 56px !important;
  }


  .admin-sport-dashboard
  .sport-team-identity
  .team-flag-img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* ===== LIGAYA MESA SCOREBOARD V2 ===== */


/* =========================================================
   MARCADOR OPERATIVO
   ========================================================= */

.scoreboard-landscape {
  position: relative;

  min-height:
    calc(100vh - 130px);

  padding: 18px;

  overflow: hidden;

  border-radius: 26px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(37, 99, 235, .22),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #061224 0%,
      #08162b 48%,
      #050b18 100%
    ) !important;

  border:
    1px solid
    rgba(96, 165, 250, .18);

  box-shadow:
    0 22px 55px
    rgba(0, 0, 0, .26);
}


.scoreboard-landscape::before {
  content: "";

  position: absolute;

  width: 320px;
  height: 320px;

  top: -190px;
  left: 50%;

  transform:
    translateX(-50%);

  border-radius: 50%;

  background:
    rgba(59, 130, 246, .10);

  filter:
    blur(2px);

  pointer-events: none;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.scoreboard-game {
  position: relative;

  z-index: 1;

  min-height:
    calc(100vh - 170px);

  display: grid;

  grid-template-rows:
    auto 1fr;

  gap: 18px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.score-top {
  min-height: 74px;

  padding:
    10px
    14px;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 16px;

  border-radius: 20px;

  background:
    rgba(15, 23, 42, .52);

  border:
    1px solid
    rgba(148, 163, 184, .12);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);
}


.live-badge {
  justify-self: start;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding:
    10px
    16px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ff4d5f,
      #ef4444
    ) !important;

  border:
    1px solid
    rgba(255, 255, 255, .16);

  box-shadow:
    0 8px 22px
    rgba(239, 68, 68, .24);

  color: #ffffff !important;

  font-size: 12px;

  font-weight: 950;

  letter-spacing: .04em;
}


.score-title {
  display: grid;

  justify-items: center;

  gap: 2px;
}


.score-title strong {
  color: #ffffff;

  font-size:
    clamp(
      22px,
      3vw,
      34px
    );

  line-height: 1;

  font-weight: 950;

  letter-spacing: -.025em;
}


.score-title small {
  color: #9ec5ff;

  font-size: 12px;

  font-weight: 850;
}


.undo-top-btn {
  justify-self: end;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  min-height: 42px;

  padding:
    9px
    16px;

  border-radius: 14px !important;

  background:
    rgba(255, 255, 255, .07) !important;

  color: #e8f1ff !important;

  border:
    1px solid
    rgba(148, 163, 184, .22) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .04);

  font-size: 12px;

  font-weight: 900;

  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}


.undo-top-btn:hover {
  background:
    rgba(255, 255, 255, .11) !important;

  border-color:
    rgba(96, 165, 250, .32) !important;
}


.undo-top-btn:active {
  transform:
    scale(.97);
}


/* =========================================================
   ZONA CENTRAL
   ========================================================= */

.score-main {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    82px
    minmax(0, 1fr);

  gap: 18px;

  align-items: stretch;
}


/* =========================================================
   EQUIPOS
   ========================================================= */

.score-team-panel {
  position: relative;

  min-width: 0;

  min-height: 290px;

  padding:
    22px
    18px
    20px;

  display: grid;

  grid-template-rows:
    auto
    auto
    1fr;

  place-items: center;

  align-content: center;

  gap: 12px;

  overflow: hidden;

  border-radius: 28px !important;

  color: #ffffff !important;

  background:
    linear-gradient(
      155deg,
      rgba(31, 49, 82, .92),
      rgba(19, 28, 51, .96)
    ) !important;

  border:
    1px solid
    rgba(148, 163, 184, .22) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, .04),
    0 18px 38px
    rgba(0, 0, 0, .16);

  transition:
    transform .12s ease,
    border-color .12s ease,
    background .12s ease;
}


.score-team-panel::before {
  content: "";

  position: absolute;

  inset:
    0
    0
    auto
    0;

  height: 4px;

  opacity: .9;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #38bdf8
    );
}


.score-team-panel:hover {
  border-color:
    rgba(96, 165, 250, .42) !important;

  background:
    linear-gradient(
      155deg,
      rgba(36, 56, 94, .96),
      rgba(20, 31, 57, .98)
    ) !important;
}


.score-team-panel:active {
  transform:
    scale(.985);
}


/* =========================================================
   IDENTIDAD DEL EQUIPO
   ========================================================= */

.score-flag {
  width: 78px !important;
  height: 78px !important;

  display: grid;

  place-items: center;

  overflow: hidden;

  border-radius: 50% !important;

  background:
    rgba(255, 255, 255, .96) !important;

  border:
    3px solid
    rgba(255, 255, 255, .9);

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, .20);
}


.score-flag
.team-identity-logo {
  width: 72px !important;
  height: 72px !important;

  max-width: 72px !important;
  max-height: 72px !important;

  object-fit: contain;
}


.score-flag
.team-flag-img {
  width: 70px !important;
  height: 70px !important;

  object-fit: cover;

  border-radius: 50%;
}


.score-team-panel h3 {
  margin: 0;

  color: #ffffff !important;

  font-size:
    clamp(
      17px,
      2vw,
      23px
    ) !important;

  font-weight: 950;

  text-align: center;

  letter-spacing: -.015em;
}


/* =========================================================
   PUNTAJE
   ========================================================= */

.score-team-panel strong {
  align-self: center;

  color: #ffffff !important;

  font-size:
    clamp(
      88px,
      13vw,
      154px
    ) !important;

  line-height: .88 !important;

  font-weight: 1000;

  letter-spacing: -.055em;

  font-variant-numeric:
    tabular-nums;

  text-shadow:
    0 7px 24px
    rgba(0, 0, 0, .24);
}


/* =========================================================
   VS
   ========================================================= */

.score-versus {
  align-self: center;

  justify-self: center;

  width: 62px !important;
  height: 62px !important;

  display: grid;

  place-items: center;

  border-radius: 50% !important;

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, .24),
      rgba(30, 41, 59, .92)
    ) !important;

  color: #ffffff !important;

  border:
    1px solid
    rgba(96, 165, 250, .24);

  box-shadow:
    0 10px 28px
    rgba(0, 0, 0, .18);

  font-size: 14px;

  font-weight: 950;
}


/* =========================================================
   MENSAJES DEL SET
   ========================================================= */

.score-message {
  position: relative;

  z-index: 3;

  margin:
    0
    auto;

  max-width: 680px;

  background:
    linear-gradient(
      135deg,
      #fde68a,
      #f59e0b
    ) !important;

  color: #422006 !important;

  border:
    1px solid
    rgba(255, 255, 255, .28);

  box-shadow:
    0 12px 28px
    rgba(245, 158, 11, .16);
}


/* =========================================================
   LANDSCAPE PEQUEÑO
   ========================================================= */

@media (
  orientation: landscape
) and (
  max-height: 520px
) {

  .scoreboard-landscape {
    min-height: 100vh;

    padding: 12px;

    border-radius: 0;
  }


  .scoreboard-game {
    min-height:
      calc(100vh - 24px);

    gap: 10px;
  }


  .score-top {
    min-height: 58px;

    padding:
      6px
      10px;

    border-radius: 16px;
  }


  .score-main {
    grid-template-columns:
      minmax(0, 1fr)
      68px
      minmax(0, 1fr);

    gap: 12px;
  }


  .score-team-panel {
    min-height: 0;

    padding:
      12px
      14px;

    gap: 6px;

    border-radius: 22px !important;
  }


  .score-flag {
    width: 62px !important;
    height: 62px !important;
  }


  .score-flag
  .team-identity-logo {
    width: 58px !important;
    height: 58px !important;

    max-width: 58px !important;
    max-height: 58px !important;
  }


  .score-flag
  .team-flag-img {
    width: 56px !important;
    height: 56px !important;
  }


  .score-team-panel h3 {
    font-size: 15px !important;
  }


  .score-team-panel strong {
    font-size:
      clamp(
        68px,
        15vh,
        112px
      ) !important;
  }


  .score-versus {
    width: 52px !important;
    height: 52px !important;
  }
}

/* ===== LIGAYA MESA PORTRAIT LOCK ===== */

@media (
  orientation: portrait
) and (
  max-width: 900px
) {

  .scoreboard-landscape {
    min-height:
      calc(100vh - 190px);

    display: grid;

    place-items: center;

    padding: 24px;

    background:
      radial-gradient(
        circle at 50% 15%,
        rgba(37, 99, 235, .22),
        transparent 45%
      ),
      linear-gradient(
        160deg,
        #071426,
        #050b17
      ) !important;
  }


  .scoreboard-game {
    display: none !important;
  }


  .score-message {
    display: none !important;
  }


  .rotate-warning {
    width: 100%;

    max-width: 330px;

    min-height: 260px;

    display: grid !important;

    place-content: center;

    justify-items: center;

    gap: 12px;

    padding: 30px 24px;

    text-align: center;

    border-radius: 28px;

    background:
      linear-gradient(
        145deg,
        rgba(30, 58, 138, .34),
        rgba(15, 23, 42, .74)
      );

    border:
      1px solid
      rgba(96, 165, 250, .22);

    box-shadow:
      0 22px 46px
      rgba(0, 0, 0, .22);
  }


  .rotate-warning h2 {
    margin: 0;

    color: #ffffff;

    font-size: 25px;

    font-weight: 950;
  }


  .rotate-warning p {
    margin: 0;

    max-width: 270px;

    color: #b8c7df;

    font-size: 14px;

    line-height: 1.55;
  }
}

/* ===== LIGAYA ROTATE WARNING MOTION ===== */

@media (
  orientation: portrait
) and (
  max-width: 900px
) {

  /*
   * Tarjeta con movimiento muy leve.
   */
  .rotate-warning {
    position: relative;

    overflow: hidden;

    animation:
      ligayaRotateCardFloat
      3.8s
      ease-in-out
      infinite;
  }


  /*
   * Halo luminoso en movimiento.
   */
  .rotate-warning::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -115px;
    left: 50%;

    transform:
      translateX(-50%);

    border-radius: 50%;

    background:
      radial-gradient(
        circle,
        rgba(59, 130, 246, .30) 0%,
        rgba(59, 130, 246, .10) 40%,
        transparent 72%
      );

    pointer-events: none;

    animation:
      ligayaRotateGlow
      3s
      ease-in-out
      infinite;
  }


  /*
   * Título siempre encima del halo.
   */
  .rotate-warning h2,
  .rotate-warning p {
    position: relative;

    z-index: 2;
  }


  /*
   * Pequeña línea inferior animada que sugiere
   * el movimiento horizontal.
   */
  .rotate-warning::before {
    content: "";

    position: absolute;

    z-index: 2;

    bottom: 34px;
    left: 50%;

    width: 42px;
    height: 4px;

    border-radius: 999px;

    background:
      linear-gradient(
        90deg,
        transparent,
        #60a5fa,
        #22d3ee,
        transparent
      );

    transform:
      translateX(-50%);

    box-shadow:
      0 0 14px
      rgba(56, 189, 248, .36);

    animation:
      ligayaRotateIndicator
      2.1s
      ease-in-out
      infinite;
  }
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes ligayaRotateCardFloat {

  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-4px);
  }
}


@keyframes ligayaRotateGlow {

  0%,
  100% {
    opacity: .45;

    transform:
      translateX(-50%)
      scale(.90);
  }

  50% {
    opacity: .95;

    transform:
      translateX(-50%)
      scale(1.08);
  }
}


@keyframes ligayaRotateIndicator {

  0%,
  100% {
    opacity: .35;

    transform:
      translateX(-50%)
      scaleX(.65);
  }

  50% {
    opacity: 1;

    transform:
      translateX(-50%)
      scaleX(1.15);
  }
}


/*
 * Accesibilidad:
 * respeta dispositivos configurados
 * para reducir movimiento.
 */
@media (
  prefers-reduced-motion: reduce
) {

  .rotate-warning,
  .rotate-warning::before,
  .rotate-warning::after {
    animation:
      none !important;
  }
}

/* ===== LIGAYA MESA LANDSCAPE XL ===== */

@media (
  orientation: landscape
) and (
  max-height: 560px
) {

  /*
   * La vista de marcador pasa a comportarse
   * como una consola deportiva de pantalla completa.
   */

  html,
  body {
    min-height: 100%;
  }


  body {
    overflow: hidden;
  }


  .main-content {
    width: 100% !important;

    min-height: 100dvh !important;

    margin: 0 !important;

    padding: 0 !important;
  }


  #app {
    width: 100%;

    height: 100dvh;

    margin: 0;

    padding: 0;
  }


  .scoreboard-landscape {
    width: 100%;

    height: 100dvh;

    min-height: 100dvh !important;

    margin: 0;

    padding:
      8px
      12px !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;
  }


  .scoreboard-game {
    width: 100%;

    height:
      calc(
        100dvh - 16px
      );

    min-height: 0 !important;

    display: grid;

    grid-template-rows:
      62px
      minmax(0, 1fr);

    gap: 8px;
  }


  /* =========================================
     CABECERA
     ========================================= */

  .score-top {
    min-height: 0;

    height: 62px;

    padding:
      6px
      12px;

    border-radius: 18px;
  }


  .live-badge {
    padding:
      9px
      15px;

    font-size: 12px;
  }


  .score-title {
    gap: 3px;
  }


  .score-title strong {
    font-size:
      clamp(
        24px,
        6vh,
        34px
      ) !important;
  }


  .score-title small {
    font-size: 12px;
  }


  .undo-top-btn {
    min-height: 40px;

    padding:
      8px
      14px;

    border-radius: 13px !important;
  }


  /* =========================================
     ZONA DE JUEGO
     ========================================= */

  .score-main {
    min-height: 0;

    height: 100%;

    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      70px
      minmax(0, 1fr);

    gap: 10px;

    align-items: stretch;
  }


  .score-team-panel {
    min-height: 0 !important;

    height: 100%;

    padding:
      10px
      16px
      8px;

    display: grid;

    grid-template-rows:
      auto
      auto
      minmax(0, 1fr);

    align-content: stretch;

    place-items: center;

    gap: 4px;

    border-radius: 24px !important;
  }


  /*
   * Línea superior deportiva más visible.
   */
  .score-team-panel::before {
    height: 5px;
  }


  /* =========================================
     ESCUDOS
     ========================================= */

  .score-flag {
    width: 78px !important;
    height: 78px !important;

    margin-top: 2px;
  }


  .score-flag
  .team-identity-logo {
    width: 74px !important;
    height: 74px !important;

    max-width: 74px !important;
    max-height: 74px !important;
  }


  .score-flag
  .team-flag-img {
    width: 70px !important;
    height: 70px !important;
  }


  .score-team-panel h3 {
    margin-top: 2px;

    font-size:
      clamp(
        17px,
        4vh,
        23px
      ) !important;

    line-height: 1.1;
  }


  /* =========================================
     PUNTAJE GIGANTE
     ========================================= */

  .score-team-panel strong {
    width: 100%;

    align-self: center;

    display: grid;

    place-items: center;

    font-size:
      clamp(
        110px,
        31vh,
        190px
      ) !important;

    line-height: .78 !important;

    letter-spacing: -.065em;

    transform:
      translateY(
        -2px
      );
  }


  /* =========================================
     VS
     ========================================= */

  .score-versus {
    width: 58px !important;
    height: 58px !important;

    font-size: 14px;

    border:
      1px solid
      rgba(
        96,
        165,
        250,
        .32
      );
  }


  /*
   * Ocultamos totalmente el aviso de giro
   * cuando ya estamos en horizontal.
   */
  .rotate-warning {
    display: none !important;
  }

}

/* ===== LIGAYA MESA SCORE GIGANTE V3 ===== */

@media (
  orientation: landscape
) and (
  max-height: 560px
) {

  /* =====================================================
     ZONA CENTRAL
     ===================================================== */

  .score-main {
    position: relative;

    grid-template-columns:
      minmax(0, 1fr)
      62px
      minmax(0, 1fr);

    gap: 8px;
  }


  /*
   * Divisor central del tablero.
   */
  .score-main::before {
    content: "";

    position: absolute;

    z-index: 0;

    top: 16px;
    bottom: 16px;

    left: 50%;

    width: 1px;

    transform:
      translateX(-50%);

    background:
      linear-gradient(
        180deg,
        transparent,
        rgba(96, 165, 250, .20) 18%,
        rgba(96, 165, 250, .32) 50%,
        rgba(96, 165, 250, .20) 82%,
        transparent
      );
  }


  /* =====================================================
     TARJETAS
     ===================================================== */

  .score-team-panel {
    position: relative;

    z-index: 1;

    padding:
      8px
      14px
      6px;

    grid-template-rows:
      68px
      28px
      minmax(0, 1fr);

    gap: 2px;
  }


  /* =====================================================
     ESCUDOS
     ===================================================== */

  .score-flag {
    width: 66px !important;
    height: 66px !important;

    margin: 0 !important;
  }


  .score-flag
  .team-identity-logo {
    width: 62px !important;
    height: 62px !important;

    max-width: 62px !important;
    max-height: 62px !important;
  }


  .score-flag
  .team-flag-img {
    width: 59px !important;
    height: 59px !important;
  }


  /* =====================================================
     NOMBRE EQUIPO
     ===================================================== */

  .score-team-panel h3 {
    margin: 0 !important;

    align-self: start;

    font-size:
      clamp(
        16px,
        3.8vh,
        21px
      ) !important;

    line-height: 1;
  }


  /* =====================================================
     PUNTAJE GIGANTE
     ===================================================== */

  .score-team-panel strong {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 !important;

    padding: 0 !important;

    font-size:
      clamp(
        145px,
        43vh,
        245px
      ) !important;

    line-height: .72 !important;

    letter-spacing: -.075em;

    transform:
      translateY(-2px);

    text-shadow:
      0 12px 32px
      rgba(0, 0, 0, .30);
  }


  /* =====================================================
     VS CENTRAL
     ===================================================== */

  .score-versus {
    position: relative;

    z-index: 3;

    width: 48px !important;
    height: 48px !important;

    align-self: center;

    background:
      #0d1d36 !important;

    border:
      1px solid
      rgba(96, 165, 250, .36) !important;

    box-shadow:
      0 0 0 7px
      rgba(6, 18, 36, .94),
      0 8px 22px
      rgba(0, 0, 0, .28);

    font-size: 12px;
  }


  /* =====================================================
     RESPUESTA TACTIL
     ===================================================== */

  .score-team-panel:active {
    transform:
      scale(.992);

    border-color:
      rgba(96, 165, 250, .60) !important;

    box-shadow:
      inset 0 0 0 2px
      rgba(59, 130, 246, .18),
      0 12px 26px
      rgba(0, 0, 0, .18);
  }

}

/* ===== LIGAYA SCORE ANNOUNCE ===== */


/* Botones de control de Mesa */

.score-top-actions {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 8px;
}


.score-announce-btn {
  min-height: 42px;

  padding:
    9px
    15px;

  border-radius: 14px;

  border:
    1px solid
    rgba(59, 130, 246, .42);

  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, .94),
      rgba(29, 78, 216, .94)
    );

  color: #ffffff;

  font-size: 12px;

  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 8px 20px
    rgba(37, 99, 235, .20);
}


.score-announce-btn:active {
  transform:
    scale(.97);
}


.score-announce-btn:disabled {
  opacity: .62;

  cursor: default;
}


/* =========================================================
   PANTALLA ESPECIAL EN EVENTOS
   ========================================================= */

.event-score-announce {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: grid;

  place-items: center;

  overflow: hidden;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 50% 15%,
      rgba(37, 99, 235, .40),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      #040b18,
      #07172d 52%,
      #020617
    );
}


.event-score-announce-glow {
  position: absolute;

  width: 60vw;
  height: 60vw;

  max-width: 900px;
  max-height: 900px;

  border-radius: 50%;

  background:
    rgba(37, 99, 235, .08);

  filter:
    blur(4px);

  animation:
    ligayaScorePulse
    2.2s
    ease-in-out
    infinite;
}


.event-score-announce-content {
  position: relative;

  z-index: 2;

  width:
    min(
      94vw,
      1500px
    );

  display: grid;

  justify-items: center;

  gap: 14px;
}


.event-score-announce-kicker {
  padding:
    9px
    18px;

  border-radius: 999px;

  background:
    rgba(59, 130, 246, .16);

  border:
    1px solid
    rgba(96, 165, 250, .26);

  color: #93c5fd;

  font-size:
    clamp(
      13px,
      1.4vw,
      21px
    );

  font-weight: 950;

  letter-spacing: .12em;
}


.event-score-announce-set {
  color: #ffffff;

  font-size:
    clamp(
      20px,
      2.4vw,
      38px
    );

  font-weight: 950;
}


.event-score-announce-board {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    100px
    minmax(0, 1fr);

  align-items: center;

  gap: 18px;
}


.event-score-announce-team {
  min-width: 0;

  display: grid;

  justify-items: center;

  gap: 12px;
}


.event-score-announce-logo {
  width:
    clamp(
      80px,
      10vw,
      150px
    );

  height:
    clamp(
      80px,
      10vw,
      150px
    );

  display: grid;

  place-items: center;

  overflow: hidden;

  border-radius: 50%;

  background: #ffffff;

  border:
    4px solid
    rgba(255, 255, 255, .92);

  box-shadow:
    0 18px 44px
    rgba(0, 0, 0, .25);
}


.event-score-announce-logo
.team-identity-logo,

.event-score-announce-logo
.team-flag-img {
  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain;
}


.event-score-announce-logo
.team-flag-img {
  object-fit: cover;
}


.event-score-announce-team h2 {
  margin: 0;

  color: #ffffff;

  font-size:
    clamp(
      28px,
      4vw,
      66px
    );

  font-weight: 950;

  text-align: center;
}


.event-score-announce-team strong {
  color: #ffffff;

  font-size:
    clamp(
      130px,
      21vw,
      310px
    );

  line-height: .78;

  font-weight: 1000;

  letter-spacing: -.06em;

  font-variant-numeric:
    tabular-nums;

  text-shadow:
    0 18px 45px
    rgba(0, 0, 0, .30);
}


.event-score-announce-divider {
  display: grid;

  place-items: center;
}


.event-score-announce-divider span {
  width: 72px;
  height: 72px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:
    rgba(30, 64, 175, .26);

  border:
    1px solid
    rgba(96, 165, 250, .34);

  color: #ffffff;

  font-weight: 950;
}


.event-score-announce-live {
  padding:
    9px
    20px;

  border-radius: 999px;

  background:
    #ef4444;

  color: #ffffff;

  font-size:
    clamp(
      12px,
      1.3vw,
      19px
    );

  font-weight: 950;

  box-shadow:
    0 8px 24px
    rgba(239, 68, 68, .25);
}


@keyframes ligayaScorePulse {

  0%,
  100% {
    opacity: .45;

    transform:
      scale(.92);
  }

  50% {
    opacity: 1;

    transform:
      scale(1.05);
  }
}


@media (max-width: 700px) {

  .event-score-announce-board {
    grid-template-columns:
      minmax(0, 1fr)
      56px
      minmax(0, 1fr);

    gap: 8px;
  }


  .event-score-announce-divider span {
    width: 46px;
    height: 46px;

    font-size: 11px;
  }
}

/* ===== LIGAYA BOTON CAMBIAR LADOS ===== */

.score-swap-btn {
  min-height: 42px;

  padding:
    9px
    13px;

  border-radius: 14px;

  border:
    1px solid
    rgba(125, 211, 252, .26);

  background:
    rgba(15, 23, 42, .72);

  color:
    #e0f2fe;

  font-size: 12px;

  font-weight: 900;

  white-space: nowrap;

  cursor: pointer;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}


.score-swap-btn:hover {
  border-color:
    rgba(125, 211, 252, .55);

  background:
    rgba(30, 58, 138, .42);
}


.score-swap-btn:active {
  transform:
    scale(.96);
}


@media (
  orientation: landscape
) and (
  max-height: 560px
) {

  .score-top-actions {
    gap: 6px;
  }


  .score-swap-btn,
  .score-announce-btn,
  .undo-top-btn {
    min-height: 38px;

    padding:
      7px
      11px;

    font-size: 11px;
  }

}

/* ===== LIGAYA CONFIRMACION ARBITRAL UI ===== */

.set-confirm-overlay {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: grid;

  place-items: center;

  padding: 18px;

  background:
    rgba(2, 6, 23, .84);

  backdrop-filter:
    blur(9px);
}


.set-confirm-card {
  width:
    min(
      620px,
      calc(100vw - 32px)
    );

  padding:
    24px;

  border-radius: 26px;

  border:
    1px solid
    rgba(96, 165, 250, .26);

  background:
    linear-gradient(
      145deg,
      #0b172c,
      #101f3a
    );

  color:
    #ffffff;

  text-align: center;

  box-shadow:
    0 28px 80px
    rgba(0, 0, 0, .48);
}


.set-confirm-icon {
  width: 54px;
  height: 54px;

  margin:
    0 auto
    10px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:
    rgba(59, 130, 246, .16);

  border:
    1px solid
    rgba(96, 165, 250, .36);

  color:
    #60a5fa;

  font-size: 26px;

  font-weight: 950;
}


.set-confirm-kicker {
  color:
    #7dd3fc;

  font-size: 11px;

  font-weight: 950;

  letter-spacing:
    .13em;
}


.set-confirm-card h2 {
  margin:
    7px 0
    5px;

  color:
    #ffffff;

  font-size:
    clamp(
      22px,
      4vw,
      34px
    );

  font-weight: 950;
}


.set-confirm-help {
  max-width: 500px;

  margin:
    0 auto
    18px;

  color:
    #a9b9d2;

  font-size: 13px;

  line-height: 1.45;
}


.set-confirm-score {
  display: grid;

  grid-template-columns:
    1fr
    36px
    1fr;

  align-items: center;

  gap: 8px;

  padding:
    13px
    16px;

  border-radius: 18px;

  background:
    rgba(15, 23, 42, .62);

  border:
    1px solid
    rgba(148, 163, 184, .12);
}


.set-confirm-score > div {
  display: grid;

  gap: 3px;
}


.set-confirm-score span {
  color:
    #cbd5e1;

  font-size: 13px;

  font-weight: 850;
}


.set-confirm-score strong {
  color:
    #ffffff;

  font-size:
    clamp(
      36px,
      8vw,
      62px
    );

  line-height: 1;

  font-weight: 1000;
}


.set-confirm-score em {
  color:
    #64748b;

  font-size: 28px;

  font-style: normal;

  font-weight: 900;
}


.set-confirm-winner {
  margin-top: 14px;

  color:
    #94a3b8;

  font-size: 13px;
}


.set-confirm-winner strong {
  margin-left: 4px;

  color:
    #ffffff;
}


.set-confirm-actions {
  margin-top: 20px;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 10px;
}


.set-confirm-actions button {
  min-height: 50px;

  padding:
    11px
    15px;

  border-radius: 15px;

  font-weight: 900;

  cursor: pointer;
}


.set-confirm-cancel {
  border:
    1px solid
    rgba(248, 113, 113, .30);

  background:
    rgba(127, 29, 29, .18);

  color:
    #fecaca;
}


.set-confirm-ok {
  border:
    1px solid
    rgba(96, 165, 250, .35);

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  color:
    #ffffff;

  box-shadow:
    0 10px 25px
    rgba(37, 99, 235, .24);
}


.set-confirm-actions button:active {
  transform:
    scale(.98);
}


.set-confirm-actions button:disabled {
  opacity: .55;

  cursor: default;
}


@media (
  orientation: landscape
) and (
  max-height: 560px
) {

  .set-confirm-overlay {
    padding: 8px;
  }


  .set-confirm-card {
    width:
      min(
        650px,
        calc(100vw - 20px)
      );

    padding:
      14px 20px;

    border-radius: 20px;
  }


  .set-confirm-icon {
    width: 38px;
    height: 38px;

    margin-bottom: 5px;

    font-size: 19px;
  }


  .set-confirm-card h2 {
    margin:
      4px 0;

    font-size:
      clamp(
        19px,
        5vh,
        28px
      );
  }


  .set-confirm-help {
    margin-bottom: 9px;

    font-size: 11px;
  }


  .set-confirm-score {
    padding:
      7px
      14px;
  }


  .set-confirm-score strong {
    font-size:
      clamp(
        30px,
        10vh,
        50px
      );
  }


  .set-confirm-winner {
    margin-top: 7px;
  }


  .set-confirm-actions {
    margin-top: 10px;
  }


  .set-confirm-actions button {
    min-height: 42px;

    padding:
      8px
      12px;
  }

}


/* =========================================================
   LIGAYA MESA V2 THEMES
   ========================================================= */


/* LIGHT */

:root[data-theme="light"]
.mesa-control-v2 {
  --mesa-bg: #f3f7fc;
  --mesa-surface: #ffffff;
  --mesa-surface-2: #f8fbff;
  --mesa-text: #0f172a;
  --mesa-muted: #64748b;
  --mesa-border: #dbe5f0;
  --mesa-primary: #2563eb;
  --mesa-primary-soft: #dbeafe;
  --mesa-live: #dc2626;
  --mesa-live-soft: #fee2e2;
  --mesa-success: #059669;
  --mesa-success-soft: #d1fae5;
}


/* DARK */

:root[data-theme="dark"]
.mesa-control-v2 {
  --mesa-bg: #07111f;
  --mesa-surface: #0d1b2d;
  --mesa-surface-2: #101f33;
  --mesa-text: #f8fafc;
  --mesa-muted: #94a3b8;
  --mesa-border: #1e3552;
  --mesa-primary: #60a5fa;
  --mesa-primary-soft: rgba(59,130,246,.15);
  --mesa-live: #f87171;
  --mesa-live-soft: rgba(239,68,68,.14);
  --mesa-success: #5ee6a8;
  --mesa-success-soft: rgba(16,185,129,.14);
}


:root[data-theme="dark"]
.mesa-control-v2
.mesa-ops-header,

:root[data-theme="dark"]
.mesa-control-v2
.mesa-kpi-card,

:root[data-theme="dark"]
.mesa-control-v2
.mesa-match-card-v2,

:root[data-theme="dark"]
.mesa-control-v2
.mesa-category-panel,

:root[data-theme="dark"]
.mesa-control-v2
.mesa-actions-v2 button,

:root[data-theme="dark"]
.mesa-control-v2
.mesa-empty-v2 {
  box-shadow:
    0 16px 38px
    rgba(0,0,0,.18);
}


:root[data-theme="dark"]
.mesa-control-v2
.mesa-category-select {
  color-scheme:
    dark;
}


:root[data-theme="dark"]
.mesa-control-v2
.mesa-category-select option {
  background:
    #0d1b2d;

  color:
    #f8fafc;
}


/* =========================================================
   LIGAYA MESA HERO NARANJA V2
   Identidad operativa propia para Mesa
   ========================================================= */

.mesa-control-v2
.mesa-ops-header {
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(251,146,60,.24),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #ea580c 0%,
      #c2410c 46%,
      #431407 100%
    ) !important;

  border-color:
    rgba(251,146,60,.30) !important;

  box-shadow:
    0 18px 46px
    rgba(124,45,18,.25) !important;
}

.mesa-control-v2
.mesa-ops-eyebrow {
  color:
    #fed7aa !important;
}

.mesa-control-v2
.mesa-ops-dot {
  background:
    #fb923c !important;

  box-shadow:
    0 0 0 5px
    rgba(251,146,60,.18) !important;
}

.mesa-control-v2
.mesa-ops-copy h1 {
  color:
    #ffffff !important;
}

.mesa-control-v2
.mesa-ops-copy p {
  color:
    #ffedd5 !important;
}

/* Selector dentro del hero */

.mesa-control-v2
.mesa-scope-card {
  background:
    rgba(67,20,7,.34) !important;

  border-color:
    rgba(253,186,116,.24) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.045);
}

.mesa-control-v2
.mesa-scope-card label {
  color:
    #fdba74 !important;
}

.mesa-control-v2
.mesa-category-select {
  background:
    rgba(67,20,7,.46) !important;

  color:
    #ffffff !important;

  border-color:
    rgba(253,186,116,.34) !important;

  box-shadow:
    none !important;
}

.mesa-control-v2
.mesa-category-select:focus {
  border-color:
    #fb923c !important;

  box-shadow:
    0 0 0 3px
    rgba(251,146,60,.18) !important;
}

.mesa-control-v2
.mesa-category-select option {
  background:
    #431407 !important;

  color:
    #ffffff !important;
}

.mesa-control-v2
.mesa-scope-card > span {
  color:
    #fed7aa !important;
}

.mesa-control-v2
.mesa-scope-card > span strong {
  color:
    #ffffff !important;
}

/* En light mantenemos el naranja como identidad de Mesa */

:root[data-theme="light"]
.mesa-control-v2
.mesa-ops-header {
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255,237,213,.27),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #f97316 0%,
      #ea580c 48%,
      #9a3412 100%
    ) !important;

  border-color:
    rgba(234,88,12,.28) !important;

  box-shadow:
    0 18px 46px
    rgba(154,52,18,.20) !important;
}

/* En dark, la misma identidad pero más sobria */

:root[data-theme="dark"]
.mesa-control-v2
.mesa-ops-header {
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(251,146,60,.20),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #c2410c 0%,
      #9a3412 48%,
      #3b1206 100%
    ) !important;

  border-color:
    rgba(251,146,60,.24) !important;

  box-shadow:
    0 18px 46px
    rgba(0,0,0,.28) !important;
}

/*
 * =====================================================
 * LIGAYA THEME TOGGLE V1
 * =====================================================
 */

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}


.theme-toggle-btn {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  flex: 0 0 40px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: rgba(255, 255, 255, .72);
  color: #475569;

  box-shadow:
    0 4px 14px rgba(15, 23, 42, .08);

  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}


.theme-toggle-btn:hover {
  transform: translateY(-1px);

  background: #ffffff;

  box-shadow:
    0 7px 18px rgba(15, 23, 42, .12);
}


.theme-toggle-btn:active {
  transform: scale(.96);
}


.theme-toggle-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 2px;
}


#themeToggleIcon {
  display: block;

  font-size: 18px;
  line-height: 1;

  transform: translateY(-.5px);
}


/*
 * Tema oscuro.
 */

:root[data-theme="dark"] .theme-toggle-btn {
  background:
    linear-gradient(
      145deg,
      #172b45,
      #102239
    );

  color: #f8fafc;

  border-color: #294d78;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}


:root[data-theme="dark"] .theme-toggle-btn:hover {
  background:
    linear-gradient(
      145deg,
      #1d3859,
      #142a46
    );

  border-color: #38648f;
}


/*
 * Compacto en pantallas pequeñas.
 */

@media (max-width: 768px) {

  .topbar-actions {
    gap: 0;
  }


  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }


  #themeToggleIcon {
    font-size: 17px;
  }
}

/* =========================================================
   LIGAYA MESA LIGHT POLISH V1
   Pulido visual exclusivo para tema claro
   ========================================================= */

:root[data-theme="light"]
.mesa-control-v2 {
  --mesa-bg:
    #edf3f9;

  --mesa-surface-2:
    #f5f9fd;

  --mesa-border:
    #cddae8;
}


/* KPI */

:root[data-theme="light"]
.mesa-control-v2
.mesa-kpi-card {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbfe 100%
    );

  border-color:
    #cbd9e8;

  box-shadow:
    0 8px 20px
    rgba(30,64,175,.065);
}


/* PROXIMO PARTIDO */

:root[data-theme="light"]
.mesa-control-v2
.mesa-match-card-v2 {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbff 100%
    );

  border-color:
    #c5d6e8;

  box-shadow:
    0 12px 28px
    rgba(30,64,175,.085);
}


/* Mantener el acento azul del proximo partido */

:root[data-theme="light"]
.mesa-control-v2
.mesa-match-card-v2.is-next {
  box-shadow:
    inset 4px 0 0
      var(--mesa-primary),
    0 12px 28px
      rgba(30,64,175,.085);
}


/* FECHA + HORA */

:root[data-theme="light"]
.mesa-control-v2
.mesa-schedule {
  background:
    #f6f9fd;

  border-color:
    #cfdeec;
}


/* PANEL DE CATEGORIAS */

:root[data-theme="light"]
.mesa-control-v2
.mesa-category-panel {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f9fbfe 100%
    );

  border-color:
    #cbd9e8;

  box-shadow:
    0 10px 24px
    rgba(30,64,175,.055);
}

/* =========================================================
   LIGAYA MESA CATEGORIAS LIGHT FINISH V1
   Acabado fino exclusivo para tema claro
   ========================================================= */

:root[data-theme="light"]
.mesa-control-v2
.mesa-section-head {
  margin-bottom: 18px;
}


/* Badge COMPETENCIA */

:root[data-theme="light"]
.mesa-control-v2
.mesa-section-head span {
  color: #1d4ed8;

  background: #dbeafe;

  border:
    1px solid
    #bfdbfe;

  font-weight: 950;
}


/* Texto secundario: "3 partidos" */

:root[data-theme="light"]
.mesa-control-v2
.mesa-category-row
> div:first-child
> span {
  color: #52657c;

  font-weight: 650;
}


/* Mini tarjetas un poco mas definidas */

:root[data-theme="light"]
.mesa-control-v2
.mesa-category-row {
  border-color: #bfd1e5;

  box-shadow:
    0 5px 14px
    rgba(30,64,175,.045);
}

/* =========================================================
   LIGAYA TOPBAR ACTIONS SIZE FIX V1
   ========================================================= */

@media (max-width: 768px) {

  .topbar-actions {
    gap: 7px !important;
  }

  .topbar-actions .theme-toggle-btn,
  .topbar-actions .public-push-settings-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .topbar-actions #themeToggleIcon {
    font-size: 15px !important;
    line-height: 1;
  }

  .topbar-actions .public-push-settings-button svg {
    width: 19px !important;
    height: 19px !important;
  }

}
