@keyframes rainbowBorder {
  0% { box-shadow: 0 0 25px red; border-color: red; }
  16% { box-shadow: 0 0 25px orange; border-color: orange; }
  33% { box-shadow: 0 0 25px yellow; border-color: yellow; }
  50% { box-shadow: 0 0 25px green; border-color: green; }
  66% { box-shadow: 0 0 25px blue; border-color: blue; }
  83% { box-shadow: 0 0 25px indigo; border-color: indigo; }
  100% { box-shadow: 0 0 25px violet; border-color: violet; }
}

@keyframes grooveBorder {
  0% { box-shadow: 0 0 25px #ff00ff; border-color: #ff00ff; }
  50% { box-shadow: 0 0 25px #00ffff; border-color: #00ffff; }
  100% { box-shadow: 0 0 25px #ff00ff; border-color: #ff00ff; }
}

.radio-wrapper.rainbow {
  animation: rainbowBorder 30s linear infinite;
}

.radio-wrapper.groovy {
  animation: grooveBorder 10s ease-in-out infinite;
}

@keyframes dreamyBorder {
  0% { box-shadow: 0 0 25px #ff66cc; border-color: #ff66cc; }
  50% { box-shadow: 0 0 25px #9966ff; border-color: #9966ff; }
  100% { box-shadow: 0 0 25px #ff66cc; border-color: #ff66cc; }
}

.radio-wrapper.dreamy {
  animation: dreamyBorder 12s ease-in-out infinite;
}

@keyframes technoBorder {
  0% { box-shadow: 0 0 25px #00f0ff; border-color: #00f0ff; }
  50% { box-shadow: 0 0 25px #f000ff; border-color: #f000ff; }
  100% { box-shadow: 0 0 25px #00f0ff; border-color: #00f0ff; }
}

.radio-wrapper.techno {
  animation: technoBorder 6s ease-in-out infinite;
}

@keyframes lofiBorder {
  0% { box-shadow: 0 0 25px #ffaa00; border-color: #ffaa00; }
  50% { box-shadow: 0 0 25px #ff5500; border-color: #ff5500; }
  100% { box-shadow: 0 0 25px #ffaa00; border-color: #ffaa00; }
}

.radio-wrapper.lofi {
  animation: lofiBorder 20s ease-in-out infinite;
}


body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at center, #0f0f0f 0%, #050505 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.radio-wrapper {
  background-color: #111;
  border: 2px solid #00ffc3;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: rainbowBorder 30s linear infinite;
}

.radio-wrapper.groovy {
  animation: grooveBorder 10s ease-in-out infinite;
}

.listener-badge {
  position: absolute;
  top: -1.1rem;
  left: 1rem;
  background-color: #111;
  padding: 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px #00ffc3aa;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00ffc3;
}

.listener-badge i {
  font-size: 1.3rem;
}

h1 {
  font-size: 1.8rem;
  color: #00ffc3;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px #00ffc3aa;
  text-align: center;
}

#cover {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 0 20px #00ffc322;
  margin-bottom: 1.5rem;
}

.info-line {
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1rem;
  word-break: break-word;
}

.info-line i {
  color: #00ffc3;
  margin-right: 0.5rem;
}

.info-line strong {
  color: #aaa;
  margin-right: 0.3rem;
}

.info-line span {
  color: #00ffc3;
  font-weight: 600;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.play-btn {
  background-color: #00ffc3;
  color: #000;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 15px #00ffc3aa;
  position: relative;
  overflow: hidden;
}

.play-btn i {
  font-size: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-btn.animating i {
  opacity: 0;
  transform: scale(0.6) rotate(20deg);
}

.volume-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.volume-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-slider-wrapper {
  display: flex;
  justify-content: center;
  flex: 1;
}

#volumeSlider {
  width: 120px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  outline: none;
  transition: background 0.3s ease;
}

#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #0ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

#volumeSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #0ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

#volume-icon {
  font-size: 1.2rem;
  color: #00ffc3;
}

.report-wrapper {
  margin-top: 2rem;
  text-align: center;
}

#reportBtn {
  background: #ff0055;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #ff005588;
  transition: background 0.3s;
}

#reportBtn:hover {
  background: #cc0044;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  border: 2px solid #ff0055;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px #ff005599;
  color: white;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.modal-content textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  resize: vertical;
  font-family: inherit;
}

.modal-content button[type="submit"] {
  background: #ff0055;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  color: #00ffc3;
  margin-top: 1rem;
}

#progressBarContainer {
  flex-grow: 1;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

#progressBar {
  height: 100%;
  background-color: #00ffc3;
  width: 0%;
  transition: width 0.5s linear;
}
