/* ==========================================================================
   ESTILOS ESPECÍFICOS DE LA PÁGINA DE INICIO - inicio.css
   ========================================================================== */

/* Variables específicas para la página de inicio */
:root {
  --color-live: #ff4757;
  --color-upcoming: #3742fa;
  --color-success-light: #2ed573;
  --color-warning-light: #ffa502;
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-live: linear-gradient(45deg, #ff4757, #ff3838);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo oscuro para página de inicio */
[data-theme="dark"] {
  --gradient-hero: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HERO SECTION - TRANSMISIÓN EN VIVO DESTACADA
   ========================================================================== */
.hero-section {
  background: var(--gradient-hero);
  border-radius: 20px;
  margin-bottom: 40px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: bold;
}

.live-dot {
  width: 12px;
  height: 12px;
  background: #ff4757;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

.viewer-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.hero-stream {
  position: relative;
}

.stream-placeholder {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.stream-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn-stream {
  background: var(--gradient-live);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-stream:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

.btn-stream-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-stream-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ESTADÍSTICAS RÁPIDAS
   ========================================================================== */
.quick-stats {
  margin-bottom: 40px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  border-radius: 50%;
  color: white;
}

.stat-data {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ==========================================================================
   HEADERS DE SECCIONES
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0;
}

.title-icon {
  font-size: 2.2rem;
}

.btn-ver-mas {
  background: var(--color-primario);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-ver-mas:hover {
  background: var(--color-secundario);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN DE RESULTADOS RECIENTES
   ========================================================================== */
.resultados-section {
  margin-bottom: 50px;
}

.resultados-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 15px;
  /* Añadir padding para evitar que toque los bordes */
}

.resultado-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Para pantallas pequeñas, reducir el padding y ajustar el tamaño de fuente */
@media (max-width: 480px) {
  .resultado-card {
    padding: 15px;
  }
}

.resultado-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.resultado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.resultado-fecha {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

.resultado-estado {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.resultado-estado.completado {
  background: var(--color-success);
  color: white;
}

.resultado-combate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  /* Añadir un gap para separar los elementos */
  margin-bottom: 20px;
}

.combatiente {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 120px;
  /* Asegurar un mínimo de ancho */
}

.combatiente.ganador {
  flex-direction: row;
}

.combatiente.perdedor {
  flex-direction: row-reverse;
}

/* En móviles, hacer que los combatientes ocupen todo el ancho */
@media (max-width: 480px) {
  .combatiente {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: auto;
  }

  .combatiente.ganador,
  .combatiente.perdedor {
    flex-direction: column;
  }
}

.gallo-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
}

.combatiente-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

/* En móviles, centrar el texto y ajustar el tamaño de fuente */
@media (max-width: 480px) {
  .combatiente-info {
    text-align: left;
    font-size: 0.9rem;
  }
}

.grupo-nombre {
  font-weight: bold;
  color: var(--text-color);
  font-size: 1rem;
  word-break: break-word;
  /* Asegurar que el texto se rompa si es muy largo */
}

.gallo-nombre {
  font-size: 0.85rem;
  color: var(--color-muted);
  word-break: break-word;
  /* Asegurar que el texto se rompa si es muy largo */
}

/* En móviles, reducir el tamaño de fuente */
@media (max-width: 480px) {
  .grupo-nombre {
    font-size: 0.9rem;
  }

  .gallo-nombre {
    font-size: 0.75rem;
  }
}

.resultado-puntos {
  font-size: 1.5rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
}

.ganador .resultado-puntos {
  background: var(--color-success);
  color: white;
}

.perdedor .resultado-puntos {
  background: var(--color-danger);
  color: white;
}

.vs-separator {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-muted);
  margin: 0 10px;
}

/* En móviles, reducir el tamaño de fuente y el margen */
@media (max-width: 480px) {
  .vs-separator {
    font-size: 1rem;
    margin: 0 5px;
  }
}

.resultado-detalles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  gap: 10px;
  /* Añadir un gap para separar los elementos */
}

/* En móviles, hacer que los elementos se alineen en columna */
@media (max-width: 480px) {
  .resultado-detalles {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

.tiempo-pelea {
  color: var(--color-muted);
}

.tipo-victoria {
  color: var(--color-success);
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN DE PRÓXIMAS PELEAS
   ========================================================================== */
.proximas-peleas-section {
  margin-bottom: 50px;
}

.peleas-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pelea-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 25px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  position: relative;
}

.pelea-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-card-hover);
}

.pelea-card.programada {
  border-left: 4px solid var(--color-upcoming);
}

.pelea-tiempo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
}

.hora {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-color);
}

.fecha {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 5px;
}

.pelea-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.combatientes {
  display: flex;
  align-items: center;
  gap: 20px;
}

.combatiente-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallo-mini {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.nombre-grupo {
  font-weight: 600;
  color: var(--text-color);
}

.vs {
  font-weight: bold;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.pelea-meta {
  display: flex;
  gap: 15px;
  align-items: center;
}

.categoria {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.transmision {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.transmision {
  background: var(--color-info);
  color: white;
}

.transmision.destacada {
  background: var(--color-live);
  color: white;
  animation: pulse 2s infinite;
}

.transmision.premium {
  background: linear-gradient(45deg, #f39c12, #e74c3c);
  color: white;
}

.pelea-acciones {
  display: flex;
  gap: 10px;
}

.btn-notificar {
  background: none;
  border: 2px solid var(--border-color);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-notificar:hover {
  background: var(--color-warning);
  border-color: var(--color-warning);
}

.btn-detalles {
  background: var(--color-primario);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-detalles:hover {
  background: var(--color-secundario);
}

/* ==========================================================================
   TABLA DE CLASIFICACIÓN
   ========================================================================== */
.clasificacion-section {
  margin-bottom: 50px;
}

.tabla-wrapper {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.tabla-clasificacion {
  width: 100%;
  border-collapse: collapse;
}

.tabla-clasificacion thead {
  background: var(--color-primario);
  color: white;
}

.tabla-clasificacion th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.th-posicion {
  width: 60px;
  text-align: center;
}

.th-numero {
  text-align: center;
  width: 100px;
}

.tabla-clasificacion tbody tr {
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--border-color);
}

.tabla-clasificacion tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .tabla-clasificacion tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tabla-clasificacion td {
  padding: 20px 15px;
  vertical-align: middle;
}

.fila-top {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.pos-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.pos-1 {
  background: linear-gradient(45deg, #f39c12, #e74c3c);
}

.pos-2 {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
}

.pos-3 {
  background: linear-gradient(45deg, #e67e22, #d35400);
}

.pos-badge:not(.pos-1):not(.pos-2):not(.pos-3) {
  background: var(--color-muted);
}

.grupo-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grupo-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.grupo-nombre {
  font-weight: 600;
  color: var(--text-color);
}

.tendencia {
  font-size: 0.8rem;
  margin-left: 8px;
}

.tendencia.up {
  color: var(--color-success);
}

.tendencia.down {
  color: var(--color-danger);
}

.tendencia.neutral {
  color: var(--color-muted);
}

.numero-stat {
  text-align: center;
  font-weight: 600;
}

.numero-stat.victorias {
  color: var(--color-success);
}

.numero-stat.derrotas {
  color: var(--color-danger);
}

.puntos {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primario);
}

/* ==========================================================================
   SECCIÓN DE TRANSMISIONES
   ========================================================================== */
.transmisiones-section {
  margin-bottom: 50px;
}

.stream-filter {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stream-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.stream-card.featured {
  border: 2px solid #f39c12;
  position: relative;
}

.stream-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #e74c3c);
}

.stream-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.stream-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge,
.upcoming-badge,
.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}

.live-badge {
  background: var(--color-live);
  animation: pulse 2s infinite;
}

.upcoming-badge {
  background: var(--color-upcoming);
}

.featured-badge {
  background: linear-gradient(45deg, #f39c12, #e74c3c);
}

.viewer-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stream-info {
  padding: 20px;
}

.stream-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.stream-description {
  color: var(--color-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.stream-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stream-category,
.stream-quality {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.stream-category {
  background: var(--color-info);
  color: white;
}

.stream-quality {
  background: var(--border-color);
  color: var(--text-color);
}

.btn-watch {
  width: 100%;
  background: var(--gradient-live);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 20px;
}

.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-notify {
  width: 100%;
  background: var(--color-upcoming);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 20px;
}

.btn-notify:hover {
  background: #2c3cdd;
  transform: translateY(-2px);
}

.btn-notify.premium {
  background: linear-gradient(45deg, #f39c12, #e74c3c);
}

.btn-notify.premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* ==========================================================================
   Ventanada Modal para Transmisiones
   ========================================================================== */

/* Añade esto al final de inicio.css */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  max-width: 90%;
  width: 800px;
  box-shadow: var(--shadow-card-hover);
  position: relative;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  z-index: 1001;
}

.close-btn:hover {
  color: var(--color-danger);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.stream-player-container {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  background: black;
}

.stream-info {
  margin-bottom: 20px;
  text-align: center;
}

.btn-close-modal {
  width: 100%;
  background: var(--color-danger);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: var(--color-danger-dark);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}


/* Estilos para el reproductor de transmisión */
.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  margin: 20px 0;
  aspect-ratio: 16/9;
}

#liveStreamPlayer {
  width: 100%;
  height: 100%;
}

.modal-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-color);
}

.stream-info {
  text-align: center;
  margin: 15px 0;
  color: var(--color-muted);
}

.btn-close-modal {
  width: 100%;
  background: var(--color-danger);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: #c0392b;
}

/* Estilos para badges de acceso */
.access-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75em;
  font-weight: bold;
  z-index: 10;
}

.access-badge.free {
  background: #28a745;
  color: white;
}

.access-badge.premium {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.access-badge.locked {
  background: #dc3545;
  color: white;
}

/* Botón de watch bloqueado */
.btn-watch.locked {
  background: linear-gradient(135deg, #dc3545, #c82333);
  cursor: pointer;
}

.btn-watch.locked:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
}

/* Mensaje en modal */
#streamMessage {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejorar apariencia del modal */
#liveStreamModal .modal-content {
  max-width: 900px;
}

#liveStreamModal .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

#liveStreamModal .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Indicador de carga en stream */
.video-js .vjs-loading-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #667eea;
}

.stream-info {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-top: 15px;
}

.stream-info p {
  margin: 8px 0;
  font-size: 16px;
}

.stream-info strong {
  color: #fff;
}

.status-live {
  color: #ff4444;
  font-weight: bold;
}

.status-ended {
  color: #999;
  font-weight: bold;
}


/* ==========================================================================
   Ventanada Modal para Resultados del Día
   ========================================================================== */
/* --- Estilos específicos para el Modal de Resultados del Día --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content.resultados-modal {
  background: linear-gradient(135deg, #1a1f2d, #0f141f);
  border: 1px solid #333;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  width: 800px;
  padding: 20px;
  overflow-y: auto;
  max-height: 85vh;
}

.modal-title {
  color: #ffcc00;
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.5em;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
  font-weight: bold;
}

.resultados-lista {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resultado-item {
  background: rgba(30, 35, 50, 0.7);
  border-left: 4px solid #ff6b6b;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.resultado-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.resultado-hora {
  font-weight: bold;
  color: #4fc3f7;
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.resultado-hora::before {
  content: "🕗";
  margin-right: 8px;
}

.resultado-combate-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.combatiente-res {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 130px;
}

.ganador-res {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  box-shadow: inset 0 0 10px rgba(46, 204, 113, 0.2);
}

.perdedor-res {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  box-shadow: inset 0 0 10px rgba(231, 76, 60, 0.2);
}

.vencedor-indicator {
  display: block;
  font-weight: bold;
  color: #2ecc71;
  font-size: 0.8em;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.perdedor-indicator {
  display: block;
  font-weight: bold;
  color: #e74c3c;
  font-size: 0.8em;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grupo-nombre {
  font-weight: bold;
  color: #000000;
  font-size: 1.1em;
  display: block;
  margin-bottom: 4px;
}

.anillo-peso {
  display: block;
  font-size: 0.85em;
  color: #000000;
}

.vs-sep {
  font-weight: bold;
  color: #ffcc00;
  font-size: 1.3em;
  margin: 0 10px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.resultado-ronda {
  margin-top: 10px;
  font-size: 0.9em;
  color: #aaa;
  text-align: right;
  font-style: italic;
}

/* Botón de cierre */
.btn-close-modal {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  width: 100%;
  text-align: center;
}

.btn-close-modal:hover {
  background: #ff5252;
}

/* Mensajes de estado */
.cargando-resultados,
.no-hay-resultados,
.error-resultados {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 1.1em;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .modal-content.resultados-modal {
    width: 95%;
    padding: 15px;
    max-height: 80vh;
  }

  .resultado-combate-mini {
    flex-direction: column;
    gap: 8px;
  }

  .vs-sep {
    margin: 4px 0;
  }

  .combatiente-res {
    min-width: auto;
    text-align: left;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .resultados-grid {
    grid-template-columns: 1fr;
  }

  .pelea-card {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .pelea-tiempo {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .combatientes {
    justify-content: center;
  }

  .pelea-meta {
    justify-content: center;
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .stream-filter {
    flex-wrap: wrap;
  }

  .tabla-wrapper {
    overflow-x: auto;
  }

  .tabla-clasificacion {
    min-width: 600px;
  }

  /* Ocultar algunas columnas en móvil para mejor legibilidad */
  .tabla-clasificacion .th-numero:nth-child(5),
  .tabla-clasificacion td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-item {
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .live-indicator {
    justify-content: center;
  }
}

/* ==========================================================================
   ANIMACIONES Y EFECTOS ADICIONALES
   ========================================================================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultado-card,
.pelea-card,
.stream-card {
  animation: slideInUp 0.6s ease-out;
}

/* Efecto de carga para las tarjetas */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Efectos hover mejorados */
.resultado-card:hover .gallo-avatar,
.pelea-card:hover .gallo-mini {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.stream-card:hover .stream-image {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}