* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298, #4e7cb8);
  background-attachment: fixed;
}

.radio-player {
  width: 420px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.radio-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

h1 {
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  margin-bottom: 35px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Дисплей трека с анимацией */
.track-display {
  position: relative;
  margin: 20px 0 40px;
  padding: 0 20px;
}

.wave-animation {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
  opacity: 0;
  animation: pulse 2s infinite ease-out;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

#track-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопки управления */
.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ctrl-btn:active {
  transform: scale(0.92) translateY(1px);
}

.ctrl-btn.big {
  width: 110px;
  height: 110px;
  font-size: 24px;
}

.icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.label {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* Состояние паузы */
#play.paused .icon { content: "||"; }

/* Адаптивность */
@media (max-width: 480px) {
  .radio-player { width: 90%; padding: 30px 20px; }
  .ctrl-btn { width: 70px; height: 70px; }
  .ctrl-btn.big { width: 90px; height: 90px; }
  #track-title { font-size: 16px; }
}

.discord-widget {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(135deg, #7289da, #5865f2);
  border-radius: 16px;
  color: white;
  text-align: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.discord-widget h2 {
  margin-bottom: 15px;
  font-size: 18px;
}

#discord-widget-container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.invite-button {
  display: inline-block;
  padding: 12px 24px;
  background: #43b581;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.invite-button:hover {
  background: #3ca170;
}

