/* ============================================================
   RoomChat — Radyo alanı stilleri
   ============================================================ */

/* ---- sol panel: radyo kutusu ---- */
.radioBox {
  flex: 0 0 auto;
  padding: 0 10px 12px;
}

/* yetkisi olmayan kullanıcıya kilit notu */
.radioLocked {
  display: block;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--line);
  font-size: 11px;
  line-height: 1.45;
  color: var(--txt-mute);
  text-align: center;
}

.badge.on-air {
  background: rgba(255,59,92,.15);
  border-color: rgba(255,59,92,.45);
  color: #ff8095;
}

/* çekirdek kanal uyarısı */
.coreNote {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(79,140,255,.08);
  border: 1px solid rgba(79,140,255,.28);
  font-size: 10.5px;
  line-height: 1.45;
  color: #9dc0ff;
  text-align: center;
}

/* çalar şeridi çekirdek moddayken */
.radioBar.core {
  background: linear-gradient(120deg, rgba(37,194,214,.14), rgba(79,140,255,.12) 70%, #141a26);
  border-color: rgba(37,194,214,.42);
}
.radioBar.core .radioBar-disc {
  background: linear-gradient(135deg, #25c2d6, var(--accent));
  box-shadow: 0 0 0 4px rgba(37,194,214,.14);
}

.radioHint {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--txt-mute);
}
.radioHint b { color: var(--txt-dim); }

.radioStart {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 5px 16px rgba(79,140,255,.34);
  transition: filter .15s, transform .1s;
}
.radioStart:hover { filter: brightness(1.12); }
.radioStart:active { transform: scale(.98); }
.radioStart.dj {
  background: linear-gradient(135deg, rgba(47,208,122,.22), rgba(37,194,214,.18));
  border: 1px solid rgba(47,208,122,.5);
  color: #7ee8b0;
  box-shadow: none;
  margin-top: 8px;
}
.radioStart.ghost {
  margin-top: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt-dim);
  box-shadow: none;
}

