/* =========================================================
   COMUNIATE · CABECERA Y MENÚ
   CSS consolidado: duplicados idénticos eliminados, cascada preservada.
   ========================================================= */

:root {
  --cm-ink: #050505;
  --cm-deep: #0d0d0d;
  --cm-green: #22b96b;
  --cm-orange: #ff9a3c;
  --cm-white-soft: #f5f5f5;
  --cm-text-muted: #bdbdbd;
  --cm-line: rgba(255,255,255,.10);
}

.header {
  width: 100%;
  margin-bottom: 0 !important;
  text-align: center;
  z-index: 999999999;
}

.header .navbar-default {
  width: 100%;
  height: 50px;
  min-height: 50px;
  margin: 0;
  float: left;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: var(--cm-deep);
}

#vertical-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0;
  z-index: 400;
  background: var(--cm-deep);
  transition: top .3s ease;
}

#vertical-sticky.hide-sticky {
  top: -55px;
}

.header .navbar-default .navbar-jugadores,
.header .navbar-default .navbar-partidos {
  position: absolute;
  top: 0;
  z-index: 3;
  color: #fff;
  cursor: pointer;
}

.header .navbar-default .navbar-jugadores {
  left: 0;
  margin: 10px 0 0 10px;
  font-size: 26px;
}

.header .navbar-default .navbar-partidos {
  right: 0;
  margin: 6px 10px 0 0;
}

.navbar-competicion {
  position: absolute;
  top: 5px;
  right: 52px;
  height: 40px;
  z-index: 1000004;
}

.competicion-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.logosmall {
  position: relative;
  display: none;
  width: 150px;
  margin: 0;
  text-align: center;
}

.logosmall img {
  width: auto;
  max-height: 42px;
}

.cm-menu-trigger-dropdown {
  z-index: 9999;
}

@media (max-width: 767px) {
  .logosmall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
  }
}

.navbar-buscador-cabecera {
  position: absolute;
  top: 5px;
  right: 52px;
  height: 40px;
  z-index: 1000004;
}

.buscador-cabecera {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .navbar-default .buscador-cabecera__boton {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff !important;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header .navbar-default .buscador-cabecera__boton i {
  color: #fff !important;
}

.header .navbar-default .buscador-cabecera__boton:hover,
.header .navbar-default .buscador-cabecera.is-open .buscador-cabecera__boton {
  background: #171717;
  color: #fff !important;
}

.buscador-cabecera__panel {
  position: absolute;
  top: 45px;
  right: 0;
  width: 350px;
  padding: 9px;
  border-radius: 14px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 1000005;
}

.buscador-cabecera.is-open .buscador-cabecera__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.buscador-cabecera__campo {
  position: relative;
  width: 100%;
}

.buscador-cabecera__input[type="text"] {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 43px 0 14px;
  border: 2px solid #d6e8dc;
  border-radius: 11px;
  background: #fff;
  color: #111;
  font-family: "Fira Sans Condensed", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 42px;
}

.buscador-cabecera__input[type="text"]::placeholder {
  color: #707a73;
  opacity: 1;
}

.buscador-cabecera__input[type="text"]:focus {
  border-color: #179454;
}

.buscador-cabecera__cerrar {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px !important;
  min-width: 34px;
  height: 34px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #53635a;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buscador-cabecera__cerrar:hover {
  background: #edf7f0;
  color: #063b22;
}

.buscador-cabecera__resultados {
  display: none;
  width: 100%;
  max-height: 360px;
  margin-top: 7px;
  overflow-y: auto;
  border: 1px solid #e1e8e3;
  border-radius: 11px;
  background: #fff;
  text-align: left;
}

/* Buscador del menú lateral: oscuro para integrarse con el sidenav. */

.sidenav #suggestions2.buscador-cabecera__resultados,
.sidenav .buscador-cabecera__resultados {
  background: #0b1410 !important;
  border-color: rgba(255,255,255,.10) !important;
}

.sidenav #suggestions2.buscador-cabecera__resultados .buscador-cabecera__resultado,
.sidenav .buscador-cabecera__resultados .buscador-cabecera__resultado {
  background: #0b1410 !important;
  color: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.sidenav #suggestions2.buscador-cabecera__resultados .buscador-cabecera__resultado:hover,
.sidenav #suggestions2.buscador-cabecera__resultados .buscador-cabecera__resultado:focus,
.sidenav .buscador-cabecera__resultados .buscador-cabecera__resultado:hover,
.sidenav .buscador-cabecera__resultados .buscador-cabecera__resultado:focus {
  background: rgba(34,197,94,.10) !important;
  color: #fff !important;
}

#topic_title.buscador-cabecera__input[type="text"],
.sidenav .buscador-cabecera__input[type="text"] {
  background: #0b1410 !important;
  color: #fff !important;
  border-color: rgba(45,213,140,.42) !important;
}

#topic_title.buscador-cabecera__input[type="text"]::placeholder,
.sidenav .buscador-cabecera__input[type="text"]::placeholder {
  color: rgba(255,255,255,.48) !important;
}

#topic_title.buscador-cabecera__input[type="text"]:focus,
.sidenav .buscador-cabecera__input[type="text"]:focus {
  background: #0d1813 !important;
  border-color: #20b978 !important;
  box-shadow: 0 0 0 3px rgba(32,185,120,.10) !important;
}

.buscador-cabecera__resultados .buscador-cabecera__resultado {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid #edf1ee;
  color: #162019;
  cursor: pointer;
}

.buscador-cabecera__resultados .buscador-cabecera__resultado:last-child {
  border-bottom: 0;
}

.buscador-cabecera__resultados .buscador-cabecera__resultado:hover,
.buscador-cabecera__resultados .buscador-cabecera__resultado:focus {
  background: #edf9f0;
  color: #063b22;
}

.buscador-cabecera__resultados .buscador-cabecera__cara {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f4f2;
}

.buscador-cabecera__resultados .buscador-cabecera__escudo {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  object-fit: contain;
}

.buscador-cabecera__resultados .buscador-cabecera__nombre {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buscador-cabecera__resultados .buscador-cabecera__vacio {
  padding: 14px 12px;
  color: #66706a;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .navbar-buscador-cabecera {
    top: 5px;
    right: 51px;
  }

  .buscador-cabecera__panel {
    position: fixed;
    top: 51px;
    left: 7px;
    right: 7px;
    width: auto;
    padding: 8px;
    border-radius: 13px;
  }

  .buscador-cabecera__resultados {
    max-height: min(430px, calc(100vh - 120px));
  }
}

.cal-panel-empty--padded {
  padding: 16px;
  text-align: center;
}

/* =========================================================
   NAVEGACIÓN FANTASY · FILA MÓVIL + ACCESOS SECUNDARIOS
   ========================================================= */

.cm-sport-nav {
  position: relative;
  z-index: 50;
  width: 100%;
  overflow: hidden;
  font-family: "Poppins","Fira Sans Condensed",Arial,sans-serif;
  background: var(--cm-ink);
  border-top: 1px solid #161616;
  border-bottom: 1px solid #000;
}

.cm-sport-nav__primary {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  max-width: 1180px;
  min-height: 54px;
  height: 54px;
  margin: 0 auto;
  padding: 0 1px;
  background: var(--cm-ink);
  border-bottom: 1px solid #171717;
}

.cm-sport-link {
  position: relative;
  display: grid !important;
  grid-template-rows: 25px 15px;
  align-content: center;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  height: 54px;
  padding: 6px 2px 5px !important;
  row-gap: 2px;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  transition: background-color .16s ease, transform .16s ease;
}

.cm-sport-link:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27%;
  width: 1px;
  height: 46%;
  background: rgba(255,255,255,.10);
}

.cm-sport-link__icon {
  display: inline-grid;
  place-items: center;
  align-self: end;
  width: 34px;
  height: 25px;
  margin: 0;
  color: var(--cm-white-soft);
  line-height: 1;
  transition: transform .16s ease;
}

.cm-svg-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: #ededed;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .96;
}

.cm-svg-icon--star {
  -webkit-mask-image: url("/images/menu/icons/star.svg");
  mask-image: url("/images/menu/icons/star.svg");
}

.cm-svg-icon--newspaper {
  -webkit-mask-image: url("/images/menu/icons/newspaper.svg");
  mask-image: url("/images/menu/icons/newspaper.svg");
}

.cm-svg-icon--strategy {
  -webkit-mask-image: url("/images/menu/icons/strategy.svg");
  mask-image: url("/images/menu/icons/strategy.svg");
}

.cm-svg-icon--globe {
  -webkit-mask-image: url("/images/menu/icons/globe.svg");
  mask-image: url("/images/menu/icons/globe.svg");
}

.cm-svg-icon--chart-line-up {
  -webkit-mask-image: url("/images/menu/icons/chart-line-up.svg");
  mask-image: url("/images/menu/icons/chart-line-up.svg");
}

.cm-svg-icon--cards {
  -webkit-mask-image: url("/images/menu/icons/cards.svg");
  mask-image: url("/images/menu/icons/cards.svg");
}

.cm-svg-icon--first-aid-kit {
  -webkit-mask-image: url("/images/menu/icons/first-aid-kit.svg");
  mask-image: url("/images/menu/icons/first-aid-kit.svg");
}

.cm-svg-icon--arrows-left-right {
  -webkit-mask-image: url("/images/menu/icons/arrows-left-right.svg");
  mask-image: url("/images/menu/icons/arrows-left-right.svg");
}

.cm-svg-icon--magic-wand {
  -webkit-mask-image: url("/images/menu/icons/magic-wand.svg");
  mask-image: url("/images/menu/icons/magic-wand.svg");
}

.cm-svg-icon--question {
  -webkit-mask-image: url("/images/menu/icons/question.svg");
  mask-image: url("/images/menu/icons/question.svg");
}

.cm-sport-link__icon--image img {
  display: block;
  width: auto;
  height: 23px;
  max-width: 30px;
  object-fit: contain;
  object-position: center center;
}

.cm-sport-link > span:last-child {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 15px;
  margin: 0;
  color: #fff;
  font-size: 8.8px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: .08px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cm-sport-link:hover {
  background: #151515 !important;
}

.cm-sport-link:hover .cm-sport-link__icon {
  transform: translateY(-1px);
}

.cm-sport-link.is-active::after {
  content: "";
  position: absolute;
  left: 29%;
  right: 29%;
  bottom: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--cm-green);
}

.cm-sport-nav__secondary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 36px;
  padding: 3px 5px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--cm-ink);
  border-top: 1px solid rgba(255,255,255,.07);
}

