/* 
 * Radio 7 Mauritius - Next-Gen Modern Dark Mode UI/UX
 * Premium iOS/Android Web Radio Experience with Glassmorphism & Floating Pill Player
 */

:root {
  --bg-dark: #070c18;
  --bg-surface: #0b1329;
  --bg-card: rgba(16, 26, 52, 0.65);
  --bg-card-hover: rgba(24, 38, 74, 0.8);
  --bg-glass: rgba(13, 23, 46, 0.82);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.45);
  --accent-blue: #0077b6;
  --accent-rose: #ff2a6d;
  --accent-rose-glow: rgba(255, 42, 109, 0.45);
  --accent-amber: #ffb703;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.35);

  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --safe-top: max(12px, env(safe-area-inset-top));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 42, 109, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 119, 182, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  user-select: none;
}

/* App Wrapper for Phone Screen simulation on Desktop / Full on Mobile */
.app-container {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  background-image: 
    radial-gradient(circle at 20% 10%, rgba(0, 240, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 85%, rgba(255, 42, 109, 0.1) 0%, transparent 40%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

@media (min-width: 441px) {
  .app-container {
    height: 92vh;
    max-height: 890px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Top App Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 10px) 18px 12px 18px;
  position: relative;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 19, 41, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-mini {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.brand-info h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.chip-btn:hover, .chip-btn:active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.chip-btn.install-btn {
  display: none;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 119, 182, 0.2));
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.chip-btn.install-btn.visible {
  display: flex;
}

/* Main Content Area */
.main-content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px calc(var(--safe-bottom) + 140px) 18px; /* space for bottom tab bar + floating player */
  scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* Tab Views */
.tab-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-view.active-tab {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.glass-card.highlight-card {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 12px 36px rgba(0, 240, 255, 0.1);
}

/* Live Broadcast Hero Card */
.live-hero-card {
  background: linear-gradient(160deg, rgba(16, 26, 56, 0.95), rgba(9, 16, 36, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 28px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.12);
  margin-bottom: 20px;
}

.live-hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge-on-air {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 42, 109, 0.18);
  border: 1px solid rgba(255, 42, 109, 0.5);
  color: #ff4d84;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 0 14px rgba(255, 42, 109, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-rose);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-rose);
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px var(--accent-rose); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.live-listeners-count {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-main-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-album-art {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: #ffffff;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 240, 255, 0.2);
  flex-shrink: 0;
}

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

.hero-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-show-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-show-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hero Visualizer & Master Play Button */
.hero-player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(8, 14, 30, 0.65);
  border-radius: 18px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
}

.hero-visualizer-canvas {
  flex: 1;
  height: 38px;
}

.btn-master-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0096c7);
  border: none;
  color: #070c18;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-master-play svg {
  width: 26px;
  height: 26px;
  fill: #070c18;
}

/* Quick Action Cards Grid */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.quick-card:active {
  transform: scale(0.97);
  background: var(--bg-card-hover);
}

.quick-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-pink { background: rgba(255, 42, 109, 0.2); color: var(--accent-rose); }
.icon-cyan { background: rgba(0, 240, 255, 0.2); color: var(--accent-cyan); }
.icon-green { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.icon-amber { background: rgba(255, 183, 3, 0.2); color: var(--accent-amber); }

.quick-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.quick-card p {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* ================= SLEEK AD / SPONSOR BANNER SLOT ================= */
.sponsor-banner-slot {
  display: block;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.sponsor-banner-slot:hover, .sponsor-banner-slot:active {
  transform: translateY(-2px) scale(0.99);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 240, 255, 0.15);
}

.sponsor-badge {
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  text-transform: uppercase;
}

.sponsor-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.sponsor-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.sponsor-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sponsor-text {
  flex: 1;
  min-width: 0;
}

.sponsor-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsor-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sponsor-banner-slot:hover .sponsor-arrow-btn,
.sponsor-banner-slot:active .sponsor-arrow-btn {
  background: var(--accent-cyan);
  color: #070c18;
  transform: translateX(2px);
}

/* Section Titles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-link {
  font-size: 12px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* Schedule / Program Cards */
.program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.program-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.program-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: monospace;
}

.program-details {
  flex: 1;
  margin: 0 12px;
}

.program-details h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.program-details p {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Podcasts List Modern Cards */
.podcast-modern-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-modern-card:active {
  transform: scale(0.98);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.podcast-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 42, 109, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.podcast-info-modern h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-info-modern p {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.podcast-play-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.podcast-modern-card:hover .podcast-play-circle {
  background: var(--accent-cyan);
  color: #070c18;
}

/* CANMA Charity View */
.charity-hero {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.25), rgba(11, 19, 41, 0.9));
  border: 1px solid rgba(255, 42, 109, 0.4);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 18px;
  text-align: center;
}

.charity-hero h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.charity-hero p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-donate-glow {
  background: linear-gradient(135deg, #ff2a6d, #ff758f);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-rose-glow);
  transition: transform 0.15s ease;
}

.btn-donate-glow:active {
  transform: scale(0.95);
}

/* Contact Us Modern View */
.contact-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-item-row:last-child {
  border-bottom: none;
}

.contact-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.contact-row-info h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.contact-row-info p, .contact-row-info a {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
}

.btn-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.action-pill-btn {
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.1s ease;
}

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

.pill-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.pill-call {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

/* Forms */
.form-group-modern {
  margin-bottom: 12px;
}

.form-group-modern label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group-modern input, .form-group-modern textarea, .form-group-modern select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(8, 14, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group-modern input:focus, .form-group-modern textarea:focus, .form-group-modern select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-submit-cyan {
  width: 100%;
  background: linear-gradient(135deg, #00f0ff, #0077b6);
  color: #070c18;
  border: none;
  padding: 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 0 18px var(--accent-cyan-glow);
  transition: transform 0.1s ease;
}

.btn-submit-cyan:active {
  transform: scale(0.97);
}

/* ================= FLOATING GLASSMORHPIC PILL AUDIO PLAYER ================= */
.floating-player-bar {
  position: absolute;
  bottom: calc(64px + var(--safe-bottom) + 10px);
  left: 14px;
  right: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.floating-player-bar:active {
  transform: scale(0.98);
}

.floating-player-bar.playing {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.2);
}

.pill-thumb {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.pill-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.pill-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-timer {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: monospace;
}

.pill-wave-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.pill-wave-anim span {
  width: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  height: 2px;
  transition: height 0.15s;
}

.pill-wave-anim.animate span:nth-child(1) { animation: wavePulse 0.7s infinite; }
.pill-wave-anim.animate span:nth-child(2) { animation: wavePulse 0.9s infinite 0.2s; }
.pill-wave-anim.animate span:nth-child(3) { animation: wavePulse 0.6s infinite 0.4s; }

@keyframes wavePulse {
  0%, 100% { height: 2px; }
  50% { height: 10px; }
}

.pill-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0096c7);
  border: none;
  color: #070c18;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

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

.pill-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #070c18;
}

/* ================= MODERN BOTTOM TAB BAR ================= */
.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 14, 30, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(var(--safe-bottom) + 2px) 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: stroke 0.2s, transform 0.2s;
}

.tab-btn span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active svg {
  stroke: var(--accent-cyan);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.tab-btn.active span {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Modals (Quality, Language, Full Player, Donate) */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: #0d172e;
  border: 1px solid var(--border-subtle);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding: 22px 20px calc(var(--safe-bottom) + 20px) 20px;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-btn.selected {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.volume-slider {
  flex: 1;
  accent-color: var(--accent-cyan);
}

/* Toast */
.toast-msg {
  position: absolute;
  top: calc(var(--safe-top) + 65px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(13, 23, 46, 0.95);
  border: 1px solid var(--border-focus);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.2);
  transition: opacity 0.25s, transform 0.25s;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= SHARE APP MODAL & QR CODE ================= */
.share-modal-sheet {
  text-align: center;
}

.share-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px 0 10px 0;
}

.qr-code-wrapper {
  background: #0b1329;
  padding: 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.2), 0 12px 32px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.share-instructions {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  max-width: 290px;
  line-height: 1.45;
}

.share-url-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: 12px;
  font-family: monospace;
  letter-spacing: 0.3px;
  user-select: all;
}

.share-actions-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* --- LOGO TRANSPARENCY & SIZE OVERRIDES --- */

/* Top Header Logo */
.brand-logo-mini {
    background: transparent !important;
    padding: 0 !important;
    width: 48px !important;  /* Increased size */
    height: 48px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

/* Main Live Player Logo */
.hero-album-art {
    background: transparent !important;
    padding: 0 !important;
    width: 140px !important; /* Increased size */
    height: 140px !important;
    border-radius: 0 !important;
    box-shadow: none !important; /* Removes the hard shadow on the white box */
    object-fit: contain !important;
}

/* Floating Bottom Player Logo */
.pill-thumb {
    background: transparent !important;
    padding: 0 !important;
    width: 48px !important; /* Increased size */
    height: 48px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}