@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* Base Styles */
body {
  background-color: #f8f9fa;
  font-family: 'Pretendard', sans-serif;
  color: #212529;
  min-height: 100vh;
}

/* Header Banner */
.radio-header {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15);
}

/* Live Badge with Pulse Effect */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

/* Channel Card */
.channel-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(13, 110, 253, 0.3);
}

.channel-card.active {
  border: 2px solid #0d6efd;
  background-color: #f1f7ff;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
}

.channel-card .channel-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ffffff;
}

/* Soundwave Equalizer Animation */
.playing-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 24px;
  height: 24px;
  padding-bottom: 2px;
}

.playing-equalizer .bar {
  display: inline-block;
  width: 4px;
  height: 100%;
  background-color: #0d6efd;
  border-radius: 2px;
  animation: bounce 0.8s ease-in-out infinite alternate;
}

.playing-equalizer .bar:nth-child(1) {
  animation-duration: 0.6s;
  animation-delay: 0.1s;
}

.playing-equalizer .bar:nth-child(2) {
  animation-duration: 0.8s;
  animation-delay: 0.25s;
}

.playing-equalizer .bar:nth-child(3) {
  animation-duration: 0.7s;
  animation-delay: 0.15s;
}

@keyframes bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Bora Video Player Container */
.bora-container {
  background: #000000;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.bora-video {
  width: 100%;
  max-height: 480px;
  display: block;
  background: #000000;
}

/* Fixed Bottom Player */
.player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1.25rem;
  z-index: 1050;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pb-player-safe {
  padding-bottom: 140px !important;
}

.volume-slider {
  width: 90px;
  accent-color: #0d6efd;
  cursor: pointer;
}

/* Loading Spinner */
.loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121214;
  color: #e4e6eb;
}

body.dark-mode .channel-card {
  background-color: #1e1e24;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .channel-card:hover {
  background-color: #26262e;
  border-color: rgba(13, 110, 253, 0.5);
}

body.dark-mode .channel-card.active {
  background-color: #1a2333;
  border-color: #3d8bfd;
}

body.dark-mode .channel-card .text-dark {
  color: #f8f9fa !important;
}

body.dark-mode .channel-card .text-muted {
  color: #a0a4ab !important;
}

body.dark-mode .player-container {
  background: rgba(26, 26, 32, 0.95);
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .player-container .text-muted {
  color: #a0a4ab !important;
}

body.dark-mode .dropdown-menu {
  background-color: #1e1e24;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .dropdown-item {
  color: #e4e6eb;
}

body.dark-mode .dropdown-item:hover {
  background-color: #2b2b36;
  color: #ffffff;
}
