/* ═══════════════════════════════════════════════════════════════
   ETHERNAL RADIO — Style v8.5.2 (Gold Master Edition)
   CSS Grid Mirror: Portada a la Izquierda / Controles a la Derecha.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --rr-player-accent:   #d04f32; 
  --rr-player-accent2:  #f97316; 
  --rr-player-purple:   #bf00ff;
  --rr-player-dark:     #0f0055; 
  --rr-player-text:     #ffffff;
  --rr-player-muted:    rgba(255, 255, 255, 0.75);
  --rr-player-muted2:   rgba(255, 255, 255, 0.45);
  --rr-player-radius:   30px; /* Aumentado para puntas más redondeadas */
  --rr-glass-border:    rgba(255, 255, 255, 0.1);
  --rr-glass-bg:        rgba(5, 5, 7, 0.92); /* Más oscuro según pedido de Emilio */
  /*--rr-gradient-body:   linear-gradient(165deg, #d04f32 0%, #d04f32 30%, #221d3a 65%, #221d3a 100%);*/
  /*--rr-gradient-player: linear-gradient(165deg, #d04f32 0%, #d04f32 30%, #221d3a 65%, #221d3a 100%);*/
  --rr-gradient-body:   linear-gradient(160deg, var(--rr-player-accent), var(--rr-player-dark));
  --rr-gradient-player: linear-gradient(160deg, var(--rr-player-accent), var(--rr-player-dark));
  --rr-gradinet-basic: linear-gradient(160deg, rgb(208, 79, 50), rgb(34, 29, 58));
}

*, *::before, *::after { box-sizing: border-box; }
html { height: -webkit-fill-available; }

body {
  margin: 0; color: var(--rr-player-text); font-family: 'Montserrat', sans-serif;
  /* Esencia Ethernal: Púrpura dominante con profundidad premium */
  background: var(--rr-gradient-body);
  background-attachment: fixed;
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow-x: hidden; overflow-y: auto;
}

/* Fondo Dinámico con predominancia Púrpura Neón */
body::before {
    content: ""; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: -2;
    background: radial-gradient(circle at 15% 15%, rgba(208, 79, 50, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(191, 0, 255, 0.12) 0%, transparent 60%);
    animation: bgPulse 20s ease-in-out infinite alternate;
}
@keyframes bgPulse { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.1); opacity: 0.8; } }

.rr-dynamic-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-size: cover; background-position: center; filter: blur(100px) brightness(0.2);
    transform: scale(1.1); transition: background-image 3s ease; opacity: 0.4;
}

/* ── EL TABLERO (CSS GRID) ── */
.rr-shell { width: 100%; max-width: 820px; position: relative; z-index: 10; }

.rr-player {
  width: 100%; border-radius: var(--rr-player-radius);
  background: var(--rr-gradient-player);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 18px; display: grid; gap: 18px; border: 0px solid rgba(255,255,255,0.06);

  /* MÓVIL: Una sola columna */
  grid-template-areas: 
    "header" 
    "cover" 
    "meta"
    "status"
    "footer" 
    "timeline"
    "banners"
    "contact";
}

/* Mapeo de Identidades */
.rr-header { grid-area: header; }
.rr-cover-wrap { grid-area: cover; }
.rr-status-bar { grid-area: status; }
.rr-meta { grid-area: meta; }
.rr-footer { grid-area: footer; }
.rr-timeline { grid-area: timeline; }
.rr-banner-slider { grid-area: banners; }
.rr-contact-section { grid-area: contact; }

/* ── COMPONENTES ── */
.rr-header { display: flex; align-items: center; justify-content: space-between; }
.rr-brand { display: flex; align-items: center; gap: 10px; }
.rr-brand img { width: 34px; height: 34px; border-radius: 50%; }
.rr-brand-title { font-weight: 780; font-size: 1rem; text-transform: uppercase; }
.rr-stream-state { font-size: 0.7rem; font-weight: 700; color: var(--rr-player-muted); text-transform: uppercase; margin: 0; }

.rr-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.rr-quality-badge { 
    cursor: pointer; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); 
    color: #fff; padding: 4px 18px; border-radius: 999px; font-size: .5rem; font-weight: 700; display:flex; gap: 5px; width:88px; align-items: center; 
}
.rr-quality-selector{ 
  position:absolute; 
  right:24px;
  align-items: center; 
}
.rr-quality-menu {
    position: absolute; background: rgba(15,12,25,0.98); border: 1px solid var(--rr-glass-border);
    border-radius: 12px; list-style: none; padding: 8px 8px; min-width: 130px; display: none; z-index: 100;
}
.rr-quality-menu.show { display: block; }

.rr-cover-wrap { display: flex; justify-content: center; }
.rr-cover {
  width: min(240px, 75vw); aspect-ratio: 1 / 1; border-radius: 24px; 
  object-fit: cover; box-shadow: 0 15px 45px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}

