/**
 * Modern Radio Card & Community Reviews Styles for Radio Tasabeeh.
 * Inspired by SoundCloud, Spotify, Meta & Twitter cards with Royal Islamic Emerald & Gold aesthetic.
 */

/* Scrollable Container for the Radio View */
#view-radio.radio {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent !important;
  padding: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

#view-radio::-webkit-scrollbar {
  width: 5px;
}
#view-radio::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}

.radio-scroll-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 12px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
}

/* 1. The Compact Sticky Radio Player Card */
.radio-player-card {
  width: 100%;
  max-width: 640px;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(52, 120, 85, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(10, 30, 20, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11, 26, 19, 0.97) 0%, rgba(5, 14, 10, 0.99) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-top: 1px solid rgba(255, 243, 176, 0.18) !important;
  border-radius: 24px !important;
  padding: 10px 14px 10px !important;
  box-shadow: 
    0 1px 0 rgba(255, 243, 176, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(212, 175, 55, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: 4px !important;
  z-index: 95 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  overflow: hidden !important;
}

/* Compact Header Grid: 1 row on desktop, 2 neat rows on mobile */
.radio-card-header-compact {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  grid-template-areas: "badge title eq" !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.radio-station-name-compact {
  grid-area: title !important;
  margin: 0 !important;
  font-family: 'Reem Kufi', 'Amiri', serif !important;
  font-size: clamp(1.1rem, 3.8vw, 1.45rem) !important;
  font-weight: 800 !important;
  color: #FFF3B0 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.25), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.radio-live-badge-compact {
  grid-area: badge !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 5px !important;
  background: rgba(22, 101, 52, 0.25) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #4ade80 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.radio-live-badge-compact .freq {
  color: #FFF3B0 !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
}
.radio-live-badge-compact .freq span {
  color: #4ade80 !important;
  font-size: 0.65rem !important;
}

.radio-eq-visualizer {
  grid-area: eq !important;
  justify-self: end !important;
}

.radio-controls-wrapper-compact {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
}

.radio-main-controls-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(6px, 1.6vw, 12px) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Override heavy royal-theme vol-wrapper - Expanded single-row on Desktop */
.radio-player-compact .vol-wrapper,
#radio-card .vol-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: rgba(6, 16, 11, 0.9) !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-top-color: rgba(255, 243, 176, 0.1) !important;
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

.radio-player-compact .vol-wrapper .vol,
#radio-card .vol-wrapper .vol {
  width: 100px !important;
  min-width: 80px !important;
  max-width: 130px !important;
  height: 4px !important;
  accent-color: #D4AF37 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

.radio-player-compact .vol-icon,
#radio-card .vol-icon {
  font-size: 0.92rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  display: inline-block !important;
}

/* Nav & Sub buttons */
.radio-player-compact .radio-btn-sub,
.radio-player-compact .radio-btn-nav,
#radio-card .radio-btn-sub,
#radio-card .radio-btn-nav {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Hero play button */
.radio-player-compact .radio-btn-play-hero,
#radio-card .radio-btn-play-hero {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  flex: 0 0 50px !important;
  font-size: 1.35rem !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Card Top Bar */
.radio-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: live-pulse-glow 1.5s infinite;
}

@keyframes live-pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #22c55e; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #22c55e; }
}

/* Soundwave Equalizer Bars (SoundCloud style) */
.radio-eq-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3.5px;
  height: 18px;
  padding: 0 4px;
}

.eq-bar {
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 243, 176, 0.9), rgba(212, 175, 55, 0.6));
  opacity: 0.35;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
  transition: height 0.2s ease, opacity 0.2s ease;
}

