/* ===== ОСНОВА ===== */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}
body {
  
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  /* градиент украинского флага сверху вниз */
  background: linear-gradient(to bottom, #0057B7 0%, #0057B7 25%, #3373D6 50%, #FFD700 55%, #FFD700 100%);
  color: #003a80;
  min-height: 100vh;
  
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 40px 20px 20px;
}

header h1 {
  font-size: 3em;
  margin: 0;
  letter-spacing: 2px;
  color: #FFD700;
  text-shadow: 0 0 10px #111;
}

/* ===== ПЛЕЕР ===== */
.player-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6); /* полупрозрачный фон для читаемости */
  border-radius: 20px;
  box-shadow: 0 0 200px rgba(0, 87, 183, 0.5);
  text-align: center;
  color: #FFD700;
}

/* ===== КНОПКА PLAY ===== */
#toggleBtn {
  font-size: 64px;
  width: 140px;
  height: 140px;
  background: #003a80;
  border-radius: 50%;
  border: none;
  color: #FFD700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.2s, background 0.2s;
}

#toggleBtn:hover {
  transform: scale(1.1);
}

#toggleBtn.playing {
  background: #FFD700;
  color: #003a80;
}

/* ===== БУФЕРИЗАЦИЯ ===== */
#toggleBtn.buffering {
  animation: pulseFlag 1.4s infinite;
  
}

@keyframes pulseFlag {
  0%, 100% {
    background: #003a80;
	text-shadow: 0 0 10px #111;
    transform: scale(1);
  }
  50% {
    background: #FFD700;
    transform: scale(1.15);
  }
}

/* ===== ИНФО ===== */
#track {
  margin: 10px 0;
  color: #FFD700;
  text-shadow: 0 0 10px #111;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 1.4em;
  position: relative;
}


#status {
  color: #FFD700;
  text-shadow: 0 0 10px #111;
  margin-bottom: 8px;
}

#traffic,
#listeners {
  color: #FFD700;
  text-shadow: 0 0 10px #111;
  
}

/* ===== КАЧЕСТВО ===== */
#quality {
  margin-bottom: 20px;
}

#quality button {
  padding: 10px 20px;
  margin: 0 8px;
  border: none;
  border-radius: 10px;
  background: #003a80;
  color: #FFD700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

#quality button:hover {
  transform: scale(1.05);
}

#quality button.active {
  background: #FFD700;
  color: #003a80;
}

/* ===== ГРОМКОСТЬ ===== */
.volume {
  margin: 15px 0;
  text-shadow: 0 0 10px #111;
}

#volume {
  width: 80%;
}

/* ====== GUEST BOOK ====== */
#guestbook { 
  
  max-width: 600px;
  margin: 20px auto;  
  background: rgba(0, 0, 0, 0.6); /* полупрозрачный фон для читаемости */
  padding:20px; 
  border-radius:10px; 
  margin-top:30px; 
  color:#fff; 
  font-family:Arial;
}
#guestbook h2 { 
  margin-top:0; 
}
#guestbook input, #guestbook textarea { 
  width:100%; 
  padding:8px; 
  margin:6px 0; 
  border-radius:5px; 
  border:none; 
}
#guestbook button { 
  padding:8px 16px; 
  border:none; 
  border-radius:5px; 
  background:#f00; 
  color:#fff; 
  cursor:pointer; 
}
#gbMessages { 
  margin-top:15px; 
  max-height:300px; 
  overflow-y:auto; 
}
.gbMessage { 
  border-bottom:1px solid #444; 
  padding:4px 0; 
}
.gbTime { 
  color:#888; 
  font-size:0.85em; 
}

/* ===== ФУТЕР ===== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.9em;
  color: #003a80;
  text-shadow: 0 0 10px #ffd700;
 
}

/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
  header h1 {
    font-size: 2em;
  }

  #toggleBtn {
    width: 120px;
    height: 120px;
    font-size: 48px;
  }
}