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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
  position: relative;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

header {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.logo {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.locked-screen img {
  transition: none !important;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  transition: all 0.3s ease;
}

.container.history-mode {
  grid-template-columns: 1fr;
  max-width: 1400px;
}

.container.history-mode .player-card {
  display: none;
}

.player-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 2rem;
}

.menu-button {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  position: relative;
  flex-shrink: 0;
  z-index: 100000;
}

.menu-button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.radio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  flex: 1;
}

.radio-tab {
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-tab:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.radio-tab.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.menu-dropdown {
  position: absolute;
  top: 60px;
  left: 0;
  min-width: 280px;
  background: rgba(20,20,30,0.98);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  z-index: 100001;
  display: none;
  padding: 0.8rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-dropdown.show {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.menu-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(4px);
}

.menu-item i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.player-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.player-card.compact {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  text-align: left;
  align-items: center;
}

.cover-container {
  position: relative;
  margin: 0 auto 2rem;
  width: 380px;
  height: 380px;
  transition: all 0.3s ease;
}

.cover-container.compact {
  width: 160px;
  height: 160px;
  margin: 0;
}

.album-cover {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.5s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.album-cover.playing {
  box-shadow: 0 0 30px rgba(108,92,231,0.4);
}

/* ===== INDICATEUR DE QUALITÉ ===== */
.quality-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  animation: qualityPulse 2s ease-in-out infinite;
}

.quality-indicator.high {
  background: linear-gradient(45deg, #6c5ce7, #a29bfe) !important;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3) !important;
}

.quality-indicator.low {
  background: linear-gradient(45deg, #f39c12, #e67e22) !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3) !important;
}

@keyframes qualityPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.quality-indicator:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5) !important;
}

.track-info {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.track-info.compact {
  margin-bottom: 0;
}

.track-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.track-title.compact {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.track-artist {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 400;
}

.track-artist.compact {
  font-size: 1rem;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.controls.compact {
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0;
  justify-content: flex-end;
}

.live-indicator {
  background: linear-gradient(45deg, #ff4757, #ff6b6b);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 3px 12px rgba(255, 71, 87, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-indicator.show {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: liveIndicatorPulse 2s ease-in-out infinite;
}

@keyframes liveIndicatorPulse {
  0%, 100% { 
    transform: translateX(-50%) scale(1); 
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
  }
  50% { 
    transform: translateX(-50%) scale(1.05); 
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
  }
}

.play-button.playing {
  background: var(--dynamic-gradient, linear-gradient(45deg, #6c5ce7, #a29bfe));
}

.play-button.playing::before {
  background: var(--dynamic-gradient-ring, linear-gradient(45deg, #6c5ce7, #a29bfe, #00d4ff, #6c5ce7));
}

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

.play-button.compact {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.visualizer {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 3px;
  height: 15px;
  margin-bottom: 0.5rem;
  opacity: 0;
  transition: all 0.8s ease;
}

.visualizer.playing {
  opacity: 1;
  height: 60px;
  margin-bottom: 1rem;
  transform: scale(1.05);
}

.visualizer.compact {
  height: 35px;
  margin-bottom: 0.5rem;
}

.bar {
  width: 4px;
  background: linear-gradient(to top, #6c5ce7, #a29bfe, #fff);
  border-radius: 2px;
  transition: all 0.3s ease;
  animation: bounce 1.5s infinite ease-in-out;
  animation-play-state: paused;
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.bar.playing {
  animation-play-state: running;
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.6);
  filter: brightness(1.2);
}

.visualizer .bar:nth-child(1) { 
  height: 15px; 
  animation-delay: 0s; 
  animation-duration: 1.2s;
  --max-height: 25px;
}
.visualizer .bar:nth-child(2) { 
  height: 25px; 
  animation-delay: 0.1s; 
  animation-duration: 1.4s;
  --max-height: 35px;
}
.visualizer .bar:nth-child(3) { 
  height: 35px; 
  animation-delay: 0.2s; 
  animation-duration: 1.1s;
  --max-height: 45px;
}
.visualizer .bar:nth-child(4) { 
  height: 45px; 
  animation-delay: 0.3s; 
  animation-duration: 1.6s;
  --max-height: 55px;
}
.visualizer .bar:nth-child(5) { 
  height: 30px; 
  animation-delay: 0.4s; 
  animation-duration: 1.3s;
  --max-height: 40px;
}

@keyframes bounce {
  0%, 100% { 
    height: 8px; 
    background: linear-gradient(to top, #6c5ce7, #a29bfe);
  }
  25% { 
    height: var(--max-height, 40px); 
    background: linear-gradient(to top, #6c5ce7, #a29bfe, #fff);
  }
  50% { 
    height: calc(var(--max-height, 40px) * 0.7); 
    background: linear-gradient(to top, #6c5ce7, #a29bfe, #00d4ff);
  }
  75% { 
    height: var(--max-height, 40px); 
    background: linear-gradient(to top, #6c5ce7, #a29bfe, #fff);
  }
}

.player-card.playing {
  animation: cardPulse 4s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  }
  50% { 
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.4), 
                0 0 60px rgba(108, 92, 231, 0.1);
  }
}

.album-cover.playing {
  box-shadow: 0 0 30px rgba(108,92,231,0.4), 
              0 0 60px rgba(108,92,231,0.2);
  animation: coverGlow 3s ease-in-out infinite;
}

@keyframes coverGlow {
  0%, 100% { 
    filter: brightness(1) saturate(1);
  }
  50% { 
    filter: brightness(1.1) saturate(1.2);
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.sidebar.hidden {
  display: none;
}

.recent-tracks {
  padding: 1.5rem;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.track-item:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem;
}

.track-item:last-child {
  border-bottom: none;
}

.track-mini-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.track-mini-info {
  flex: 1;
}

.track-mini-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.track-mini-time {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: 4px;
  color: #a29bfe;
}

.mini-stats {
  padding: 1.5rem;
  text-align: center;
}

.mini-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mini-stat-value {
  font-weight: 600;
  color: #6c5ce7;
}

/* ========= SECTION HISTORIQUE ========= */
.history-section {
  display: none;
  animation: slideIn 0.3s ease;
  margin-top: 2rem;
}

.history-section.active {
  display: block;
}

.history-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.history-fixed-player {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.history-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.history-title {
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(45deg, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.history-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  justify-content: center;
}

.station-dropdown {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  outline: none;
  cursor: pointer;
  min-width: 140px;
  font-size: 0.9rem;
  height: 46px;
}

.station-dropdown option {
  background: #1a1a2e;
  color: white;
  padding: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper input {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  outline: none;
  color-scheme: dark;
  font-size: 0.9rem;
  min-width: 120px;
  height: 46px;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
}

.close-history-btn {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
}

.history-list {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  overflow-y: auto;
  max-height: 65vh;
}

.history-list::-webkit-scrollbar {
  width: 8px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.history-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.history-time {
  font-size: 1rem;
  font-weight: 700;
  color: #a29bfe;
  min-width: 70px;
  text-align: center;
  background: rgba(162, 155, 254, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(162, 155, 254, 0.2);
}

.history-cover {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.history-track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-track-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.history-track-artist {
  font-size: 0.95rem;
  opacity: 0.8;
  color: #a29bfe;
  line-height: 1.2;
  font-weight: 500;
}

/* ===== MINI PLAYER HISTORIQUE ===== */
.history-mini-player {
  position: static;
  margin: 2rem auto 0;
  width: 500px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10001;
  border-radius: 20px;
  backdrop-filter: blur(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mini-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mini-player-title-header {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
}

.mini-station-selector {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

.mini-station-selector option {
  background: #1a1a2e;
  color: white;
}

.mini-player-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mini-player-cover img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mini-player-info {
  flex: 1;
}

.mini-player-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-artist {
  font-size: 0.95rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.mini-play-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

.mini-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.6);
}

.footer {
  margin-top: 4rem;
  padding: 3rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #a29bfe;
}

.footer-section p, .footer-section li {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #a29bfe;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  width: 100%;
}

/* Modale des paramètres */
.theoradio-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  font-family: 'Inter', sans-serif;
}

.settings-modal-header {
  background: rgba(30, 30, 40, 0.9);
  padding: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  color: white;
  font-weight: 600;
}

.settings-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.settings-modal-content {
  background: rgba(40, 40, 50, 0.9);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.setting-section {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.setting-label {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connection-info {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: auto;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.volume-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  background: linear-gradient(to right, #6c5ce7, #a29bfe);
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.volume-value {
  color: #a29bfe;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: right;
}

.quality-options {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.quality-btn {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quality-btn.active {
  background: rgba(108, 92, 231, 0.2);
  border-color: #6c5ce7;
}

.quality-label {
  font-weight: 700;
  font-size: 1rem;
}

.quality-desc {
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: center;
}

.network-diagnostic {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.network-quality-indicator {
  font-size: 1.5rem;
}

.network-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.network-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  font-size: 1.25rem;
}

.stat-text {
  font-size: 0.9rem;
}

.speed-graph-container {
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 0.5rem;
}

.setting-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sync-btn {
  background: linear-gradient(45deg, #00b894, #00a085);
  color: white;
}

.reset-btn {
  background: linear-gradient(45deg, #e17055, #d63031);
  color: white;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 auto;
  text-align: center;
}

.footer-legal {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.5;
}

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: floatSlow 12s infinite linear;
  z-index: -1;
}

@keyframes floatSlow {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .radio-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .menu-section {
    gap: 1rem;
  }
  
  .history-mini-player {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }
  
  .cover-container {
    width: 250px;
    height: 250px;
  }

  .cover-container.compact {
    width: 120px;
    height: 120px;
  }
  
  .radio-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .radio-tab {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .player-card.compact {
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
  }

  .history-header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .history-title {
    font-size: 2rem;
  }

  .history-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .history-item {
    gap: 1rem;
    padding: 1rem;
  }

  .history-cover {
    width: 50px;
    height: 50px;
  }

  .history-time {
    font-size: 0.85rem;
    min-width: 60px;
    padding: 0.3rem;
  }
  
  .footer-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .history-mini-player {
    width: 100%;
    margin: 1rem 0 0;
    padding: 1.5rem;
  }
  
  .mini-player-cover img {
    width: 60px;
    height: 60px;
  }

  .quality-indicator {
    top: 10px !important;
    right: 10px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.65rem !important;
  }
}

.play-button {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden;
}

.play-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #6c5ce7, #a29bfe, #00d4ff, #6c5ce7);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 3s linear infinite;
}

.play-button.playing::before {
  opacity: 1;
}

/* ===== CORRECTION MODAL PARAMÈTRES MOBILE ===== */
@media (max-width: 768px) {
  .settings-modal-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .modal-close-btn {
    min-width: 50px !important;
    min-height: 50px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
  }
}

/* ===== FIX INPUTS HISTORIQUE - FORCER L'INTERACTION ===== */
.history-controls input[type="date"],
.history-controls input[type="time"] {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  position: relative !important;
}

.history-controls input[type="date"]:focus,
.history-controls input[type="time"]:focus {
  outline: 2px solid #6c5ce7 !important;
  background: rgba(255,255,255,0.15) !important;
  border-color: #6c5ce7 !important;
}

/* Forcer l'affichage du calendrier/time picker */
.history-controls input[type="date"]::-webkit-calendar-picker-indicator,
.history-controls input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: invert(1);
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 20;
}

/* S'assurer que l'input-wrapper n'interfère pas */
.input-wrapper {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

.history-controls {
  pointer-events: auto !important;
  z-index: 10 !important;
}

.history-header {
  position: relative;
  z-index: 100 !important;
}

/* ===== FIX BOUTON RECHERCHE HISTORIQUE ===== */
.search-btn,
.close-history-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 100 !important;
  position: relative !important;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.5);
}

.close-history-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

/* ===== FIX ICÔNES DANS LES BOUTONS - LAISSER PASSER LES CLICS ===== */
.search-btn i,
.close-history-btn i,
.menu-item i,
.play-button i,
.mini-play-button i {
  pointer-events: none !important;
}

/* ===== ICÔNES DATE/HEURE EN VIOLET ===== */
.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator,
.input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) hue-rotate(220deg) brightness(1.2) !important;
  opacity: 0.9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator:hover,
.input-wrapper input[type="time"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(1) hue-rotate(220deg) brightness(1.5) !important;
  opacity: 1;
  transform: scale(1.1);
}

/* Pour Firefox */
.input-wrapper input[type="date"],
.input-wrapper input[type="time"] {
  color-scheme: dark;
}