/* «Радио» (js/radio.js). The site's own tokens: the light and the dark theme both follow them. On a phone nothing is wider than the screen. */
.rd{min-width:0}
.rd h2,.rd h3,.rd h4{overflow-wrap:anywhere}
.rd h3{margin:0 0 10px;font-size:16px}
.rd h4{margin:12px 0 6px;font-size:14px}
.rd p{margin:0;line-height:1.45}
.rd .card+.card{margin-top:12px}
.rd-note{font-size:13px;margin-top:8px !important}
.rd-now-head{display:flex;flex-direction:column;gap:2px;min-width:0}
.rd-now-ch{font-size:12px;font-weight:600;color:var(--accent-ink);text-transform:uppercase;letter-spacing:.04em}
.rd-now-t{margin:0;font-size:20px;line-height:1.25;overflow-wrap:anywhere}
/* sliders (seek and volume): one look in WebKit and Gecko; the filled part is --p (js/radio.js rdRangeFill), the thumb is big enough for a finger */
.rd-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:28px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}
.rd-range:disabled{cursor:default;opacity:.55}
.rd-range::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--accent) 0 var(--p,0%),var(--surface-2) var(--p,0%) 100%);border:1px solid var(--border)}
.rd-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-9px;border-radius:50%;background:var(--card);border:2px solid var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.rd-range::-moz-range-track{height:6px;border-radius:3px;background:var(--surface-2);border:1px solid var(--border)}
.rd-range::-moz-range-progress{height:6px;border-radius:3px;background:var(--accent)}
.rd-range::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--card);border:2px solid var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.rd-range:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.rd-seek{margin-top:10px}
.rd-time{display:flex;justify-content:space-between;font-size:12px;font-variant-numeric:tabular-nums;min-height:16px}
.rd-vol-hint{font-size:13px;flex:1 1 220px;margin:0}
.rd-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:10px}
.rd-ctl .btn{min-height:44px;min-width:120px}
.rd-vol{display:flex;align-items:center;gap:8px;min-height:44px;flex:1 1 200px;max-width:320px}
.rd-vol span{font-size:13px;color:var(--muted)}
.rd-vol input{flex:1;min-width:0}
.rd-status{margin-top:10px !important;min-height:20px;font-size:14px}
.rd-status.warn{color:var(--warn-ink);background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:10px;padding:8px 10px}
.rd-status.empty{color:var(--muted)}
.rd-chans{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.rd-chan{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-height:44px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer}
.rd-chan.on{border-color:var(--accent);background:var(--accent-soft)}
.rd-chan b{font-size:15px}
.rd-chan-d{font-size:13px;color:var(--muted);line-height:1.35}
.rd-chan-n{font-size:12px;font-weight:600;color:var(--muted)}
.rd-point{margin-top:12px;max-width:420px}
.rd-point select{width:100%}
/* ---------- the bar of a phone: fixed at the bottom above the menu, its height reserved in the layout (--rd-mini-h, js/radio.js rdMiniSpace) ---------- */
.rd-mini{position:fixed;left:max(8px,var(--sal,0px));right:max(8px,var(--sar,0px));bottom:calc(var(--bn-h,0px) + var(--pwa-h,0px) + 4px);z-index:40;display:flex;align-items:center;gap:2px;
  padding:3px;border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:0 2px 10px rgba(0,0,0,.16)}
.rd-mini button{min-height:44px;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer;flex:none}
.rd-mini-play{min-width:44px;border-radius:50% !important;background:var(--accent-soft) !important;color:var(--accent-ink) !important;font-size:14px}
.rd-mini-t{flex:1 1 auto !important;min-width:0;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.rd-mini-btn{min-width:44px;border-radius:10px;font-size:15px;color:var(--muted) !important}
.rd-mini.rd-mini-min{left:auto;gap:0;padding:2px;border-radius:999px}
.rd-mini.rd-mini-min .rd-mini-play,.rd-mini.rd-mini-min .rd-mini-btn{min-height:36px;min-width:36px}
.rd-mini.rd-mini-min .rd-mini-t{min-height:36px;flex:none !important;padding:0 6px;font-size:13px}
.rd-mini.rd-mini-min #rdMiniNext{display:none}
/* the room: the end of a page and the bars that stick to the bottom stay above the player */
main#app::after{height:calc(var(--pwa-h,0px) + var(--rd-mini-h,0px))}
body.rd-mini-on .ef-bar{bottom:calc(var(--bn-h,0px) + var(--pwa-h,0px) + var(--rd-mini-h,0px))}
/* an open chat of a phone is a screen of its own (it hides the menu): the bar stands at the very bottom and the chat — with its message field — above it */
body.chat-dialog .rd-mini{bottom:calc(var(--sab,0px) + 4px)}
body.chat-dialog.rd-mini-on .ch-wrap.ch-open{height:calc(var(--vvh,100dvh) - var(--rd-mini-h,0px) - var(--sab,0px));max-height:calc(100dvh - var(--rd-mini-h,0px) - var(--sab,0px))}
body.chat-dialog.rd-mini-on:has(#standBadge) .ch-wrap.ch-open{height:calc(var(--vvh,100dvh) - var(--stand-h,0px) - var(--rd-mini-h,0px) - var(--sab,0px))}
body.chat-dialog.rd-mini-on .ch-wrap.ch-open .ch-composer{padding-bottom:8px}
/* the on-screen keyboard is REALLY up (kb-up from visualViewport, js/shell.js; a focused field alone — a computer keyboard — is not enough):
   the field and the keyboard need the room — the bar steps aside until it goes down */
body.kb-up .rd-mini{display:none}
body.kb-up{--rd-mini-h:0px}
/* ---------- a computer: the compact player of the top bar ---------- */
.rd-top{display:flex;align-items:center;gap:4px;flex:0 1 auto;min-width:0;max-width:440px;padding:2px 6px 2px 2px;border:1px solid var(--border);border-radius:999px;background:var(--card)}
.rd-top.warn{border-color:var(--warn-line)}
.rd-top-btn{min-width:36px;min-height:36px;border:0;border-radius:50%;background:transparent;color:var(--text);font:inherit;font-size:14px;cursor:pointer;flex:none}
.rd-top-play{background:var(--accent-soft);color:var(--accent-ink)}
.rd-top-btn:disabled{opacity:.45;cursor:default}
.rd-top-t{min-width:0;max-width:200px;min-height:36px;padding:0 6px;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;text-align:left}
.rd-top-t:hover{text-decoration:underline}
.rd-top-vol{width:88px;flex:none;height:24px}
@media (max-width:900px){.rd-top{display:none}}
/* the catalog */
.rd-upform,.rd-filters,.rd-form{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end}
.rd-upform .fld,.rd-filters .fld{flex:1 1 200px;min-width:0}
.rd-upform input[type=file]{max-width:100%}
.rd-upform .btn{min-height:44px}
.rd-ups{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;font-size:13px}
.rd-ups li{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 10px;border-radius:8px;background:var(--surface-2)}
.rd-ups li.ok{color:var(--ok-ink)}
.rd-ups li.bad{color:var(--warn-ink);background:var(--warn-bg)}
.rd-up-n{overflow-wrap:anywhere;min-width:0}
.rd-tracks{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.rd-track{border:1px solid var(--border);border-radius:12px;background:var(--surface-2);padding:10px 12px;min-width:0}
.rd-track-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.rd-track-t{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.rd-track-t .muted{font-size:12px}
.rd-track .btn{min-height:40px}
.rd-st-published{color:var(--ok-ink) !important;background:var(--ok-bg) !important;border-color:transparent !important}
.rd-st-withdrawn,.rd-st-draft{color:var(--muted)}
.rd-st-listened,.rd-st-rights_checked{color:var(--warn-ink) !important;background:var(--warn-bg) !important;border-color:var(--warn-line) !important}
.rd-edit{margin-top:12px;border-top:1px solid var(--border);padding-top:12px;display:grid;gap:10px;min-width:0}
.rd-form .fld{flex:1 1 220px;min-width:0}
.rd-form .fld.wide{flex-basis:100%}
.rd-form input,.rd-form select,.rd-form textarea{width:100%;box-sizing:border-box}
.rd-listen{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.rd-preview{max-width:100%}
.rd-actions{flex-wrap:wrap;gap:8px}
.rd-docs ul,.rd-log ul{margin:6px 0;padding-left:18px;font-size:13px}
.rd-docs .row{flex-wrap:wrap;gap:8px;align-items:center}
.rd-docs input[type=file]{max-width:100%}
.rd-nets{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;max-height:420px;overflow:auto}
.rd-nets li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;min-height:40px}
.rd-nets .chk{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;overflow-wrap:anywhere}
@media (max-width:640px){
  .rd-ctl .btn{flex:1 1 40%}
  .rd-vol{max-width:none;flex-basis:100%}
  .rd-chans{grid-template-columns:1fr}
}
/* the file of a record is not in the media store (the audio is not in the backups): upload the same file again */
.rd-missing{display:block;margin-top:4px;font-size:13px;font-weight:600;color:var(--warn-ink)}
.rd-filecheck{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px}
.rd-reup{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:var(--surface-2)}
.rd-reup.warn{background:var(--warn-bg);color:var(--warn-ink)}
.rd-reup input[type=file]{max-width:100%}
