/* ===== Radiostatus-Widget (nutzt currentColor, passt sich dem Theme an) ===== */
.radio-widget {
    --radio-accent: #2563eb;
    --radio-on: #22c55e;
    --radio-off: #ef4444;
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: .7rem .8rem;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
    background: rgba(128, 128, 128, .10);
    border: 1px solid rgba(128, 128, 128, .35);
    border-radius: 10px;
}
.radio-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.radio-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-led { width: 10px; height: 10px; border-radius: 50%; background: #888; flex: none; }
.radio-widget.is-online .radio-led  { background: var(--radio-on);  box-shadow: 0 0 8px var(--radio-on); }
.radio-widget.is-offline .radio-led { background: var(--radio-off); box-shadow: 0 0 6px var(--radio-off); }
.radio-state { font-size: 11px; font-weight: bold; letter-spacing: .05em; opacity: .85; }
.radio-widget.is-online .radio-state { color: var(--radio-on); }
.radio-widget.is-offline .radio-state { color: var(--radio-off); }

.radio-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-top: .25rem; }
.radio-song { overflow: hidden; white-space: nowrap; font-weight: bold; font-size: 14px; }
.radio-song-text { display: inline-block; }
.radio-song-text.is-scroll { animation: radio-marquee var(--dur, 10s) linear infinite alternate; }
.radio-song:hover .radio-song-text.is-scroll { animation-play-state: paused; }
@keyframes radio-marquee { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--shift, 0)); } }
@media (prefers-reduced-motion: reduce) { .radio-song-text.is-scroll { animation: none; } .radio-song { overflow: auto; } }

.radio-meta { display: flex; flex-wrap: wrap; gap: .1rem .8rem; margin-top: .35rem; font-size: 12px; opacity: .85; }

.radio-player { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.radio-widget .radio-play {
    flex: none; width: 38px; height: 38px; min-width: 0; padding: 0; margin: 0;
    border: 0; border-radius: 50%; line-height: 38px; text-align: center;
    font-size: 15px; color: #fff; text-shadow: none; cursor: pointer;
    background: var(--radio-accent) none;
}
.radio-widget .radio-play:hover:not(:disabled) { filter: brightness(1.15); background-image: none; color: #fff; }
.radio-widget .radio-play:disabled { opacity: .4; cursor: not-allowed; }
.radio-widget .radio-vol { flex: 1; min-width: 60px; width: auto; max-width: 120px; margin: 0; padding: 0; accent-color: var(--radio-accent); background: none; border: 0; }
.radio-ext { font-size: 11px; opacity: .8; }
.radio-note { flex-basis: 100%; font-size: 11px; opacity: .8; }

.radio-history { margin: .25rem 0 0; padding: 0; list-style: none; font-size: 12px; opacity: .85; }
.radio-history li { padding: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-history time { opacity: .6; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.radio-hist-wrap { margin-top: .5rem; }

/* Breite Variante (Mitte): Titel groß, Player + Infos nebeneinander */
.radio-widget.is-wide { padding: .9rem 1.1rem; font-size: 14px; }
.radio-widget.is-wide .radio-song { font-size: 18px; }
.radio-widget.is-wide .radio-player { margin-top: .75rem; }
.radio-widget.is-wide .radio-vol { max-width: 160px; }
.radio-widget.is-wide .radio-history { columns: 2; column-gap: 1.5rem; }
@media (max-width: 600px) { .radio-widget.is-wide .radio-history { columns: 1; } }

/* DJ-Anzeige */
.radio-dj { display: flex; align-items: center; gap: .65rem; margin: .2rem 0 .5rem; }
.radio-dj[hidden] { display: none; }
.radio-dj-img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(128, 128, 128, .5); background: #444; }
.radio-dj-name { font-weight: bold; font-size: 14px; }
.radio-dj.is-live .radio-dj-img { border-color: var(--radio-on); box-shadow: 0 0 8px var(--radio-on); }
.radio-widget.is-wide .radio-dj-img { width: 76px; height: 76px; }
.radio-widget.is-wide .radio-dj-name { font-size: 17px; }
