@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root { 
  --primary-blue: #0d0d2b; 
  --fluorescent-cyan: #00ffff; 
  --fluorescent-pink: #ff00ff; 
  --text-color: #e0e0e0; 
  --primary-gold: #c5a059; 
  --travel-blue: #3498db; 
  --neon-green: #39ff14; 
  --silver-: #c0c0c0; 
  --yellow-prog: #ccff00;
}

body { 
  margin: 0; 
  font-family: 'Orbitron', sans-serif; 
  background-color: transparent; 
  color: var(--text-color); 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  min-height: 100vh; 
  padding: 10px; 
  box-sizing: border-box; 
  overflow-x: hidden; 
}

.main-container { 
  display: grid;
  grid-template-columns: 1fr 300px; 
  gap: 20px; 
  width: 100%; 
  max-width: 100%; 
  margin: 0 auto;
  box-sizing: border-box;
}

.left-column { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  width: 100%;
  min-width: 0; 
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 300px;
  min-width: 0;
}

.radio-player { 
  background: rgba(13, 13, 43, 0.9); 
  border: 2px solid var(--fluorescent-cyan); 
  border-radius: 20px; 
  padding: 20px; 
  box-shadow: 0 0 15px var(--fluorescent-cyan), 0 0 25px var(--fluorescent-cyan) inset; 
  backdrop-filter: blur(10px); 
  box-sizing: border-box; 
  width: 100%;
}

.player-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 20px; 
  gap: 15px; 
  width: 100%;
  position: relative;
}

.titles {
  flex: 1;
  min-width: 0;
}

.titles h1 { 
  font-size: 1.4rem; 
  margin: 0; 
  color: #fff; 
  text-shadow: 0 0 5px var(--fluorescent-cyan); 
  text-transform: uppercase; 
  font-weight: 700; 
}

.sub-titles { 
  margin-top: 6px; 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

.maruka-title { 
  font-size: 0.85rem; 
  color: var(--fluorescent-pink); 
  font-weight: 400; 
  text-transform: uppercase; 
  display: block; 
}

.by-choice-text { 
  font-size: 0.7rem; 
  color: var(--fluorescent-cyan); 
  text-shadow: 0 0 8px var(--fluorescent-cyan); 
  font-weight: 400; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  display: block; 
}

.mode-buttons-container { 
  display: flex; 
  gap: 6px; 
  margin-top: 10px; 
  flex-wrap: nowrap; 
  overflow-x: auto;
  padding-bottom: 5px;
}

.exclusive-btn { 
  background: transparent; 
  border: 1px solid var(--fluorescent-cyan); 
  color: var(--fluorescent-cyan); 
  font-family: 'Orbitron', sans-serif; 
  font-size: 0.65rem; 
  padding: 6px 10px; 
  border-radius: 4px; 
  cursor: pointer; 
  transition: 0.3s; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  white-space: nowrap;
  flex-shrink: 0;
}

.exclusive-btn.active { 
  background: var(--fluorescent-pink); 
  border-color: var(--fluorescent-pink); 
  color: #fff; 
  box-shadow: 0 0 10px var(--fluorescent-pink); 
}

.icons-scroll-wrapper {
  width: 100%;
  overflow-x: auto; 
  margin-bottom: 15px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch; 
  background: rgba(13, 13, 43, 0.6); 
  border: 1px solid rgba(0, 255, 255, 0.25); 
  border-radius: 15px;
  padding: 12px 15px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.1); 
}

.icons-scroll-wrapper.social-wrapper {
  border: 1px solid rgba(255, 0, 255, 0.25); 
  box-shadow: 0 0 5px rgba(255, 0, 255, 0.1); 
}

.icons-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.icons-scroll-wrapper::-webkit-scrollbar-thumb,
.icons-scroll-wrapper.social-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15); 
  border-radius: 10px;
  transition: background 0.3s;
}

.icons-scroll-wrapper.social-wrapper::-webkit-scrollbar-thumb {
  background: var(--fluorescent-pink);
}

.custom-top-icons, .future-icons-container, .social-icons-row {
  display: flex; 
  align-items: center;
  gap: 25px; 
  width: max-content;
  box-sizing: border-box;
  padding-right: 15px; 
}