.cm-sport-nav__secondary::-webkit-scrollbar {
  display: none;
}

.cm-sport-nav__secondary a.cm-secondary-link {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color .16s ease, border-color .16s ease;
}

.cm-sport-nav__secondary a.cm-secondary-link::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 28%;
  width: 1px;
  height: 44%;
  background: rgba(255,255,255,.08);
}

.cm-sport-nav__secondary a.cm-secondary-link:last-child::after {
  display: none;
}

.cm-sport-nav__secondary .cm-svg-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-self: center;
}

.cm-secondary-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  object-position: center center;
  align-self: center;
}

.cm-secondary-link--internacionales .cm-svg-icon {
  background: #77c9ec;
}

.cm-secondary-link--mercado .cm-svg-icon {
  background: #55d98b;
}

.cm-secondary-link--sanciones .cm-svg-icon {
  background: #f1c84b;
}

.cm-secondary-link--lesiones .cm-svg-icon {
  background: #ef6379;
}

.cm-secondary-link--fichajes .cm-svg-icon {
  background: #f28a43;
}

.cm-secondary-link--ayuda .cm-svg-icon {
  background: #b58ae2;
}

.cm-secondary-link--dudas .cm-svg-icon {
  background: #51c9bc;
}

.cm-sport-nav__secondary a.cm-secondary-link:hover {
  background: #151515 !important;
  border-color: rgba(255,255,255,.08);
}

/* =========================================================
   VISIBILIDAD RESPONSIVE ROBUSTA
   Elementos secundarios exclusivos de escritorio.
   Se ocultan hasta Bootstrap md (992px), incluso frente a
   display:inline-flex !important de los enlaces.
   ========================================================= */

.cm-sport-nav__secondary a.cm-only-desktop,
.cm-sport-nav__secondary a[data-desktop-only="1"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 991px) {
  .cm-sport-nav__secondary a.cm-only-desktop,
  .cm-sport-nav__secondary a[data-desktop-only="1"],
  .cm-sport-nav__secondary .cm-secondary-link--onces,
  .cm-sport-nav__secondary .cm-secondary-link--dudas {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
  }
}

@media (min-width: 768px) {
  .cm-sport-nav__primary {
    display: none !important;
  }

  .cm-sport-nav__secondary {
    min-height: 40px;
    padding: 4px 10px;
  }

  .cm-sport-nav__secondary a.cm-secondary-link {
    gap: 7px;
    padding: 8px 13px;
    font-size: 12.5px;
    letter-spacing: .2px;
  }

  .cm-sport-nav__secondary .cm-svg-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .cm-secondary-logo {
    width: 21px;
    height: 21px;
  }
}

