* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ========== HEADER / LOGO ========== */
.header {
  text-align: center;
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid #1f1f1f;
  margin-bottom: 1.75rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.logo h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.logo h1 span {
  color: #ef4444; /* Rojo */
}

.tagline {
  color: #888;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #14532d;
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ========== LOADING ========== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: #888;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #222;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 1rem;
}

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

/* ========== ERROR ========== */
.error {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: #1a0a0a;
  border: 1px solid #7f1d1d;
  border-radius: 12px;
  color: #f87171;
}

/* ========== LISTA DE EVENTOS ========== */
.eventos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Tarjeta de evento estilo stream */
.evento-card {
  display: flex;
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.evento-card:hover {
  border-color: #ef4444;
  background: #1a1a1a;
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.evento-card .thumb {
  width: 110px;
  min-width: 110px;
  height: 90px;
  object-fit: cover;
  background: #1f1f1f;
}

.evento-card .thumb-placeholder {
  width: 110px;
  min-width: 110px;
  height: 90px;
  background: linear-gradient(135deg, #1a1a1a, #2a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ef4444;
  font-weight: 800;
}

.evento-card .info {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.evento-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.evento-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #999;
}

.evento-card .meta .fecha {
  color: #4ade80; /* Verde */
  font-weight: 600;
}

.evento-card .lugar {
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 500;
}

.evento-card .play-icon {
  display: flex;
  align-items: center;
  padding-right: 1rem;
  color: #ef4444;
  font-size: 1.4rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.evento-card:hover .play-icon {
  opacity: 1;
}

/* ========== PÁGINA DE DETALLE ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.back-link:hover {
  color: #f87171;
}

.evento-detalle {
  background: #141414;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #222;
}

/* ===== REPRODUCTOR ===== */
.player-container {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.no-player {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  color: #666;
  gap: 0.75rem;
}

.no-player span {
  font-size: 3rem;
  color: #ef4444;
  opacity: 0.6;
}

.no-player p {
  font-size: 0.95rem;
}

/* ===== BOTONES DE SEÑAL (hasta 3 embeds) ===== */
.embed-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
}

.embed-btn {
  background: #1f1f1f;
  color: #aaa;
  border: 1px solid #333;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.embed-btn:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #555;
}

.embed-btn.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Info del evento */
.evento-detalle .evento-info {
  padding: 1.5rem;
}

.evento-detalle h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.3;
}

.evento-detalle .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.4rem;
}

.evento-detalle .meta span:first-child {
  color: #4ade80;
  font-weight: 600;
}

.evento-detalle .lugar {
  font-size: 0.95rem;
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.evento-detalle .descripcion {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.7;
  white-space: pre-line;
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.4rem;
  background: #ef4444;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: #dc2626;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
  font-size: 0.8rem;
  border-top: 1px solid #1a1a1a;
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 600px) {
  .evento-card .thumb,
  .evento-card .thumb-placeholder {
    width: 140px;
    min-width: 140px;
    height: 100px;
  }

  .evento-card h2 {
    font-size: 1.15rem;
  }
}

/* ===== TEXTO SEO ===== */
.seo-text {
  text-align: center;
  padding: 0 0.5rem 1.5rem;
  color: #777;
  font-size: 0.9rem;
  line-height: 1.5;
}

.seo-text h2 {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.seo-text p {
  max-width: 600px;
  margin: 0 auto;
}

.seo-text strong {
  color: #999;
  font-weight: 600;
}
