/* ============================================================
   GÜLEÇ FM — Premium Üst Player (FlatRadyo tarzı, mobil uyumlu)
   ============================================================ */
:root { --player-h: 78px; }

.rg-player-wrap{
  width:100%;
  height:var(--player-h);
  min-height:var(--player-h)!important;
  box-sizing:border-box;
  position:fixed;
  top:0;left:0;right:0;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px 16px;
  color:#fff!important;
  font-family:'DM Sans',system-ui,sans-serif;
  background:
    radial-gradient(ellipse 60% 120% at 15% 0%, rgba(0,212,168,.10), transparent 60%),
    linear-gradient(180deg,#0a1020 0%,#05080f 100%)!important;
  border-bottom:1px solid rgba(34,211,238,.16)!important;
  box-shadow:0 4px 24px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.03) inset!important;
}

/* ---------- Kapak ---------- */
.rg-cover{
  width:56px;height:56px;
  flex:0 0 56px;
  border-radius:50%;
  overflow:hidden;
  background:#0a1018;
  border:2px solid rgba(34,211,238,.35);
  box-shadow:0 0 0 3px rgba(34,211,238,.08), 0 0 18px rgba(34,211,238,.22);
  position:relative;
}
.rg-cover img{
  width:100%;height:100%;object-fit:cover;display:block;
  border-radius:50%;
}
.rg-cover::after{
  content:'';
  position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 50% 50%, rgba(255,255,255,.14), transparent 42%);
  pointer-events:none;
}
.rg-player-wrap.is-playing .rg-cover img{
  animation:rgSpin 9s linear infinite;
}
@keyframes rgSpin{ to{ transform:rotate(360deg); } }

