/* ══════════════════════════════════════════════
   AGENDA — Botón principal + dropdown de canales
   Archivo externo. Cargado desde index.html vía <link>.
   ══════════════════════════════════════════════ */

.match-channels-wrap { position: relative; margin-top: 4px; }
.match-channels-main { display: flex; gap: 6px; align-items: stretch; }
.match-channels-main .match-watch-btn { flex: 1; margin-top: 0; }

.match-channels-toggle {
  flex-shrink: 0; width: 38px; padding: 9px 0;
  background: rgba(0,255,135,.08);
  border: 1px solid rgba(0,255,135,.2); border-radius: 7px;
  color: var(--neon); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Pulso sutil para llamar la atención */
  animation: togglePulse 2.4s ease-in-out infinite;
}
@keyframes togglePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,135,0); border-color: rgba(0,255,135,.2); }
  50%       { box-shadow: 0 0 0 4px rgba(0,255,135,.18); border-color: rgba(0,255,135,.55); }
}
.match-channels-toggle:hover,
.match-channels-toggle:active {
  background: rgba(0,255,135,.18);
  border-color: rgba(0,255,135,.4);
  animation: none; /* detiene el pulso al interactuar */
  box-shadow: 0 0 8px rgba(0,255,135,.3);
}

.match-channels-menu {
  display: none;
  position: absolute;
  left: 0; right: 0;
  background: var(--bg2, #151f16);
  border: 1px solid rgba(0,255,135,.25);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,255,135,.08);
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
  overscroll-behavior: contain;
  animation: menuFadeIn 0.15s ease-out;
}

/* Por defecto abre SIEMPRE ARRIBA — nunca hacia abajo */
.match-channels-menu.open {
  display: block;
  bottom: calc(100% + 6px);
  top: auto;
}
/* open-down desactivado — se deja la clase por compatibilidad pero no cambia dirección */
/* .match-channels-menu.open.open-down { } */
/* open-fixed: solo limpia bottom por si acaso */
.match-channels-menu.open-fixed {
  bottom: auto !important;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.match-channels-menu-header {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-dim);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.match-channel-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 10px; border-radius: 5px;
  color: var(--text); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.15s;
  min-height: 44px; /* área de toque mínima recomendada en móvil */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.match-channel-option:hover,
.match-channel-option:active {
  background: rgba(0,255,135,.1);
  color: var(--neon);
}
.match-channel-label { flex: 1; }
.match-channel-arrow {
  font-size: 0.75rem; color: var(--text-dim);
  transition: transform 0.15s;
}
.match-channel-option:hover .match-channel-arrow,
.match-channel-option:active .match-channel-arrow {
  color: var(--neon);
  transform: translate(2px, -2px);
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity:0; }
  to   { transform: translateX(-50%) translateY(0);    opacity:1; }
}
#push-prompt-bar { animation: slideUp .4s ease; }

/* Hora Lima badge en agenda */
.hora-lima-badge {
  font-size: .65rem;
  color: var(--text-dim);
  background: var(--bg4);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  letter-spacing: .5px;
}
