/* ─── Radio — immersive player (1:1 with Android radio.dart) ─── */
#radio-page { background: #000; --r-orange: var(--brand-color); --r-fav: var(--brand-star); --r-blue: var(--brand-accent); }
.radio-bg-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
#radio-page > *:not(.radio-bg-img) { position: absolute; z-index: 1; }
.hidden { display: none !important; }

/* Clock + date (top-right) — matches the main (home) page exactly:
   date above time, same sizes/weights/colors. */
.radio-clock { top: var(--tv-safe-y); right: var(--tv-safe-x); text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,0.9); }
.radio-clock-date { font-size: 27px; font-weight: 400; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.radio-clock-time { font-family: var(--font-brand); font-size: 52px; font-weight: 600; color: #fff; line-height: 1.1; }

/* Now-playing mini chip (top-left) */
.radio-nowchip {
    top: var(--tv-safe-y); left: var(--tv-safe-x); display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-radius: 5px;
    background: linear-gradient(to right, #000, rgba(0,0,0,0.38));
}

.rnc-text .rnc-name { color: #fff; font-size: 24px; font-weight: 600; }
.rnc-text .rnc-cat  { color: rgba(255,255,255,0.7); font-size: 16px; margin-top: 2px; }

/* Audio visualizer bars */
.rviz { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.rviz span { width: 4px; height: 30%; background: #fff; border-radius: 2px; }
.rviz.sm { height: 14px; gap: 2px; }
.rviz.sm span { background: var(--success); }
.rviz.on span { animation: rviz-bounce 0.9s ease-in-out infinite; }
.rviz.on span:nth-child(2) { animation-delay: 0.15s; }
.rviz.on span:nth-child(3) { animation-delay: 0.30s; }
.rviz.on span:nth-child(4) { animation-delay: 0.45s; }
@keyframes rviz-bounce { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* Weather box (right, centered) */
.radio-weather {
    right: var(--tv-safe-x); top: 50%; transform: translateY(-50%);
    width: 360px; padding: 24px;
    background: rgba(0,0,0,0.50); border-radius: 15px;
    text-align: center; color: #fff;
}
/* Weather typography matches the main (home) page (city 24/600, icon 64,
   temp 40/300, feels 14 @0.55) — only the placement/box differs. */
.radio-weather .rw-city { font-size: 24px; font-weight: 600; letter-spacing: 0.4px; }
.radio-weather .rw-icon { width: 64px; height: 64px; object-fit: contain; }
.radio-weather .rw-temp { font-size: 40px; font-weight: 300; line-height: 1; }
.radio-weather .rw-feels { font-size: 14px; color: rgba(255,255,255,0.55); }

/* Info bar (bottom) */
.radio-infobar {
    left: var(--tv-safe-x); right: var(--tv-safe-x); bottom: var(--tv-safe-y); min-height: 120px;
    display: flex; align-items: center; gap: 16px;
    padding: 14px 22px; border-radius: 6px;
    background: linear-gradient(to right, #000, rgba(0,0,0,0.38));
}
.rib-logo { width: 84px; height: 84px; flex-shrink: 0; background: var(--bg-medium); border-radius: 10px; overflow: hidden; }
.rib-logo img { width: 100%; height: 100%; object-fit: contain; }
.rib-info { flex: 1; min-width: 0; }
.rib-title { display: flex; align-items: center; gap: 8px; }
.rib-name { color: #fff; font-size: 34px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rib-cat { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rib-cat-logo { width: 26px; height: 26px; object-fit: contain; }
.rib-cat span { color: rgba(255,255,255,0.7); font-size: 22px; }
.rib-fav {
    flex-shrink: 0; display: flex; align-items: center; gap: 8px;
    min-height: var(--tv-target-min); padding: 0 var(--tv-btn-pad-x); border: 1px solid #fff; border-radius: 4px;
    color: #fff; font-size: 26px; cursor: pointer;
}
.rib-fav.on { border-color: var(--r-fav); color: var(--r-fav); }
.rib-fav.focused { background: var(--brand-color); color: var(--brand-navy); border-color: var(--brand-color); }
.rib-fav.on.focused { background: var(--brand-color); color: var(--brand-navy); border-color: var(--brand-color); }
.rib-fav-lbl { font-size: 22px; font-weight: 500; }

/* List overlay (left half) */
.radio-list { top: 0; right: 0; bottom: 0; left: 0; }
.radio-list-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: 50%;
    display: flex; background: linear-gradient(to right, #000, rgba(0,0,0,0.38));
}
.radio-list-dismiss { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; }
.radio-cat-col, .radio-st-col { flex: 1; overflow-y: auto; padding: 8px 0; }
.radio-cat-col { border-right: 1px solid #252525; }
.radio-cat-col::-webkit-scrollbar, .radio-st-col::-webkit-scrollbar { width: 0; height: 0; }
.radio-cat-col, .radio-st-col { scrollbar-width: none; }

/* Category rows */
.rcat {
    height: var(--tv-target-md); display: flex; align-items: center; gap: 10px; padding: 0 14px;
    border-left: 3px solid transparent; border-bottom: 0.5px solid #252525; cursor: pointer;
}
.rcat-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.rcat-logo { width: 32px; height: 32px; object-fit: contain; }
.rcat-star { color: rgba(255,255,255,0.54); font-size: 26px; }
.rcat-name { flex: 1; color: rgba(255,255,255,0.6); font-size: 24px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcat.current .rcat-name { color: #fff; font-weight: 600; }
.rcat.current { border-left-color: var(--r-orange); }
.rcat.empty .rcat-name { color: rgba(255,255,255,0.24); }
/* Full-width list rows have their own focus indicator — cancel the GLOBAL
   .focused scale + box-shadow so the row doesn't zoom past the panel edge. */
.rcat.focused { background: var(--brand-focus-soft); border-left-color: var(--r-orange); border-left-width: var(--tv-focus-border); transform: none !important; box-shadow: none !important; z-index: auto; }
.rcat.focused .rcat-name { color: var(--r-orange); font-weight: 600; }
.rcat.focused .rcat-star { color: var(--r-orange); }
.rcat.fav.focused { background: rgba(255,255,0,0.15); border-left-color: var(--r-fav); }
.rcat.fav.focused .rcat-name, .rcat.fav.current .rcat-name { color: var(--r-fav); }
.rcat.fav.current { border-left-color: var(--r-fav); }

/* Station rows */
.rst {
    height: var(--tv-target-md); display: flex; align-items: center; gap: 14px; padding: 10px 14px;
    border-left: 4px solid transparent; border-bottom: 0.5px solid #252525; cursor: pointer;
}
.rst-logo { width: 56px; height: 56px; flex-shrink: 0; background: var(--bg-medium); border-radius: 8px; overflow: hidden; }
.rst-logo img { width: 100%; height: 100%; object-fit: contain; }
.rst-name { flex: 1; color: #fff; font-size: 26px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rst-play { color: var(--r-blue); font-size: 22px; margin-right: 4px; }
.rst-fav { color: var(--r-fav); font-size: 22px; }
.rst.playing { border-left-color: var(--r-blue); }
.rst.focused { background: var(--brand-color); border-left-color: var(--brand-color); transform: none !important; box-shadow: none !important; z-index: auto; }
.rst.focused .rst-logo { background: #d0d0d0; }
.rst.focused .rst-name { color: var(--bg-dark); }
.rst.focused .rst-play { color: #555; }
.rst.focused .rst-fav { color: #c9a200; }

/* Chrome 79 flex-gap fallback. */
html.no-flex-gap .radio-nowchip > * + * { margin-left: 12px; }
html.no-flex-gap .rviz > * + * { margin-left: 3px; }
html.no-flex-gap .rviz.sm > * + * { margin-left: 2px; }
html.no-flex-gap .radio-infobar > * + * { margin-left: 16px; }
html.no-flex-gap .rib-title > * + * { margin-left: 8px; }
html.no-flex-gap .rib-cat > * + * { margin-left: 8px; }
html.no-flex-gap .rib-fav > * + * { margin-left: 8px; }
html.no-flex-gap .rcat > * + * { margin-left: 10px; }
html.no-flex-gap .rst > * + * { margin-left: 14px; }
