/* La télécommande du poste de radio (src/radio.js) : petite carte en haut à gauche, qui laisse la salle visible */
#radio { position: fixed; z-index: 30; left: 16px; top: 16px; width: min(330px, calc(100vw - 32px)); background: rgba(23, 18, 13, 0.94); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); }
#radio[hidden] { display: none; }
#radio .rd-tete { display: flex; align-items: center; justify-content: space-between; }
#radio h2 { margin: 0; font: 600 1.25rem var(--serif); }
#radio button { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 12px; font-size: 0.82rem; }
#radio .rd-fermer { width: 30px; height: 30px; padding: 0; }
#radio .rd-etat { margin: 2px 0 0; font-size: 0.8rem; color: #ff5a3a; font-variant-numeric: tabular-nums; min-height: 1.2em; }
#radio .rd-bas { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#radio .rd-marche[aria-pressed="true"] { border-color: #6fbf5a; background: rgba(111, 191, 90, 0.14); }
#radio .rd-volume { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); }
#radio .rd-volume input { flex: 1; accent-color: var(--accent); }
@media (max-width: 600px) { #radio { top: auto; bottom: 150px; left: 8px; right: 8px; width: auto; } }
body:has(#radio:not([hidden])) #assemblage-barre { display: none; }

/* la station en cours, les dernières écoutées (logos), « Toutes les stations » */
#radio .rd-courante { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; }
#radio .rd-courante img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
#radio .rd-courante b { font-weight: 500; font-size: 1rem; }
#radio .rd-sous { margin: 6px 0 4px; font-size: 0.74rem; color: var(--muted); }
#radio .rd-sous[hidden] { display: none; }
#radio .rd-recentes { display: flex; flex-wrap: wrap; gap: 6px; }
#radio .rd-recentes button { padding: 0; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; }
#radio .rd-recentes button[aria-pressed="true"] { border-color: var(--accent); }
#radio .rd-recentes img { width: 100%; height: 100%; object-fit: cover; display: block; }
#radio .rd-toutes { width: 100%; margin-top: 10px; border-radius: 10px; padding: 9px 12px; border-color: var(--accent); }

/* la fenêtre de toutes les stations (#radio-choix), classées par type */
#radio-choix { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 6, 4, 0.6); }
#radio-choix[hidden] { display: none; }
#radio-choix .rc-carte { width: min(760px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: rgba(23, 18, 13, 0.97); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--ink); }
#radio-choix .rd-tete { display: flex; align-items: center; justify-content: space-between; }
#radio-choix h2 { margin: 0; font: 600 1.4rem var(--serif); }
#radio-choix button { font: inherit; cursor: pointer; color: var(--ink); background: transparent; border: 1px solid var(--line); }
#radio-choix .rd-fermer { width: 32px; height: 32px; border-radius: 999px; padding: 0; }
#radio-choix .rc-chercher { margin: 10px 0 8px; font: inherit; font-size: 0.9rem; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
#radio-choix .rc-types { display: flex; flex: none; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
#radio-choix .rd-tete, #radio-choix .rc-chercher { flex: none; }
#radio-choix .rc-types button { white-space: nowrap; border-radius: 999px; padding: 5px 11px; font-size: 0.78rem; color: var(--ink-soft); }
#radio-choix .rc-liste { overflow-y: auto; padding-right: 4px; }
#radio-choix section[hidden] { display: none; }
#radio-choix h3 { margin: 14px 0 8px; font: 600 1.05rem var(--serif); color: var(--accent); }
#radio-choix .rc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
#radio-choix .rc-grille button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 12px; font-size: 0.8rem; line-height: 1.2; text-align: center; }
#radio-choix .rc-grille button:hover { border-color: var(--accent); }
#radio-choix .rc-grille button[aria-pressed="true"] { background: rgba(212, 166, 87, 0.18); border-color: var(--accent); }
#radio-choix .rc-grille button[hidden] { display: none; }
#radio-choix .rc-grille img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; }
@media (max-width: 600px) { #radio-choix .rc-grille { grid-template-columns: repeat(3, 1fr); } #radio-choix .rc-grille img { width: 48px; height: 48px; } }