@media (min-width: 992px) {
  .cm-sport-nav__secondary a.cm-only-desktop,
  .cm-sport-nav__secondary a[data-desktop-only="1"] {
    display: inline-flex !important;
    visibility: visible !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    overflow: visible !important;
    pointer-events: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-sport-link,
  .cm-sport-link__icon,
  .cm-sport-nav__secondary a.cm-secondary-link {
    transition: none;
  }
}

/* =========================================================
   CARRUSEL DE ESCUDOS
   Única franja decorativa con degradado.
   ========================================================= */

.nav_escudos {
  position: relative;
  float: none !important;
  display: flex;
  align-items: center;
  width: 100% !important;
  max-width: 100%;
  min-height: 56px;
  margin: 0 auto !important;
  padding: 4px 0;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(90deg,#e8f5ec 0%,#f7f8f4 48%,#fff1df 100%);
  border-top: 1px solid #dfe8e2;
  border-bottom: 1px solid #d9e2dc;
}

.fila-escudos {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 44px);
  margin: 0 auto;
  padding: 0 2px;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.fila-escudos::-webkit-scrollbar {
  display: none;
}

.escudo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enlace-escudos {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.enlace-escudos:hover,
.enlace-escudos:focus-visible {
  transform: translateY(-1px) scale(1.04);
  background: rgba(255,255,255,.72);
}

.enlace-escudos.is-active {
  background: #ff9600 !important;
}

.escudo-header-img {
  display: block;
  width: 44px;
  height: 44px;
  padding: 3px;
  object-fit: contain;
  box-sizing: border-box;
}

.flecha {
  flex: 0 0 22px;
  display: grid !important;
  place-items: center;
  width: 22px;
  height: 44px;
  margin: 0;
  color: #31543f;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  opacity: .75;
  transition: opacity .16s ease, transform .16s ease;
}

.flecha:hover {
  opacity: 1;
  transform: scale(1.06);
}

@media (min-width: 768px) {
  .nav_escudos {
    min-height: 60px;
    padding: 5px 0;
  }

  .fila-escudos {
    max-width: calc(100% - 54px);
    padding: 0 4px;
    gap: 6px;
  }

  .enlace-escudos,
  .escudo-header-img {
    width: 48px;
    height: 48px;
  }

  .flecha {
    flex-basis: 27px;
    width: 27px;
    height: 48px;
    font-size: 13px;
  }
}

@media (min-width: 992px) {
  .nav_escudos .fila-escudos {
    justify-content: center;
  }
}

/* =========================================================
   BOTON MENU SVG · RESET GLOBAL (MOBILE + DESKTOP)
   Evita el fondo gris nativo del <button> en móvil.
   ========================================================= */

#boton-menu.cm-menu-toggle {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  margin: 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
}

#boton-menu.cm-menu-toggle::-moz-focus-inner {
  padding: 0;
  border: 0;
}

#boton-menu.cm-menu-toggle:hover,
#boton-menu.cm-menu-toggle:active,
#boton-menu.cm-menu-toggle.is-open {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#boton-menu.cm-menu-toggle:focus {
  outline: none;
}

#boton-menu.cm-menu-toggle:focus-visible {
  outline: 2px solid rgba(76,175,80,.75);
  outline-offset: 2px;
}

#boton-menu.cm-menu-toggle .cm-menu-toggle__svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
}

#boton-menu.cm-menu-toggle .cm-menu-toggle__line {
  stroke: #fff;
  stroke-width: 1.8;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .18s ease, opacity .14s ease;
}

/* Hamburguesa -> X en cualquier ancho de pantalla */

#boton-menu.cm-menu-toggle.is-open .cm-menu-toggle__line--1 {
  transform: translateY(5px) rotate(45deg);
}

#boton-menu.cm-menu-toggle.is-open .cm-menu-toggle__line--2 {
  opacity: 0;
}

#boton-menu.cm-menu-toggle.is-open .cm-menu-toggle__line--3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* =========================================================
   CABECERA DESKTOP · ESTILO EDITORIAL
   Texto mayor + subrayado verde activo/hover.
   ========================================================= */

@media (min-width: 768px) {
  .header > .navbar.navbar-default {
    height: 64px;
    min-height: 64px;
    background: var(--cm-deep);
  }

  #vertical-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 64px;
    min-height: 64px;
    padding: 0 18px;
  }

  .cm-desktop-nav {
    order: 2;
    display: flex !important;
    align-items: stretch;
    height: 64px;
    margin: 0 !important;
    padding: 0;
  }

  .cm-desktop-nav > li {
    display: flex;
    align-items: stretch;
    float: none;
  }

  .cm-desktop-nav > li > a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 64px;
    padding: 0 18px !important;
    background: transparent !important;
    color: rgba(255,255,255,.92) !important;
    font-family: "Poppins","Fira Sans Condensed",Arial,sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .05px;
    text-transform: none;
    transition: color .16s ease;
  }

  .cm-desktop-nav > li:not(.cm-desktop-nav__brand) > a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--cm-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .16s ease;
  }

/* Un único indicador verde: solo el elemento que se está usando. */

  .cm-desktop-nav > li:not(.cm-desktop-nav__brand) > a:hover,
  .cm-desktop-nav > li:not(.cm-desktop-nav__brand):focus-within > a {
    background: transparent !important;
    color: #fff !important;
  }

  .cm-desktop-nav > li:not(.cm-desktop-nav__brand) > a:hover::after,
  .cm-desktop-nav > li:not(.cm-desktop-nav__brand):focus-within > a::after {
    transform: scaleX(1);
  }

  .cm-desktop-nav__caret {
    margin-left: 3px;
    color: rgba(255,255,255,.45) !important;
    font-size: 10px !important;
    transition: transform .16s ease;
  }

  .cm-desktop-nav > li.dropdown:hover .cm-desktop-nav__caret,
  .cm-desktop-nav > li.dropdown:focus-within .cm-desktop-nav__caret {
    transform: rotate(180deg);
  }

  .cm-desktop-nav__brand > a {
    padding: 0 28px 0 6px !important;
  }

  .cm-desktop-nav__brand img {
    display: block;
    width: auto;
    max-width: 210px;
    height: 44px;
    object-fit: contain;
  }

  .navbar-jugadores,
  .navbar-buscador-cabecera,
  .navbar-partidos {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin: 0 !important;
  }

  .navbar-jugadores {
    order: 1;
    margin-right: 7px !important;
  }

  .navbar-buscador-cabecera {
    order: 3;
    margin-left: 8px !important;
  }

  .navbar-partidos {
    order: 4;
  }

  .navbar-jugadores .dropdown {
    display: flex;
    align-items: center;
    height: 64px;
  }

  #boton-menu,
  .buscador-cabecera__boton,
  #btn-calendario-partidos {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    min-width: 40px;
    height: 40px !important;
    margin: 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #fff !important;
    transition: background-color .16s ease;
  }

  #boton-menu:hover,
  .buscador-cabecera__boton:hover,
  .buscador-cabecera.is-open .buscador-cabecera__boton,
  #btn-calendario-partidos:hover {
    background: #181818 !important;
  }

