/* ============================================
   HOEKIFM - SCHOON & OVERZICHTELIJK DESIGN
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  background-attachment: fixed;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.app {
  display: flex;
  height: 100vh;
  gap: 1px;
  background: #030510;
}

/* ============================================
   PLAYER WRAPPER - MAIN SECTION
   ============================================ */

.player-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f1629 0%, #1a1f3a 50%, #0f1629 100%);
  padding: 30px;
  overflow-y: auto;
  gap: 20px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.station-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.station-logo {
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

.station-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.station-info p {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.status-dot.online {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   ALBUM ART & WAVEFORM
   ============================================ */

.album-art {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  animation: cardFloat 3s ease-in-out infinite;
}

.wave-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.wave-animation span {
  width: 4px;
  height: 30%;
  background: linear-gradient(180deg, #ec4899, #f43f5e);
  border-radius: 2px;
  animation: wave 0.5s ease-in-out infinite;
}

.wave-animation span:nth-child(1) { animation-delay: 0s; height: 30%; }
.wave-animation span:nth-child(2) { animation-delay: 0.1s; height: 50%; }
.wave-animation span:nth-child(3) { animation-delay: 0.2s; height: 70%; }
.wave-animation span:nth-child(4) { animation-delay: 0.1s; height: 50%; }
.wave-animation span:nth-child(5) { animation-delay: 0s; height: 30%; }

/* ============================================
   NOW PLAYING
   ============================================ */

.now-playing {
  text-align: center;
  padding: 20px;
  background: rgba(236, 72, 153, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(236, 72, 153, 0.2);
  backdrop-filter: blur(10px);
}

.intermission-banner {
  animation: slideIn 0.4s ease-out;
}

.intermission-banner h2 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #fbbf24;
  animation: pulse 1.5s ease-in-out infinite;
}

.intermission-banner p {
  font-size: 13px;
  color: #9ca3af;
}

.track-display {
  margin-bottom: 15px;
}

.time-display {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-family: 'Monaco', monospace;
}

.now-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.track-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.track-artist {
  font-size: 13px;
  color: #9ca3af;
}

.next-track {
  padding-top: 15px;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  animation: slideIn 0.4s ease-out;
}

.next-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.next-title {
  font-size: 14px;
  color: #d1d5db;
}

/* ============================================
   PLAYER CONTROLS
   ============================================ */

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.btn-control, .btn-play, .btn-pause {
  background: none;
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #ec4899;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-control:hover {
  background: rgba(236, 72, 153, 0.1);
  border-color: #ec4899;
  transform: scale(1.1);
}

.btn-play, .btn-pause {
  width: 60px;
  height: 60px;
  border: 2px solid #ec4899;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.2));
  font-size: 24px;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

.btn-play:hover, .btn-pause:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(244, 63, 94, 0.3));
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
  transform: scale(1.05);
}

.btn-control svg, .btn-play svg, .btn-pause svg {
  width: 20px;
  height: 20px;
}

.btn-play svg, .btn-pause svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   VOLUME CONTROL
   ============================================ */

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.volume-control svg {
  width: 20px;
  height: 20px;
  color: #ec4899;
}

.volume-control input {
  flex: 1;
  height: 4px;
  background: rgba(236, 72, 153, 0.2);
  border: none;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.volume-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #ec4899;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.volume-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ec4899;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

#volumeValue {
  font-size: 12px;
  color: #9ca3af;
  min-width: 35px;
  text-align: right;
}

/* ============================================
   LISTENERS & BUTTONS
   ============================================ */

.listeners-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.listener-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.listener-count .icon {
  font-size: 18px;
}

.listener-count .label {
  color: #9ca3af;
  font-size: 12px;
}

#listenerCount {
  font-weight: 600;
  color: #ec4899;
}

.btn-intermission {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-intermission:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* ============================================
   CHAT SIDEBAR
   ============================================ */

.chat-wrapper {
  width: 320px;
  background: rgba(15, 23, 42, 0.8);
  border-left: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-header h3 {
  font-size: 16px;
  margin: 0;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.chat-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 72, 153, 0.5);
}

.message, .chat-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  animation: slideIn 0.3s ease-out;
}

.message.system, .chat-message.system {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  text-align: center;
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-size: 12px;
}

.message.user, .chat-message.user {
  background: rgba(59, 130, 246, 0.15);
  border-left: 3px solid #3b82f6;
}

.message:not(.system, .user), 
.chat-message:not(.system, .user) {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(236, 72, 153, 0.5);
}

.message-user {
  font-weight: 600;
  color: #3b82f6;
  font-size: 11px;
  margin-bottom: 4px;
}

.message-time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}

.chat-input-box {
  padding: 16px;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  gap: 8px;
}

.chat-input-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 6px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input-box input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.btn-send {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.btn-send svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.4); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .app {
    flex-direction: column;
  }

  .player-wrapper {
    padding: 20px;
    gap: 15px;
  }

  .chat-wrapper {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .player-wrapper {
    padding: 15px;
  }

  .album-art {
    width: 150px;
    height: 150px;
  }

  .time-display {
    font-size: 24px;
  }

  .station-info h1 {
    font-size: 22px;
  }

  .btn-play, .btn-pause {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .btn-control {
    padding: 10px;
  }

  .player-controls {
    gap: 12px;
  }

  .chat-wrapper {
    max-height: 250px;
  }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(236, 72, 153, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 72, 153, 0.5);
}