.country-circle { background: var(--silver-); color: #555555; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 0 10px var(--brown-cowboy); animation: pulse-brown 2s infinite; }
.prog-circle { background: var(--yellow-prog); color: #000; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 0 10px var(--yellow-prog); animation: pulse-yellow 2s infinite; }
.it-circle { background: linear-gradient(to right, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%); color: #000; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 0 10px #ffffff; text-shadow: 0 0 2px #fff; }
.moon-circle { 
  background: #0d0d2b; 
  color: #ffffff; 
  width: 34px; 
  height: 34px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.6rem; 
  text-shadow: 0 0 8px #fff; 
  animation: pulse-moon-rings 2.5s infinite; 
  border: none; 
}

@keyframes pulse-moon-rings { 
  0% { 
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), 
                0 0 0 0 rgba(255, 0, 255, 0.4), 
                0 0 0 0 rgba(0, 255, 255, 0.4); 
  }
  100% { 
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0), 
                0 0 0 6px rgba(255, 0, 255, 0), 
                0 0 0 9px rgba(0, 255, 255, 0); 
  }
}

@keyframes pulse-universe { 
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); } 
  33% { box-shadow: 0 0 0 5px rgba(255, 0, 255, 0.7); } 
  66% { box-shadow: 0 0 0 8px rgba(0, 255, 255, 0.4); } 
  100% { box-shadow: 0 0 0 12px rgba(0, 255, 255, 0); } 
}
@keyframes pulse-brown { 0% { box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(139, 69, 19, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 69, 19, 0); } }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(204, 255, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); } }

.top-icon-label { font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }

.station-display { 
  position: relative; 
  background: rgba(0, 0, 0, 0.4); 
  padding: 20px; 
  border-radius: 10px; 
  text-align: center; 
  min-height: 100px; 
  border-left: 4px solid var(--fluorescent-pink); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  margin-bottom: 20px; 
  box-sizing: border-box;
}

.name-row { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  width: 100%; 
  flex-wrap: wrap; 
  box-sizing: border-box; 
}

#current-station-name { 
  margin: 0; 
  font-size: 1rem; 
  color: #fff; 
  font-weight: bold; 
  text-align: center; 
}

#current-station-flag { 
  font-size: 1.6em; 
  display: inline-block; 
  vertical-align: middle; 
}

#current-station-time { 
  font-family: Arial, sans-serif; 
  font-size: 0.9rem; 
  color: #aaa; 
  margin: 6px 0; 
  font-weight: bold; 
  letter-spacing: 1px; 
}

