/* RADIO NIKA - stiluri (toate sub .rn ca sa nu afecteze restul aplicatiei) */
.rn {
  --rn-bg: #faf7f2; --rn-card: #ffffff; --rn-ink: #1f1a17; --rn-mute: #6f655d; --rn-line: #e7dfd4;
  --rn-acc: #8a1c2b; --rn-gold: #b8892e; --rn-gc: #8a1c2b; --rn-rc: #1f4e8a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--rn-ink); background: var(--rn-bg); max-width: 720px; margin: 0 auto; padding: 16px; box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  .rn { --rn-bg: #15120f; --rn-card: #1f1b17; --rn-ink: #f1ebe3; --rn-mute: #a99d91; --rn-line: #342d27; --rn-acc: #d9536a; --rn-gc: #d9536a; --rn-rc: #6aa0e0; }
}
.rn *, .rn *::before, .rn *::after { box-sizing: border-box; }
.rn [hidden] { display: none !important; }
.rn button, .rn input, .rn select { font: inherit; color: inherit; }
.rn button { cursor: pointer; border: 1px solid var(--rn-line); background: var(--rn-card); border-radius: 999px; padding: 6px 12px; }
.rn button.on, .rn .rn-primary { background: var(--rn-acc); border-color: var(--rn-acc); color: #fff; }
.rn input, .rn select { border: 1px solid var(--rn-line); background: var(--rn-card); border-radius: 10px; padding: 8px 10px; min-width: 0; }

.rn-head { margin-bottom: 12px; }
.rn-logo { font-size: 1.5rem; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.rn-logo b { color: var(--rn-acc); }
.rn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rn-acc); box-shadow: 0 0 0 0 var(--rn-acc); animation: rn-pulse 2s infinite; }
@keyframes rn-pulse { 0% { box-shadow: 0 0 0 0 rgba(138,28,43,.5); } 70% { box-shadow: 0 0 0 10px rgba(138,28,43,0); } 100% { box-shadow: 0 0 0 0 rgba(138,28,43,0); } }
.rn-sub { color: var(--rn-mute); font-size: .9rem; }

