/* ═══════════════════════════════════════════════════════════
   🎨 CSS WIDGET RADIOKING - VERSION CORRIGÉE
   Photo 100% visible au-dessus + Titre sur 2 lignes sans débordement
   ═══════════════════════════════════════════════════════════ */

/* ========================================
   🗑️ CACHER "Aucune donnée"
   ======================================== */
#rk-current-track-widget > p,
#rk-current-track-widget > div:first-child:has(p),
#rk-current-track-widget > div:first-child:only-child:not(:has(img)),
#rk-current-track-widget > *:only-child:not(:has(img)):not(:has([class*="title"])) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

#rk-current-track-widget > div:not(:has(img)):not(:has([class*="title"])):not(:has(h2)):not(:has(h3)):not(:has(strong)) {
  display: none !important;
}

/* ========================================
   🎯 RETIRER TOUS LES FONDS BLANCS
   ======================================== */
#rk-current-track-widget,
#rk-current-track-widget *,
#rk-current-track-widget > div,
#rk-current-track-widget > div > div {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

/* ========================================
   📦 CONTAINER PRINCIPAL - PLUS D'ESPACE POUR LA PHOTO
   ======================================== */
#rk-current-track-widget {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
  overflow: visible !important; /* CRITIQUE: permet photo visible */
  box-sizing: border-box !important;
  position: relative !important;
  padding-top: 180px !important; /* AUGMENTÉ ENCORE: plus d'espace pour la photo */
}

/* ========================================
   🎨 CARTE PRINCIPALE - LE CADRE
   ======================================== */
#rk-current-track-widget > div:has(img),
#rk-current-track-widget > div:has([class*="title"]) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  
  /* LE CADRE VISIBLE */
  background: rgba(20, 20, 35, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 215, 0, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  
  padding: 30px 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important; /* CRITIQUE: ne coupe pas la photo */
  box-sizing: border-box !important;
  position: relative !important;
  margin-top: 0 !important;
  
  /* Animation au hover */
  transition: all 0.3s ease !important;
}

#rk-current-track-widget > div:has(img):hover,
#rk-current-track-widget > div:has([class*="title"]):hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 215, 0, 0.6) !important;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 215, 0, 0.3) !important;
}

/* ========================================
   🖼️ PHOTO - COMPLÈTEMENT AU-DESSUS ET VISIBLE
   ======================================== */
#rk-current-track-widget img {
  /* SORTIR DU FLUX - POSITIONNER COMPLÈTEMENT AU-DESSUS */
  position: absolute !important;
  top: -160px !important; /* AUGMENTÉ ENCORE: photo encore plus haute */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important; /* TRÈS HAUT: toujours visible */
  
  /* Taille et style */
  display: block !important;
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  border-radius: 50% !important; /* ROND vinyle */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(255, 215, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.6) !important;
  object-fit: cover !important;
  border: 5px solid rgba(255, 215, 0, 0.7) !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
  pointer-events: auto !important; /* Toujours interactive */
  
  /* Animation rotation vinyle */
  animation: vinylSpin 8s linear infinite !important;
}

@keyframes vinylSpin {
  0% { 
    transform: translateX(-50%) rotate(0deg);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.95),
      0 0 80px rgba(255, 215, 0, 0.6);
  }
  50% {
    transform: translateX(-50%) rotate(180deg);
    box-shadow: 
      0 25px 70px rgba(0, 0, 0, 1),
      0 0 100px rgba(255, 215, 0, 0.8);
  }
  100% { 
    transform: translateX(-50%) rotate(360deg);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.95),
      0 0 80px rgba(255, 215, 0, 0.6);
  }
}

/* ========================================
   🎵 TITRE - 2 LIGNES MAXIMUM, SANS DÉBORDEMENT
   ======================================== */
#rk-current-track-widget [class*="title"],
#rk-current-track-widget h2,
#rk-current-track-widget h3,
#rk-current-track-widget strong:first-of-type,
#rk-current-track-widget b:first-of-type {
  display: -webkit-box !important;
  width: 100% !important;
  max-width: 100% !important;
  
  /* MULTI-LIGNES (2 MAX) - EMPÊCHE DÉBORDEMENT */
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important; /* Permet le retour à la ligne */
  
  /* Style */
  font-family: 'Arial Black', 'Impact', sans-serif !important;
  font-size: clamp(18px, 3.5vw, 32px) !important; /* Taille adaptative */
  font-weight: 900 !important;
  color: #ffd700 !important;
  text-align: center !important;
  text-shadow: 
    0 0 25px rgba(255, 215, 0, 1),
    0 0 50px rgba(255, 215, 0, 0.9),
    0 4px 15px rgba(0, 0, 0, 1) !important;
  margin: 0 0 15px 0 !important;
  padding: 0 20px !important; /* AUGMENTÉ: plus d'espace des bords */
  line-height: 1.3 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  background: transparent !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  max-height: 5.2em !important; /* Hauteur pour 2 lignes */
  
  /* Animation */
  animation: titlePulse 3s ease-in-out infinite !important;
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 
      0 0 25px rgba(255, 215, 0, 1),
      0 0 50px rgba(255, 215, 0, 0.9),
      0 4px 15px rgba(0, 0, 0, 1);
  }
  50% {
    text-shadow: 
      0 0 40px rgba(255, 215, 0, 1),
      0 0 80px rgba(255, 215, 0, 1),
      0 0 120px rgba(255, 215, 0, 0.8),
      0 4px 20px rgba(0, 0, 0, 1);
  }
}

/* ========================================
   🎤 ARTISTE - 2 LIGNES MAXIMUM
   ======================================== */
