* {
  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 {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.social-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 1.5rem;
  -webkit-transition: transform 0.2s, background 0.2s, color 0.2s;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.social-btn:hover,
.social-btn.active { transform: scale(1.1); background: rgba(255,255,255,0.22); }

.social-btn.fb:hover, .social-btn.fb.active { color: #1877f2; }
.social-btn.ig:hover, .social-btn.ig.active { color: #e1306c; }
.social-btn.wa:hover, .social-btn.wa.active { color: #25d366; }
.social-btn.tt:hover, .social-btn.tt.active { color: #ff0050; }
.social-btn.yt:hover, .social-btn.yt.active { color: #ff0000; }

/* Dropdown */
.social-dropdown {
  display: none;
  background: rgba(15, 15, 25, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(210, 60, 160, 0.55);
  border-radius: 14px;
  padding: 6px 8px;
  margin-top: 10px;
  width: 100%;
  animation: dropIn 0.18s ease;
}

.social-dropdown.active { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.social-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  -webkit-transition: color 0.15s, background 0.15s;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}

.social-dropdown a:last-child { border-bottom: none; }

.social-dropdown a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.googleplay-btn {
  display: inline-block;
  margin-top: 12px;
  opacity: 0.85;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.googleplay-btn:hover { opacity: 1; }

/* 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); }
#lunaradiobackgroundimage,
#lunaradiobackgroundimage1,
#lunaradiobackgroundimage2 { display: none !important; }
#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-btn { width: 46px; height: 46px; font-size: 1.25rem; }
  .social-dropdown a { font-size: 0.88rem; padding: 8px 8px; }
  .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; }
}