/* Botón hamburguesa SVG: mismo trazo fino que búsqueda y calendario */

  #boton-menu {
    font-size: 0 !important;
    cursor: pointer;
  }

  #boton-menu .cm-menu-toggle__svg {
    display: block;
    width: 26px;
    height: 26px;
    overflow: visible;
  }

  .cm-desktop-nav .dropdown-menu {
    min-width: 235px;
    margin-top: 0;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #242424;
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
  }

/* Desktop: los dropdowns se abren al pasar el ratón, sin necesidad de clic.
     Se fuerza display:none por defecto para que la clase .open de Bootstrap no
     pueda dejar otro desplegable visible al mover el cursor. */

  .cm-desktop-nav > li.dropdown > .dropdown-menu {
    display: none;
  }

  .cm-desktop-nav > li.dropdown:hover > .dropdown-menu,
  .cm-desktop-nav > li.dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  .cm-desktop-nav .dropdown-menu > li {
    width: 100%;
    float: none;
  }

  .cm-desktop-nav .dropdown-menu > li > a {
    display: block;
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 5px;
    background: transparent !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.25 !important;
    text-align: left;
    text-transform: none;
  }

  .cm-desktop-nav .dropdown-menu > li > a:hover,
  .cm-desktop-nav .dropdown-menu > li > a:focus {
    background: #1a1a1a !important;
    color: #fff !important;
  }

  .navbar-default .navbar-nav > .open > a,
  .navbar-default .navbar-nav > .open > a:focus,
  .navbar-default .navbar-nav > .open > a:hover {
    background: transparent !important;
    color: #fff !important;
  }

  .buscador-cabecera__panel {
    top: 52px;
  }
}

@media (min-width: 768px) and (max-width: 1120px) {
  #vertical-sticky {
    padding: 0 8px;
  }

  .cm-desktop-nav > li > a {
    padding-left: 11px !important;
    padding-right: 11px !important;
    font-size: 12.5px;
  }

  .cm-desktop-nav > li:not(.cm-desktop-nav__brand) > a::after {
    left: 11px;
    right: 11px;
  }

  .cm-desktop-nav__brand > a {
    padding-right: 14px !important;
  }

  .cm-desktop-nav__brand img {
    max-width: 170px;
  }
}

/* =========================================================
   ESTILOS ANTES INLINE EN cabecera_responsive.php
   ========================================================= */
/* Indicador azul del balón del menú de partidos. Sin estilos inline en el punto. */

#btn-calendario-partidos {
  position: relative;
}

#btn-calendario-partidos .menu-ball-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background-color: #0ca6ff;
  z-index: 2;
}

#btn-calendario-partidos .menu-ball-dot--live {
  -webkit-animation: live 1.4s infinite ease-in-out;
  animation: live 1.4s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

#btn-calendario-partidos .menu-ball-dot--fixed {
  -webkit-animation: none;
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes cm-cal-spin {
to { transform: rotate(360deg); }
}

@keyframes cm-cal-live {
0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .42; transform: scale(.82); }
}

.cal-panel-empty--new {
  min-height: 180px;
  padding: 26px 18px 28px;
}

.cal-panel-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #e0e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  color: #8ea2b8;
}

.cal-panel-empty__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-panel-empty__title {
  color: #324255;
  font-size: 18px;
  line-height: 1.2;
}

.cal-panel-empty__text {
  max-width: 290px;
  color: #708195;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.cal-panel-empty__actions {
  flex-direction: column;
  width: 100%;
  max-width: 290px;
  gap: 10px;
  margin-top: 2px;
}

.cal-empty-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.cal-panel-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid #e3ebe7;
  background: #fff;
}

.cal-panel-full-calendar {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #00784e;
  border-radius: 9px;
  background: #008f5d;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.cal-panel-full-calendar:hover,
.cal-panel-full-calendar:focus {
  border-color: #006b45;
  background: #007d51;
  color: #fff !important;
  text-decoration: none !important;
}

.cal-panel-full-calendar:active {
  transform: translateY(1px);
}

.cal-panel-full-calendar i {
  font-size: 16px;
}

/* ===== Menú prioritario de herramientas Comunio ===== */

.cm-comunio-dropdown {
  min-width: 285px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 7px 0;
}

.cm-comunio-dropdown > li > a {
  padding: 9px 16px;
  white-space: nowrap;
}

.cm-comunio-dropdown > li > a:hover,
.cm-comunio-dropdown > li > a:focus {
  background: #1a1a1a;
  color: #fff !important;
}

.cm-comunio-dropdown__all > a {
  color: #008f5d !important;
  font-weight: 800 !important;
}

.cm-comunio-dropdown .divider {
  margin: 6px 0;
}

/* Acordeón de herramientas dentro del menú lateral (móvil). */

.cm-side-tools-toggle {
  position: relative;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  outline: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.cm-side-tools-toggle__caret {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: auto;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #00c98b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease, color .2s ease;
}

.cm-side-tools-toggle[aria-expanded="true"] .cm-side-tools-toggle__caret {
  transform: translateY(2px) rotate(225deg);
}

.cm-side-tools-list {
  display: none;
  margin: 5px 0 7px;
  padding: 5px;
  border: 1px solid rgba(0, 201, 139, .22);
  border-radius: 9px;
  background: rgba(0, 143, 93, .025);
}

.cm-side-tools-list.is-open {
  display: block;
}

.cm-side-tools-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none !important;
}

.cm-side-tools-list a:hover,
.cm-side-tools-list a:focus {
  background: rgba(0, 201, 139, .08);
  color: #fff;
}

.cm-side-tools-list__all {
  color: #008f5d !important;
  font-weight: 800;
}

@media (min-width: 768px) {
/* El acordeón solo pertenece al sidenav; no altera el menú Bootstrap de desktop. */

  .cm-side-tools-list {
    margin-left: 0;
  }
}

/* Ajuste fino de alineación vertical en móvil */

@media (max-width: 767px) {
  .cm-sport-nav__primary {
    min-height: 56px;
    height: 56px;
  }

  .cm-sport-link {
    grid-template-rows: 24px 15px;
    min-height: 56px;
    height: 56px;
    padding: 5px 2px 6px !important;
    row-gap: 3px;
  }

  .cm-sport-link__icon {
    width: 32px;
    height: 24px;
  }

  .cm-sport-link__icon .cm-svg-icon {
    width: 24px;
    height: 24px;
  }

  .cm-sport-link > span:last-child {
    min-height: 15px;
    font-size: 8.6px;
    line-height: 10px;
  }

  .cm-sport-nav__secondary {
    min-height: 38px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .cm-sport-nav__secondary a.cm-secondary-link {
    min-height: 30px;
  }
}

/* =========================================================
   CABECERA MOBILE · HAMBURGUESA CENTRADA Y X
   ========================================================= */

@media (max-width: 767px) {
  .header .navbar-default .navbar-jugadores {
    top: 5px !important;
    left: 0 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header .navbar-default .navbar-jugadores .cm-menu-trigger-dropdown {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header .navbar-default #boton-menu.cm-menu-toggle {
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .header .navbar-default #boton-menu.cm-menu-toggle .cm-menu-toggle__svg {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
  }
}

/* =========================================================
   CALENDARIO DE PARTIDOS V2 · MODAL REUTILIZABLE
   Diseño aislado de las fichas antiguas de portada/calendario.
   ========================================================= */

#cal-panel-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  display: block;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

#cal-panel-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#cal-panel {
  position: fixed;
  right: 0;
  z-index: 1000001;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #dbe3ec;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .18s ease, transform .2s ease, visibility .18s ease;
  font-family: "Poppins", "Fira Sans Condensed", Arial, sans-serif;
}

#cal-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cal-panel-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 10px 14px 8px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.cal-panel-date-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.cal-nav-btn,
.cal-month-nav-btn,
.cal-view-btn,
.cal-current-date-btn,
.cal-panel-close,
.cal-go-today,
.cal-day-chip,
.cal-month-day,
.cal-empty-skip {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.cal-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 31px;
  min-width: 31px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8ca0b7;
  transition: background-color .15s ease, color .15s ease;
}

.cal-nav-btn:hover,
.cal-nav-btn:focus-visible {
  background: #f1f5f9;
  color: #172033;
  outline: none;
}

.cal-nav-btn svg,
.cal-month-nav-btn svg,
.cal-panel-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-current-date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 132px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  background: #fff;
  color: #1d2736;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.cal-current-date-btn:hover,
.cal-current-date-btn:focus-visible,
.cal-current-date-btn[aria-expanded="true"] {
  border-color: #aebdcb;
  background: #fbfcfe;
  outline: none;
}

.cal-current-date-btn__calendar {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: #ef174b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-current-date-btn__chevron {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: #8697aa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-current-date-label {
  min-width: 0;
  overflow: hidden;
  color: #20293a;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 2px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f4f7fa;
}

.cal-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8da0b5;
}

.cal-view-btn.is-active {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12), inset 0 0 0 1.5px #172033;
}

