/* streamaxo Live Player — YouTube & Twitch, rotation auto des sources */
.live-stage {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.live-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.live-source-btn {
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  cursor: pointer;
}

.live-source-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.live-source-btn.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.live-source-btn .type-badge {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-account-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 20;
  padding: 1rem;
}

.live-status-toast {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.live-status-toast.visible {
  opacity: 1;
}

/* Carrousel accueil */
.live-carousel-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(20, 20, 20, 0.95));
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.live-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
}

.live-carousel-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  padding-bottom: 0.6rem;
}

.live-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.live-carousel-dot.active {
  background: #e50914;
  width: 18px;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .live-carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}
