/* ==========================================================================
   Aural Radio Player Styling
   ========================================================================== */

:root {
  --primary-purple: #7b1fa2;
  --deep-purple: #4a0072;
  --accent-orange: #ff6d00;
  --accent-green: #43a047;
  --card-bg: #ffffff;
}

.aural-player-wrapper {
  font-family: 'Poppins', 'Noto Sans Malayalam', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #9c27b0, #5e35b1);
  border-radius: 28px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(74, 0, 114, 0.4);
  box-sizing: border-box;
}

.aural-card {
  background: var(--card-bg);
  width: 100%;
  border-radius: 22px;
  padding: 16px 14px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* IST Date & Time Bar */
.ist-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: #f3e5f5;
  color: var(--deep-purple);
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid rgba(123, 31, 162, 0.15);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffebee;
  color: #d32f2f;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

#istClock {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #d32f2f;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Animated Logo Showcase Container */
.logo-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 4px auto 10px;
  padding: 6px 4px;
  min-height: 145px;
}

.logo-aura {
  position: absolute;
  width: 175px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, rgba(255, 109, 0, 0.1) 55%, transparent 75%);
  z-index: 1;
  animation: auraBreathe 3s ease-in-out infinite;
}

.playing .logo-aura {
  background: radial-gradient(circle, rgba(156, 39, 176, 0.38) 0%, rgba(255, 109, 0, 0.28) 55%, transparent 78%);
  animation: auraBeat 1.1s ease-in-out infinite;
}

@keyframes auraBreathe {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes auraBeat {
  0%, 100% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.26); opacity: 1; }
}

/* Floating SVG Music Notations Around Logo */
.floating-svg-note {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.fn-1 {
  left: 10%;
  top: 48%;
  fill: #7b1fa2;
  animation: floatUpLeft 3.2s ease-in-out infinite 0s;
}

.fn-2 {
  right: 10%;
  top: 52%;
  fill: #ff6d00;
  animation: floatUpRight 3.2s ease-in-out infinite 1.1s;
}

.fn-3 {
  left: 20%;
  top: 25%;
  width: 18px;
  height: 18px;
  fill: #e91e63;
  animation: floatUpLeft 3.2s ease-in-out infinite 2.1s;
}

.fn-4 {
  right: 20%;
  top: 28%;
  width: 19px;
  height: 19px;
  fill: #43a047;
  animation: floatUpRight 3.2s ease-in-out infinite 0.6s;
}

/* Faster & brighter notes when playing */
.playing .fn-1, .playing .fn-3 {
  animation-duration: 2s;
}

.playing .fn-2, .playing .fn-4 {
  animation-duration: 2s;
}

@keyframes floatUpLeft {
  0% { transform: translate(8px, 15px) scale(0.6) rotate(-15deg); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translate(-14px, -35px) scale(1.15) rotate(15deg); opacity: 0; }
}

@keyframes floatUpRight {
  0% { transform: translate(-8px, 15px) scale(0.6) rotate(15deg); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translate(14px, -35px) scale(1.15) rotate(-15deg); opacity: 0; }
}

/* Animated SVG Main Logo Container */
.main-logo-wrap {
  position: relative;
  z-index: 2;
  animation: gentleFloat 3.5s ease-in-out infinite;
}

.playing .main-logo-wrap {
  animation: musicalPulse 1.3s ease-in-out infinite;
}

.custom-logo-svg {
  width: 170px;
  height: 92px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* Continuous animated sound waves on the logo */
.wave-arc-1 { animation: waveRipple 1.6s infinite ease-in-out 0s; }
.wave-arc-2 { animation: waveRipple 1.6s infinite ease-in-out 0.2s; }
.wave-arc-3 { animation: waveRipple 1.6s infinite ease-in-out 0.4s; }
.wave-arc-4 { animation: waveRipple 1.6s infinite ease-in-out 0.6s; }

@keyframes waveRipple {
  0%, 100% { opacity: 1; stroke: #2b2b2b; }
  50% { opacity: 0.25; stroke: #7b1fa2; }
}

/* Animated Musical Notes Inside the Ear Logo */
.inner-note-1 {
  animation: noteIntoEar 1.8s ease-in-out infinite 0s;
  transform-origin: center;
}

.inner-note-2 {
  animation: noteIntoEar 1.8s ease-in-out infinite 0.35s;
  transform-origin: center;
}

.inner-note-3 {
  animation: noteIntoEar 1.8s ease-in-out infinite 0.7s;
  transform-origin: center;
}

@keyframes noteIntoEar {
  0%, 100% { transform: translate(0, 0) scale(1); fill: #000; stroke: #000; }
  50% { transform: translate(4px, -5px) scale(1.08); fill: #ff6d00; stroke: #ff6d00; }
}

.station-title {
  font-family: 'Rye', serif;
  font-size: 21px;
  color: #111;
  letter-spacing: 1.2px;
  margin: 2px 0 0;
}

.station-tagline {
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 13px;
  color: #111;
  font-weight: 700;
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tagline-clef-svg {
  width: 14px;
  height: 20px;
  fill: #7b1fa2;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes musicalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Features Badges */
.badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.info-pill {
  background: linear-gradient(90deg, #7b1fa2, #ab47bc);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(123, 31, 162, 0.25);
}

.info-pill.hd {
  background: linear-gradient(90deg, #ef6c00, #ff9800);
}

/* Center Play Button */
.play-center-wrap {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 4px auto 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6d00, #ffa726, #8e24aa, #ff6d00);
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(255, 109, 0, 0.35);
}

.playing .outer-ring {
  animation: rotateRing 4s linear infinite;
}

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

.inner-white-circle {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
}

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 16px rgba(67, 160, 71, 0.45);
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
  outline: none;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(67, 160, 71, 0.55);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* Status Text */
.status-box {
  margin-bottom: 10px;
}

.now-playing-label {
  font-size: 11px;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stream-status {
  font-size: 13.5px;
  font-weight: 700;
  color: #b71c1c;
  margin-top: 3px;
  min-height: 20px;
  transition: color 0.3s ease;
}

/* Volume Control */
.volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 12px;
  width: 85%;
  background: #f8f0fc;
  padding: 6px 14px;
  border-radius: 30px;
  box-sizing: border-box;
}

.volume-container svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-purple);
  flex-shrink: 0;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #d1c4e9;
  outline: none;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-purple);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.vol-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-purple);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Live Audio Spectrum Canvas */
.spectrum-box {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
}

#spectrumCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Additional page layout helper for banner section */
.aural-player-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0 45px;
}

@media (max-width: 768px) {
  .aural-player-wrapper {
    max-width: 340px;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(74, 0, 114, 0.35);
  }

  .aural-card {
    padding: 14px 10px 10px;
    border-radius: 18px;
  }

  .aural-player-section {
    padding: 25px 0 45px;
  }

  .custom-logo-svg {
    width: 150px;
    height: 82px;
  }

  .station-title {
    font-size: 19px;
  }

  .play-center-wrap {
    width: 124px;
    height: 124px;
  }

  .play-btn {
    width: 62px;
    height: 62px;
  }

  .play-btn svg {
    width: 28px;
    height: 28px;
  }
}
