/* foyer — coque : conteneurs d'écran, ruban du haut, adaptation téléphone / PC. */
#app { position: fixed; inset: 0; overflow: hidden; background: var(--nuit); }
#screens { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; padding: var(--safe-y) var(--safe-x) 0; }
.screen--under { visibility: hidden; }
#layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
#layer > * { pointer-events: auto; }

/* Ruban : Maintenant · Guide · Enregistrés · Ma playlist · Recherche · horloge · profil */
.ribbon { height: 36px; display: flex; align-items: center; gap: 28px; flex: none; position: relative; z-index: 2; }
.ribbon-nav { display: flex; gap: 6px; flex: 1; min-width: 0; }
.tab { height: 32px; padding: 0 14px; border-radius: var(--r-galet-s) var(--r-galet-s) var(--r-galet-s) var(--r-galet-s); border-radius: 10px 3px 10px 3px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--brume); white-space: nowrap; }
.tab[aria-current="page"] { color: var(--craie); }
.tab i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tab .tab-ic { display: none; }
html[data-input="key"] .tab.is-focus { background: var(--lumen); color: var(--nuit); }
.ribbon-clock { font-family: var(--f-titre); font-size: 15px; font-weight: 500; color: var(--brume); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-titre); font-size: 13px; font-weight: 700; color: var(--nuit); flex: none; text-align: center; }

/* Téléphone : ruban en barre d'onglets en bas, cibles ≥ 44 px, défilement vertical natif. */
html[data-device="phone"] { --safe-x: 16px; --safe-y: 12px; }
html[data-device="phone"] .screen { overflow-y: auto; padding-bottom: 76px; }
html[data-device="phone"] .ribbon { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; padding: 0 8px; gap: 0; background: var(--ardoise); border-top: 1px solid var(--trait); z-index: 20; }
html[data-device="phone"] .ribbon-nav { justify-content: space-around; gap: 0; }
html[data-device="phone"] .tab { flex-direction: column; justify-content: center; height: 56px; min-width: 56px; padding: 0 6px; font-size: 11px; gap: 2px; }
html[data-device="phone"] .tab .tab-ic { display: block; }
html[data-device="phone"] .tab i, html[data-device="phone"] .ribbon-clock { display: none; }
html[data-device="phone"] .ribbon .avatar { display: none; }

/* PC : même disposition que la télé, marges plus larges. */
html[data-device="pc"] { --safe-x: 64px; --safe-y: 28px; }
html[data-device="pc"] body { font-size: 15px; }
