/* sites/webmorda/radio.css — ярлык радио в шапке, панель плеера, окно заказа */

.radio-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--sunken); color: var(--ink);
  font: inherit; font-size: 13px; cursor: pointer; max-width: 240px;
  transition: background .15s ease, border-color .15s ease;
}
.radio-pill:hover { background: var(--hover); border-color: var(--line-strong); }
.radio-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.radio-eye { font-size: 13px; line-height: 1; opacity: .9; }
.radio-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; width: 14px; }
.radio-eq i { width: 3px; background: var(--acc); border-radius: 1px; height: 4px; opacity: .55; }
.radio-pill[data-state="on"] .radio-eq i { animation: radio-eq 1.1s ease-in-out infinite; opacity: 1; }
.radio-pill[data-state="on"] .radio-eq i:nth-child(2) { animation-delay: .18s; }
.radio-pill[data-state="on"] .radio-eq i:nth-child(3) { animation-delay: .36s; }
.radio-pill[data-state="off"] { color: var(--ink-faint); }
.radio-pill[data-state="off"] .radio-eq i { background: var(--ink-faint); }
@keyframes radio-eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
@media (prefers-reduced-motion: reduce) { .radio-pill .radio-eq i { animation: none !important; } }

.radio-panel {
  position: fixed; z-index: 60; top: 62px; right: 12px; width: 320px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.5); padding: 12px 14px 14px;
  color: var(--ink); font-size: 14px;
}
.radio-panel[hidden] { display: none; }
.radio-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.radio-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.radio-x {
  border: 0; background: transparent; color: var(--ink-dim); font-size: 15px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1;
}
.radio-x:hover { background: var(--hover); color: var(--ink); }
.radio-title { font-weight: 700; font-size: 17px; margin: 8px 0 2px; line-height: 1.25; }
.radio-sub { color: var(--ink-dim); font-size: 13px; min-height: 18px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.radio-author {
  border: 0; background: transparent; color: var(--link); font: inherit; font-size: 13px;
  cursor: pointer; padding: 0; text-decoration: underline dotted;
}
.radio-bar { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 12px; margin: 6px 0 10px; }
.radio-bar .grow { flex: 1; }
.radio-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-btn {
  border: 1px solid var(--line); background: var(--sunken); color: var(--ink);
  border-radius: 10px; min-height: 36px; min-width: 40px; padding: 0 10px;
  font: inherit; font-size: 14px; cursor: pointer;
}
.radio-btn:hover { background: var(--hover); }
.radio-btn.on { border-color: var(--acc); color: var(--acc); }
.radio-play { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 700; }
.radio-play:hover { filter: brightness(1.05); background: var(--acc); }
.radio-vol { flex: 1; min-width: 90px; accent-color: var(--acc); }
.radio-next { color: var(--ink-dim); font-size: 12px; margin: 10px 0 8px; min-height: 16px; }
.radio-queue { color: var(--ink-faint); font-size: 12px; margin: 0 0 8px; min-height: 16px; }
.radio-btn.off { opacity: .45; }
.radio-modal-queue { color: var(--ink-dim); }
.radio-order {
  width: 100%; min-height: 40px; border: 0; border-radius: 10px;
  background: var(--acc); color: var(--acc-ink); font: inherit; font-weight: 700;
  cursor: pointer;
}
.radio-order:hover { filter: brightness(1.05); }
.radio-note { margin-top: 8px; font-size: 12px; color: var(--ink-dim); }

.radio-modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 16px;
}
.radio-modal[hidden] { display: none; }
.radio-modal-card {
  width: min(420px, 100%); background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.radio-modal-hint { color: var(--ink-dim); font-size: 13px; margin: 8px 0 10px; line-height: 1.4; }
.radio-modal-text {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 78px;
  background: var(--sunken); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; font: inherit; font-size: 14px;
}
.radio-modal-text:focus { outline: none; border-color: var(--line-strong); }
.radio-modal-row { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 12px; margin: 8px 0 10px; }
.radio-modal-row .grow { flex: 1; }

@media (max-width: 700px) {
  .radio-pill-name { max-width: 116px; }
  .radio-panel {
    top: auto; right: 8px; left: 8px; bottom: 8px; width: auto;
    border-radius: 16px; padding: 14px 14px 18px;
  }
}
@media (max-width: 380px) { .radio-pill-name { max-width: 84px; } }
