/* ==================== AGENDA RETRO 2006-2012 - ESTILO WINDOWS VISTA/MAC OS X ==================== */

:root {
  /* Colores Retro */
  --retro-blue: #2196F3;
  --retro-blue-light: #64B5F6;
  --retro-blue-dark: #1976D2;
  --retro-purple: #9C27B0;
  --retro-green: #4CAF50;
  --retro-orange: #FF9800;
  
  /* Variables de espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Variables de borde */
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --border-radius-full: 9999px;
  
  /* Efectos */
  --retro-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  --retro-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
  --retro-transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== RESET Y ESTILOS BASE ==================== */
.container-agenda *,
.container-agenda *::before,
.container-agenda *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.container-agenda {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--spacing-lg) clamp(1rem, 3vw, var(--spacing-xl));
  position: relative;
  z-index: 2;
}

.intro {
  margin-bottom: var(--spacing-lg);
}

/* ==================== BANNER DEL DÍA TIPO BARRA INFORMATIVA DE WINDOWS ==================== */
.day-banner {
  /* Gradiente brillante tipo Vista */
  background: linear-gradient(180deg,
    #FFF9C4 0%,
    #FFF59D 50%,
    #FFF176 100%);
  
  border: 1px solid #FFD54F;
  border-radius: var(--border-radius-lg);
  padding: clamp(0.75rem, 3vw, 1.2rem) clamp(0.75rem, 3vw, 1.5rem);
  text-align: center;
  font-size: clamp(0.875rem, 3vw, 1.25rem);
  font-weight: 700;
  color: #5D4037;
  
  /* Sombras tipo botón 3D */
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Brillo superior tipo Vista */
.day-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  pointer-events: none;
}

/* Reflejo inferior */
.day-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.08) 0%,
    transparent 100%);
  pointer-events: none;
}

/* ==================== CONTENEDOR DE AGENDA ==================== */
.agenda {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.matches {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ==================== CARDS DE PARTIDO TIPO WINDOWS VISTA ==================== */
.match-card {
  /* Vidrio translúcido tipo Aero */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 248, 255, 0.9) 50%,
    rgba(235, 242, 255, 0.95) 100%);
  
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(200, 220, 255, 0.8);
  
  /* Sombras 3D */
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--retro-transition);
}

/* Brillo superior en cards */
.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Reflejo inferior en cards */
.match-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.05) 0%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ==================== HEADER DEL PARTIDO ==================== */
.match-header {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.875rem, 2.5vw, 1.25rem);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 2;
}

.match-header:hover {
  background: linear-gradient(180deg,
    rgba(100, 181, 246, 0.15) 0%,
    rgba(64, 169, 255, 0.1) 100%);
}

.match-header:active {
  background: linear-gradient(180deg,
    rgba(33, 150, 243, 0.2) 0%,
    rgba(25, 118, 210, 0.15) 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==================== ICONO DE EXPANSIÓN TIPO BOTÓN CIRCULAR ==================== */
.expand-icon {
  width: clamp(24px, 5vw, 28px);
  height: clamp(24px, 5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
  
  /* Botón circular tipo Vista */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 245, 255, 0.85) 50%,
    rgba(230, 238, 255, 0.9) 100%);
  
  border: 1px solid rgba(150, 180, 220, 0.6);
  border-radius: 50%;
  color: var(--retro-blue-dark);
  
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  position: relative;
}

.expand-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.expand-icon.expanded {
  transform: rotate(180deg);
  background: linear-gradient(180deg,
    rgba(100, 181, 246, 0.9) 0%,
    rgba(64, 169, 255, 0.85) 50%,
    rgba(33, 150, 243, 0.9) 100%);
  color: white;
}

/* ==================== DROPDOWN ==================== */
.dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Panel tipo lista de Windows */
  background: linear-gradient(180deg,
    rgba(245, 248, 255, 0.95) 0%,
    rgba(235, 242, 255, 0.9) 100%);
  
  border-top: 1px solid rgba(200, 220, 255, 0.6);
  position: relative;
  z-index: 2;
}

