:root{
  --r90h-bg: rgba(10,10,12,.9);
  --r90h-fg: #fff;
  --r90h-accent: #ff2d55;
  --r90h-muted: #b7bcc7;
  --r90h-card: rgba(255,255,255,.06);
  --r90h-radius: 16px;
  --r90h-gap: 14px;
  --r90h-shadow: 0 8px 24px rgba(0,0,0,.25);
  --r90h-player-h: 72px;
  --r90h-ticker-h: 38px;
}

/* Light mode */
html[data-theme="light"]{
  --r90h-bg: rgba(250,250,252,.9);
  --r90h-fg: #0b0c0f;
  --r90h-accent: #e0005a;
  --r90h-muted: #4e5661;
  --r90h-card: rgba(0,0,0,.06);
  --r90h-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* =================== LAYOUT L | C | R (desktop) =================== */
.r90h-player{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;

  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.4fr) auto;
  grid-template-rows: auto;
  gap: var(--r90h-gap);

  align-items: center;
  padding: 12px 14px;
  background: var(--r90h-bg);
  color: var(--r90h-fg);
  backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: var(--r90h-shadow);
  border-top: 1px solid rgba(127,127,127,.12);
}
@supports(padding: max(0px)){
  .r90h-player{ padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

.r90h-left{ display:flex; align-items:center; gap:12px; min-width:260px; }
.r90h-middle{ min-width:240px; }
.r90h-right{ display:flex; align-items:center; gap:12px; }

/* în interiorul stângii: meta + show alăturat */
.r90h-left-row{ display:flex; align-items:center; gap:12px; min-width:0; width:100%; }

.r90h-meta{ min-width:0; display:flex; flex-direction:column; gap:6px; }

/* =================== Elemente =================== */
.r90h-cover{
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 12px; background: var(--r90h-card);
}
.r90h-title{
  font-weight: 800; font-size: clamp(16px,2.4vw,20px); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r90h-artist{
  margin-top:1px; color: var(--r90h-muted);
  font-size: clamp(12px,2vw,14px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Show card */
.r90h-showcard{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding:8px 10px;
}
.r90h-show-img{ width:48px; height:48px; border-radius:10px; object-fit:cover; background: rgba(127,127,127,.15); }
.r90h-show-meta{ min-width:0; }
.r90h-show-name{ display:inline-block; font-weight:700; color:var(--r90h-fg); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.r90h-show-dj, .r90h-show-hours{ font-size:12px; color: var(--r90h-muted); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* =================== Ticker (centru) =================== */
.r90h-ticker{
  height: var(--r90h-ticker-h); display:flex; align-items:center; overflow:hidden;
  background: linear-gradient(180deg, rgba(24,24,28,.75), rgba(18,18,22,.75));
  border: 1px solid rgba(255,193,59,.45);
  border-radius: 12px; padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.r90h-ticker-track{
  display:inline-block; white-space: nowrap; padding-left: 100%;
  font-weight:600; letter-spacing:.2px; text-shadow:0 1px 1px rgba(0,0,0,.25);
  will-change: transform;
}
@keyframes r90h-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =================== CTA + Play =================== */
.r90h-cta{
  display:inline-flex; align-items:center; justify-content:center;
  height: 38px; padding: 0 12px; border-radius: 10px;
  background: rgba(255,255,255,.08); color:var(--r90h-fg); text-decoration:none;
  font-weight:700; text-transform: lowercase; letter-spacing:.2px;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s ease, background .2s ease;
}
.r90h-cta:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* Buton Play — icon centrat */
.r90h-btn{
  width: 52px; height: 52px; border: 0; border-radius: 999px;
  background: var(--r90h-accent); color: #fff;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer; transition: transform .18s ease, filter .2s ease;
}
.r90h-btn:active{ transform: scale(.96); }
.r90h-btn[aria-pressed="true"]{ filter: drop-shadow(0 4px 12px rgba(255,45,85,.35)); }
.r90h-ico{
  width: 32px;   /* sau 34px dacă vrei și mai mare */
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: block;
  fill: currentColor;
}



/* =================== Breakpoint mediu =================== */
@media (max-width: 980px){
  .r90h-player{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left right"
      "middle middle";
  }
  .r90h-left{ grid-area: left; }
  .r90h-middle{ grid-area: middle; }
  .r90h-right{ grid-area: right; }
  .r90h-show-dj{ display:none; }
}

/* =================== Mobil (<= 640px) =================== */
/* rând 1: LEFT . RIGHT | rând 2: TICKER full width */
@media (max-width: 640px){

  .r90h-player{
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left . right"
      "ticker ticker ticker";
    gap: 10px;
  }

  .r90h-left   { grid-area: left;   min-width:0; }
  .r90h-middle { grid-area: ticker; }
  .r90h-right  { grid-area: right;  justify-content:flex-end; align-self:start; }

  /* 50/50 între meta și show în blocul stâng */
  .r90h-left-row{
    display:grid;
    grid-template-columns: 1fr 1fr;  /* egal */
    gap: 8px; width:100%; min-width:0; align-items:center;
  }
  .r90h-meta{ min-width:0; }
  .r90h-left-row .r90h-showcard{ margin-top:0; min-width:0; }

  /* ascunde CTA dacă nu încape */
  .r90h-cta{ display:none; }

  /* compacte */
  .r90h-cover{ width:44px; height:44px; border-radius:10px; }
  .r90h-title{ font-size:15px; }
  .r90h-artist{ font-size:12px; }
  .r90h-show-img{ width:32px; height:32px; }
  .r90h-show-name{ font-size:13px; }
  .r90h-show-hours{ font-size:11.5px; }
  .r90h-ticker{ height:36px; border-radius:10px; }
}

/* =================== Spațiu la baza paginii =================== */
body{ padding-bottom: var(--r90h-player-h); }
