/* ==========================================================================
   FMUSIC - MODERNA WEB APP DE RADIO EN VIVO & CHAT DE LA COMUNIDAD
   Diseño: Dark Glassmorphism, Neon Red Accent, Chat Primario & Barra Flotante
   100% Optimizado y Adaptable para Móviles (iOS & Android) y Escritorio
   ========================================================================== */

:root {
  --primary: #ff1e40;
  --primary-glow: rgba(255, 30, 64, 0.45);
  --primary-hover: #ff3b59;
  --primary-dark: #b80d26;
  --secondary: #ff708b;
  --accent-cyan: #00f0ff;
  --accent-whatsapp: #ff1e40;
  --accent-telegram: #229ED9;
  
  --bg-dark: #090b11;
  --bg-card: rgba(16, 20, 31, 0.82);
  --bg-card-solid: #121624;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-glow: rgba(255, 30, 64, 0.35);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--primary-glow);
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --bottom-bar-height: 84px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 16px);
  -webkit-font-smoothing: antialiased;
}

/* Ambient Animated Lighting & Blurred Backdrop */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-img-backdrop {
  position: absolute;
  inset: -20px;
  background: url('../../images/bg.jpg') center center / cover no-repeat;
  filter: blur(45px) brightness(0.22) saturate(1.4);
  transform: scale(1.05);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: orbFloat 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -120px;
  left: 5%;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #5b21b6 0%, transparent 70%);
  bottom: 80px;
  right: 5%;
  animation-duration: 26s;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 35px) scale(1.08); }
  100% { transform: translate(-30px, -25px) scale(0.95); }
}

/* App Main Container */
.app-container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 1.15rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.35rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  gap: 0.75rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(255, 30, 64, 0.35);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Quick Channels Strip in Header */
.header-contact-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  color: #fff;
  border: 1px solid transparent;
  touch-action: manipulation;
}

.btn-header-contact.whatsapp {
  background: rgba(255, 30, 64, 0.15);
  border-color: rgba(255, 30, 64, 0.4);
  color: #ff526d;
}

.btn-header-contact.whatsapp:hover, .btn-header-contact.whatsapp:active {
  background: #ff1e40;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 30, 64, 0.35);
}

.btn-header-contact.telegram {
  background: rgba(34, 158, 217, 0.15);
  border-color: rgba(34, 158, 217, 0.4);
  color: #229ED9;
}

.btn-header-contact.telegram:hover, .btn-header-contact.telegram:active {
  background: #229ED9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}

.live-indicator-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  background: rgba(255, 30, 64, 0.12);
  border: 1px solid rgba(255, 30, 64, 0.35);
  border-radius: var(--radius-full);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 30, 64, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 7px rgba(255, 30, 64, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(255, 30, 64, 0); }
}

.live-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff526d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-header-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-header-portal:hover {
  background: rgba(255, 30, 64, 0.2);
  color: #ffffff;
  border-color: rgba(255, 30, 64, 0.5);
  transform: translateY(-1px);
}

.btn-icon-header {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-icon-header:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(255, 30, 64, 0.4);
}

/* ==========================================================================
   MOBILE SECTION NAV (Visible on tablets and phones)
   ========================================================================== */
.mobile-section-nav {
  display: none; /* Hidden on desktop */
  background: rgba(16, 20, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 0.3rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.mobile-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.mobile-nav-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ==========================================================================
   PRIMARY CONTENT LAYOUT: CHAT PROTAGONIST & SIDEBAR
   ========================================================================== */
.main-stage-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: stretch;
  flex: 1;
}

/* ==========================================================================
   HERO COMMUNITY CHAT (BIGGER & FULL FOCUS)
   ========================================================================== */
.hero-chat-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 30, 64, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: calc(100vh - 230px);
}

.hero-chat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), transparent);
  z-index: 10;
}

.chat-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(14, 18, 28, 0.75);
  border-bottom: 1px solid var(--card-border);
  gap: 0.75rem;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-status-glow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 30, 64, 0.12);
  border: 1px solid rgba(255, 30, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.chat-title-group h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-title-group p {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.28);
}

