* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: 'Kanit', sans-serif;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h2 {
  margin: 5px 0;
  text-align: center;
  color: #4CAF50;
}

.swiper {
  width: 100%;
  max-width: 400px;
  height: 70vh;
  margin-top: 10px;
}

.swiper-slide {
  background: #1a1a1a;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.swiper-slide img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #4CAF50;
}

.instruction-slide {
  background: #333;
  color: #fff;
  text-align: center;
}
.instruction-slide h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4CAF50;
}
.instruction-slide p {
  font-size: 1.2rem;
}

.swipe-hint {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.arrow {
  width: 60px;
  height: 30px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>') no-repeat center;
  background-size: contain;
  animation: swipeHint 1.5s infinite;
}
@keyframes swipeHint {
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(-20px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.6; }
}

.radio-info {
  text-align: center;
  z-index: 2;
}
.radio-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #4CAF50;
}
.radio-frequency {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 10px;
}

.now-playing {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4CAF50;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.active .now-playing {
  opacity: 1;
}

.status-indicator {
  position: absolute;
  bottom: 10px;
  width: 90%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.status-bar {
  height: 100%;
  width: 0;
  background: #4CAF50;
  transition: width 0.5s;
}

.visualizer {
  width: 200px;
  height: 200px;
  border: 3px solid #4CAF50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-end;
  padding: 5px;
  background: rgba(0,0,0,0.2);
  margin-bottom: 15px;
  gap: 2px;
}

.visualizer-bar {
  background: #4CAF50;
  width: 18px;
  min-height: 0.2px;
  border-radius: 0px;
  flex: 0 0 auto; 
  margin: 0 1px;
  transition: height 0.1s ease;
}

.station-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4CAF50;
  text-align: center;
}

.global-controls {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}
#globalVolume {
  width: 150px;
}

@media (max-width: 768px) {
  .swiper {
    height: 70vh;
  }
  .swiper-slide img {
    width: 120px;
    height: 120px;
  }
  .radio-title {
    font-size: 1.2rem;
  }
  .instruction-slide h2 {
    font-size: 1.5rem;
  }
  .instruction-slide p {
    font-size: 1rem;
  }
}

.swiper-slide:active {
  transform: scale(0.98);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swiper-slide.tap-effect {
  animation: tapScale 0.3s ease;
}

@keyframes tapScale {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