.cal-view-btn svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-view-btn[data-cal-view="grid"] svg {
  transform: none;
  transform-origin: center center;
}

.cal-days-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 14px 9px;
  border-bottom: 1px solid #e8eef4;
  background: #f9fbfd;
}

.cal-day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 39px;
  padding: 4px 4px 3px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #fff;
  color: #627187;
  line-height: 1;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.cal-day-chip:hover,
.cal-day-chip:focus-visible {
  border-color: #bac7d4;
  outline: none;
  transform: translateY(-1px);
}

.cal-day-chip.is-selected {
  border: 1.5px solid #ff2054;
  background: #fff5f7;
  color: #ef174b;
  box-shadow: 0 0 0 1px rgba(255, 32, 84, .08);
}

.cal-day-chip__week {
  display: block;
  min-height: 10px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12px;
  text-transform: uppercase;
}

.cal-day-chip__date {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-day-chip.is-selected .cal-day-chip__date {
  font-size: 10.5px;
}

.cal-month-popover {
  position: absolute;
  top: 60px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: block;
  padding: 10px 12px 11px;
  border: 1px solid #dbe4ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.cal-month-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cal-month-popover__header {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  min-height: 38px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eef2f6;
}

.cal-month-title {
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cal-month-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7f91a5;
}

.cal-month-nav-btn:hover,
.cal-month-nav-btn:focus-visible {
  background: #f4f7fa;
  color: #172033;
  outline: none;
}

.cal-month-weekdays,
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-month-weekdays {
  padding: 8px 0 3px;
}

.cal-month-weekdays span {
  color: #8da0b5;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.cal-month-grid {
  min-height: 204px;
  align-items: center;
}

.cal-month-loading {
  grid-column: 1 / -1;
  align-self: center;
  color: #8a9aac;
  font-size: 11px;
  text-align: center;
}

.cal-month-day {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 1px auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #263245;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.cal-month-day:hover,
.cal-month-day:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.cal-month-day.is-outside {
  color: #c8d1db;
}

.cal-month-day.is-today:not(.is-selected) {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ef174b;
}

.cal-month-day.is-selected {
  background: #ed174b;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(237, 23, 75, .22);
}

.cal-month-day__dot {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #8fa8c8;
}

.cal-month-day.is-selected .cal-month-day__dot {
  background: #fff;
}

.cal-month-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
}

.cal-month-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b9caf;
  font-size: 9.5px;
  font-weight: 600;
}

.cal-month-legend__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fa8c8;
}

.cal-go-today {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #ef174b;
  font-size: 9.5px;
  font-weight: 800;
}

.cal-panel-content {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 0;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5df transparent;
}

.cal-panel-content::-webkit-scrollbar {
  width: 5px;
}

.cal-panel-content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #cbd5df;
}

.cal-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 18px;
  color: #8494a7;
  font-size: 11px;
  font-weight: 700;
}

.cal-panel-loading span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #d9e1e9;
  border-top-color: #ed174b;
  border-radius: 50%;
  animation: cm-cal-spin .7s linear infinite;
}

@keyframes cm-cal-spin {
to { transform: rotate(360deg); }
}

.cal-competition-block {
  width: 100%;
  padding: 0 14px 9px;
  box-sizing: border-box;
}

.cal-competition-block + .cal-competition-block {
  border-top: 1px solid #edf1f5;
}

.cal-competition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 7px 1px 5px;
}

.cal-competition-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.cal-competition-dot {
  width: 9px;
  min-width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e91f4e;
}

.cal-competition-name {
  overflow: hidden;
  color: #192335;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-competition-count {
  flex: 0 0 auto;
  color: #92a2b6;
  font-size: 9px;
  font-weight: 700;
}

.cal-competition-view-label {
  flex: 0 0 auto;
  color: #91a2ba;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
}

.cm-cal-matches {
  display: grid;
  width: 100%;
  gap: 8px;
}

#cal-panel.cal-view-list .cm-cal-matches {
  grid-template-columns: minmax(0, 1fr);
}

#cal-panel.cal-view-grid .cm-cal-matches {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cm-cal-match {
  position: relative;
  box-sizing: border-box;
  border: 1px solid #dfe7ef;
  background: #fff;
  color: #1f2938 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cm-cal-match:hover,
.cm-cal-match:focus-visible {
  border-color: #c7d3df;
  color: #1f2938 !important;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
  outline: none;
  transform: translateY(-1px);
}

.cm-cal-match.is-live {
  border-color: #ff839f;
  background: #fffafb;
  box-shadow: 0 0 0 1px rgba(255, 71, 112, .12);
}

.cm-cal-match__statusbar {
  min-width: 0;
}

.cm-cal-match__state,
.cm-cal-match__round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cm-cal-match__state {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .15px;
}

.cm-cal-match__state--final {
  border: 1px solid #bdebd9;
  background: #effcf6;
  color: #149366;
}

