/* Temps réel : ondes, bandeau, bloc « En ce moment », halos. Tout est préfixé rt-. */

.rt-wave { pointer-events: none; }
.rt-ring { position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border: 2px solid var(--yellow, #FFD60A); border-radius: 50%; opacity: 0; transform: scale(.1); animation: rt-wave 3.2s ease-out forwards; }
.rt-ring:nth-child(2) { animation-delay: .55s; }
.rt-ring:nth-child(3) { animation-delay: 1.1s; }
@keyframes rt-wave { 0% { opacity: .95; transform: scale(.1); } 100% { opacity: 0; transform: scale(1.5); } }

.rt-feed { position: absolute; right: 8px; bottom: 84px; z-index: 790; display: flex; flex-direction: column; gap: 4px; width: min(380px, calc(100% - 16px)); pointer-events: none; }
.rt-line { display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 0; padding: 5px 10px; text-align: left; font: 600 12px/1.3 'Inter Tight', system-ui, sans-serif; color: var(--cream, #F6F4EE); background: rgba(14,14,14,.9); border: 1px solid rgba(255,214,10,.55); border-radius: 8px; pointer-events: auto; animation: rt-in .35s ease-out; }
button.rt-line { cursor: pointer; }
button.rt-line:hover, button.rt-line:focus-visible { background: var(--yellow, #FFD60A); color: var(--ink, #0E0E0E); border-color: var(--yellow, #FFD60A); }
.rt-time { flex: none; font-size: 11px; color: var(--yellow, #FFD60A); }
button.rt-line:hover .rt-time, button.rt-line:focus-visible .rt-time { color: var(--ink, #0E0E0E); }
.rt-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes rt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rt-halo-label { padding: 1px 6px; font: 600 10px/1.3 'JetBrains Mono', ui-monospace, monospace; color: var(--cream, #F6F4EE); background: rgba(14,14,14,.82); border: 1px dashed rgba(246,244,238,.7); border-radius: 4px; box-shadow: none; }
.rt-halo-label::before { display: none; }
.lg-rt-halo { border: 1.5px dashed var(--cream, #F6F4EE); }

.rt-now { order: 1; margin: 12px var(--gutter, 16px) 0; background: var(--panel, #171717); border: 1px solid var(--line, #2a2a2a); border-radius: 12px; }
.rt-now-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; width: 100%; padding: 9px 14px; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
.rt-now-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow, #FFD60A); }
.rt-now-sum { flex: 1 1 200px; min-width: 0; font-size: 12px; color: var(--soft, #d8d5cc); }
.rt-now-caret { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--muted, #a6a39a); }
.rt-now-detail { padding: 0 14px 12px; }
.rt-h { margin: 12px 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #a6a39a); }
.rt-none { margin: 0; font-size: 12px; color: var(--muted, #a6a39a); }
.rt-spark { display: block; width: 100%; max-width: 420px; height: 56px; }
.rt-spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rt-line-c { stroke: var(--cream, #F6F4EE); }
.rt-line-d { stroke: var(--yellow, #FFD60A); opacity: .8; }
.rt-axis { display: flex; justify-content: space-between; max-width: 420px; font-size: 10px; color: var(--muted, #a6a39a); }
.rt-key { display: flex; gap: 12px; margin-top: 4px; font-size: 10px; color: var(--muted, #a6a39a); }
.rt-key-c::before, .rt-key-d::before { content: ''; display: inline-block; width: 14px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--cream, #F6F4EE); }
.rt-key-d::before { border-top-color: var(--yellow, #FFD60A); }
.rt-bar { display: grid; grid-template-columns: 84px minmax(40px, 1fr) minmax(0, auto); align-items: center; gap: 8px; margin: 3px 0; font-size: 12px; }
.rt-bar-t { height: 8px; background: var(--line, #2a2a2a); border-radius: 4px; overflow: hidden; }
.rt-bar-f { display: block; height: 100%; background: var(--yellow, #FFD60A); border-radius: 4px; }
.rt-bar-n { font-size: 11px; color: var(--soft, #d8d5cc); white-space: nowrap; }
.rt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-pill { padding: 2px 9px; font-size: 12px; color: var(--cream, #F6F4EE); border: 1px solid var(--line, #2a2a2a); border-radius: 999px; }
.rt-pill-dir { border-style: dashed; }
.rt-fixed { margin: 12px 0 0; font-size: 12px; font-style: italic; color: var(--muted, #a6a39a); }
@media (max-width: 479px) { .rt-bar { grid-template-columns: 70px minmax(30px, 1fr); } .rt-bar-n { grid-column: 1 / -1; white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  .rt-ring, .rt-line { animation: none; }
  .rt-wave { display: none; }
}
@media (max-width: 599px) { .rt-now-sum { flex: 1 1 100%; order: 3; } .rt-now-caret { order: 2; } }

/* Notifications pop-up */
.rt-toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5000; display: flex; flex-direction: column; gap: 10px; width: min(560px, 92vw); pointer-events: none; }
.rt-toast { display: block; width: 100%; margin: 0; padding: 14px 18px 15px; text-align: left; font-family: 'Inter Tight', system-ui, sans-serif; border: 2px solid rgba(14,14,14,.85); border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.55); pointer-events: auto; animation: rt-toast-in .45s cubic-bezier(.2,.9,.3,1.2); }
button.rt-toast { cursor: pointer; }
.rt-toast-title { display: block; font-size: 17px; font-weight: 900; line-height: 1.2; letter-spacing: .01em; }
.rt-toast-text { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.rt-toast-live { background: #FFD60A; color: #0E0E0E; }
.rt-toast-player { background: #F6F4EE; color: #0E0E0E; }
.rt-toast-fix { background: #D92D20; color: #fff; border-color: #fff; }
.rt-toast-feature { background: #2563EB; color: #fff; border-color: #fff; }
.rt-toast-out { opacity: 0; transform: translateY(-14px); transition: opacity .25s, transform .25s; }
@keyframes rt-toast-in { from { opacity: 0; transform: translateY(-26px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rt-toast { animation: none; } .rt-toast-out { transition: none; } }
