/* Page d'accueil ls-radio.com : les 5 radios côte à côte. */

:root {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.16);
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: #000; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }

.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.channels li { display: flex; flex: 1 1 0; min-height: 132px; }

.ch {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 22px 18px;
  background: var(--c);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.ch-logo { width: 100%; max-width: 150px; height: auto; display: block; }

.ch-now { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }

.ch-cover {
  position: relative;
  width: 56px; aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ch-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ch-text { min-width: 0; line-height: 1.25; }
.ch-title, .ch-artist { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-title { font-weight: 600; font-size: 1.0625rem; }
.ch-artist { color: var(--ink-2); font-size: 0.9375rem; margin-top: 2px; }

.ch-cta {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ch-cta i {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--c);
  display: grid;
  place-items: center;
}

.ch-cta svg { width: 18px; height: 18px; fill: currentColor; margin-left: 3px; }

.ch.is-new .ch-text { animation: ch-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ch-in { from { opacity: 0; transform: translateX(-24px); } }

.home-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 22px max(12px, env(safe-area-inset-bottom, 0px));
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  display: none;
}

.switch-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.switch-logo { width: min(300px, 56vw); height: auto; }

/* ---------- Grand écran : 5 colonnes, celle survolée s'élargit ---------- */
@media (min-width: 900px) {
  .channels { flex-direction: row; height: 100vh; height: 100dvh; }
  .channels li { flex: 1 1 0; min-height: 0; transition: flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .channels li:hover, .channels li:focus-within { flex-grow: 1.55; }

  .ch {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
    gap: 26px;
    padding: 44px 32px 64px;
    border-right: 1px solid rgba(0, 0, 0, 0.25);
  }

  .ch-logo { max-width: min(190px, 78%); }

  .ch-now { grid-row: 3; grid-template-columns: 1fr; gap: 18px; }
  .ch-cover { width: min(100%, 300px); border-radius: 6px; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .channels li:hover .ch-cover { transform: scale(1.03); }
  .ch-title { font-size: 1.25rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .ch-cta { display: inline-flex; grid-row: 4; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s; }
  .channels li:hover .ch-cta, .channels li:focus-within .ch-cta { opacity: 1; transform: none; }

  .home-foot { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