.cm-cal-match__state--live {
  border: 1px solid #ffc2d0;
  background: #fff0f3;
  color: #ed174b;
}

.cm-cal-match__state--lineups {
  border: 1px solid #b8ddff;
  background: #eef8ff;
  color: #2786c7;
}

.cm-cal-match__state--scheduled {
  border: 1px solid #dce5ed;
  background: #f6f8fa;
  color: #75869a;
}

.cm-cal-match__state--postponed,
.cm-cal-match__state--suspended {
  border: 1px solid #ffe1a8;
  background: #fff8e9;
  color: #b36b00;
}

.cm-cal-match__live-dot {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ff3b67;
  box-shadow: 0 0 0 3px rgba(255, 59, 103, .09);
  animation: cm-cal-live 1.4s ease-in-out infinite;
}

@keyframes cm-cal-live {
0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .42; transform: scale(.82); }
}

.cm-cal-match__round {
  color: #9aa9bb;
  font-size: 8.5px;
  font-weight: 800;
}

.cm-cal-match__team {
  min-width: 0;
}

.cm-cal-match__crest {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.cm-cal-match__name {
  min-width: 0;
  overflow: hidden;
  color: #202b3d;
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-cal-match__score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.cm-cal-match__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 7px;
  border-radius: 8px;
  background: #f1f4f7;
  color: #1b2534;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cm-cal-match.is-live .cm-cal-match__score {
  background: #e9164b;
  color: #fff;
}

.cm-cal-match__tv {
  display: none;
  width: auto;
  max-width: 34px;
  max-height: 12px;
  object-fit: contain;
}

/* Vista lista */

#cal-panel.cal-view-list .cm-cal-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  grid-template-areas: "home score away status";
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 9px 6px 10px;
  border-radius: 15px;
}

#cal-panel.cal-view-list .cm-cal-match__statusbar {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#cal-panel.cal-view-list .cm-cal-match__round {
  display: none;
}

#cal-panel.cal-view-list .cm-cal-match__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

#cal-panel.cal-view-list .cm-cal-match__team--home {
  grid-area: home;
  justify-content: flex-end;
  text-align: right;
}

#cal-panel.cal-view-list .cm-cal-match__team--home .cm-cal-match__name {
  order: 1;
}

#cal-panel.cal-view-list .cm-cal-match__team--home .cm-cal-match__crest {
  order: 2;
}

#cal-panel.cal-view-list .cm-cal-match__team--away {
  grid-area: away;
  justify-content: flex-start;
  text-align: left;
}

#cal-panel.cal-view-list .cm-cal-match__score-wrap {
  grid-area: score;
}

/* Vista cuadros */

#cal-panel.cal-view-grid .cm-cal-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 21px minmax(58px, auto);
  grid-template-areas: "status status status"
        "home score away";
  align-items: center;
  gap: 0 6px;
  min-height: 94px;
  padding: 7px 8px 8px;
  border-radius: 15px;
}

#cal-panel.cal-view-grid .cm-cal-match__statusbar {
  grid-area: status;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

#cal-panel.cal-view-grid .cm-cal-match__state {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 7.5px;
}

#cal-panel.cal-view-grid .cm-cal-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

#cal-panel.cal-view-grid .cm-cal-match__team--home {
  grid-area: home;
}

#cal-panel.cal-view-grid .cm-cal-match__team--away {
  grid-area: away;
}

#cal-panel.cal-view-grid .cm-cal-match__score-wrap {
  grid-area: score;
  flex-direction: column;
  gap: 4px;
}

#cal-panel.cal-view-grid .cm-cal-match__crest {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}

#cal-panel.cal-view-grid .cm-cal-match__name {
  width: 100%;
  max-width: 72px;
  font-size: 8.5px;
  text-align: center;
}

#cal-panel.cal-view-grid .cm-cal-match__score {
  min-width: 39px;
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
}

#cal-panel.cal-view-grid .cm-cal-match__tv {
  display: block;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 68px;
  padding: 8px 10px;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__team {
  flex-direction: row;
  gap: 6px;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__team--home {
  justify-content: flex-end;
  text-align: right;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__team--home .cm-cal-match__name {
  order: 1;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__team--home .cm-cal-match__crest {
  order: 2;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__team--away {
  justify-content: flex-start;
  text-align: left;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured .cm-cal-match__name {
  max-width: 110px;
  font-size: 10px;
}

.cal-panel-empty--new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 135px;
  padding: 22px 16px;
  text-align: center;
}

.cal-panel-empty__title {
  color: #536274;
  font-size: 12px;
  font-weight: 800;
}

.cal-panel-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.cal-empty-skip {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d7e1eb;
  border-radius: 9px;
  background: #fff;
  color: #516174;
  font-size: 9.5px;
  font-weight: 800;
}

.cal-empty-skip:hover,
.cal-empty-skip:focus-visible {
  border-color: #b6c4d2;
  background: #f7f9fb;
  outline: none;
}

.cal-panel-footer {
  flex: 0 0 auto;
  padding: 8px 14px 10px !important;
  border-top: 1px solid #e8eef4 !important;
  background: #fff !important;
}

.cal-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 28px;
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aabc0;
  font-size: 10px;
  font-weight: 700;
}

.cal-panel-close:hover,
.cal-panel-close:focus-visible {
  background: #f6f8fa;
  color: #5e6c7e;
  outline: none;
}

.cal-panel-close svg {
  width: 13px;
  height: 13px;
}

/* La versión V2 ya no usa el botón verde anterior. */

#cal-panel .cal-panel-full-calendar {
  display: none !important;
}

@media (max-width: 430px) {
  #cal-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-left: 0;
    border-right: 0;
  }

  .cal-panel-toolbar {
    padding-left: 11px;
    padding-right: 11px;
  }

  .cal-days-strip,
    .cal-competition-block {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cal-current-date-btn {
    min-width: 126px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .cal-view-switch {
    flex: 0 0 auto;
  }

  #cal-panel.cal-view-list .cm-cal-match {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  #cal-panel.cal-view-list .cm-cal-match__name {
    font-size: 9.5px;
  }

  #cal-panel.cal-view-list .cm-cal-match__crest {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  #cal-panel.cal-view-list .cm-cal-match__state {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 8px;
  }
}

@media (min-width: 768px) {
  #cal-panel {
    right: 12px;
    border-top: 1px solid #dbe3ec;
    border-radius: 0 0 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cal-panel,
    #cal-panel-overlay,
    .cal-month-popover,
    .cal-day-chip,
    .cm-cal-match,
    .cm-cal-match__live-dot,
    .cal-panel-loading span {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   CALENDARIO V4 · ALTURA NATURAL DEL PANEL
   El panel crece solo hasta su contenido y únicamente usa scroll
   cuando supera el alto disponible de la pantalla.
   ========================================================= */

#cal-panel {
  height: auto !important;
  min-height: 0 !important;
  bottom: auto !important;
}

#cal-panel .cal-panel-content {
  flex-grow: 0 !important;
  flex-shrink: 1 !important;
  min-height: 0 !important;
}

/* =========================================================
   CALENDARIO · AJUSTES DE ESTADO Y VISTA CUADROS (v20)
   - Los partidos EN JUEGO conservan media anchura en grid.
   - "ONCES" se muestra como "ONCES CONFIRMADOS" vía JS.
   - DESCANSO usa estado ámbar y sin animación de directo.
   ========================================================= */
/* En vista cuadros, un partido en directo no debe ocupar toda la fila aunque
   el renderizador lo marque como destacado. Se comporta igual que una previa. */

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live {
  grid-column: auto;
  min-height: 94px;
  padding: 7px 8px 8px;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__team {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__team--home,
#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__team--away {
  justify-content: center;
  text-align: center;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__team--home .cm-cal-match__name,
#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__team--home .cm-cal-match__crest {
  order: initial;
}

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-live .cm-cal-match__name {
  width: 100%;
  max-width: 72px;
  font-size: 8.5px;
  text-align: center;
}

/* "ONCES CONFIRMADOS" debe seguir cabiendo bien en tarjetas de media fila. */

#cal-panel.cal-view-grid .cm-cal-match__state--lineups {
  max-width: 100%;
  min-height: 18px;
  padding: 2px 6px;
  font-size: 7px;
  letter-spacing: .05px;
  line-height: 1.05;
  text-align: center;
}

/* Descanso: ya no se trata visualmente como un partido que está corriendo. */

.cm-cal-match.is-halftime {
  border-color: #f2d28c;
  background: #fffdf7;
  box-shadow: 0 0 0 1px rgba(205, 143, 20, .06);
}

.cm-cal-match.is-halftime .cm-cal-match__state--live {
  border-color: #f0d28f;
  background: #fff6dd;
  color: #9a6500;
}

.cm-cal-match.is-halftime .cm-cal-match__live-dot {
  animation: none !important;
  background: #d99a19;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.cm-cal-match.is-halftime .cm-cal-match__score {
  background: #fff1c9;
  color: #7d5700;
}

/* El descanso también conserva la media anchura en vista cuadros. */

#cal-panel.cal-view-grid .cm-cal-match.is-featured.is-halftime {
  grid-column: auto;
  min-height: 94px;
  padding: 7px 8px 8px;
}

