/* Zerguwan Media — canlı yayın oynatıcısı */
.zp { position: fixed; left: 14px; bottom: 14px; z-index: 1100; font-family: var(--sans); }
.zp[data-nostations] { display: none; }
@media (min-width: 640px) { .zp { left: 24px; bottom: 22px; } }

.zp-launch {
  display: flex; align-items: center; gap: 12px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); padding: 8px 18px 8px 8px; border-radius: 999px;
  box-shadow: 0 12px 34px rgba(26, 22, 17, .35); transition: transform .25s, opacity .25s;
  max-width: calc(100vw - 80px);
}
.zp.is-open .zp-launch,
.zp.is-tucked .zp-launch { opacity: 0; pointer-events: none; transform: translateY(8px); visibility: hidden; }
.zp-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; flex: none; }
.zp-launch-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.2; min-width: 0; }
.zp-launch-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-launch-txt small { font-size: 11.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ekolayzır çubukları */
.zp-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; margin-left: 2px; }
.zp-eq i { width: 3px; background: var(--signal-soft); border-radius: 2px; height: 30%; }
.zp[data-state="playing"] .zp-eq { display: flex; }
.zp[data-state="playing"] .zp-eq i { animation: zp-bar 1s ease-in-out infinite; }
.zp-eq i:nth-child(2) { animation-delay: -.3s !important; }
.zp-eq i:nth-child(3) { animation-delay: -.6s !important; }
.zp-eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes zp-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.zp-panel {
  position: absolute; left: 0; bottom: 0; width: min(380px, calc(100vw - 28px));
  background: var(--ink); color: var(--paper); border-radius: 26px; padding: 18px 20px 22px;
  box-shadow: 0 24px 70px rgba(26, 22, 17, .45); border: 1px solid rgba(255, 253, 249, .08);
  animation: zp-in .25s ease;
}
@keyframes zp-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.zp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.zp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-soft); font-weight: 600; }
.zp-live i { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.zp[data-state="playing"] .zp-live i { background: #ff5a36; animation: zm-blink 1.6s ease-in-out infinite; }
.zp[data-state="loading"] .zp-live i { background: var(--gold-l); animation: zm-blink .8s ease-in-out infinite; }
.zp-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .08); color: var(--paper); cursor: pointer; display: grid; place-items: center; }

/* İstasyon sekmeleri tek satır: sığmazsa yana kayar, alta düşmez */
.zp-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.zp-tabs::-webkit-scrollbar { display: none; }
.zp-tabs button { border: 1px solid rgba(255, 253, 249, .22); background: transparent; color: var(--paper); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; white-space: nowrap; cursor: pointer; transition: all .2s; }
@media (max-width: 479px) { .zp-tabs button { padding: 6px 9px; font-size: 12px; } }
@media (max-width: 349px) { .zp-tabs button { padding: 6px 7px; font-size: 11.5px; } }
@media (max-width: 329px) { .zp-tabs { gap: 4px; } .zp-tabs button { padding: 6px 5px; } }
.zp-tabs button.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.zp-now { margin-bottom: 18px; min-height: 64px; }
.zp-lbl { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.zp-title { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zp-artist { display: block; font-size: 14px; opacity: .7; margin-top: 4px; font-style: italic; font-family: var(--serif); }

.zp-ctl { display: flex; align-items: center; gap: 12px; }
.zp-play { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; flex: none; background: var(--signal); color: #fff; display: grid; place-items: center; transition: transform .2s, background .2s; position: relative; }
.zp-play .i-pause, .zp-play .i-load { display: none; }
.zp[data-state="playing"] .zp-play .i-play { display: none; }
.zp[data-state="playing"] .zp-play .i-pause { display: block; }
.zp[data-state="loading"] .zp-play .i-play, .zp[data-state="loading"] .zp-play .i-pause { display: none; }
.zp[data-state="loading"] .zp-play .i-load { display: block; width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: zp-spin .8s linear infinite; }
@keyframes zp-spin { to { transform: rotate(360deg); } }
.zp-mute { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--paper); cursor: pointer; display: grid; place-items: center; flex: none; }
.zp-mute .i-mute { display: none; }
.zp.is-muted .zp-mute .i-vol { display: none; }
.zp.is-muted .zp-mute .i-mute { display: block; }

.zp-vol { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
.zp-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--gold-l) var(--v, 70%), rgba(255, 253, 249, .22) var(--v, 70%)); }
.zp-vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 253, 249, .22); }
.zp-vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold-l); }
.zp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); margin-top: -6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.zp-vol::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--paper); }
.zp-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(191, 58, 28, .2); color: #ffd9c9; font-size: 13px; }

@media (max-width: 420px) { .zp-title { font-size: 21px; } }

/* Hover efektleri yalnızca fareli cihazlarda: dokunmatik ekranda tıklayınca "takılı kalmaz" */
@media (hover: hover) and (pointer: fine) {
  .zp-launch:hover { transform: translateY(-2px); }
  .zp-x:hover { background: rgba(255, 253, 249, .18); }
  .zp-tabs button:hover { background: rgba(255, 253, 249, .1); }
  .zp-play:hover { background: var(--signal-d); transform: scale(1.05); }
  .zp-mute:hover { background: rgba(255, 253, 249, .1); }
}

/* İstasyon logosu: kapalı düğmede ve panelde kutuya sığar */
.zp-ic { overflow: hidden; }
.zp-ic.has-logo { background: transparent; padding: 0; }
.zp-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zp-now { display: flex; align-items: center; gap: 14px; }
.zp-now-txt { min-width: 0; flex: 1; }
.zp-logo { width: 64px; height: 64px; flex: none; border-radius: 18px; background: transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zp-logo[hidden] { display: none; }
.zp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
