/* Radio La Movida – Sticky Live Player (assets/player.css) */
:root{
  --lmp-height: 68px;
  --lmp-radius: 18px;
  --lmp-glass: rgba(255,255,255,0.18);
  --lmp-border: rgba(255,255,255,0.35);
  --lmp-text: #ffffff;
  --lmp-orange: #ff7a18;
  --lmp-pink: #ff4d4d;
  --lmp-yellow: #ffb703;
  --lmp-z: 99999;
}

#lamovida-player.lmp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--lmp-z);
  pointer-events: none; /* container is non-interactive, inner handles clicks */
}

#lamovida-player.lmp-hidden { opacity: 0; transform: translateY(8px); }
#lamovida-player:not(.lmp-hidden) { opacity: 1; transform: translateY(0); transition: opacity .3s ease, transform .3s ease; }

#lamovida-player .lmp-inner{
  max-width: 1280px;
  margin: 10px auto;
  height: var(--lmp-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--lmp-radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--lmp-glass);
  border: 1px solid var(--lmp-border);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.2);
  pointer-events: auto; /* enable clicks within */
}

/* Liquid glass tropical blobs (soft, moving gradients) */
#lamovida-player .lmp-bg{
  position: absolute;
  inset: -30%;
  filter: blur(40px);
  z-index: 0;
}
#lamovida-player .lmp-blob{
  position: absolute;
  width: 50vmin;
  height: 50vmin;
  border-radius: 50%;
  opacity: .65;
  background: radial-gradient(circle at 30% 30%, var(--lmp-orange), transparent 60%);
  animation: float1 18s ease-in-out infinite;
}
#lamovida-player .lmp-b2{
  left: 40%;
  top: 10%;
  background: radial-gradient(circle at 70% 30%, var(--lmp-yellow), transparent 60%);
  animation: float2 22s ease-in-out infinite;
}
#lamovida-player .lmp-b3{
  left: 65%;
  top: 35%;
  background: radial-gradient(circle at 50% 70%, var(--lmp-pink), transparent 60%);
  animation: float3 26s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(6%, -4%) scale(1.05);}}
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-5%, 5%) scale(1.08);}}
@keyframes float3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(4%, 3%) scale(0.97);}}

/* Content */
#lamovida-player .lmp-logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-width: 88px;
  height: 48px;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
}
#lamovida-player .lmp-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#lamovida-player .lmp-title{
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: #000000;
  color: var(--lmp-text);
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  user-select: none;
  line-height: 1;
}

#lamovida-player .lmp-ctrl{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.8);
  cursor: pointer;
  transition: transform .08s ease;
}
#lamovida-player .lmp-ctrl:active { transform: scale(0.96); }
#lamovida-player .lmp-icon{ fill: #1d1d1f; display: none; }
#lamovida-player.is-paused .lmp-play{ display: block; }
#lamovida-player.is-playing .lmp-pause{ display: block; }

/* Responsiveness */
@media (max-width: 768px){
  :root{ --lmp-height: 64px; }
  #lamovida-player .lmp-inner{ margin: 8px 10px; gap: 10px; }
  #lamovida-player .lmp-logo{ width: 100px; height: 44px; }
  #lamovida-player .lmp-title{
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: #000000; font-size: 14px; }
}

@media (max-width: 420px){
  #lamovida-player .lmp-logo{ width: 84px; height: 38px; }
  #lamovida-player .lmp-title{
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: #000000; font-size: 13px; }
}

/* Ensure it doesn't overlap cookie bars that also stick at bottom */
body{ padding-bottom: calc(var(--lmp-height) + 22px); }
.admin-bar body{ padding-bottom: calc(var(--lmp-height) + 22px); }

/* Mejor alineación en iPhone y móviles */
#lamovida-player .lmp-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px){
  #lamovida-player .lmp-inner{
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 10px;
  }
  #lamovida-player .lmp-title{
    flex: 1;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
  }
  #lamovida-player .lmp-logo{
    flex-shrink: 0;
  }
  #lamovida-player .lmp-ctrl{
    flex-shrink: 0;
  }
}

@media (max-width: 420px){
  #lamovida-player .lmp-title{
    font-size: 12px;
  }
}

/* --- 1.0.1: Montserrat, uppercase title in black, mobile alignment + safe-area --- */
#lamovida-player .lmp-inner{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  align-items: center;
}

#lamovida-player .lmp-title{
  text-transform: uppercase;
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#lamovida-player .lmp-inner{ 
  grid-template-columns: minmax(84px, 120px) 1fr 56px;
}

#lamovida-player .lmp-ctrl{
  width: 56px;
  height: 56px;
}

/* Respect iPhone safe area (home indicator) */
#lamovida-player.lmp {
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
}

/* Small screen refinements */
@media (max-width: 420px){
  #lamovida-player .lmp-inner{
    gap: 8px;
    padding: 8px 10px;
    height: var(--lmp-height);
  }
  #lamovida-player .lmp-title{
    font-size: 12.5px;
    letter-spacing: .3px;
  }
  #lamovida-player .lmp-logo{ width: 80px; height: 34px; }
  #lamovida-player .lmp-ctrl{ width: 52px; height: 52px; }
}

/* Keep page content above the player, including safe area */
body{ padding-bottom: calc(var(--lmp-height) + 22px + env(safe-area-inset-bottom)); }
.admin-bar body{ padding-bottom: calc(var(--lmp-height) + 22px + env(safe-area-inset-bottom)); }


/* --- 1.0.2: Floating transparent style --- */
#lamovida-player.lmp {
  background: transparent !important;
  pointer-events: none; /* bar container itself transparent and click-through */
}

#lamovida-player .lmp-inner{
  pointer-events: auto;
  background: var(--lmp-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.2);
}

#lamovida-player .lmp-bg{
  opacity: 0.85; /* subtle blob visibility */
}