/* =========================================================
   COMUNIATE · PANEL LATERAL · ESTILO EDITORIAL OSCURO
   Compatible con los detalles/acordeones actuales de la cabecera.
   No modifica anchos, estados de apertura ni enlaces.
   ========================================================= */

#mySidenav {
  --side-bg: #0b1215;
  --side-panel: #10191d;
  --side-border: #263137;
  --side-text: #e3e9ec;
  --side-muted: #89979f;
  --side-green: #22b96b;
  background: var(--side-bg) !important;
  color: var(--side-text);
  font-family: "Poppins", "Fira Sans Condensed", Arial, sans-serif;
  border-right: 1px solid var(--side-border);
  box-shadow: 14px 0 44px rgba(0,0,0,.30);
  color-scheme: dark;
}

#mySidenav .cm-side-scroll {
  padding: 12px 10px 24px !important;
}

#mySidenav .cm-side-search {
  position: relative !important;
  margin: 0 0 12px !important;
}

#mySidenav .cm-side-search__icon {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  width: 17px !important;
  height: 17px !important;
  color: var(--side-muted) !important;
  transform: translateY(-50%) !important;
  z-index: 2;
}

#mySidenav #topic_title.buscador-cabecera__input[type="text"] {
  height: 42px !important;
  padding: 0 13px 0 39px !important;
  border: 1px solid #314047 !important;
  border-radius: 9px !important;
  background: #10191d !important;
  color: #eef3f5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 42px !important;
  box-shadow: none !important;
}

#mySidenav #topic_title.buscador-cabecera__input[type="text"]::placeholder {
  color: #89979f !important;
}

#mySidenav #topic_title.buscador-cabecera__input[type="text"]:focus {
  border-color: #22b96b !important;
  box-shadow: 0 0 0 2px rgba(34,185,107,.16) !important;
}

#mySidenav .cm-side-tools-block {
  margin: 0 0 10px !important;
}

#mySidenav .cm-side-tools-toggle {
  min-height: 43px !important;
  padding: 0 13px !important;
  border: 1px solid #29563e !important;
  border-radius: 9px !important;
  background: linear-gradient(90deg,rgba(34,185,107,.10),rgba(34,185,107,.025)) !important;
  color: #70d79f !important;
  box-shadow: none !important;
}

#mySidenav .cm-side-tools-toggle .cm-side-icon {
  width: 17px !important;
  height: 17px !important;
  margin-right: 10px !important;
}

#mySidenav .cm-side-tools-toggle > span:not(.cm-side-tools-toggle__caret) {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

#mySidenav .cm-side-tools-toggle__caret {
  color: #8fa39a !important;
  border-color: currentColor !important;
}

#mySidenav .cm-side-tools-list {
  margin: 5px 0 0 !important;
  padding: 4px !important;
  border: 1px solid var(--side-border) !important;
  border-radius: 9px !important;
  background: #0e171b !important;
}

#mySidenav .cm-side-tools-list a {
  padding: 10px 11px !important;
  border-radius: 5px !important;
  color: #c8d2d7 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#mySidenav .cm-side-tools-list__all {
  color: #70d79f !important;
}

#mySidenav .cm-side-section {
  margin: 6px 0 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--side-border) !important;
  border-radius: 9px !important;
  background: #0e171b !important;
  box-shadow: none !important;
}

#mySidenav .cm-side-section-title {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 43px !important;
  padding: 10px 35px 10px 13px !important;
  list-style: none !important;
  cursor: pointer !important;
  background: transparent !important;
  color: #dce4e8 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#mySidenav .cm-side-section-title::-webkit-details-marker {
  display: none !important;
}

#mySidenav .cm-side-section-title::before {
  content: none !important;
}

#mySidenav .cm-side-section-title::after {
  content: "" !important;
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  margin-top: -5px !important;
  border-right: 1.5px solid #819098 !important;
  border-bottom: 1.5px solid #819098 !important;
  transform: rotate(45deg) !important;
  transition: transform .18s ease !important;
}

#mySidenav .cm-side-section[open] {
  background: #10191d !important;
  border-color: #34454d !important;
}

#mySidenav .cm-side-section[open] > .cm-side-section-title {
  color: #f4f7f8 !important;
  background: #142025 !important;
  border-bottom: 1px solid var(--side-border) !important;
}

#mySidenav .cm-side-section[open] > .cm-side-section-title::after {
  margin-top: -2px !important;
  transform: rotate(225deg) !important;
  border-color: #70d79f !important;
}