#current-station-location { 
  font-size: 0.7rem; 
  color: #888; 
  margin: 0; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.share-box-display {
  position: absolute;
  bottom: 10px;
  right: 12px;
  cursor: pointer;
  transition: 0.3s;
  padding: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  border: 1px solid rgba(0,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  z-index: 5;
}

.share-box-display:hover { 
  border-color: var(--fluorescent-cyan); 
  box-shadow: 0 0 8px var(--fluorescent-cyan); 
}

.share-icon-inner { 
  color: var(--fluorescent-cyan); 
  font-size: 0.9rem; 
}

.icon-shield-link { 
  text-decoration: none; 
  display: inline-flex; 
  flex-direction: column; 
  align-items: center; 
  transition: 0.3s; 
  flex-shrink: 0; 
}
.icon-shield-link:hover {
  transform: scale(1.05);
}

.explore-circle { background: #ff4500; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; box-shadow: 0 0 10px #ff4500; animation: pulse-orange 2s infinite; }
.explore-label { color: #ff4500; font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }
@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(255, 69, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); } }

.plane-circle { background: var(--primary-gold); color: #000; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; box-shadow: 0 0 10px var(--primary-gold); animation: pulse-gold 2s infinite; }
.plane-label { color: var(--primary-gold); font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }

.news-circle { background: var(--fluorescent-cyan); color: #000; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; box-shadow: 0 0 10px var(--fluorescent-cyan); animation: pulse-cyan 2s infinite; }
.news-label { color: var(--fluorescent-cyan); font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }

.travel-circle { background: var(--travel-blue); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; box-shadow: 0 0 10px var(--travel-blue); animation: pulse-blue 2s infinite; }
.travel-label { color: var(--travel-blue); font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }

.global-news-circle { background: var(--neon-green); color: #000; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; box-shadow: 0 0 10px var(--neon-green); animation: pulse-green 2s infinite; }
.global-news-label { color: var(--neon-green); font-size: 0.52rem; font-weight: bold; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; white-space: nowrap; }

.side-circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: 0.3s; }
.bg-tech { background: var(--fluorescent-cyan); color: #000; box-shadow: 0 0 8px var(--fluorescent-cyan); }
.bg-envelope { background: #fff; color: #000; box-shadow: 0 0 8px #fff; }
.bg-maruka { background: var(--fluorescent-pink); color: #fff; box-shadow: 0 0 8px var(--fluorescent-pink); }
.bg-franchise { background: var(--primary-gold); color: #000; box-shadow: 0 0 8px var(--primary-gold); }

@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(197, 160, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); } }
@keyframes pulse-cyan { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(0, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); } }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(52, 152, 219, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); } }

.player-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; flex-wrap: wrap; width: 100%; box-sizing: border-box; }
.controls-left { display: flex; gap: 15px; align-items: center; }
.control-btn { background: transparent; border: 2px solid var(--fluorescent-cyan); color: var(--fluorescent-cyan); border-radius: 50%; width: 48px; height: 48px; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; flex-shrink: 0; }
.control-btn:hover { background: var(--fluorescent-cyan); color: var(--primary-blue); box-shadow: 0 0 10px var(--fluorescent-cyan); }
#add-favorite-btn.favorited { background: var(--fluorescent-pink); color: #fff; border-color: var(--fluorescent-pink); box-shadow: 0 0 10px var(--fluorescent-pink); }
.volume-container { display: flex; align-items: center; gap: 8px; color: var(--fluorescent-cyan); flex-grow: 1; min-width: 100px; max-width: 150px; justify-content: center; }
#volume-slider { width: 100%; cursor: pointer; accent-color: var(--fluorescent-cyan); }

.timer-container { display: flex; align-items: center; gap: 4px; color: var(--fluorescent-pink); font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: bold; }
.timer-select { background: rgba(13, 13, 43, 0.8); border: 1px solid var(--fluorescent-pink); color: #fff; border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; padding: 5px; cursor: pointer; outline: none; }
.timer-select:focus { box-shadow: 0 0 5px var(--fluorescent-pink); }

.favorites-panel { 
  background: rgba(13, 13, 43, 0.8); 
  border: 2px solid var(--fluorescent-pink); 
  border-radius: 20px; 
  padding: 20px; 
  width: 100%; 
  box-shadow: 0 0 15px var(--fluorescent-pink); 
  box-sizing: border-box; 
  display: flex; 
  flex-direction: column; 
}

.favorites-panel h3 { text-align: center; color: var(--fluorescent-pink); margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }
#favorites-list { list-style: none; padding: 0; max-height: 220px; overflow-y: auto; }
#favorites-list li { padding: 10px; margin-bottom: 6px; background: rgba(0,0,0,0.2); border-radius: 5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; border: 1px solid rgba(255,0,255,0.1); transition: 0.2s; user-select: none; -webkit-user-select: none; }
#favorites-list li:hover { border-color: var(--fluorescent-pink); background: rgba(255,0,255,0.05); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinning { animation: spin 1s linear infinite; }

@media (max-width: 768px) { 
  body { padding: 5px; }
  .main-container { grid-template-columns: 1fr; gap: 15px; } 
  .right-column { width: 100%; }
  .favorites-panel { width: 100%; max-width: 100%; } 
  .player-controls { justify-content: center; }
}

@media (max-width: 480px) {
  .radio-player { padding: 15px; }
  .player-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .titles { max-width: calc(100% - 60px); }
  .titles h1 { font-size: 1.15rem; word-wrap: break-word; } 
  .volume-container { min-width: 100%; max-width: 100%; margin-top: 5px; order: 3; }
  .timer-container { order: 2; margin-left: auto; }
}

html {
  scroll-behavior: smooth;
}

.btn-ferrari {
  display: inline-block;
  background-color: #FF2800; 
  color: #FFFFFF !important; 
  padding: 6px 12px; 
  font-size: 13px; 
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.btn-ferrari:hover {
  background-color: #E62200; 
  text-decoration: none;
  transform: translateY(-1px); 
}

.btn-ferrari:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sfondo cerchio Bianco Fluorescente */
.bg-neon-white {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.5);
  transition: 0.3s ease-in-out;
}

/* Testo dell'etichetta Bianco Fluorescente */
.neon-text-white {
  color: #ffffff !important;
  text-shadow: 0 0 5px #ffffff, 0 0 10px rgba(255, 255, 255, 0.6);
  transition: 0.3s ease-in-out;
}

/* Logica ed Effetto Pulsante al passaggio del mouse (Hover) */
.neon-white-btn:hover .bg-neon-white {
  box-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
  animation: pulse-neon-white 1.5s infinite alternate;
}

.neon-white-btn:hover .neon-text-white {
  text-shadow: 0 0 8px #ffffff, 0 0 20px #ffffff;
}

/* Animazione Pulsante Neon per il cerchio */
@keyframes pulse-neon-white {
  0% {
      transform: scale(1);
      box-shadow: 0 0 12px #ffffff, 0 0 25px rgba(255, 255, 255, 0.6);
  }
  100% {
      transform: scale(1.08); /* Effetto zoom pulsante leggero */
      box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff, 0 0 15px var(--fluorescent-cyan); /* Sfuma leggermente verso il cyan del tema */
  }
}

.bg-maruka-green { 
  background: var(--neon-green); 
  color: #000000; 
  box-shadow: 0 0 8px var(--neon-green); 
}