.radio-eq-visualizer.is-active .eq-bar {
  opacity: 0.95;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.radio-eq-visualizer.is-active .eq-1 { animation-delay: 0.0s; height: 16px; }
.radio-eq-visualizer.is-active .eq-2 { animation-delay: 0.2s; height: 10px; }
.radio-eq-visualizer.is-active .eq-3 { animation-delay: 0.4s; height: 18px; }
.radio-eq-visualizer.is-active .eq-4 { animation-delay: 0.15s; height: 12px; }
.radio-eq-visualizer.is-active .eq-5 { animation-delay: 0.35s; height: 15px; }

@keyframes eq-bounce {
  0% { height: 3px; opacity: 0.6; }
  100% { height: 20px; opacity: 1; box-shadow: 0 0 8px rgba(212, 175, 55, 0.5); }
}

.radio-freq-chip {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #FFF3B0 !important;
  background: rgba(14, 34, 25, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 3px 12px;
  line-height: 1.2;
}
.radio-freq-chip span {
  font-size: 0.72rem;
  color: #D4AF37;
  margin-inline-start: 4px;
}

/* Station & Program Information */
.radio-info-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px;
}

.radio-station-name {
  margin: 0 !important;
  font-family: 'Reem Kufi', 'Amiri', serif !important;
  font-size: clamp(1.25rem, 4vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: #FFF3B0 !important;
  line-height: 1.35;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.radio-program-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-program-tag {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(180, 140, 40, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FFF3B0;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.radio-program-title {
  color: #f1f5f9;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
}

.radio-program-desc {
  margin: 0 !important;
  color: rgba(255, 243, 176, 0.72) !important;
  font-size: 0.85rem !important;
  line-height: 1.4;
}

/* Frequency Tuner & Waveform Lines (SoundCloud style) */
.radio-tuner-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(6, 18, 13, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 10px 14px 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.radio-scale-modern {
  direction: ltr !important;
  position: relative !important;
  height: 48px !important;
  margin: 0 !important;
  touch-action: none !important;
  cursor: pointer !important;
}

.radio-wave-ticks {
  position: absolute !important;
  inset: 0 0 10px !important;
  background: repeating-linear-gradient(90deg,
    rgba(212, 175, 55, 0.6) 0 1.5px,
    transparent 1.5px 6.5px,
    rgba(255, 243, 176, 0.35) 6.5px 8px,
    transparent 8px 13px
  ) !important;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%) !important;
}

.radio-scale-modern .scale-track {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 24px !important;
  height: 3px !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, #103325, #22c55e, #eab308, #ef4444) !important;
  opacity: 0.85 !important;
}

.radio-tuner-needle {
  position: absolute !important;
  top: 2px !important;
  width: 3px !important;
  height: 34px !important;
  background: #FFF3B0 !important;
  border-radius: 3px !important;
  transform: translateX(-1.5px) !important;
  box-shadow: 0 0 12px rgba(255, 243, 176, 0.9), 0 0 4px #D4AF37 !important;
  transition: left 0.1s ease-out;
}

.radio-tuner-needle::after {
  content: "" !important;
  position: absolute !important;
  left: -5.5px !important;
  top: -5px !important;
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-top: 9px solid #FFF3B0 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.radio-scale-labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: rgba(255, 243, 176, 0.65) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  direction: ltr !important;
  padding: 0 4px !important;
}
.scale-center-label {
  color: #FFF3B0 !important;
  font-weight: 800 !important;
}

/* Modern Audio Controls Area (SoundCloud/Spotify Inspired) */
.radio-controls-wrapper {
  margin-top: 2px;
}

.radio-main-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.radio-btn-sub,
.radio-btn-nav {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  background: 
    linear-gradient(145deg, rgba(18, 42, 30, 0.95) 0%, rgba(8, 20, 15, 0.98) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-top-color: rgba(255, 243, 176, 0.15) !important;
  color: #FFF3B0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.radio-btn-sub:hover,
.radio-btn-nav:hover {
  transform: scale(1.08) !important;
  border-color: #FFF3B0 !important;
}

.radio-btn-sub:active,
.radio-btn-nav:active {
  transform: scale(0.92) !important;
}

.radio-btn-sub[aria-pressed="true"] {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  background: rgba(80, 20, 25, 0.8) !important;
}

/* Prominent Hero Play/Pause Button (Compact) */
.radio-btn-play-hero {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  border-radius: 50% !important;
  background: 
    radial-gradient(circle at 35% 25%, rgba(90, 170, 120, 0.8) 0%, rgba(25, 80, 50, 0.95) 50%, rgba(8, 32, 20, 1) 100%) !important;
  border: 1.5px solid rgba(255, 243, 176, 0.5) !important;
  color: #FFF3B0 !important;
  font-size: 1.45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 
    0 0 0 4px rgba(212, 175, 55, 0.08),
    0 0 0 8px rgba(212, 175, 55, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(212, 175, 55, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.18s ease !important;
}

.radio-btn-play-hero:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 26px rgba(212, 175, 55, 0.65) !important;
}

.radio-btn-play-hero:active {
  transform: scale(0.92) !important;
}

/* Volume Slider in Card */
.radio-vol-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(10, 26, 18, 0.75) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
}

.radio-vol-wrap .vol-icon {
  background: none !important;
  border: 0 !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  padding: 0 !important;
}

.radio-vol-wrap .vol {
  width: 70px !important;
  accent-color: #D4AF37 !important;
  cursor: pointer !important;
}

/* 2. Unified Spiritual Check-in & Sadaqa Hearts Section */
.radio-guest-lounge {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.spiritual-checkin-strip {
  width: 100%;
  box-sizing: border-box;
  background: 
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(28, 68, 48, 0.5) 0%, transparent 65%),
    linear-gradient(180deg, rgba(10, 24, 17, 0.95) 0%, rgba(5, 13, 9, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-top-color: rgba(255, 243, 176, 0.14);
  border-radius: 22px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  box-shadow: 
    0 1px 0 rgba(255, 243, 176, 0.08) inset,
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spiritual-checkin-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 178, 53, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 243, 176, 0.3);
}

.spiritual-checkin-strip:active {
  transform: scale(0.985);
}

.spiritual-checkin-strip.is-checked {
  border-color: rgba(34, 197, 94, 0.55);
  background: radial-gradient(120% 100% at 50% 0%, rgba(24, 66, 46, 0.85), rgba(8, 24, 17, 0.96));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 16px rgba(34, 197, 94, 0.18);
}

/* The Heart Pill inside checkin */
#sadaqa-heart.spiritual-heart-pill,
.spiritual-heart-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 42px !important;
  background: linear-gradient(145deg, rgba(24, 58, 42, 0.95) 0%, rgba(10, 28, 18, 0.98) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-top-color: rgba(255, 243, 176, 0.15) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  color: #FFF3B0 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  box-sizing: border-box !important;
}

.spiritual-heart-pill:hover {
  transform: scale(1.06);
  border-color: #FFF3B0;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.spiritual-heart-glyph {
  font-size: 1.25rem;
  line-height: 1;
  color: #ef4444;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.spiritual-checkin-strip.is-checked .spiritual-heart-glyph {
  color: #f43f5e;
  animation: heart-pulse 2s ease-in-out infinite alternate;
}

@keyframes heart-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.5)); }
  100% { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.85)); }
}

.spiritual-heart-count {
  font-family: "Cairo", "Segoe UI", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFF3B0;
  letter-spacing: 0.2px;
}

/* The Spiritual Text & Dua column */
.spiritual-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  text-align: start;
}

.spiritual-main-title {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
  font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  font-weight: 700;
  color: #FFF3B0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.spiritual-emojis {
  font-size: 1.05rem;
}

.spiritual-sub-dua {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
  font-size: clamp(0.78rem, 2.8vw, 0.88rem);
  font-weight: 600;
  color: rgba(167, 243, 208, 0.85);
  line-height: 1.4;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.spiritual-checkin-strip.is-checked .spiritual-sub-dua {
  color: #86efac;
}

/* Fallback legacy notes */
.sadaqa-hearts-note {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
  font-size: clamp(0.9rem, 3.2vw, 1.02rem) !important;
  font-weight: 700 !important;
  color: #FFF3B0 !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
}

.guest-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.guest-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}

.guest-action-pill:hover {
  transform: translateY(-2px);
}

.guest-action-pill:active {
  transform: scale(0.95);
}

/* Checkin pill */
.checkin-pill {
  background: linear-gradient(135deg, rgba(20, 60, 42, 0.9), rgba(12, 34, 24, 0.95));
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #FFF3B0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.checkin-pill.is-checked {
  background: linear-gradient(135deg, rgba(16, 80, 50, 0.95), rgba(10, 45, 30, 0.98));
  border-color: #4ade80;
  color: #86efac;
}

.checkin-badge {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFF3B0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Review pill */
.review-pill {
  background: linear-gradient(135deg, #2b6148, #184230);
  border: 1.5px solid rgba(255, 243, 176, 0.7);
  color: #FFF3B0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 175, 55, 0.25);
}
.review-pill:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.4);
}

/* 3. Community Reviews Section (Meta/Twitter & App Store inspired) */
.radio-community-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.community-header {
  background: rgba(14, 32, 24, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.community-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.community-rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFF3B0;
  line-height: 1;
  font-family: 'Reem Kufi', serif;
}

.rating-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars-gold {
  color: #fbbf24;
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.rating-count-label {
  font-size: 0.78rem;
  color: rgba(255, 243, 176, 0.75);
  font-weight: 600;
}

.btn-write-review-hero {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(180, 130, 30, 0.2));
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  color: #FFF3B0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
}
.btn-write-review-hero:hover {
  transform: scale(1.04);
  border-color: #FFF3B0;
}

/* Inline Composer Card */
.inline-review-composer {
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.97) 0%, rgba(4, 12, 8, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-top-color: rgba(255, 243, 176, 0.1);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 6px 18px rgba(0,0,0,0.4);
}

.composer-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-avatar {
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  object-fit: cover;
}

.composer-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.composer-user-info strong {
  font-size: 0.88rem;
  color: #FFF3B0;
}
.composer-user-info small {
  font-size: 0.74rem;
  color: rgba(255, 243, 176, 0.65);
}

.composer-input-row {
  display: flex;
  gap: 8px;
}

.composer-input-row input {
  flex: 1;
  background: rgba(6, 18, 13, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
}
.composer-input-row input::placeholder {
  color: rgba(255, 243, 176, 0.5);
}

.composer-send-btn {
  background: linear-gradient(135deg, #276348, #133a28);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #FFF3B0;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* Reviews Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-empty {
  text-align: center;
  color: rgba(255, 243, 176, 0.6);
  padding: 20px;
  font-size: 0.9rem;
}

/* Individual Review Card */
.review-card {
  background: linear-gradient(180deg, rgba(10, 26, 18, 0.95) 0%, rgba(5, 14, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-top-color: rgba(255, 243, 176, 0.1);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.review-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  border-top-color: rgba(255, 243, 176, 0.2);
  transform: translateY(-2px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(212, 175, 55, 0.1);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar-img {
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  object-fit: cover;
}

.review-avatar-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(24, 60, 42, 0.98), rgba(10, 28, 20, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #E6C762;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-author-name {
  color: #FFF3B0;
  font-size: 0.95rem;
  font-weight: 800;
}

.review-verified-badge {
  background: #22c55e;
  color: #fff;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-author-badge {
  font-size: 0.74rem;
  color: rgba(255, 243, 176, 0.65);
}

.review-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.review-time {
  font-size: 0.72rem;
  color: rgba(255, 243, 176, 0.5);
}

.review-body {
  margin: 0;
  color: #f1f5f9;
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: 0.1px;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-tag-pill {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFF3B0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.review-like-btn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  color: rgba(255, 243, 176, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.review-like-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

.review-like-btn.is-liked {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* 4. Review & Rating Modal Dialog */
.review-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.review-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.review-modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #10291e, #081710);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(212, 175, 55, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-modal-title {
  margin: 0;
  font-family: 'Reem Kufi', 'Amiri', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF3B0;
}

.review-modal-close {
  background: none;
  border: 0;
  color: rgba(255, 243, 176, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-user-banner {
  background: rgba(6, 18, 13, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
}

.modal-user-pill,
.modal-guest-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-banner-avatar,
.modal-banner-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #D4AF37;
  object-fit: cover;
}

.modal-banner-initial {
  background: #1b4b35;
  color: #FFF3B0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.modal-btn-login {
  background: #D4AF37;
  color: #06120d;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* Star Picker in Modal */
.form-star-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: rgba(6, 18, 13, 0.6);
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
}

.star-picker-wrap {
  display: flex;
  gap: 8px;
  direction: ltr;
}

.star-pick {
  background: none;
  border: 0;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.star-pick:hover,
.star-pick.is-active {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  transform: scale(1.15);
}

.star-pick-label {
  font-size: 0.85rem;
  color: #FFF3B0;
  font-weight: 700;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFF3B0;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(6, 18, 13, 0.85);
  border: 1.2px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.86rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-review {
  width: 100%;
  background: linear-gradient(135deg, #2b6a4e, #13422d);
  border: 1.5px solid #FFF3B0;
  color: #FFF3B0;
  padding: 12px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.btn-submit-review:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.55);
}

/* Responsive adjustments for Mobile & Tablets */
@media (max-width: 520px) {
  .radio-scroll-container {
    padding: 6px 8px 100px !important;
    gap: 10px !important;
  }

  .radio-player-card {
    padding: 10px 12px !important;
    border-radius: 20px !important;
    gap: 8px !important;
  }

  /* Two-row header on mobile: station name on TOP, meta line (badge + eq) underneath */
  .radio-card-header-compact {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "title title"
      "badge eq" !important;
    row-gap: 4px !important;
  }

  .radio-station-name-compact {
    font-size: clamp(1.15rem, 5vw, 1.4rem) !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
    line-height: 1.3 !important;
    padding: 0 4px 2px !important;
    margin-bottom: 2px !important;
  }

  /* Mobile controls: Row 1 has buttons, Row 2 has centered volume controls */
  .radio-main-controls-compact {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 12px !important;
  }

  .radio-player-compact .radio-btn-sub,
  .radio-player-compact .radio-btn-nav,
  #radio-card .radio-btn-sub,
  #radio-card .radio-btn-nav {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
  }

  .radio-player-compact .radio-btn-play-hero,
  #radio-card .radio-btn-play-hero {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    font-size: 1.5rem !important;
    flex: 0 0 58px !important;
  }

  /* Volume slider in second row on mobile */
  .radio-player-compact .vol-wrapper,
  #radio-card .vol-wrapper {
    flex: 0 0 100% !important;
    width: auto !important;
    max-width: 240px !important;
    margin: 2px auto 0 !important;
    padding: 6px 16px !important;
    gap: 10px !important;
    justify-content: center !important;
    display: inline-flex !important;
  }

  .radio-player-compact .vol-wrapper .vol,
  #radio-card .vol-wrapper .vol {
    width: 150px !important;
    min-width: 120px !important;
    max-width: 180px !important;
    height: 5px !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .guest-action-pill {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  /* Responsive Spiritual Check-in Strip */
  .spiritual-checkin-strip {
    padding: 10px 12px !important;
    border-radius: 18px !important;
    gap: 10px !important;
  }

  #sadaqa-heart.spiritual-heart-pill,
  .spiritual-heart-pill {
    padding: 6px 12px !important;
    min-height: 38px !important;
    height: auto !important;
  }

  .spiritual-heart-glyph {
    font-size: 1.15rem !important;
  }

  .spiritual-heart-count {
    font-size: 0.88rem !important;
  }

  .spiritual-main-title {
    font-size: clamp(0.86rem, 3.5vw, 0.96rem) !important;
    line-height: 1.3 !important;
  }

  .spiritual-sub-dua {
    font-size: clamp(0.72rem, 2.8vw, 0.8rem) !important;
    line-height: 1.35 !important;
  }
}

/* Ultra-compact for narrow screens <= 360px */
@media (max-width: 360px) {
  .radio-scroll-container {
    padding: 4px 6px 100px !important;
  }

  .radio-player-card {
    padding: 6px 6px 6px !important;
  }

  .radio-main-controls-compact {
    gap: 6px 10px !important;
  }

  .radio-player-compact .radio-btn-sub,
  .radio-player-compact .radio-btn-nav,
  #radio-card .radio-btn-sub,
  #radio-card .radio-btn-nav {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
  }

  .radio-player-compact .radio-btn-play-hero,
  #radio-card .radio-btn-play-hero {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    font-size: 1.3rem !important;
    flex: 0 0 48px !important;
  }

  .radio-player-compact .vol-wrapper,
  #radio-card .vol-wrapper {
    max-width: 200px !important;
    padding: 3px 10px !important;
    margin: 3px auto 0 !important;
  }

  .radio-player-compact .vol-wrapper .vol,
  #radio-card .vol-wrapper .vol {
    width: 110px !important;
    min-width: 85px !important;
  }

  .spiritual-checkin-strip {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  #sadaqa-heart.spiritual-heart-pill,
  .spiritual-heart-pill {
    padding: 5px 10px !important;
    min-height: 36px !important;
  }

  .spiritual-main-title {
    font-size: 0.82rem !important;
  }

  .spiritual-sub-dua {
    font-size: 0.7rem !important;
  }
}