.btn-chat-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-chat-control:hover, .btn-chat-control:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 30, 64, 0.35);
}

/* Chat Iframe Container - Expansive & Smooth Touch Scroll */
.chat-viewport-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  background: #161616;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.chat-viewport-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Chat Footer Bar */
.chat-footer-bar {
  padding: 0.55rem 1.2rem;
  background: rgba(14, 18, 28, 0.6);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chat-footer-bar strong {
  color: #cbd5e1;
}

/* ==========================================================================
   SIDEBAR: SALUDOS (WSP + TELEGRAM), NOW PLAYING WIDGET & SOCIAL
   ========================================================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Voice & Greetings Card: WhatsApp & Telegram Direct */
.greetings-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.greetings-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 30, 64, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.greetings-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.greetings-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 30, 64, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.greetings-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.greetings-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.phone-number-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.greetings-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-contact-action.wsp {
  background: linear-gradient(135deg, #ff1e40 0%, #b80d26 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 30, 64, 0.3);
}

.btn-contact-action.wsp:hover, .btn-contact-action.wsp:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 30, 64, 0.45);
}

.btn-contact-action.tg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.btn-contact-action.tg:hover, .btn-contact-action.tg:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
}

/* Now Playing Mini Widget in Sidebar */
.now-playing-sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sidebar-vinyl-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #252a38 0%, #0c0e14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.sidebar-vinyl-wrap.spinning {
  animation: spinRecord 12s linear infinite;
}

.sidebar-vinyl-center {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-vinyl-center img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.sidebar-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.sidebar-track-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.8px;
}

.sidebar-track-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}

/* Social Card in Sidebar */
.social-sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.social-grid-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.social-btn-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
  touch-action: manipulation;
}

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

.social-btn-sidebar:hover, .social-btn-sidebar:active {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.social-btn-sidebar.ig:hover { color: #E1306C; border-color: #E1306C; }
.social-btn-sidebar.fb:hover { color: #1877F2; border-color: #1877F2; }
.social-btn-sidebar.tw:hover { color: #1DA1F2; border-color: #1DA1F2; }

/* ==========================================================================
   PERSISTENT FLOATING BOTTOM PLAYER BAR (STREAMING STYLE)
   ========================================================================== */
.floating-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 13, 20, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 30, 64, 0.35);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7), 0 -2px 18px rgba(255, 30, 64, 0.22);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.floating-player-inner {
  width: 100%;
  max-width: 1540px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Left Group: Mini Disc & Track Information */
.bar-track-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 240px;
  max-width: 360px;
  overflow: hidden;
}

.bar-disc-thumb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #252a38 0%, #0c0e14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.bar-disc-thumb.spinning {
  animation: spinRecord 12s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bar-disc-center {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bar-disc-center img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.bar-track-texts {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bar-song-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  transition: opacity 0.25s ease;
}

.bar-station-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bar-badge-pill {
  background: rgba(255, 30, 64, 0.15);
  color: var(--primary);
  padding: 0.08rem 0.42rem;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 700;
}

/* Center Group: Master Play & Equalizer */
.bar-controls-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  justify-content: center;
  flex: 1;
}

.btn-bar-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  touch-action: manipulation;
}

.btn-bar-play:hover, .btn-bar-play:active {
  transform: scale(1.06);
  box-shadow: 0 8px 25px rgba(255, 30, 64, 0.6);
}

.btn-bar-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Center Equalizer Canvas in Bar */
.bar-eq-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#barVisualizerCanvas {
  width: 140px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

/* Fast Track Refresh Button */
.btn-bar-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-bar-action:hover, .btn-bar-action:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 30, 64, 0.35);
}

/* Right Group: Volume & Channels */
.bar-extras-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: flex-end;
  min-width: 240px;
}

.bar-volume-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
}

.btn-vol-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-vol-icon:hover {
  color: #fff;
}

.bar-volume-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.bar-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--primary-glow);
}

.bar-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
}