.rr-meta { display: grid; gap: 16px; text-align: left; }
.rr-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rr-player-muted2); }
.rr-show { font-size: 1rem; font-weight: 600; color: var(--rr-player-accent2); min-height: 1em; }
.rr-title { font-weight: 800; font-size: 1.1rem; line-height: 1.25; color: #fff; }
.rr-sub { font-size: 1rem; color: var(--rr-player-muted); }

.rr-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.rr-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--rr-glass-border); font-size: .7rem;
}

/* Barra de Progreso Oro */
.rr-progress-container { width: 100%; margin-top: 5px; }
.rr-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.rr-progress-bar {
  height: 100%; width: 0%; 
  background: var(--rr-player-accent2); /* NARANJA SÓLIDO */
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4); transition: width 0.5s linear;
}
.rr-progress-text { font-size: 0.65rem; color: var(--rr-player-muted2); margin-top: 4px; text-align: right; }

.rr-footer { display: flex;  gap: 12px; align-items: center; }
.rr-controls { display: flex; align-items: center; justify-content: center; gap: 20px; width: 70%; }
.rr-btn {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--rr-player-accent), var(--rr-player-accent2));
    border: 1px solid rgba(255,255,255,0.2); color: #fff; cursor: pointer; font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: 0.2s;
}

.rr-volume-wrap { flex: 1; display: flex; align-items: center; gap: 12px; max-width: 100%; }
.rr-volume { 
    flex-grow: 1; cursor: pointer; height: 6px; accent-color: var(--rr-player-accent2); outline: none;
    background: linear-gradient(to right, var(--rr-player-accent2) 0%, var(--rr-player-accent2) var(--volume-pct, 80%), rgba(255,255,255,0.1) var(--volume-pct, 80%), rgba(255,255,255,0.1) 100%);
    border-radius: 999px;
}

.rr-timeline { display: grid; gap: 8px; }
.rr-row {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.rr-row-title { font-size: 0.85rem; font-weight: 600; color: #fff; }

.rr-banner-slider { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--rr-glass-border); background: rgba(0,0,0,0.2); margin-top: 15px; }
.rr-banner-img { width: 100%; height: auto; display: block; border-radius: 14px; }

/* ── 8. CONTACTO (ESTILO BONITO) ── */
.rr-contact-section { 
    display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 5px; padding-bottom: 15px; 
}
.rr-social-links { display: flex; gap: 20px; margin-bottom: 5px; }
.rr-social-icon {
    color: var(--rr-player-muted2); font-size: 1.1rem; transition: 0.3s;
}
.rr-social-icon:hover { color: var(--rr-player-accent2); transform: translateY(-2px); }

.rr-mailto-link {
    display: flex; align-items: center; gap: 10px;
    color: var(--rr-player-muted); font-size: 0.72rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    padding: 10px 25px; border-radius: 999px;
    background: rgba(255,255,255,0.04); 
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}
.rr-mailto-link:hover { 
    color: #fff; 
    background: rgba(208, 79, 50, 0.2); 
    border-color: var(--rr-player-accent2);
    box-shadow: 0 0 20px rgba(208, 79, 50, 0.25);
    transform: translateY(-2px);
}
.rr-mailto-link i { font-size: 0.85rem; color: var(--rr-player-accent2); }

/* ── RESPONSIVE MASTER (EL ESPEJO) ── */

@media (min-width: 560px) {
  .rr-player {
    grid-template-columns: 240px 1fr; /* Exact Mirror width */
    grid-template-areas:
      "header   header"
      "cover    status"
      "cover    meta"
      "footer    footer"
      "timeline timeline"
      "banners  banners"
      "contact  contact";
    align-items: start; /* ALINEACIÓN VERTICAL CENTRAL */
    column-gap: 30px; padding: 30px;
  }
  .rr-cover { width: 240px; height: 240px; }
  .rr-meta { text-align: left; padding-left: 5px; }
  .rr-footer { align-items: center; }
  .rr-controls { justify-content: flex-start; }
}
/* Landscape Móvil: Compactación Extrema */
@media (max-height: 500px) and (orientation: landscape) {
    body { align-items: flex-start; padding: 10px; }
    .rr-player {
        grid-template-columns: 160px 1fr;
        grid-template-areas: "header header" "cover meta" "cover footer" "footer footer" "timeline timeline";
        padding: 15px;
    }
    .rr-cover { width: 160px; height: 160px; }
    .rr-banner-slider, .rr-contact-section { display: none; }
}
@media (max-width: 559px) {
    .rr-footer { grid-area: auto; }
}
/* Tablet Vertical: Padding preventivo */
@media (min-width: 400px) and (max-width: 559px) {
  .rr-shell { padding: 0 2px; }
}
.swiper-button-next, .swiper-button-prev {
    color:white;
}