.radioMini {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border-radius: var(--r-sm);
  background: rgba(79,140,255,.08);
  border: 1px solid rgba(79,140,255,.28);
}
.radioMini-disc {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.radioMini-disc.spin { animation: discSpin 3.4s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }

.radioMini-meta { flex: 1 1 auto; min-width: 0; }
.radioMini-title {
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radioMini-sub {
  font-size: 10.5px; color: var(--txt-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radioMini-time {
  font-size: 10.5px; font-weight: 700;
  color: var(--txt-dim);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.radioMini-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--txt-mute);
}
.radioMini-dj b { color: #9dc0ff; }
.radioMini-listeners { flex: 0 0 auto; }

/* ============================================================
   Üstteki radyo çalar şeridi
   ============================================================ */
.radioBar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 11px;
  margin: 0 14px;
  padding: 9px 13px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(79,140,255,.14), rgba(37,194,214,.1) 70%, #141a26);
  border: 1px solid rgba(79,140,255,.38);
  animation: radioIn .3s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes radioIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.radioBar.hidden { display: none !important; }

.radioBar-disc {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(79,140,255,.14);
}
.radioBar-disc.spin { animation: discSpin 3.4s linear infinite; }

.radioBar-meta { flex: 1 1 auto; min-width: 0; }
.radioBar-title {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radioBar-sub { font-size: 11px; color: var(--txt-mute); }

/* ekolayzer */
.radioEq { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: 0 0 auto; }
.radioEq i {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #7ee8e0, var(--accent));
  animation: eqBounce .9s ease-in-out infinite;
}
.radioEq i:nth-child(1) { height: 7px;  animation-delay: 0s; }
.radioEq i:nth-child(2) { height: 15px; animation-delay: .12s; }
.radioEq i:nth-child(3) { height: 20px; animation-delay: .24s; }
.radioEq i:nth-child(4) { height: 12px; animation-delay: .36s; }
.radioEq i:nth-child(5) { height: 8px;  animation-delay: .48s; }
@keyframes eqBounce {
  0%,100% { transform: scaleY(.35); }
  50%     { transform: scaleY(1); }
}
.radioEq.paused i { animation-play-state: paused; opacity: .35; }

.radioBar-time {
  font-size: 11.5px; font-weight: 700;
  color: var(--txt-dim);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.radioBar-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: background .15s;
}
.radioBar-btn:hover { background: var(--bg-4); }

.radioBar-vol {
  width: 76px;
  accent-color: var(--accent);
  flex: 0 0 auto;
  cursor: pointer;
}

/* ============================================================
   DJ paneli
   ============================================================ */
.radioDjOverlay {
  position: absolute; inset: 0;
  background: rgba(5,7,12,.66);
  backdrop-filter: blur(3px);
  z-index: 93;
  animation: fadeIn .18s ease;
}

.radioDjPanel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(700px, calc(100% - 32px));
  height: min(600px, calc(100% - 56px));
  background: linear-gradient(180deg, var(--bg-2), #0f1420);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 94;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.radioDjPanel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.djHead {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.djHead-ico { font-size: 20px; }
.djHead-meta { flex: 1 1 auto; min-width: 0; }
.djHead-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.djHead-sub { font-size: 11.5px; color: var(--txt-mute); }

/* şimdi çalıyor */
.djNow {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 13px;
  margin: 14px 16px 12px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(79,140,255,.16), rgba(123,92,255,.12));
  border: 1px solid rgba(79,140,255,.4);
}
.djNow-disc {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(79,140,255,.14);
  flex: 0 0 auto;
  animation: discSpin 3.4s linear infinite;
}
.djNow-meta { flex: 1 1 auto; min-width: 0; }
.djNow-track {
  font-size: 16px; font-weight: 800; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.djNow-artist { font-size: 12px; color: var(--txt-dim); }
.djNow-stats {
  display: flex; flex-direction: column; gap: 3px;
  align-items: flex-end;
  font-size: 11px; color: var(--txt-mute);
  flex: 0 0 auto;
}
.djNow-stats b { color: #9dc0ff; font-size: 13px; }

/* DJ kontrolleri */
.djControls {
  flex: 0 0 auto;
  display: flex; gap: 8px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.djBtn {
  flex: 1 1 auto;
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--txt-dim);
  transition: all .15s;
  white-space: nowrap;
}
.djBtn:hover { background: var(--bg-4); color: var(--txt); }
.djBtn.active {
  background: rgba(47,208,122,.12);
  border-color: rgba(47,208,122,.44);
  color: #7ee8b0;
}
.djBtn.danger {
  background: rgba(255,59,92,.12);
  border-color: rgba(255,59,92,.4);
  color: #ff8095;
}
.djBtn.danger:hover { background: rgba(255,59,92,.24); color: #fff; }

/* çalma listesi */
.djListHead {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 8px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--txt-mute);
}
.djListWrap {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 12px 14px;
  min-height: 0;
  scrollbar-width: thin;
}
.djListWrap::-webkit-scrollbar { width: 7px; }
.djListWrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.radioPlaylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.radioTrack {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .13s, border-color .13s;
}
.radioTrack:hover { background: var(--bg-4); }
.radioTrack.playing {
  background: rgba(79,140,255,.14);
  border-color: rgba(79,140,255,.44);
}
.radioTrack-no {
  width: 22px;
  font-size: 11px; font-weight: 700;
  color: var(--txt-mute);
  flex: 0 0 auto;
  text-align: center;
}
.radioTrack.playing .radioTrack-no { color: #9dc0ff; }
.radioTrack-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.radioTrack-t {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radioTrack-a { font-size: 10.5px; color: var(--txt-mute); }
.radioTrack-len {
  font-size: 10.5px; color: var(--txt-mute);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .radioBar { margin: 0 10px; gap: 8px; padding: 8px 10px; }
  .radioBar-title { font-size: 12.5px; }
  .radioBar-vol { width: 56px; }
  .radioEq { display: none; }
}

@media (max-width: 620px) {
  .radioBar { flex-wrap: wrap; }
  .radioBar-vol { width: 100%; order: 9; }
  .radioDjPanel { width: 100%; height: 100%; border-radius: 0; top: 0; left: 0; transform: none; }
  .radioDjPanel.open { transform: none; }
  .djControls { gap: 6px; }
  .djBtn { min-width: 76px; font-size: 11.5px; padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .radioMini-disc.spin, .radioBar-disc.spin, .djNow-disc, .radioEq i { animation: none; }
}