.bar-contact-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-pill-bar.wsp {
  background: rgba(255, 30, 64, 0.15);
  border: 1px solid rgba(255, 30, 64, 0.4);
  color: #ff526d;
}

.btn-pill-bar.wsp:hover, .btn-pill-bar.wsp:active {
  background: #ff1e40;
  color: #fff;
  transform: translateY(-2px);
}

.btn-pill-bar.tg {
  background: rgba(34, 158, 217, 0.15);
  border: 1px solid rgba(34, 158, 217, 0.4);
  color: #229ED9;
}

.btn-pill-bar.tg:hover, .btn-pill-bar.tg:active {
  background: #229ED9;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(18, 22, 34, 0.95);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Screens)
   ========================================================================== */
@media (max-width: 991px) {
  /* Show Mobile View Toggle */
  .mobile-section-nav {
    display: flex;
  }
  
  .main-stage-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Tab Toggle States */
  .main-stage-grid.view-chat .sidebar-column {
    display: none !important;
  }
  
  .main-stage-grid.view-chat .hero-chat-card {
    display: flex !important;
  }
  
  .main-stage-grid.view-sidebar .hero-chat-card {
    display: none !important;
  }
  
  .main-stage-grid.view-sidebar .sidebar-column {
    display: flex !important;
  }

  .hero-chat-card {
    min-height: 480px;
    height: calc(100vh - 220px - env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  :root {
    --bottom-bar-height: 72px;
  }
  
  .app-container {
    padding: 0.75rem 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .site-header {
    padding: 0.6rem 0.85rem;
  }
  
  .brand-title {
    font-size: 1.15rem;
  }
  
  .brand-tagline {
    font-size: 0.68rem;
  }
  
  .logo-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .header-contact-strip span {
    display: none;
  }
  
  .btn-header-contact {
    padding: 0.45rem;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    justify-content: center;
  }
  
  .live-indicator-header {
    padding: 0.3rem 0.6rem;
  }
  
  .live-text {
    font-size: 0.68rem;
  }
  
  .btn-icon-header {
    width: 34px;
    height: 34px;
  }

  .chat-hero-header {
    padding: 0.65rem 0.85rem;
  }

  .chat-title-group h2 {
    font-size: 0.98rem;
  }

  .chat-title-group p {
    display: none; /* Keep header concise on phone */
  }

  .chat-status-glow {
    width: 32px;
    height: 32px;
  }

  .btn-chat-control span {
    display: none;
  }

  .btn-chat-control {
    padding: 0.45rem;
    border-radius: 50%;
  }

  /* Floating Bottom Player on Mobile */
  .floating-player-bar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .floating-player-inner {
    gap: 0.5rem;
  }

  .bar-eq-wrapper {
    display: none;
  }

  .bar-volume-box {
    display: none; /* Hardware volume buttons used on phone */
  }

  .bar-contact-shortcuts {
    display: none;
  }

  .bar-track-group {
    min-width: unset;
    flex: 1;
    max-width: calc(100vw - 150px);
  }

  .bar-disc-thumb {
    width: 42px;
    height: 42px;
  }

  .bar-disc-center {
    width: 18px;
    height: 18px;
  }

  .bar-song-title {
    font-size: 0.82rem;
    max-width: 100%;
  }

  .bar-station-sub {
    font-size: 0.66rem;
  }

  .bar-controls-group {
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .btn-bar-play {
    width: 48px;
    height: 48px;
  }

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

  .bar-extras-group {
    min-width: unset;
    gap: 0.35rem;
  }

  .btn-bar-action {
    width: 34px;
    height: 34px;
  }
}

/* Small screen adjustments (< 380px, e.g. iPhone SE) */
@media (max-width: 380px) {
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-tagline {
    display: none;
  }

  .bar-track-group {
    max-width: calc(100vw - 140px);
  }

  .bar-disc-thumb {
    width: 36px;
    height: 36px;
  }

  .btn-bar-play {
    width: 44px;
    height: 44px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bar-disc-thumb.spinning, .sidebar-vinyl-wrap.spinning {
    animation: none;
  }
}