#mySidenav .cm-side-card-grid, #mySidenav .cm-side-match-grid {
  display: block !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  background: transparent !important;
}

#mySidenav .cm-side-card, #mySidenav .cm-side-match-card {
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr) 9px !important;
  align-items: center !important;
  column-gap: 10px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.045) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d1dbe0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease !important;
}

#mySidenav .cm-side-card:last-child, #mySidenav .cm-side-match-card:last-child {
  border-bottom: 0 !important;
}

#mySidenav .cm-side-card__icon, #mySidenav .cm-side-match-card__icon {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8caaa0 !important;
}

#mySidenav .cm-side-card__icon svg, #mySidenav .cm-side-match-card__icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
}

#mySidenav .cm-side-card__body, #mySidenav .cm-side-match-card__body {
  display: block !important;
  min-width: 0 !important;
}

#mySidenav .cm-side-card__title, #mySidenav .cm-side-match-card__title {
  display: block !important;
  color: #dce4e8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

#mySidenav .cm-side-card__meta, #mySidenav .cm-side-match-card__meta {
  display: block !important;
  margin-top: 3px !important;
  color: #94a3aa !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

#mySidenav .cm-side-card__arrow, #mySidenav .cm-side-match-card__arrow {
  display: block !important;
  width: 6px !important;
  height: 6px !important;
  border-top: 1px solid #73858e !important;
  border-right: 1px solid #73858e !important;
  transform: rotate(45deg) !important;
}

#mySidenav .cm-side-bottom {
  margin: 16px 0 0 !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--side-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#mySidenav .cm-side-bottom__links {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 7px !important;
  margin: 0 0 14px !important;
}

#mySidenav .cm-side-bottom-link {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--side-border) !important;
  border-radius: 8px !important;
  background: #10191d !important;
  color: #b9c6cc !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

#mySidenav .cm-side-bottom-link .cm-side-icon {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  color: #70d79f !important;
}

#mySidenav .cm-side-bottom__apps {
  display: flex !important;
  gap: 10px !important;
  padding: 0 4px !important;
}

#mySidenav .cm-side-bottom__apps a {
  display: block !important;
  flex: 1 1 0 !important;
  max-width: 132px !important;
}

#mySidenav .cm-side-bottom__apps img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

#mySidenav .cm-side-card:hover, #mySidenav .cm-side-match-card:hover,
#mySidenav .cm-side-tools-list a:hover, #mySidenav .cm-side-bottom-link:hover,
#mySidenav .cm-side-section-title:hover {
  background: #19282e !important;
  transform: none !important;
}

#mySidenav a:focus-visible, #mySidenav button:focus-visible, #mySidenav summary:focus-visible {
  outline: 2px solid #70d79f !important;
  outline-offset: -3px !important;
}

@media (min-width: 768px) {
  .cm-desktop-nav .dropdown-menu {
    padding: 5px !important;
    background: #10191d !important;
    border: 1px solid #2b3b43 !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.32) !important;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .cm-desktop-nav .dropdown-menu > li > a {
    padding: 11px 13px !important;
    border-radius: 6px !important;
    color: #dce4e8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: normal;
  }

  .cm-desktop-nav .dropdown-menu > li > a:hover,
  .cm-desktop-nav .dropdown-menu > li > a:focus {
    background: #1a2c30 !important;
    color: #70d79f !important;
  }

  .cm-desktop-nav .dropdown-menu .divider {
    background: #2b3b43 !important;
    margin: 5px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mySidenav *, .cm-desktop-nav .dropdown-menu {
    transition: none !important;
  }
}

/* Panel completo: cabecera, fondo y favoritos. */

.cm-side-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000000;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.64);
  cursor: pointer;
}

.cm-side-overlay[hidden] {
  display: none !important;
}

#mySidenav {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  z-index: 1000000001 !important;
  width: min(330px, 90vw) !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transform: translateX(-100%) !important;
  visibility: hidden !important;
  transition: transform .22s ease, visibility .22s ease !important;
  text-align: left !important;
}

#mySidenav.cm-side-is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
}

#mySidenav .cm-side-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
}

#mySidenav .cm-side-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#mySidenav .cm-side-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding-bottom: max(24px,env(safe-area-inset-bottom)) !important;
  scrollbar-width: thin;
  scrollbar-color: #34454d #0b1215;
}

#mySidenav .cm-side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 70px;
  padding: max(12px,env(safe-area-inset-top)) 14px 12px;
  border-bottom: 1px solid #263137;
}

#mySidenav .cm-side-brand {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  padding: 0 !important;
  text-decoration: none;
}

#mySidenav .cm-side-brand img {
  width: auto;
  max-width: 178px;
  height: 33px;
  object-fit: contain;
  object-position: left;
}

#mySidenav .cm-side-brand span {
  font-size: 10px;
  color: #94a3aa;
  letter-spacing: .4px;
}

#mySidenav .cm-side-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #acbbc2;
  cursor: pointer;
}

#mySidenav .cm-side-close:hover {
  background: #19282e;
}

#mySidenav .cm-side-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

#mySidenav .cm-side-favorites {
  margin-bottom: 12px !important;
}

#mySidenav .cm-side-favorite-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 40px;
  align-items: stretch;
}

#mySidenav .cm-side-favorite-row > .cm-side-card,
#mySidenav .cm-side-favorite-row > .cm-side-match-card {
  grid-template-columns: 24px minmax(0,1fr) !important;
}

#mySidenav .cm-side-favorite-row .cm-side-card__arrow,
#mySidenav .cm-side-favorite-row .cm-side-match-card__arrow {
  display: none !important;
}

#mySidenav .cm-side-favorite-row + .cm-side-favorite-row {
  border-top: 1px solid rgba(255,255,255,.045);
}

#mySidenav .cm-side-favorite-row > a {
  min-width: 0;
  border-bottom: 0 !important;
}

#mySidenav .cm-side-favorite-button {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 44px;
  align-self: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #819098;
  font: 24px/1 Arial,sans-serif;
  cursor: pointer;
  border-radius: 6px;
}

#mySidenav .cm-side-favorite-button[aria-pressed="true"] {
  color: #f66f84;
}

#mySidenav .cm-side-favorite-button:hover {
  background: rgba(255,255,255,.05);
}

#mySidenav a.cm-side-favorite-link {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px !important;
  color: #dce4e8 !important;
  font-size: 13px !important;
  font-weight: 500;
  text-decoration: none;
}

#mySidenav a.cm-side-favorite-link:hover {
  background: #19282e;
}

#mySidenav .cm-side-favorites-empty, #mySidenav .cm-side-favorites-status {
  padding: 12px 13px;
  margin: 0;
  color: #94a3aa;
  font-size: 11px;
  line-height: 1.5;
}

#mySidenav .cm-side-favorites-status:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #mySidenav {
    transition: none !important;
  }
}
