/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #0c0f0b;
  --surface: #141814;
  --surface2: #1b201b;
  --surface3: #222722;

  --border: rgba(255,255,255,0.06);

  --text: #f1f5f1;
  --text-muted: #8b948b;
  --text-dim: #4f564f;

  /* Primary accents */
  --accent: #22c55e;      /* modern green */
  --accent2: #facc15;     /* warm yellow */

  --accent-glow: rgba(34,197,94,0.35);
  --accent2-muted: #d9b111;

  /* Gradient / waveform colors */
  --wave1: #22c55e;
  --wave2: #84cc16;
  --wave3: #facc15;

  --player-h: 90px;

  --radius: 16px;
  --radius-sm: 10px;

  --card-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --bg: #f3f8f4;
  --surface: #ffffff;
  --surface2: #f6fbf7;
  --surface3: #e8f3ea;

  --border: rgba(0,0,0,0.07);

  --text: #111614;
  --text-muted: #5f6b63;
  --text-dim: #a6b2aa;

  /* Primary accents */
  --accent: #16a34a;
  --accent2: #facc15;

  --accent-glow: rgba(22,163,74,0.18);

  /* Wave / gradients */
  --wave1: #16a34a;
  --wave2: #4ade80;
  --wave3: #facc15;

  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

/* ===== HEADER / NAV ===== */
.app-header {
  min-height: 110px;
  height: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.header-logo-img {
  height: 100px;
  width: auto;
  display: block;
  border-radius: 16px;
}


.header-right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--surface3);
  color: var(--text);
  border-color: var(--accent);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== MAIN SCROLL AREA ===== */
.app-body {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ===== AD BANNER ===== */
.ad-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 252px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.ad-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.05) 0%, rgba(250,204,21,0.05) 100%);
  z-index: 0;
}

.ad-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ad-slide.active {
  opacity: 1;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .ad-banner {
    max-height: 190px;
  }

  .ad-slide img {
    object-fit: contain;
    background: var(--surface);
  }
}

.ad-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.ad-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ad-slider-dot.active {
  opacity: 1;
  transform: scale(1.15);
  background: #fff;
}

.ad-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-dots {
  display: flex;
  gap: 5px;
}

.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.5;
}

.ad-dot:nth-child(2) { opacity: 0.7; }
.ad-dot:nth-child(3) { opacity: 0.9; }

/* ===== SECTION HEADING ===== */
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

/* ===== STICKY PLAYER ===== */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 20px;
  height: var(--player-h);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-text{
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
}

.waveform.paused .wave-bar {
  animation-play-state: paused;
  height: 4px;
  opacity: 0.3;
}

.play-btn-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Purple glow behind player */
.player::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--wave3));
  animation: playerGlow 3s ease-in-out infinite;
}

@keyframes playerGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.player-info {
  flex: 1;
  min-width: 0;
}

/* ===== AUDIO WAVEFORM ===== */
.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  animation: waveAnim 0.9s ease-in-out infinite;
  transform-origin: bottom;
}

.wave-bar:nth-child(1)  { animation-delay: 0s;    }
.wave-bar:nth-child(2)  { animation-delay: 0.07s; }
.wave-bar:nth-child(3)  { animation-delay: 0.14s; }
.wave-bar:nth-child(4)  { animation-delay: 0.21s; }
.wave-bar:nth-child(5)  { animation-delay: 0.28s; }
.wave-bar:nth-child(6)  { animation-delay: 0.35s; }
.wave-bar:nth-child(7)  { animation-delay: 0.42s; }
.wave-bar:nth-child(8)  { animation-delay: 0.49s; }
.wave-bar:nth-child(9)  { animation-delay: 0.56s; }
.wave-bar:nth-child(10) { animation-delay: 0.63s; }
.wave-bar:nth-child(11) { animation-delay: 0.5s;  }
.wave-bar:nth-child(12) { animation-delay: 0.43s; }
.wave-bar:nth-child(13) { animation-delay: 0.36s; }
.wave-bar:nth-child(14) { animation-delay: 0.29s; }
.wave-bar:nth-child(15) { animation-delay: 0.22s; }
.wave-bar:nth-child(16) { animation-delay: 0.15s; }
.wave-bar:nth-child(17) { animation-delay: 0.08s; }
.wave-bar:nth-child(18) { animation-delay: 0.01s; }
.wave-bar:nth-child(19) { animation-delay: 0.09s; }
.wave-bar:nth-child(20) { animation-delay: 0.17s; }

@keyframes waveAnim {
  0%, 100% { height: 4px;  opacity: 0.4; }
  50%       { height: 20px; opacity: 1;   }
}

.waveform.paused .wave-bar {
  animation-play-state: paused;
  height: 4px;
  opacity: 0.3;
}

/* ===== PLAY BUTTON ===== */
.play-btn-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Pulsing ring */
.play-btn-wrap::before,
.play-btn-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}

.play-btn-wrap::after {
  animation-delay: 1.2s;
}

.play-btn-wrap.paused::before,
.play-btn-wrap.paused::after {
  animation: none;
  opacity: 0;
}

@keyframes pulseRing {
  0%   { transform: scale(0.85); opacity: 0.7; }
  60%  { transform: scale(1.4);  opacity: 0;   }
  100% { opacity: 0; }
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px var(--accent-glow);
}

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

.play-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.15s;
}

/* Rotate animation when playing */
.play-btn.playing {
  animation: btnRotate 8s linear infinite;
}

@keyframes btnRotate {
  0% { box-shadow: 0 4px 20px var(--accent-glow); }
  25% { box-shadow: 0 4px 20px rgba(132,204,22,0.4); }
  50% { box-shadow: 0 4px 20px rgba(250,204,21,0.35); } 
  75% { box-shadow: 0 4px 20px rgba(132,204,22,0.4); }  
  100% { box-shadow: 0 4px 20px var(--accent-glow); }
}

/* ===== THEME TOGGLE ANIMATION ===== */
.icon-btn.theme-btn {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

.icon-btn.theme-btn:active {
  transform: rotate(30deg);
}

/* ===== ENTER ANIMATIONS ===== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.track-card {
  animation: slideUp 0.4s ease both;
}

.ad-banner {
  animation: slideUp 0.35s ease both;
}

.section-heading {
  animation: slideUp 0.35s 0.05s ease both;
}

/* ABOUT US SECTION */
.about-us-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  animation: slideUp 0.5s 0.15s ease both;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.about-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.facebook-btn:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.instagram-btn:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .play-btn { width: 54px; height: 54px; }
  .waveform { gap: 2px; }
  .wave-bar { width: 2.5px; }

  .now-live-content {
    flex-direction: column;
    gap: 14px;
  }

  .live-text {
    font-size: 14px;
  }
  
  .start-listening-btn {
    padding: 11px 28px;
    font-size: 14px;
  }
  
  .social-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .social-btn svg {
    width: 16px;
    height: 16px;
  }

}

/* === Remove blue tap/focus box on mobile for player buttons === */
button:focus, .icon-btn:focus, .play-btn:focus {
  outline: none;
}
button, .icon-btn, .play-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ===== START LIVE RADIO CARD ===== */
.start-radio-section {
  margin-bottom: 28px;
}
.start-radio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.start-radio-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.about-actions {
  margin-top: 20px;
}

.about-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.about-links a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
}