#rk-current-track-widget [class*="artist"],
#rk-current-track-widget p:not(:first-child),
#rk-current-track-widget span:not([class*="title"]) {
  display: -webkit-box !important;
  width: 100% !important;
  max-width: 100% !important;
  
  /* MULTI-LIGNES (2 MAX) */
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  
  /* Style */
  font-family: Arial, sans-serif !important;
  font-size: clamp(16px, 3vw, 26px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: center !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 3px 15px rgba(0, 0, 0, 1) !important;
  margin: 0 !important;
  padding: 0 20px !important;
  letter-spacing: 0.5px !important;
  background: transparent !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  max-height: 4.2em !important;
  line-height: 1.4 !important;
}

/* ========================================
   💿 ALBUM
   ======================================== */
#rk-current-track-widget [class*="album"],
#rk-current-track-widget small,
#rk-current-track-widget em {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(12px, 2vw, 16px) !important;
  color: rgba(255, 215, 0, 0.7) !important;
  text-align: center !important;
  margin: 10px 0 0 0 !important;
  padding: 0 20px !important;
  font-style: italic !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1) !important;
  box-sizing: border-box !important;
}

/* ========================================
   🎯 CACHER ÉLÉMENTS INUTILES
   ======================================== */
#rk-current-track-widget a[href*="buy"],
#rk-current-track-widget a[href*="shop"],
#rk-current-track-widget [class*="buy"],
#rk-current-track-widget [class*="logo"],
#rk-current-track-widget [class*="powered"],
#rk-current-track-widget [class*="branding"],
#rk-current-track-widget svg:not(.keep),
#rk-current-track-widget iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* ========================================
   🔧 FORCER LA VISIBILITÉ
   ======================================== */
#rk-current-track-widget img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#rk-current-track-widget [class*="title"]:not(:empty),
#rk-current-track-widget [class*="artist"]:not(:empty),
#rk-current-track-widget h2:not(:empty),
#rk-current-track-widget h3:not(:empty),
#rk-current-track-widget strong:not(:empty),
#rk-current-track-widget b:not(:empty),
#rk-current-track-widget p:not(:empty):not(:first-child),
#rk-current-track-widget span:not(:empty) {
  display: -webkit-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* ========================================
   🌟 SECTION EN DIRECT
   ======================================== */
.live-section-container {
  position: relative;
  width: 100%;
  padding: 50px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 50%, #1a1a2e 100%);
  border: 2px solid transparent;
  background-image: 
    linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 50%, #1a1a2e 100%),
    linear-gradient(90deg, #00d9ff, #7c4dff, #ff1744, #ffd700, #00d9ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
  box-sizing: border-box;
  animation: sectionGlow 8s linear infinite;
}

@keyframes sectionGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.2)); }
  25% { filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.2)); }
  75% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2)); }
}

.live-section-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.live-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px 20px;
  font-family: 'Arial Black', sans-serif;
  font-size: clamp(20px, 5vw, 36px);
  font-weight: 900;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 1),
    0 0 40px rgba(255, 215, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  animation: titlePulseLive 3s ease-in-out infinite;
}

@keyframes titlePulseLive {
  0%, 100% {
    text-shadow: 
      0 0 20px rgba(255, 215, 0, 1),
      0 0 40px rgba(255, 215, 0, 0.8);
  }
  50% {
    text-shadow: 
      0 0 30px rgba(255, 215, 0, 1),
      0 0 60px rgba(255, 215, 0, 1),
      0 0 90px rgba(255, 215, 0, 0.8);
  }
}

.live-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 
    0 0 15px rgba(255, 0, 0, 1),
    0 0 30px rgba(255, 0, 0, 0.8);
  flex-shrink: 0;
  animation: pulseLive 1.2s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.4);
    opacity: 0.8;
  }
}

.live-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.live-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #fff;
  transition: all 0.3s ease;
}

.live-stat-item:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.live-stat-icon {
  font-size: 22px;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.live-stat-value {
  font-weight: bold;
  font-size: 18px;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.live-stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

/* ========================================
   📱 RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  #rk-current-track-widget {
    padding-top: 100px !important;
  }
  
  #rk-current-track-widget img {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    top: -85px !important;
    border: 4px solid rgba(255, 215, 0, 0.7) !important;
  }
  
  #rk-current-track-widget > div {
    padding: 25px 15px !important;
    gap: 15px !important;
  }
  
  #rk-current-track-widget [class*="title"],
  #rk-current-track-widget h2 {
    font-size: clamp(16px, 3.5vw, 24px) !important;
    padding: 0 15px !important;
  }
  
  #rk-current-track-widget [class*="artist"],
  #rk-current-track-widget p {
    font-size: clamp(14px, 3vw, 18px) !important;
    padding: 0 15px !important;
  }
  
  .live-section-container {
    padding: 30px 15px;
  }
  
  .live-section-title {
    font-size: clamp(16px, 4vw, 24px);
    letter-spacing: 3px;
    gap: 12px;
    padding: 12px 15px;
  }
  
  .live-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }
}

@media (max-width: 480px) {
  #rk-current-track-widget {
    padding-top: 85px !important;
  }
  
  #rk-current-track-widget img {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    top: -70px !important;
    border: 3px solid rgba(255, 215, 0, 0.7) !important;
  }
  
  #rk-current-track-widget > div {
    padding: 20px 12px !important;
  }
  
  #rk-current-track-widget [class*="title"],
  #rk-current-track-widget h2 {
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    padding: 0 12px !important;
  }
  
  #rk-current-track-widget [class*="artist"],
  #rk-current-track-widget p {
    font-size: 12px !important;
    padding: 0 12px !important;
  }
}