/* ---------- Büyük oynat düğmesi ---------- */
.rg-play{
  width:52px;height:52px;
  flex:0 0 52px;
  border-radius:50%;
  border:0;
  display:grid;place-items:center;
  cursor:pointer;
  color:#031512;
  background:linear-gradient(135deg,#22d3ee 0%,#00d4a8 100%)!important;
  box-shadow:0 0 0 4px rgba(34,211,238,.12), 0 0 26px rgba(0,212,168,.45), 0 6px 16px rgba(0,0,0,.5);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rg-play:hover{ transform:scale(1.06); filter:brightness(1.08); }
.rg-play:active{ transform:scale(.96); }
.rg-play .rg-ic-pause{ display:none; }
.rg-play.playing{ box-shadow:0 0 0 4px rgba(0,212,168,.18), 0 0 30px rgba(0,212,168,.55), 0 6px 16px rgba(0,0,0,.5); }
.rg-play.playing .rg-ic-play{ display:none; }
.rg-play.playing .rg-ic-pause{ display:block; }

/* ---------- Meta (rozetler + şarkı) ---------- */
.rg-meta{ flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;justify-content:center; }
.rg-badges{ display:flex;align-items:center;gap:6px;flex-wrap:nowrap; }
.rg-badge{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;font-weight:800;letter-spacing:.6px;
  padding:3px 9px;border-radius:7px;
  white-space:nowrap;line-height:1.4;
}
.rg-badge-station{
  background:#1e293b;color:#e2e8f0;
  border:1px solid rgba(255,255,255,.12);
}
.rg-badge-live{
  background:linear-gradient(135deg,#10b981,#059669);color:#022c22;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
}
.rg-badge-quality{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#ede9fe;
  border:1px solid rgba(139,92,246,.5);
}
.rg-dot{
  width:6px;height:6px;border-radius:50%;
  background:#022c22;
  box-shadow:0 0 0 2px rgba(255,255,255,.35);
  animation:rgPulse 1.3s infinite;
}
@keyframes rgPulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.35; }
}
.rg-track-row{
  display:flex;align-items:center;gap:7px;
  min-width:0;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  padding:5px 8px;
}
.rg-note{ display:flex;flex:0 0 auto;opacity:.9; }
.rg-track{
  flex:1;min-width:0;
  color:#f1f5f9!important;
  font-size:13px!important;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.3;
}
.rg-mini{
  flex:0 0 auto;
  width:22px;height:22px;border-radius:6px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  color:#94a3b8;cursor:pointer;
  transition:all .15s ease;
}
.rg-mini:hover{ color:#22d3ee;border-color:rgba(34,211,238,.4);background:rgba(34,211,238,.1); }

/* ---------- Spektrum ---------- */
.rg-spectrum{
  flex:0 0 270px;
  height:56px;
  position:relative;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(34,211,238,.12);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.rg-spectrum canvas{ width:100%;height:100%;display:block; }
.rg-spec-label{
  position:absolute;top:4px;right:8px;
  font-size:9px;font-weight:700;color:#67e8f9;
  background:rgba(5,8,15,.6);
  padding:1px 7px;border-radius:6px;
  letter-spacing:.4px;
  pointer-events:none;
}

/* ---------- Sağ blok ---------- */
.rg-right{ display:flex;align-items:center;gap:8px;flex:0 0 auto; }
.rg-listeners{
  background:rgba(251,191,36,.1);
  border:1px solid rgba(251,191,36,.35);
  color:#fde68a!important;
  font-size:11px;font-weight:700;
  padding:6px 11px;border-radius:999px;
}
.rg-listeners b{ color:#fbbf24; }
.rg-icbtn{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  color:#cbd5e1;cursor:pointer;
  transition:all .15s ease;
}
.rg-icbtn:hover{ color:#22d3ee;border-color:rgba(34,211,238,.4);background:rgba(34,211,238,.1);transform:translateY(-1px); }
.rg-icbtn:active{ transform:scale(.94); }
.rg-icbtn.spin{ animation:rgSpinBtn .6s ease; }
@keyframes rgSpinBtn{ to{ transform:rotate(360deg); } }

.rg-vol{ display:flex;align-items:center;gap:7px; }
.rg-vol input[type=range]{
  -webkit-appearance:none;appearance:none;
  width:92px;height:5px;border-radius:99px;
  background:linear-gradient(90deg,#22d3ee var(--fill,80%), rgba(255,255,255,.14) var(--fill,80%));
  outline:none;cursor:pointer;
}
.rg-vol input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:15px;height:15px;border-radius:50%;
  background:#22d3ee;
  border:2px solid #05080f;
  box-shadow:0 0 10px rgba(34,211,238,.7);
  cursor:pointer;
}
.rg-vol input[type=range]::-moz-range-thumb{
  width:15px;height:15px;border-radius:50%;
  background:#22d3ee;border:2px solid #05080f;
  box-shadow:0 0 10px rgba(34,211,238,.7);
  cursor:pointer;
}
.rg-vol-pct{
  font-size:11px;font-weight:700;color:#67e8f9;
  min-width:34px;text-align:right;
  font-variant-numeric:tabular-nums;
}
#rg-mute .rg-ic-muted{ display:none; }
#rg-mute.muted .rg-ic-vol{ display:none; }
#rg-mute.muted .rg-ic-muted{ display:block; }
#rg-mute.muted{ color:#f87171;border-color:rgba(248,113,113,.4); }

/* ---------- Sayfa ofsetleri ---------- */
body.rg-has-player{ padding-top:var(--player-h)!important; }
body.rg-has-player .topbar{ top:var(--player-h)!important; }

/* ---------- Responsive ---------- */
@media (max-width:1200px){
  .rg-spectrum{ display:none; }
}
@media (max-width:900px){
  :root{ --player-h: 70px; }
  .rg-player-wrap{ gap:10px;padding:7px 12px; }
  .rg-cover{ width:48px;height:48px;flex-basis:48px; }
  .rg-play{ width:46px;height:46px;flex-basis:46px; }
  #rg-download, #rg-copy{ display:none; }
  .rg-vol input[type=range]{ width:70px; }
  .rg-badge{ font-size:9px;padding:2px 7px; }
  .rg-track{ font-size:12px!important; }
}
@media (max-width:640px){
  :root{ --player-h: 64px; }
  .rg-player-wrap{ gap:8px;padding:6px 10px; }
  .rg-cover{ width:42px;height:42px;flex-basis:42px; }
  .rg-play{ width:42px;height:42px;flex-basis:42px; }
  .rg-badges .rg-badge-quality{ display:none; }
  .rg-vol-pct{ display:none; }
  .rg-vol input[type=range]{ width:56px; }
  #rg-refresh{ display:none; }
  .rg-listeners{ font-size:10px;padding:4px 8px; }
  .rg-track{ font-size:11.5px!important; }
}
@media (max-width:430px){
  .rg-badge-live{ display:none; }
  .rg-vol input[type=range]{ display:none; }
  .rg-track-row{ padding:4px 6px; }
}

/* ============================================================
   v7 — Marquee, paneller, spektrum modları
   ============================================================ */
.rg-track{ overflow:hidden; }
.rg-mq{ display:inline-flex; white-space:nowrap; align-items:center; will-change:transform; }
.rg-mq > span{ flex:0 0 auto; }
.rg-mq-on{ animation:rgMq 14s linear infinite; }
.rg-mq-on > span:first-child{ padding-right:2.5em; }
@keyframes rgMq{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* Spektrum mod düğmesi */
.rg-spec-mode{
  position:absolute;bottom:4px;right:8px;z-index:2;
  font-size:9px;font-weight:800;letter-spacing:.3px;
  color:#a5f3fc;background:rgba(5,8,15,.72);
  border:1px solid rgba(34,211,238,.3);
  padding:1px 8px;border-radius:999px;cursor:pointer;
  transition:all .15s ease;
}
.rg-spec-mode:hover{ color:#05080f;background:#22d3ee;border-color:#22d3ee; }

/* Açılır paneller */
.rg-popwrap{ position:relative; }
.rg-panel{
  position:fixed;top:calc(var(--player-h) + 8px);right:12px;z-index:10001;
  width:330px;max-width:calc(100vw - 24px);
  max-height:min(420px, calc(100vh - var(--player-h) - 30px));
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(15,23,42,.97),rgba(2,6,23,.97));
  border:1px solid rgba(34,211,238,.25);
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter:blur(10px);
  color:#e2e8f0;
  animation:rgPanelIn .18s ease;
}
@keyframes rgPanelIn{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:none; } }
.rg-panel-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:13px;
  position:sticky;top:0;background:inherit;border-radius:16px 16px 0 0;
}
.rg-panel-close{
  width:24px;height:24px;border-radius:8px;border:0;cursor:pointer;
  background:rgba(255,255,255,.06);color:#94a3b8;font-size:12px;
}
.rg-panel-close:hover{ background:rgba(248,113,113,.2);color:#fca5a5; }
.rg-panel-empty{ padding:22px 14px;text-align:center;color:#64748b;font-size:12.5px; }

.rg-history-list{ padding:8px; }
.rg-hist-row{
  display:flex;align-items:center;gap:10px;
  padding:7px 8px;border-radius:11px;
  transition:background .15s ease;
}
.rg-hist-row:hover{ background:rgba(34,211,238,.07); }
.rg-hist-row + .rg-hist-row{ margin-top:2px; }
.rg-hist-cover{
  width:38px;height:38px;border-radius:9px;object-fit:cover;flex:0 0 38px;
  background:#0f172a;border:1px solid rgba(255,255,255,.08);
}
.rg-hist-meta{ flex:1;min-width:0; }
.rg-hist-meta b{
  display:block;font-size:12.5px;color:#f1f5f9;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rg-hist-meta small{ display:block;font-size:11px;color:#7dd3fc;margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.rg-hist-time{ flex:0 0 auto;font-size:10.5px;color:#64748b;font-variant-numeric:tabular-nums; }

.rg-ext-list{ padding:10px;display:flex;flex-direction:column;gap:8px; }
.rg-ext-item{
  display:flex;align-items:center;gap:11px;width:100%;
  padding:10px 12px;border-radius:12px;cursor:pointer;text-align:left;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#e2e8f0;text-decoration:none;
  font-family:inherit;
  transition:all .15s ease;
}
.rg-ext-item:hover{
  background:rgba(34,211,238,.1);
  border-color:rgba(34,211,238,.4);
  transform:translateY(-1px);
}
.rg-ext-ic{
  width:36px;height:36px;border-radius:10px;flex:0 0 36px;
  display:grid;place-items:center;
  color:#fff;font-weight:900;font-size:15px;
  box-shadow:0 4px 12px rgba(0,0,0,.4);
}
.rg-ext-item b{ display:block;font-size:13px; }
.rg-ext-item small{ display:block;font-size:11px;color:#94a3b8;margin-top:1px; }

@media (max-width:640px){
  .rg-panel{ right:8px; width:calc(100vw - 16px); }
  .rg-spec-mode{ font-size:8px;padding:1px 6px; }
  .rg-mq-on{ animation-duration:11s; }
}

/* ============================================================
   v7.2 — Plak (vinyl) kapak + kompakt kayan şarkı satırı
   ============================================================ */
.rg-cover.rg-vinyl::before{
  content:'';position:absolute;inset:0;border-radius:50%;z-index:2;pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, #05080f 0 3px, rgba(226,232,240,.9) 3px 4.5px, transparent 5px),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,.28) 0 1px, transparent 1px 4px);
}
.rg-cover.rg-vinyl::after{ z-index:3; }
.rg-cover.rg-vinyl img{ position:relative;z-index:1; }

/* Şarkı satırı: kısaltıldı — uzun olursa kayan yazı devreye girer */
.rg-meta{ align-items:flex-start; }
.rg-track-row{
  width:min(400px,100%);
  flex:0 0 auto;
}
@media (max-width:1200px){
  .rg-track-row{ width:100%; }
}