.dropdown:not(.hidden) {
  max-height: 600px;
}

.hidden {
  display: none;
}

/* ==================== MENU DE CANALES ==================== */
.channel-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.channel-item {
  padding: clamp(10px, 2vw, 12px) clamp(14px, 3vw, 20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  transition: var(--retro-transition);
  border-left: 3px solid transparent;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  
  /* Fondo sutil */
  background: rgba(255, 255, 255, 0.3);
  margin: 2px 4px;
  border-radius: 6px;
}

/* Brillo en items */
.channel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 100%);
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}

.channel-item .left {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 0.6rem);
  font-weight: 600;
  color: #2C3E50;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.channel-item:hover {
  background: linear-gradient(180deg,
    rgba(100, 181, 246, 0.8) 0%,
    rgba(64, 169, 255, 0.7) 50%,
    rgba(33, 150, 243, 0.8) 100%);
  border-left-color: var(--retro-blue);
  padding-left: clamp(18px, 4vw, 24px);
  box-shadow: 
    0 2px 6px rgba(33, 150, 243, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.channel-item:hover .left {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.channel-item:active {
  background: linear-gradient(180deg,
    rgba(25, 118, 210, 0.8) 0%,
    rgba(21, 101, 192, 0.7) 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}

/* ==================== ICONO PLAY TIPO BOTÓN ==================== */
.play-icon {
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  transition: var(--retro-transition);
  position: relative;
  flex-shrink: 0;
  
  box-shadow: 
    0 2px 6px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.play-icon::before {
  content: '▶';
  position: relative;
  z-index: 1;
}

/* Brillo en play icon */
.play-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.channel-item:hover .play-icon {
  background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 100%);
  transform: scale(1.1);
  box-shadow: 
    0 4px 12px rgba(102, 187, 106, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ==================== BADGE DE FUENTES ==================== */
.sources-badge {
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 50%, #FFA000 100%);
  padding: clamp(3px, 1vw, 4px) clamp(8px, 2vw, 12px);
  border-radius: 20px;
  font-size: clamp(0.65em, 1.5vw, 0.75em);
  font-weight: 700;
  margin-left: clamp(4px, 1.5vw, 8px);
  color: #5D4037;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  
  box-shadow: 
    0 2px 6px rgba(255, 152, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  
  border: 1px solid rgba(255, 193, 7, 0.6);
}

/* ==================== COLUMNA DE TIEMPO ==================== */
.time-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.time-badge {
  /* Botón tipo gel */
  background: linear-gradient(180deg,
    rgba(100, 181, 246, 0.95) 0%,
    rgba(64, 169, 255, 0.9) 45%,
    rgba(33, 150, 243, 0.92) 55%,
    rgba(25, 118, 210, 0.95) 100%);
  
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 2vw, 1.1rem);
  border-radius: 18px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  min-width: clamp(70px, 15vw, 90px);
  text-align: center;
  
  box-shadow: 
    0 3px 8px rgba(33, 150, 243, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  
  transition: var(--retro-transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Brillo superior en time badge */
.time-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

/* ==================== LOGO DE COMPETICIÓN ==================== */
.competition-logo {
  width: clamp(35px, 8vw, 50px);
  height: clamp(35px, 8vw, 50px);
  object-fit: contain;
  border-radius: 26px;
  background: linear-gradient(135deg, 
    rgba(114, 214, 255, 0.08), 
    rgba(255, 127, 255, 0.08));
  padding: 5px;
  border: 1px solid rgba(114, 214, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(114, 214, 255, 0.3);
  transform: scale(1.15) translateZ(0);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

/* Brillo en logo */
.competition-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.competition-name {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--retro-blue-dark);
  font-weight: 600;
  margin-top: 0.25rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
.match-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.teams {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: #2C3E50;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.match-card:hover .teams {
  color: var(--retro-blue-dark);
  text-shadow: 0 1px 2px rgba(33, 150, 243, 0.3);
}

/* Contenedor de información del partido */
.match-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.meta {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  flex-wrap: wrap;
  align-items: center;
}

.meta span {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  color: #5D4037;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ==================== COMPETICIÓN ==================== */
.competition {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.5rem);
  
  /* Botón tipo Vista */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 245, 255, 0.85) 50%,
    rgba(230, 238, 255, 0.9) 100%);
  
  padding: clamp(0.25rem, 1vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.7rem);
  border-radius: 16px;
  border: 1px solid rgba(200, 220, 255, 0.8);
  transition: var(--retro-transition);
  
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.competition img {
  width: clamp(16px, 3.5vw, 20px);
  height: clamp(16px, 3.5vw, 20px);
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==================== ESTADOS DE MENSAJES ==================== */
.no-events {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  
  /* Fondo tipo panel de Windows */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 248, 255, 0.9) 100%);
  
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(200, 220, 255, 0.8);
  
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  color: #5D4037;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Brillo en panel vacío */
.no-events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  pointer-events: none;
}

.empty-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ==================== LOADING STATE ==================== */
.loading {
  /* Gradiente animado tipo barra de progreso */
  background: linear-gradient(90deg,
    rgba(200, 220, 255, 0.6) 0%,
    rgba(150, 180, 220, 0.8) 25%,
    rgba(100, 140, 200, 0.6) 50%,
    rgba(150, 180, 220, 0.8) 75%,
    rgba(200, 220, 255, 0.6) 100%);
  background-size: 200% 100%;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  color: #2C3E50;
  font-weight: 600;
  animation: loadingPulse 1.5s infinite;
  
  border: 1px solid rgba(150, 180, 220, 0.6);
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes loadingPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(100, 181, 246, 0.3);
  border-top-color: var(--retro-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
  
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== INDICADORES LIVE ==================== */
.match-card.live {
  border-left: 4px solid #F44336;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { 
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 0 0 rgba(244, 67, 54, 0.4);
  }
  50% { 
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 0 4px rgba(244, 67, 54, 0);
  }
}

.live-indicator {
  display: inline-block;
  background: linear-gradient(180deg, #F44336 0%, #D32F2F 100%);
  color: white;
  padding: clamp(2px, 0.5vw, 3px) clamp(6px, 1.5vw, 8px);
  border-radius: 12px;
  font-size: clamp(0.65rem, 1.5vw, 0.7rem);
  font-weight: 700;
  margin-left: clamp(4px, 1.5vw, 8px);
  
  box-shadow: 
    0 2px 6px rgba(244, 67, 54, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.6);
  }
}

/* ==================== FILTROS Y CONTROLES ==================== */
.agenda-controls {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(0.875rem, 2vw, 1rem) clamp(0.625rem, 1.5vw, 0.75rem) clamp(2.25rem, 5vw, 2.5rem);
  
  /* Input tipo Vista */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 255, 0.9) 100%);
  
  border: 1px solid rgba(150, 180, 220, 0.6);
  border-radius: 20px;
  color: #2C3E50;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8);
  
  transition: all 0.2s ease;
}

.search-container input:focus {
  outline: none;
  border-color: var(--retro-blue);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(33, 150, 243, 0.2);
}

.search-container::before {
  content: '🔍';
  position: absolute;
  left: clamp(0.625rem, 1.5vw, 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  z-index: 1;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ==================== BOTONES FILTRO ==================== */
.filter-btn {
  padding: clamp(0.4rem, 1.2vw, 0.5rem) clamp(0.9rem, 2.5vw, 1.2rem);
  
  /* Botón tipo gel */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(245, 248, 255, 0.85) 50%,
    rgba(235, 242, 255, 0.9) 100%);
  
  border: 1px solid rgba(200, 220, 255, 0.8);
  border-radius: 20px;
  color: #2C3E50;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--retro-transition);
  white-space: nowrap;
  
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.filter-btn:hover {
  background: linear-gradient(180deg,
    rgba(150, 200, 255, 0.9) 0%,
    rgba(120, 180, 245, 0.85) 50%,
    rgba(100, 170, 240, 0.9) 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(33, 150, 243, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.filter-btn.active {
  background: linear-gradient(180deg,
    rgba(100, 181, 246, 0.9) 0%,
    rgba(64, 169, 255, 0.85) 50%,
    rgba(33, 150, 243, 0.9) 100%);
  color: white;
  border-color: var(--retro-blue);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 3px 8px rgba(33, 150, 243, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 768px) {
  .container-agenda {
    padding: clamp(0.875rem, 2.5vw, 1rem) clamp(0.625rem, 2vw, 0.75rem);
  }

  .day-banner {
    margin-bottom: 1rem;
  }

  .match-header {
    gap: 0.875rem;
  }

  .channel-menu {
    padding: 6px 0;
  }
}

/* ==================== RESPONSIVE - MOBILE ESPECÍFICO ==================== */
@media (max-width: 640px) {
  /* Reajuste del header para móviles */
  .match-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: 
      "time expand"
      "main main";
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
  }

  .time-col {
    grid-area: time;
    justify-content: flex-start;
  }

  .expand-icon {
    grid-area: expand;
  }

  .match-main {
    grid-area: main;
    gap: 0.5rem;
  }

  /* Ajuste del badge de tiempo en móviles */
  .time-badge {
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
    min-width: 65px;
  }

  /* Logo más pequeño en móviles */
  .competition-logo {
    width: 32px;
    height: 32px;
    padding: 3px;
  }

  /* Teams más compacto */
  .teams {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Meta más compacto */
  .meta {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .meta span {
    font-size: 0.75rem;
  }

  /* Competition badge más pequeño */
  .competition {
    padding: 0.2rem 0.5rem;
    gap: 0.35rem;
  }

  .competition img {
    width: 14px;
    height: 14px;
  }

  /* Canales más compactos */
  .channel-item {
    padding: 9px 14px;
    gap: 8px;
    min-height: 42px;
  }

  .channel-item .left {
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .channel-item:hover {
    padding-left: 18px;
  }

  /* Play icon más pequeño */
  .play-icon {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  /* Badges más pequeños */
  .sources-badge {
    font-size: 0.65em;
    padding: 3px 7px;
    margin-left: 4px;
  }

  .live-indicator {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-left: 4px;
  }

  /* Controles más compactos */
  .agenda-controls {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .search-container {
    min-width: 100%;
    flex-basis: 100%;
  }

  .search-container input {
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    font-size: 0.85rem;
  }

  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }

  /* Dropdown más manejable */
  .dropdown:not(.hidden) {
    max-height: 400px;
  }
}

/* ==================== RESPONSIVE - MOBILE EXTRA SMALL ==================== */
@media (max-width: 480px) {
  .container-agenda {
    padding: 0.75rem 0.5rem;
  }

  .day-banner {
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.875rem;
  }

  .match-card {
    border-radius: 10px;
  }

  .match-header {
    padding: 0.625rem 0.75rem;
    gap: 0.5rem;
  }

  .time-badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-width: 60px;
    border-radius: 14px;
  }

  .competition-logo {
    width: 28px;
    height: 28px;
  }

  .teams {
    font-size: 0.85rem;
  }

  .meta {
    gap: 0.4rem;
  }

  .meta span {
    font-size: 0.7rem;
  }

  .competition {
    padding: 0.15rem 0.4rem;
  }

  .competition img {
    width: 12px;
    height: 12px;
  }

  .channel-item {
    padding: 8px 12px;
    min-height: 40px;
  }

  .channel-item .left {
    font-size: 0.8rem;
  }

  .play-icon {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .expand-icon {
    width: 22px;
    height: 22px;
  }

  .no-events {
    padding: 1.5rem 0.75rem;
  }

  .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
}

/* ==================== ACCESIBILIDAD ==================== */
.match-header:focus-visible,
.channel-item:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--retro-blue);
  outline-offset: 2px;
}

/* Touch feedback mejorado para móviles */
@media (hover: none) and (pointer: coarse) {
  .match-header:active {
    transform: scale(0.98);
  }

  .filter-btn:active {
    transform: scale(0.95);
  }

  .channel-item:active {
    transform: scale(0.97);
  }
}

/* ==================== PREFERENCIAS DE MOVIMIENTO REDUCIDO ==================== */
@media (prefers-reduced-motion: reduce) {
  .match-card,
  .time-badge,
  .dropdown,
  .play-icon,
  .competition,
  .competition-logo,
  .channel-item,
  .expand-icon,
  .filter-btn,
  .loading,
  .live-indicator {
    animation: none !important;
    transition: none !important;
  }

  .dropdown:not(.hidden) {
    max-height: none;
  }
}

/* ==================== BODY Y SCROLLBAR ==================== */
body {
  min-height: 100vh;
  color: var(--retro-text);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  
  /* Fondo azul Windows XP Luna */
  background: 
    radial-gradient(ellipse at top right, #5A8FD4 0%, #2865C7 50%, #0D4FA3 100%),
    linear-gradient(180deg, #3D6FB8 0%, #1C4F9C 100%);
  background-size: cover;
  background-attachment: fixed;
}

/* ==================== SCROLLBAR DESKTOP ==================== */
@media (min-width: 1024px) and (hover: hover) {
  ::-webkit-scrollbar {
    width: 16px;
    height: 16px;
  }

  ::-webkit-scrollbar-track {
    background: linear-gradient(90deg, 
      rgba(230, 235, 245, 0.9) 0%, 
      rgba(240, 245, 255, 0.9) 100%);
    border: 1px solid rgba(200, 210, 230, 0.8);
    border-radius: 2px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
      rgba(180, 200, 230, 0.95) 0%,
      rgba(150, 180, 220, 0.9) 50%,
      rgba(180, 200, 230, 0.95) 100%);
    border-radius: 8px;
    border: 1px solid rgba(130, 160, 200, 0.8);
    box-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
      rgba(100, 181, 246, 0.95) 0%,
      rgba(64, 169, 255, 0.9) 50%,
      rgba(100, 181, 246, 0.95) 100%);
    box-shadow: 
      0 2px 8px rgba(33, 150, 243, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 0 12px rgba(33, 150, 243, 0.4);
  }

  ::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg,
      rgba(33, 150, 243, 0.95) 0%,
      rgba(25, 118, 210, 0.9) 50%,
      rgba(33, 150, 243, 0.95) 100%);
  }

  ::-webkit-scrollbar-button {
    height: 16px;
    width: 16px;
    background: linear-gradient(180deg, 
      rgba(230, 235, 245, 0.95) 0%, 
      rgba(210, 220, 240, 0.95) 100%);
    border: 1px solid rgba(180, 190, 210, 0.8);
    box-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  ::-webkit-scrollbar-button:hover {
    background: linear-gradient(180deg, 
      rgba(200, 220, 245, 0.95) 0%, 
      rgba(180, 210, 240, 0.95) 100%);
  }

  ::-webkit-scrollbar-button:active {
    background: linear-gradient(180deg, 
      rgba(150, 180, 220, 0.95) 0%, 
      rgba(130, 170, 220, 0.95) 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  }
}

/* ==================== SCROLLBAR MÓVIL ==================== */
@media (hover: none) and (pointer: coarse) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(230, 235, 245, 0.6);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(150, 180, 220, 0.7);
    border-radius: 3px;
  }
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 180, 220, 0.9) rgba(230, 235, 245, 0.9);
}

/* ==================== FINAL DEL ARCHIVO ==================== */