.rn-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.rn-count:not(:empty) { background: var(--rn-gold); color: #fff; border-radius: 999px; padding: 0 6px; font-size: .75rem; margin-left: 4px; }

.rn-now { display: flex; gap: 16px; background: var(--rn-card); border: 1px solid var(--rn-line); border-radius: 18px; padding: 14px; align-items: center; }
/* YouTube cere ca playerul sa fie vizibil, minim 200x200 */
.rn-video { width: 200px; height: 200px; flex: 0 0 200px; border-radius: 12px; overflow: hidden; background: #000; }
.rn-video iframe, .rn-yt { width: 100%; height: 100%; display: block; }
.rn-meta { flex: 1; min-width: 0; }
.rn-badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rn-badge.GC { color: var(--rn-gc); } .rn-badge.RC { color: var(--rn-rc); }
.rn-title { font-size: 1.1rem; margin: 4px 0 2px; line-height: 1.3; overflow-wrap: anywhere; }
.rn-speaker { color: var(--rn-mute); font-size: .9rem; }
.rn-bar { height: 6px; background: var(--rn-line); border-radius: 3px; margin: 14px 0 4px; cursor: pointer; overflow: hidden; }
.rn-fill { height: 100%; width: 0; background: var(--rn-acc); transition: width .4s linear; }
.rn-times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--rn-mute); font-variant-numeric: tabular-nums; }
.rn-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rn-ctrl button, .rn-yt-link { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: inherit; border: 1px solid var(--rn-line); }
.rn-ctrl .rn-big { width: 54px; height: 54px; font-size: 1.3rem; background: var(--rn-acc); color: #fff; border-color: var(--rn-acc); }

.rn-review { margin-top: 10px; background: var(--rn-card); border: 1px dashed var(--rn-gold); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.rn-rv-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rn-rv-row label { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 160px; }
.rn-rv-row label input { flex: 1; }
.rn-rv-now { font-variant-numeric: tabular-nums; min-width: 4em; }

.rn-filters { display: flex; gap: 6px; margin: 14px 0 8px; flex-wrap: wrap; }
.rn-list, .rn-rlist, .rn-clist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.rn-list li, .rn-rlist li, .rn-clist li { display: flex; align-items: center; gap: 10px; background: var(--rn-card); border: 1px solid var(--rn-line); border-radius: 12px; padding: 10px 12px; }
.rn-list li { cursor: pointer; }
.rn-list li.on { border-color: var(--rn-acc); box-shadow: inset 3px 0 0 var(--rn-acc); }
.rn-li-badge { font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: #fff; background: var(--rn-mute); }
.rn-li-badge.GC { background: var(--rn-gc); } .rn-li-badge.RC { background: var(--rn-rc); }
.rn-li-main { flex: 1; min-width: 0; display: grid; }
.rn-li-main b { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-li-main small { color: var(--rn-mute); overflow-wrap: anywhere; }
.rn-li-len { font-size: .8rem; color: var(--rn-mute); font-variant-numeric: tabular-nums; }
.rn-empty { justify-content: center; color: var(--rn-mute); }
.rn-add, .rn-addch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rn-add input, .rn-addch input { flex: 1 1 200px; }
.rn-wide { width: 100%; }
.rn-msg { color: var(--rn-mute); font-size: .85rem; min-height: 1.2em; }

@media (max-width: 520px) {
  .rn-now { flex-direction: column; align-items: stretch; }
  .rn-video { width: 100%; height: auto; aspect-ratio: 16/9; flex-basis: auto; min-height: 200px; }
  .rn-ctrl { justify-content: space-between; }
}

/* --- emisie live --- */
.rn-onair { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--rn-mute); }
.rn.rn-live .rn-onair { color: #e0263e; }
.rn-hint { font-size: .85rem; color: var(--rn-mute); flex: 1; }
.rn-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rn-mute); margin: 14px 0 0; }
.rn-li-time { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 600; min-width: 3.2em; color: var(--rn-mute); }
.rn-list li { cursor: default; }
.rn-list li.on .rn-li-time { color: var(--rn-acc); }
/* banda de jos: ce predica e acum si ce urmeaza */
.rn-ticker { position: sticky; bottom: 0; margin: 12px -16px -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--rn-card); border-top: 1px solid var(--rn-line); display: grid; gap: 4px; font-size: .88rem; z-index: 5; }
.rn-ticker > div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.rn-tk-lbl { flex: 0 0 auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--rn-line); }
.rn-tk-now .rn-tk-lbl { background: var(--rn-acc); color: #fff; }
.rn-tk-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rn-tk-next { color: var(--rn-mute); }

/* --- integrarea in aplicatia NIKA (radio-nika-app.js) --- */
#rn-overlay { position: fixed; left: 0; right: 0; top: 0; bottom: 62px; z-index: 9; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg, #fff); padding-top: env(safe-area-inset-top); }
#rn-overlay[hidden] { display: none; }
#rn-overlay .rn { --rn-bg: var(--bg, #faf7f2); --rn-card: var(--surface, #fff); --rn-ink: var(--ink, #1f1a17); --rn-mute: var(--muted, #6f655d);
  --rn-line: var(--line, #e7dfd4); --rn-acc: var(--accent, #8a1c2b); --rn-gold: var(--gold, #b8892e); font-family: var(--body, inherit); min-height: 100%; }
#rn-overlay .rn-logo { font-family: var(--display, inherit); }
.rn-mini-bar { display: none; }
/* mini-player: cand mergi pe alt tab si radioul canta, ramane doar o pastila mica (text + oprire); videoul e ascuns, sunetul continua */
#rn-overlay.rn-mini { top: auto; left: auto; right: 10px; width: auto; max-width: min(300px, calc(100vw - 20px)); height: auto; padding: 0; overflow: visible;
  border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line, #ddd); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
#rn-overlay.rn-mini .rn { padding: 0; min-height: 0; background: transparent; }
#rn-overlay.rn-mini .rn > :not(.rn-now) { display: none !important; }
#rn-overlay.rn-mini .rn-now { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
#rn-overlay.rn-mini .rn-now > :not(.rn-video) { display: none !important; }
#rn-overlay.rn-mini .rn-video { position: fixed !important; right: 0; bottom: 0; width: 2px !important; height: 2px !important; min-height: 0 !important; flex: none !important;
  aspect-ratio: auto; opacity: .01; pointer-events: none; overflow: hidden; }
#rn-overlay.rn-mini .rn-mini-bar { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; background: transparent; color: var(--ink, #111); font: 600 .78rem var(--body, system-ui); }
.rn-mini-bar .rn-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0263e; flex: 0 0 auto; }
.rn-mini-bar .rn-pill-txt { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--muted, #666); border: 0; background: none; padding: 6px 4px; font: inherit; cursor: pointer; text-align: left; }
.rn-mini-bar .rn-pill-stop { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent, #8a1c2b); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
#rn-overlay .rn-close { display: block; margin: 12px 16px 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #ddd);
  background: var(--surface, #fff); color: var(--ink, #111); font: 600 .85rem var(--body, system-ui); cursor: pointer; }
#rn-overlay.rn-mini .rn-close { display: none; }
.top-actions [data-k="radio-nika"][aria-pressed="true"] .iconbtn { border-color: var(--accent, #8a6514); color: var(--accent, #8a6514); }
.top-actions [data-k="radio-nika"] .iconbtn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rn-drl{display:block;font-size:.8rem;color:var(--rn-mute);margin:6px 0 10px}.rn-drl select{margin-left:6px}
