* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: white;
  min-height: 100vh;
  overflow-y: auto;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.bg-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  -webkit-transition: opacity 2s ease-in-out;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

/* Overlay oscuro sobre el fondo */
.bg-fade::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Panel glassmorphism */
.panel {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 16px;
  width: 100%;
  max-width: 520px;
}

#lunaradio {
  width: 100%;
  height: 480px;
  margin: 0 auto;
  z-index: 10;
}

/* Redes sociales */
.social-wrap {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 20px;
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 16px;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-icons a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.7rem;
  -webkit-transition: transform 0.2s ease, color 0.2s ease;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover { transform: scale(1.2); }

.social-icons a.fb:hover    { color: #1877f2; }
.social-icons a.ig:hover    { color: #e1306c; }
.social-icons a.wa:hover    { color: #25d366; }
.social-icons a.tt:hover    { color: #ff0050; }
.social-icons a.tw:hover    { color: #9146ff; }
.social-icons a.yt:hover    { color: #ff0000; }
.social-icons a.tw-x:hover  { color: #aaaaaa; }
.social-icons a.web:hover          { color: var(--accent, #fff); }
.social-icons a.custom-link:hover  { color: var(--accent, #fff); }

/* Footer */
.powered {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.powered a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.powered a:hover { color: #fff; }

/* LunaRadio overrides */
#lunaradiobuttonanalyzer  { display: none; }
#lunaradioiconlive        { display: none; }
#lunaradiocoverwrapper    { border-radius: 50%; overflow: hidden; border: none !important; outline: none !important; box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.4), 0 0 18px 4px rgba(239, 68, 68, 0.15); }
#lunaradioname            { margin-top: 6px !important; margin-bottom: 4px !important; font-size: 1.1rem !important; letter-spacing: 1px !important; }

/* ArgentinaStream */
.powered {
  margin-top: 18px;
  margin-bottom: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive — Tablet / iPad */
@media (min-width: 768px) {
  #lunaradio { height: 520px; }
  .social-icons a { font-size: 2rem; }
}

/* Responsive — Móvil estándar */
@media (max-width: 480px) {
  main { padding: 1rem 0.6rem; }
  .panel { padding: 14px 10px; border-radius: 14px; }

  #lunaradio {
    width: 95vw;
    height: clamp(380px, 75vw, 460px);
  }

  .social-icons a { font-size: 1.5rem; }
  .powered        { font-size: 0.78rem; }
}

/* Responsive — Móvil chico */
@media (max-width: 360px) {
  #lunaradio    { height: clamp(340px, 80vw, 400px); }
  .powered      { font-size: 0.72rem; }
  .social-wrap  { padding: 8px 14px; gap: 0.7rem; }
}

/* ── Botón compartir ── */
.panel { position: relative; }

#btn-compartir {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, color .2s;
}
#btn-compartir:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ── Marquesina de noticias ── */
#news-ticker {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 38px;
  background: #1a2030;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--accent, #e53e3e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-viewport {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll linear infinite;
}
#news-ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item { font-size: 13px; color: rgba(255,255,255,0.9); padding: 0 14px; }
.ticker-sep  { color: var(--accent, #e53e3e); padding: 0 2px; font-size: 16px; line-height: 1; }

body:has(#news-ticker) main { padding-top: 44px; }
