/* Page d'accueil ls-radio.com, version « hero immersif » :
   la radio à la une en grand, les 8 webradios, le top des auditeurs, les derniers titres. */

:root {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --page: #0b0b0d;
  --panel: #141418;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(16px, 3.9vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

.ch-cover { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ch-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-title, .ch-artist { overflow: hidden; text-overflow: ellipsis; }

/* ---------- À la une ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, 100svh);
  padding-bottom: 160px;
  background: var(--c);
}
.hero[data-radio="lsradio"] { background: #17171c; }
/* Pochette en grand, floutée, derrière */
.ch-bg { position: absolute; inset: -60px; z-index: -2; }
.ch-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.4); opacity: 0.55; transform: scale(1.1); }
.ch-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35) 70%, var(--page)); }
.hero-disc { position: absolute; z-index: -1; right: -10vw; top: -16vw; width: 64vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.05); }
/* Texte géant qui défile derrière : l'artiste en cours, en contour, penché comme sur les players */
.hero-marquee {
  position: absolute; z-index: -1; left: -10vw; right: -10vw; top: 48%; transform: translateY(calc(-50% + var(--p, 0) * 0.35px)) rotate(-6deg);
  pointer-events: none; overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(6rem, 17vw, 15rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.09);
}
.mq { display: flex; width: max-content; animation: mq 60s linear infinite; }
.mq > span { padding-right: 0.3em; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.top { display: flex; align-items: center; gap: 36px; padding: max(18px, env(safe-area-inset-top, 0px)) var(--pad) 0; min-height: 88px; }
.top-logo img { height: 38px; width: auto; }
.top-nav { display: flex; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.top-nav a { color: var(--ink-2); transition: color 0.2s; }
.top-nav a:hover { color: var(--ink); }

.hero-in { display: flex; align-items: center; gap: clamp(32px, 5vw, 72px); padding: 48px var(--pad) 0; max-width: 1440px; }
.hero-main { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 18px; transform: translateY(calc(var(--p, 0) * 0.12px)); }

.sticker {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 10px 14px; transform: rotate(-2deg);
  font-family: var(--display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 45, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0); } }

.hero .ch-title {
  margin: 0; max-width: 100%;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 7.25rem); line-height: 0.9; letter-spacing: -0.05em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.hero .ch-title.is-fitting { display: block; -webkit-line-clamp: none; }
.hero .ch-title .w { display: inline-block; white-space: nowrap; }
.hero .ch-title .l { display: inline-block; }

/* Égaliseur, progression */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.eq i { display: block; width: 4px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(0.3);
  animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 0.8s; animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -0.9s; }
.eq i:nth-child(4) { animation-duration: 0.9s; animation-delay: -0.2s; }
.eq i:nth-child(5) { animation-duration: 1.2s; animation-delay: -0.6s; }
@keyframes eq { 0% { transform: scaleY(0.2); } 50% { transform: scaleY(0.9); } 100% { transform: scaleY(0.45); } }
body.is-analysed .dock .eq i, body.is-analysed .hero.is-live .hero-meta .eq i { animation: none; transition: transform 0.06s linear; }

.hero-meta { display: flex; align-items: center; gap: 14px; width: min(100%, 520px); margin-top: 2px; color: var(--accent, #fff); transition: color 1.2s ease; }
.hero-meta[hidden] { display: none; }
.prog { flex: 1; min-width: 60px; }
.prog-bar { display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.prog-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent, #fff);
  transition: width 1s linear, background-color 1.2s ease;
}
.prog-t { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.hero .ch-artist { margin: 0; max-width: 100%; white-space: nowrap; font-size: clamp(1.1rem, 1.9vw, 1.65rem); font-weight: 600; color: rgba(255, 255, 255, 0.86); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 16px; }
.cta-link { font-weight: 700; color: rgba(255, 255, 255, 0.85); border-bottom: 2px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.cta-link:hover { color: #fff; border-color: #fff; }
.cta {
  display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer;
  background: #fff; color: #000; border-radius: 999px; padding: 20px 40px;
  font-family: var(--display); font-weight: 900; font-size: 1.125rem; text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.cta svg { width: 18px; height: 18px; fill: currentColor; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.cta.is-playing { background: #000; color: #fff; box-shadow: 6px 6px 0 var(--accent, #fff); }

/* Likes */
.votes { display: inline-flex; gap: 10px; }
.votes[hidden] { display: none; }
.vote {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: #fff; color: #000; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 700; font-size: 1rem;
  box-shadow: 4px 4px 0 #000; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.vote:nth-child(1) { transform: rotate(-4deg); }
.vote:nth-child(2) { transform: rotate(3deg); }
.vote:hover { transform: rotate(0) translateY(-2px); }
.vote svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.vote[aria-pressed="true"] { background: #000; color: #fff; box-shadow: 4px 4px 0 #fff; }
.vote[data-vote="1"][aria-pressed="true"] svg { fill: #ff2d55; stroke: #ff2d55; }
.vote-n { font-variant-numeric: tabular-nums; min-width: 1ch; }
.vote-msg { margin: 0; min-height: 0; font-size: 0.875rem; color: #ffd2d2; }
.vote-msg:empty { display: none; }

/* Émission en cours / ensuite, « Juste après » */
.onair { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.onair[hidden] { display: none; }
.onair .oa { display: inline-flex; align-items: baseline; gap: 8px; }
.onair em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.onair b { font-weight: 700; color: #fff; }
.onair .oa > span { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.onair.is-next .oa { background: #fff; color: #000; padding: 8px 14px; transform: rotate(-1.5deg); box-shadow: 5px 5px 0 #000; }
.onair.is-next em { color: #000; }
.onair.is-next b, .onair.is-next .oa > span { color: #000; }
.offline-msg { margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); font-weight: 600; max-width: 520px; }
.offline-msg[hidden] { display: none; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }

/* Pochette : respiration, relief à la souris, reflet */
.hero-art {
  --rx: 0deg; --ry: 0deg;
  position: relative; flex: none; width: clamp(240px, 29vw, 420px); aspect-ratio: 1; border-radius: 24px;
  transform: translateY(calc(var(--p, 0) * -0.1px)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease);
}
.hero-art.is-tilting { transition: transform 0.12s linear; }
.art-box {
  position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.35); box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.5);
  display: grid; place-items: center; animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.5); } 50% { transform: scale(1.018); box-shadow: 24px 24px 0 rgba(0, 0, 0, 0.45); } }
body.is-analysed .hero.is-live .art-box { animation: none; transition: transform 0.08s linear; }
.hero-art .ch-logo { width: 60%; height: auto; position: relative; z-index: 0; }
.hero-art .ch-cover { z-index: 1; }
.glare {
  --gx: 50%; --gy: 50%;
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;
}
.hero-art.is-tilting .glare { opacity: 1; }

/* ---------- Les webradios ---------- */

main { position: relative; }
.radios { margin-top: -90px; padding: 0 var(--pad); position: relative; }
.kicker { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
/* Les cartes tombent une à une, légèrement penchées, comme des stickers */
.card-li { position: relative; container-type: inline-size; transform: rotate(var(--r)); }
body.is-ready .card-li { animation: drop 0.75s cubic-bezier(0.2, 1.5, 0.4, 1) both; animation-delay: calc(var(--i) * 75ms + 150ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-70px) rotate(calc(var(--r) * -6)); } to { opacity: 1; transform: rotate(var(--r)); } }
.card { display: grid; gap: 10px; perspective: 800px; }
.card-art {
  position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--c);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: grid; place-items: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.card[data-radio="lsradio"] .card-art { background: #1d1d22; }
.card .ch-logo { width: 66%; height: auto; position: relative; z-index: 2; transition: opacity 0.4s, transform 0.4s var(--ease); }
.card .ch-cover { z-index: 1; transition: opacity 0.45s; }
.card-art:has(.ch-cover.has-img) .ch-logo { opacity: 0; transform: scale(1.15); }
.card .eq { position: absolute; z-index: 2; left: 12px; bottom: 14px; color: #fff; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.card-li:hover .card-art, .card-li:focus-within .card-art { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 8px 8px 0 #000, 0 0 0 3px #fff; }
/* Au survol, le logo revient par-dessus la pochette, sur la couleur de la radio */
.card-li:hover .ch-cover, .card-li:focus-within .ch-cover { opacity: 0.16; }
.card-li:hover .card-art .ch-logo, .card-li:focus-within .card-art .ch-logo { opacity: 1; transform: none; }
.card-li:hover .eq, .card-li.is-live .eq { opacity: 1; }
.card-li.is-live .card-art { box-shadow: 0 0 0 3px #fff, 0 18px 40px rgba(0, 0, 0, 0.45); }
.card-play {
  position: absolute; z-index: 3; right: 10px; top: calc(100cqw - 46px); width: 36px; height: 36px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: #fff; color: #000; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); transition: transform 0.35s var(--ease), background 0.2s, color 0.2s;
}
.card-play svg { width: 13px; height: 13px; fill: currentColor; }
.card-play .i-play { margin-left: 2px; }
.card-li:hover .card-play, .card-li:focus-within .card-play { transform: translateY(-6px) scale(1.12); }
.card-play.is-playing { background: #000; color: #fff; box-shadow: 0 0 0 3px #fff; }
.card .ch-text { display: grid; gap: 2px; padding: 0 2px; min-width: 0; }
.card .ch-title { font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.card .ch-artist { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.card-show { font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-show:empty { display: none; }
.card-show::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff2d2d; margin: 0 6px 1px 0; vertical-align: middle; }

/* ---------- Le top ---------- */

.top10 { padding: 72px var(--pad) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.top10 > .sec-head { position: sticky; top: 0; z-index: 5; padding: 14px 0 10px; margin: 0 calc(var(--pad) * -1) 0; padding-left: var(--pad); padding-right: var(--pad);
  background: linear-gradient(var(--page) 75%, rgba(11, 11, 13, 0)); }
.top-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 8px; scrollbar-width: none; }
.top-tabs::-webkit-scrollbar { display: none; }
.top-tab {
  flex: none; border: 0; cursor: pointer; border-radius: 999px; padding: 9px 15px;
  font-family: var(--display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.top-tab:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.top-tab[aria-selected="true"] { background: var(--c, #fff); color: #fff; box-shadow: 0 0 0 2px #fff; transform: rotate(-2deg); }
.top-tab:not([style])[aria-selected="true"] { background: #fff; color: #000; }
.rank-empty { grid-column: 1 / -1; color: var(--ink-3); padding: 30px 0; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.75rem); letter-spacing: -0.04em; text-transform: uppercase; }
.sec-head p { margin: 0; color: var(--ink-3); }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.rank { display: flex; align-items: flex-end; min-width: 0; }
/* Les chiffres se dessinent trait par trait, puis les pochettes glissent par-dessus */
.rank-n { flex: none; width: clamp(64px, 7.4vw, 112px); height: auto; margin: 0 -18px 46px 0; overflow: visible; position: relative; z-index: 0; }
.rank-n text {
  font-family: var(--display); font-weight: 900; font-size: 170px; letter-spacing: -0.06em;
  fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, 0.5); stroke-width: 2.5;
  stroke-dasharray: 900; stroke-dashoffset: 900;
}
.ranks.in .rank-n text { stroke-dashoffset: 0; fill: rgba(255, 255, 255, 0.04);
  transition: stroke-dashoffset 1.8s cubic-bezier(0.5, 0, 0.2, 1) calc(var(--i) * 0.15s), fill 0.8s ease calc(var(--i) * 0.15s + 1.4s); }
.rank-body { position: relative; z-index: 1; flex: 1; min-width: 0; display: grid; gap: 4px; opacity: 0; transform: translateX(34px); }
.ranks.in .rank-body { opacity: 1; transform: none;
  transition: opacity 0.6s ease calc(var(--i) * 0.15s + 0.5s), transform 0.8s cubic-bezier(0.2, 1.3, 0.4, 1) calc(var(--i) * 0.15s + 0.5s); }
.rank-art { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--panel); margin-bottom: 4px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.rank-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rank-art.empty::after { content: "♪"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: var(--ink-3); }
.rank-body b { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-body > span:not(.rank-art) { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Déjà diffusés ---------- */

.history {
  margin: 72px var(--pad) 0; padding: 26px 30px; border-radius: 22px; background: var(--panel);
  display: flex; align-items: center; gap: 30px;
}
.history h2 { margin: 0; flex: none; font-family: var(--display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; line-height: 1.35; }
.history h2 > span { display: block; font-weight: 500; color: var(--ink-3); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; flex: 1; min-width: 0; }
.hist li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 14px; align-items: center; border-left: 2px solid var(--line); padding-left: 16px; min-width: 0; }
.hist .h-art { grid-row: span 3; width: 52px; aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hist .h-art img { width: 100%; height: 100%; object-fit: cover; }
.hist time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.hist b { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist span { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.home-foot {
  display: flex; align-items: center; gap: 18px; margin-top: 72px;
  padding: 30px var(--pad) max(30px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3);
}
.home-foot img { height: 24px; width: auto; opacity: 0.8; }

.is-new { animation: ch-in 0.55s var(--ease); }
@keyframes ch-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Écran de chargement ---------- */
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px; background: #000; transition: opacity 0.6s ease, visibility 0.6s; }
.boot img { width: min(220px, 50vw); height: auto; animation: boot-in 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both, boot-pulse 1.6s ease-in-out 0.9s infinite; }
.boot .eq { color: #fff; height: 26px; gap: 5px; }
.boot .eq i { width: 6px; }
@keyframes boot-in { from { opacity: 0; transform: scale(0.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes boot-pulse { 50% { transform: scale(1.04); } }
body.is-booted .boot { opacity: 0; visibility: hidden; }
.top-nav .nav-grid { color: #fff; border-bottom: 2px solid rgba(255, 255, 255, 0.4); }

/* ---------- Mini-lecteur ---------- */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px));
  width: min(820px, calc(100% - 24px)); margin-left: max(-410px, calc(-50% + 12px));
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--c, #1d1d22) 55%, #0b0b0d); color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.dock[hidden] { display: none; }
.dock-logo { width: 54px; height: 54px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.dock-logo img { width: 78%; height: auto; }
.dock-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dock-name { font-family: var(--display); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dock-now { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .eq { color: #fff; }
.dock:not(.is-playing) .eq i { animation-play-state: paused; }
.dock-prev, .dock-next { flex: none; width: 34px; height: 34px; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background 0.2s; }
.dock-prev:hover, .dock-next:hover { background: rgba(255, 255, 255, 0.24); }
.dock-prev svg, .dock-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dock-play, .dock-close {
  flex: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: transform 0.2s var(--ease);
}
.dock-play { width: 46px; height: 46px; background: #fff; color: #000; }
.dock-play svg { width: 16px; height: 16px; fill: currentColor; }
.dock-play .i-play { margin-left: 2px; }
.dock.is-playing .dock-play .i-play { display: none; }
.dock.is-playing .dock-play .i-pause { display: block; }
.dock-play:hover { transform: scale(1.08); }
.dock-open { flex: none; font-weight: 700; font-size: 0.875rem; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.2s; }
.dock-open:hover { background: rgba(255, 255, 255, 0.22); }
.dock-close { width: 34px; height: 34px; background: transparent; color: rgba(255, 255, 255, 0.7); }
.dock-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dock-close:hover { color: #fff; transform: rotate(90deg); }
body:has(.dock:not([hidden])) .home-foot { padding-bottom: 110px; }

/* ---------- Passage vers un player : les trois bandes des players ---------- */
.wipe { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; grid-template-rows: repeat(3, 1fr); }
.wipe i { display: block; transform: translateX(-101%); }
.wipe i:nth-child(1) { background: #fff; }
.wipe i:nth-child(2) { background: #000; }
.wipe i:nth-child(3) { background: color-mix(in srgb, var(--c, #555) 65%, #fff); }
.wipe.is-closing i { animation: wipe-close 0.6s cubic-bezier(0.7, 0, 0.2, 1) both; }
.wipe.is-opening i { animation: wipe-open 0.7s cubic-bezier(0.7, 0, 0.2, 1) both; }
.wipe.is-closing i:nth-child(2), .wipe.is-opening i:nth-child(2) { animation-delay: 0.07s; }
.wipe.is-closing i:nth-child(3), .wipe.is-opening i:nth-child(3) { animation-delay: 0.14s; }
@keyframes wipe-close { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes wipe-open { from { transform: none; } to { transform: translateX(101%); } }

/* ---------- Tailles d'écran ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ranks { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .rank { scroll-snap-align: start; }
  .history { flex-direction: column; align-items: stretch; }
  .hist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-nav a:not(.nav-grid) { display: none; }
  .top-nav { margin-left: auto; font-size: 0.875rem; }
  .hero { min-height: 0; padding-bottom: 110px; }
  .hero-in { flex-direction: column-reverse; align-items: flex-start; padding-top: 20px; gap: 28px; }
  .hero-art { width: min(62vw, 300px); box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.5); }
  .cta { padding: 17px 30px; font-size: 1rem; }
  .hero-marquee { top: 30%; }
  .dock { gap: 10px; }
  .dock-open { display: none; }
  .dock-prev, .dock-next { width: 30px; height: 30px; }
  .dock .eq { display: none; }
  .radios { margin-top: -70px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ranks { grid-template-columns: repeat(5, 62vw); gap: 14px; }
  .rank-n { font-size: 6rem; }
  .history { padding: 22px 18px; }
  .hist { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .top10, .history { margin-top: 0; }
  .top10 { padding-top: 56px; }
  .history { margin-top: 56px; }
}

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