:root {
  color-scheme: dark;
  --page: #1b131e;
  --panel: #261c29;
  --raised: #352637;
  --text: #fff2e6;
  --muted: #d0bdcd;
  --line: #4a3549;
  --gold: #ffb17a;
  --display: "Playfair Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--page); font: 500 16px/1.5 var(--body); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { max-width: 970px; width: calc(100% - 48px); margin-inline: auto; }
h1 { font: 700 clamp(56px, 9.5vw, 112px)/1.03 var(--display); letter-spacing: -.055em; margin: 0; }
h1 em { color: var(--gold); }
.home { min-height: 100svh; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; background: radial-gradient(ellipse at 69% 57%, #462c31, #251825 62%, #1c141f); }
.home-art { position: absolute; inset: 0 0 0 32%; z-index: -1; background: url(disque.webp) 55% 49% / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 25%); }
.home-content { width: min(89%, 1200px); margin-inline: auto; padding: 75px 0; }
.home-content p { font-size: clamp(16px, 2vw, 22px); color: var(--muted); margin: 22px 0 27px; max-width: 310px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button.primary { color: #2a1b26; background: var(--gold); }
.button.primary:hover { background: #ffccaa; }
.button.secondary { color: var(--text); border-color: #63465c; background: #362738; }
.button.secondary:hover { background: #4c354a; }
#start { min-width: 132px; min-height: 52px; font-size: 16px; }
.round, .results { padding: clamp(28px, 6vh, 62px) 0 45px; }
.round h1, .results h1 { text-align: center; font-size: clamp(60px, 10vw, 110px); color: var(--gold); margin-bottom: clamp(20px, 4vh, 38px); }
.round h1:focus, .results h1:focus { outline: none; }
.tracks, .results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0; margin: 0; list-style: none; }
.track, .result { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 75px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
.track.is-playing { border-color: var(--gold); background: var(--raised); }
.track.revealed { animation: reveal .24s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.record { flex: 0 0 38px; aspect-ratio: 1; display: inline-block; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 3px, #ffffff13 4px 5px), radial-gradient(circle, #281d29 0 5%, #eaa77a 6% 22%, var(--label, #693d59) 25% 58%, #301e35 90%); }
.track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; overflow-wrap: anywhere; }
.track-name { font-size: 15px; font-weight: 700; }
.track-artist { font-size: 13px; color: var(--muted); margin-top: 4px; }
.track-actions { display: flex; align-items: center; gap: 7px; }
.play-button { width: 42px; padding-inline: 0; color: var(--gold) !important; }
.audio-area { display: grid; grid-template-columns: 1fr minmax(0, 400px); align-items: center; gap: 18px; padding: 14px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.audio-info { padding: 5px 6px; }
.audio-title { font: 700 clamp(21px, 4vw, 34px)/1.13 var(--display); margin: 0; overflow-wrap: anywhere; }
.audio-status { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.audio-action { margin-top: 9px; }
.player { min-width: 200px; min-height: 200px; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 6px; }
.results { text-align: center; }
.results h1 { font-size: clamp(54px, 8vw, 90px); color: var(--text); margin-bottom: 10px; }
.results > p { color: var(--muted); }
.results-list { margin-top: 26px; text-align: left; }
.result-year { color: var(--gold); font-weight: 700; }
.share-status { white-space: pre-line; }
@media (max-width: 720px) {
  .home { align-items: end; }
  .home-art { inset: 0 0 23%; background-position: 56% center; mask-image: linear-gradient(180deg, #000 46%, transparent 100%); }
  .home-content { text-align: center; padding: 38px 0 13vh; }
  .home-content p { margin-inline: auto; }
  .tracks, .results-list { grid-template-columns: 1fr; }
  .audio-area { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .audio-info { padding: 1px 3px; }
  .shell { width: calc(100% - 28px); }
}
@media (max-width: 370px) {
  .track { gap: 8px; padding-inline: 8px; }
  .record { flex-basis: 28px; }
  .track-actions { gap: 5px; }
  .track-actions .button { padding-inline: 7px; }
  .play-button { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

.sources { color: var(--muted); font-size: 14px; text-align: left; margin-top: 22px; }
.sources summary { cursor: pointer; width: fit-content; }
.sources a { color: var(--gold); }
:root{--page:#131815;--panel:#1d241f;--raised:#313b2c;--text:#f8f6e9;--muted:#b5c0b2;--line:#3d483c;--gold:#d6ef8b;--display:"Barlow Condensed","Arial Narrow",Impact,sans-serif}
.home{background:#121913}
.home-art{inset:0 0 0 27%;filter:saturate(.65);mask-image:linear-gradient(90deg,transparent,#000 32%)}
.home-content h1{text-transform:uppercase;font-size:clamp(94px,14vw,200px);line-height:.77;letter-spacing:-.035em;font-weight:800}
.home-content h1 em{font-style:normal;color:#d6ef8b}
.home-content .edition{font-size:12px;letter-spacing:.22em;color:var(--gold);margin:0 0 29px;font-weight:700}
.button,#start{border-radius:50px}.button.primary:hover{background:#efffb7}.button.secondary{background:var(--panel);border-color:var(--line)}.button.secondary:hover{background:var(--raised)}
#start{justify-content:space-between;min-width:170px;padding-inline:25px}
.record{flex-basis:50px;position:relative;overflow:hidden;border-radius:4px;background-color:var(--raised)}
.record img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.track-text a{color:var(--muted);font-size:11px;margin-top:3px;width:fit-content}
.audio-area{display:flex;justify-content:space-between}.player{min-width:0;min-height:0}
.track,.result{border-radius:5px}.tally{background:linear-gradient(90deg,#333f2b var(--score),var(--panel) var(--score))}.selected{border-color:var(--gold)}.selected small{color:var(--gold)}
#vote-summary{text-align:center}#next{display:flex;margin:24px auto}
@media(max-width:720px){.home-art{inset:0 0 26%;mask-image:linear-gradient(#000 45%,transparent)}.home-content{padding-bottom:8vh}.home-content .edition{margin:0 auto 22px}.home-content h1{font-size:clamp(86px,17vw,120px)}}
.player-fold{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .52s cubic-bezier(.22,.61,.36,1),opacity .38s ease}
.player-fold.open{grid-template-rows:1fr;opacity:1}
.player-clip{min-height:0;overflow:hidden}
.audio-info{flex:1;min-width:0}
.transport{display:flex;align-items:center;gap:.8rem;max-width:32rem;margin:.55rem 0;color:var(--muted);font:600 .84rem var(--body);font-variant-numeric:tabular-nums}
.transport progress{appearance:none;border:none;border-radius:4px;overflow:hidden;flex:1;height:5px;background:var(--line)}
.transport progress::-webkit-progress-bar{background:var(--line)}
.transport progress::-webkit-progress-value{background:var(--gold)}
.transport progress::-moz-progress-bar{background:var(--gold)}
.transport .ending{color:var(--gold)}
.track.revealed{animation:track-arrives .58s cubic-bezier(.2,.75,.3,1) both}
@keyframes track-arrives{from{opacity:0;transform:translateY(15px) scale(.985);border-color:var(--gold)}to{opacity:1;transform:none;border-color:var(--line)}}
@media(prefers-reduced-motion:reduce){.player-fold{transition:none}.track.revealed{animation:none}}

/* Les pochettes donnent leur format aux cartes du jeu. */
.round.shell,.results.shell{width:calc(100% - clamp(16px,4vw,60px));max-width:1480px;padding-block:clamp(12px,2vh,22px)}
.round h1{font-size:clamp(56px,8vh,84px);margin-bottom:12px}
.tracks,.results-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(6px,.8vw,12px)}
.track,.result{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;overflow:hidden;padding:0;border-radius:8px}
.track .record,.result .record{display:block;flex:none;width:100%;aspect-ratio:1;border-radius:0}
.track .track-text,.result .track-text{padding:8px 10px;flex:1}
.track .track-name,.result .track-name{font-size:clamp(14px,1.1vw,18px)}
.track-actions{padding:0 8px 8px;gap:5px}.track-actions .primary{flex:1}
.tally>b,.result-year{padding:0 10px 8px;color:var(--gold)}
.audio-area{padding:9px;margin-bottom:10px}.audio-info{padding:0 4px}
@media(min-width:721px) and (max-width:1000px){.tracks,.results-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.tracks,.results-list{grid-template-columns:repeat(2,minmax(0,1fr))}.track .track-text,.result .track-text{padding:7px 8px}.track-actions .button{padding-inline:8px}}
:root{color-scheme:dark;--page:#151419;--text:#faf2e9;--panel:#232127;--raised:#343038;--muted:#c5bbc3;--line:#49434a;--gold:#ffaf86;--display:"DM Serif Text",Georgia,serif}
body,.home{background:var(--page);color:var(--text)}
.home-art{inset:8% 3% 8% 47%;mask-image:none;filter:sepia(.14);border:12px solid var(--panel);box-shadow:4px 7px 0 #373036;transform:rotate(2deg)}
.home-content{width:88%;position:relative;pointer-events:none}.home-content button{pointer-events:auto}
.home-content h1{font-size:clamp(82px,10vw,165px);font-weight:400;letter-spacing:-.075em;text-transform:none;line-height:.9}
.home-content h1 em{color:var(--gold);font-style:italic}.home-content p{color:var(--text)}
.button.primary{background:var(--text);color:var(--panel)}.button.primary:hover{background:#ffd1b5}
.button.secondary{background:var(--panel);border-color:var(--line);color:var(--text)}.button.secondary:hover{background:var(--raised)}
#resume{min-height:52px}.round h1,.results h1{font-weight:400;color:var(--text)}
.track,.result{background:var(--panel);border-color:var(--line);border-radius:3px;position:relative}
.track.current-intro,.track.is-playing{outline:3px solid var(--gold);outline-offset:-3px;box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--gold)}
.track.current-intro .record::after,.track.is-playing .record::after{content:"En écoute";position:absolute;left:6px;bottom:6px;background:#952e24;color:white;padding:3px 8px;border-radius:12px;font-size:11px;font-weight:700}
.track.tally{background:linear-gradient(90deg,#513c35 var(--score),var(--panel) var(--score))}.tally.selected{outline:2px solid var(--gold)}
.track-links{display:flex;gap:8px;flex-wrap:wrap}
.track>.player-fold.replay-overlay{position:absolute;top:0;left:0;right:0;width:100%;visibility:hidden;grid-template-rows:1fr;pointer-events:none}
.track>.player-fold.replay-overlay.open{visibility:visible;pointer-events:auto}
.replay-overlay .audio-area{background:#221e36ef;color:white;border:0;border-radius:0;margin:0;padding:6px}
.replay-overlay .audio-title,.replay-overlay #close-clip{display:none}
.replay-overlay .audio-status,.replay-overlay .transport,.replay-overlay .ending{color:white;font-size:11px;margin:2px 0}
.replay-overlay progress::-webkit-progress-value{background:#ffad86}
@media(min-width:850px){.round.shell{max-width:min(1480px,calc(250svh - 815px));min-width:min(94vw,740px)}.tracks{grid-template-columns:repeat(5,minmax(0,1fr))}.round h1{font-size:clamp(46px,7vh,72px);margin-bottom:6px}.track .track-text{padding-block:5px}.track-actions .button{min-height:34px}}
@media(max-width:720px){.home-art{inset:4% 12% 53%;mask-image:none}.home-content{width:95%;padding:0 0 5vh}.home-content h1{font-size:clamp(65px,14vw,105px)}.home-content .edition{margin-bottom:12px}.home-content p{margin:10px auto}.home-content #start,.home-content #resume{min-width:auto;padding-inline:14px}}

/* Le lecteur et les commandes occupent leur hauteur réelle. Les deux rangées
   de pochettes se partagent exactement la hauteur qui reste. */
.round.shell {
  height:100dvh;
  display:flex;
  flex-direction:column;
  max-width:min(1460px,170dvh);
  min-width:0;
  padding-block:clamp(5px,1.3dvh,14px);
}
.round > :not(.tracks){flex:none}
.round .tracks {
  flex:1 1 0;
  min-height:0;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
}
.round .track{min-height:0}
.round .track .record{flex:1 1 0;min-height:0;aspect-ratio:auto;background-color:#1b191d}
.round .record img{object-fit:contain;background:#19171b}
.round .track-text,.round .track-actions{flex:none}
.round .track-text{padding:4px 8px}
.round h1{font-size:clamp(32px,7dvh,75px);margin-bottom:5px}
.round .audio-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.round .audio-title{font-size:clamp(16px,2.4dvh,26px)}
.round .audio-status,.round .transport,.round .audio-action{margin:0}
.round .transport{flex:1;min-width:70px}
.round .audio-action{min-height:30px}
.round .replay-overlay .audio-info{display:block}
.round #next,.round #vote-summary{margin:5px auto}
@media(max-width:720px) and (orientation:portrait){
  .round.shell{width:calc(100% - 14px)}
  .round .tracks{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:5px}
  .round .track .record{position:absolute;inset:0;width:100%;height:100%}
  .round .record img{object-fit:cover}
  .round .track{justify-content:flex-end}
  .round .track::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 0%,#100e1380 36%,#100e13fa 96%);pointer-events:none}
  .round .track-text,.round .track-actions,.round .tally>b{position:relative;z-index:2}
  .round .track-text{padding:1px 5px}
  .round .track-name,.round .track-artist{line-height:1.13}
  .round .track-name{font-size:13px}.round .track-artist{margin:1px 0;font-size:11px;color:#f6e1d7}
  .round .track-text a{margin:0;font-size:10px;color:white}
  .round .track-actions{padding:2px 4px 4px}
  .round .track-actions .button{min-height:25px;padding:2px 8px;font-size:12px}
  .round .replay-overlay{z-index:4}
  .round .current-intro .record::after,.round .is-playing .record::after{top:3px;bottom:auto;left:auto;right:3px}
  .round .audio-info{gap:4px}.round .audio-title{width:100%}.round .audio-action{font-size:11px;padding:2px 5px}
}
@media(max-height:520px) and (orientation:landscape){
  .round h1{font-size:26px;margin:0}.round .audio-area{padding:3px;margin-bottom:3px}
  .round .track-text{padding:1px 4px}.round .track-name{font-size:12px}.round .track-artist,.round .track-text a{font-size:10px;margin:0}
  .round .track-actions{padding:2px 4px}.round .track-actions .button{min-height:24px;padding:1px 8px;font-size:11px}
}
.ambience-settings{position:fixed;top:max(5px,env(safe-area-inset-top));right:8px;z-index:10;font:600 12px var(--body);color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:8px}
.ambience-settings summary{padding:7px 10px;cursor:pointer;list-style:none}
.ambience-settings[open] summary{border-bottom:1px solid var(--line)}
.ambience-settings>div{display:grid;gap:8px;padding:12px;width:180px}.ambience-settings input{width:100%;accent-color:var(--gold)}
.round>.player-fold .audio-area{display:block;padding:5px 8px}
.round>.player-fold .audio-info{display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-areas:"title title" "status status" "progress skip";align-items:center;gap:2px 12px}
.round>.player-fold .audio-title{grid-area:title;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round>.player-fold .audio-status{grid-area:status;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round>.player-fold .transport{grid-area:progress;min-width:0;max-width:none}
.round>.player-fold .audio-action{grid-area:skip;width:max-content;padding:3px 12px;line-height:1.25}
@media(max-width:720px){.ambience-settings summary{padding:5px 7px}}
.home-content .home-note{max-width:37ch;font:400 clamp(12px,1.6vw,15px)/1.45 var(--body);margin-top:20px}.home-note a,#support{color:inherit;text-underline-offset:3px}#support{font-size:13px}.share-tools{display:flex;flex-wrap:wrap;gap:8px}.round .tally{animation:none}.round .tally b{transition:opacity .2s}.home-content h1{font-size:clamp(64px,9vw,140px)}
