:root {
  --bg: #06080d;
  --panel: rgba(14, 18, 27, .78);
  --line: rgba(255, 255, 255, .11);
  --text: #eef0f4;
  --mute: #8b94a7;
  --acc: #c6ff4a;
  --acc2: #ffb938;
  --red: #ff5a4e;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --W: 250px;
  --H: 370px;
  --D: 58px;
  --s: 1;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 62%, rgba(198, 255, 74, .10), transparent 70%),
    radial-gradient(45% 40% at 8% 0%, rgba(64, 104, 255, .16), transparent 70%),
    radial-gradient(40% 40% at 100% 10%, rgba(255, 185, 56, .08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--bg);
}

/* ───────── Header ───────── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 3vw, 40px) 8px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--acc); white-space: nowrap; }
.brand i { width: 56px; height: 1px; background: currentColor; opacity: .7; }
.brand-sub { color: var(--text); opacity: .75; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); }
.nav-link { letter-spacing: inherit; text-transform: inherit; opacity: .8; transition: opacity .2s, color .2s; }
.nav-link:hover { opacity: 1; color: var(--acc); }
a.nav-link { color: inherit; text-decoration: none; }
.tracker {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: none;
  background: rgba(255, 255, 255, .03);
}
.tracker:hover { border-color: var(--acc); }
.follow {
  padding: 8px 14px; border-radius: 99px; background: var(--acc); color: #0a0d06;
  font-weight: 700; letter-spacing: .1em; text-transform: inherit; white-space: nowrap; transition: background .2s, transform .15s;
}
.follow:hover { background: #d8ff7d; }
.follow:active { transform: scale(.97); }
.ring {
  --p: 0; width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(var(--acc) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px);
}
.burger { width: 34px; height: 24px; display: grid; align-content: center; gap: 7px; }
.burger i { height: 2px; background: var(--acc); display: block; transition: transform .2s; }
.burger:hover i:first-child { transform: translateX(-4px); }
.burger:hover i:last-child { transform: translateX(4px); }

/* ───────── Stage 3D ───────── */
.stage { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; min-height: 200px; }
.stage.dragging { cursor: grabbing; }
.scene { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; }
.shelf { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }

.halftone {
  position: absolute; top: 50%; transform: translateY(-50%);
  font: 700 clamp(160px, 27vw, 430px)/.8 var(--sans); letter-spacing: -.06em;
  color: transparent;
  background: radial-gradient(circle, rgba(198, 255, 74, .30) 1.3px, transparent 1.7px) 0 0 / 7px 7px;
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none; white-space: nowrap;
}
.halftone.left { left: 1.5vw; }
.halftone.right { right: 1.5vw; background-image: radial-gradient(circle, rgba(120, 150, 255, .34) 1.3px, transparent 1.7px); }

.floor {
  position: absolute; left: -40%; right: -40%; bottom: -12%; height: 55%;
  background:
    linear-gradient(rgba(198, 255, 74, .16) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(198, 255, 74, .16) 1px, transparent 1px) 50% 0 / 46px 100%;
  transform: perspective(700px) rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(60% 90% at 50% 100%, #000, transparent 75%); mask: radial-gradient(60% 90% at 50% 100%, #000, transparent 75%);
  pointer-events: none;
}
.glow {
  --beat: 0;
  position: absolute; left: 50%; top: calc(50% + 185px * var(--s));
  width: calc(620px * var(--s)); height: 70px; margin-left: calc(-310px * var(--s));
  background: radial-gradient(closest-side, rgba(198, 255, 74, calc(.22 + var(--beat) * .5)), transparent);
  filter: blur(14px); transform: scaleX(calc(1 + var(--beat) * .25)); pointer-events: none;
}

.box {
  position: absolute; width: var(--W); height: var(--H);
  left: calc(var(--W) / -2); top: calc(var(--H) / -2);
  transform-style: preserve-3d; will-change: transform; cursor: pointer;
  --bx: #10131c; --ink: #f1ead9; --ac: #ff5a4e; --fog: 0;
}
.face {
  position: absolute; top: 0; height: 100%; overflow: hidden;
  background: var(--bx); color: var(--ink);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 0 40px rgba(0, 0, 0, .28);
}
.face::before { /* reflet */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, .13), transparent 30%, transparent 70%, rgba(0, 0, 0, .22));
}
.face::after { /* brouillard de profondeur */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--bg); opacity: var(--fog);
}
.front { left: 0; width: 100%; transform: translateZ(calc(var(--D) / 2)); padding: 20px 20px 16px; display: flex; flex-direction: column; }
.back { left: 0; width: 100%; transform: rotateY(180deg) translateZ(calc(var(--D) / 2)); filter: brightness(.6); }
.spine { left: calc((var(--W) - var(--D)) / 2); width: var(--D); display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; }
.spine.l { transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); }
.spine.r { transform: rotateY(90deg) translateZ(calc(var(--W) / 2)); }

.f-top { font: 500 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: center; opacity: .85; }
.f-title { font: 400 38px/.95 var(--serif); text-transform: uppercase; text-align: center; margin-top: 14px; text-wrap: balance; letter-spacing: -.005em; }
.f-title.sm { font-size: 31px; }
.f-title.lg { font-size: 46px; }
.f-art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 0; }
.f-art svg { height: 100%; max-height: 150px; width: auto; overflow: visible; }
.f-foot { display: flex; justify-content: space-between; align-items: center; font: 700 11px/1 var(--mono); letter-spacing: .08em; }
.f-foot span:last-child { border: 1.5px solid currentColor; padding: 4px 6px; border-radius: 2px; }
.f-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p, 0) * 100%); background: var(--ac); }

.art .a { fill: var(--ac); }
.art .k { fill: var(--ink); }
.art .as { fill: none; stroke: var(--ac); stroke-width: 5; stroke-linecap: round; }
.art .ks { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.art .b { fill: var(--bx); }

.s-num { font: 700 15px/1 var(--mono); }
.s-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; }
.s-title {
  flex: 1; min-height: 0; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
  font: 400 24px/1.05 var(--serif); text-transform: uppercase; text-align: center; text-wrap: balance; padding: 10px 0;
}
.s-title.sm { font-size: 17px; }
.s-tag { font: 700 8px/1 var(--mono); letter-spacing: .08em; border: 1.5px solid currentColor; padding: 4px 3px; border-radius: 2px; }

.box.is-new .s-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.box.is-done .s-dot { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.box.is-playing .front { box-shadow: inset 0 0 0 2px var(--acc), 0 0 70px rgba(198, 255, 74, .45); }

.box.ghost { --bx: rgba(198, 255, 74, .05); --ink: var(--acc); cursor: default; }
.box.ghost .face { border: 1.5px dashed rgba(198, 255, 74, .55); box-shadow: none; }
.box.ghost .face::before { display: none; }
.box.ghost .back { filter: none; }

.bubble {
  position: absolute; left: 0; top: 0; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; background: var(--acc); color: #0a0d06;
  display: grid; place-items: center; text-align: center;
  font: 700 10px/1.2 var(--mono); letter-spacing: .12em;
  pointer-events: none; opacity: 0; scale: .3; transition: opacity .2s, scale .25s cubic-bezier(.2, 1.4, .4, 1);
  mix-blend-mode: normal; z-index: 3;
}
.bubble.on { opacity: .96; scale: 1; }

/* ───────── Infos épisode ───────── */
.info { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 4vw, 70px); padding: 4px 16px 10px; text-align: center; z-index: 2; }
.info-body { width: min(760px, 100%); min-width: 0; }
.info-body.swap > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.info-body.swap > :nth-child(2) { animation-delay: .04s; }
.info-body.swap > :nth-child(3) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.kicker { font: 700 11px/1 var(--mono); letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.kicker b { color: var(--red); }
.kicker em { color: var(--acc); font-style: normal; }
.title { font: 400 clamp(30px, 4.6vw, 58px)/1 var(--serif); color: var(--acc); margin: 8px 0 8px; text-wrap: balance; }
.meta { font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.btn {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s, transform .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { border-color: var(--acc); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--acc); color: #0a0d06; border-color: var(--acc); font-weight: 700; }
.btn.primary:hover { background: #d8ff7d; }
.arrow { font-size: 26px; color: var(--acc); width: 52px; height: 52px; border-radius: 50%; border: 1px solid transparent; flex: none; transition: border-color .2s, opacity .2s; }
.arrow:hover { border-color: var(--acc); }
.arrow:disabled { opacity: .2; cursor: default; border-color: transparent; }

/* ───────── Frise ───────── */
.timeline { padding: 2px clamp(16px, 3vw, 40px) 0; height: 54px; cursor: pointer; touch-action: none; }
.tl-track { position: relative; height: 100%; border-top: 1px solid rgba(198, 255, 74, .45); margin-top: 10px; }
.tl-tick { position: absolute; top: -5px; width: 1px; height: 9px; background: rgba(255, 255, 255, .35); }
.tl-tick.major { top: -9px; height: 17px; background: var(--acc); }
.tl-tick.done { background: var(--acc); width: 2px; margin-left: -.5px; }
.tl-label { position: absolute; top: 14px; transform: translateX(-50%); font: 400 10px/1 var(--mono); letter-spacing: .08em; color: var(--mute); white-space: nowrap; }
.tl-label.first { transform: none; }
.tl-mark { position: absolute; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); }

/* ───────── Lecteur ───────── */
.player {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  padding: 10px clamp(16px, 3vw, 40px) calc(10px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  z-index: 4;
}
.p-now { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 280px; }
.p-num { flex: none; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font: 700 15px/1 var(--mono); background: rgba(198, 255, 74, .1); color: var(--acc); border: 1px solid rgba(198, 255, 74, .4); }
.p-text { min-width: 0; display: grid; gap: 3px; }
.p-text strong { font: 400 19px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-text span { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-ctrl { display: flex; align-items: center; gap: 4px; flex: none; }
.ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.ic:hover { background: rgba(255, 255, 255, .08); }
.ic svg { width: 18px; height: 18px; fill: currentColor; }
.ic.txt { font: 700 11px/1 var(--mono); color: var(--mute); }
.ic.play { width: 48px; height: 48px; background: var(--acc); color: #0a0d06; }
.ic.play:hover { background: #d8ff7d; }
.ic.play svg { width: 22px; height: 22px; }
.p-seek { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); color: var(--mute); min-width: 0; }
.p-viz { flex: none; width: 84px; height: 40px; }
.p-rate { flex: none; font: 700 11px/1 var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; min-width: 46px; }
.p-rate:hover { border-color: var(--acc); }
.p-vol { flex: none; width: 76px; }

input[type=range] { -webkit-appearance: none; appearance: none; height: 16px; background: none; cursor: pointer; --fill: 0%; flex: 1; min-width: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--acc); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); margin-top: -4.5px; box-shadow: 0 0 10px rgba(198, 255, 74, .7); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--acc); }

/* ───────── Panneau latéral ───────── */
.backdrop { position: fixed; inset: 0; background: rgba(3, 4, 8, .6); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 10; }
.backdrop.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: rgba(10, 13, 20, .94); border-left: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transform: translateX(104%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
  z-index: 11; display: flex; flex-direction: column;
}
.sheet.on { transform: none; visibility: visible; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); z-index: 2; background: rgba(10, 13, 20, .8); }
.sheet-close:hover { border-color: var(--acc); color: var(--acc); }
.sheet-body { overflow-y: auto; padding: 34px clamp(20px, 4vw, 38px) 40px; flex: 1; overscroll-behavior: contain; }
.sheet h2 { font: 400 clamp(34px, 5vw, 46px)/1 var(--serif); color: var(--acc); margin: 10px 50px 14px 0; text-wrap: balance; }
.sheet .kicker { margin-right: 50px; }
.sheet p.desc { color: #c9cedb; line-height: 1.65; font-size: 15.5px; margin: 18px 0; }
.lesson { border: 1px solid rgba(255, 185, 56, .4); background: rgba(255, 185, 56, .07); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.lesson small { display: block; font: 700 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--acc2); margin-bottom: 8px; }
.lesson span { font: italic 400 22px/1.25 var(--serif); }
.sheet .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sheet .bar { height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; margin-top: 16px; }
.sheet .bar i { display: block; height: 100%; background: var(--acc); }

.search { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; margin: 4px 0 12px; }
.search:focus { outline: none; border-color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font: 400 11px/1 var(--mono); letter-spacing: .05em; color: var(--mute); }
.chip.on { background: var(--acc); border-color: var(--acc); color: #0a0d06; font-weight: 700; }
.ep-list { list-style: none; padding: 0; }
.ep-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); cursor: pointer; position: relative; width: 100%; text-align: left; }
.ep-row:hover { background: rgba(255, 255, 255, .04); }
.ep-row .n { font: 700 13px/1 var(--mono); color: var(--mute); }
.ep-row.cur .n, .ep-row.cur .t { color: var(--acc); }
.ep-row .t { font: 400 20px/1.1 var(--serif); display: block; }
.ep-row .m { font: 400 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--mute); margin-top: 6px; display: block; text-transform: uppercase; }
.ep-row .m b { color: var(--red); } .ep-row .m em { color: var(--acc); font-style: normal; }
.ep-row .d { font: 400 11px/1 var(--mono); color: var(--mute); }
.ep-row .pb { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--acc); }
.empty { color: var(--mute); padding: 24px 0; text-align: center; }

.about-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #141823; margin: 16px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; }
.stat b { display: block; font: 400 30px/1 var(--serif); color: var(--acc); }
.stat span { font: 400 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: block; margin-top: 6px; }
.books { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.books .sub-link { margin-top: 14px; }
.sub-list { display: grid; gap: 10px; margin-top: 18px; }
.sub-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03);
  color: inherit; text-decoration: none; transition: border-color .2s, background .2s;
}
.sub-link:hover { border-color: var(--acc); background: rgba(198, 255, 74, .06); }
.sub-link strong { display: block; font-size: 15px; font-weight: 700; }
.sub-link small { display: block; margin-top: 4px; font: 400 11px/1.4 var(--mono); color: var(--mute); }
.sub-link b { color: var(--acc); font-size: 18px; font-weight: 400; flex: none; }

/* ───────── Toast & chargement ───────── */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--acc); color: #0a0d06; font-weight: 700; font-size: 13px; padding: 12px 20px; border-radius: 99px;
  transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), opacity .25s; z-index: 20; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 10px 40px rgba(198, 255, 74, .3);
}
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; cursor: pointer; }

.loader { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 30; transition: opacity .6s, visibility .6s; }
.loader.off { opacity: 0; visibility: hidden; }
.loader-in { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px; }
.loader-small { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.loader-big { font: 400 clamp(64px, 14vw, 140px)/.9 var(--serif); color: var(--acc); animation: pulse 1.6s ease-in-out infinite; }
.loader-msg { font: 400 12px/1.5 var(--mono); color: var(--mute); margin: 14px 0; max-width: 420px; }
@keyframes pulse { 50% { opacity: .45; } }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .nav-link, .p-viz, .p-vol { display: none; }
  .brand i, .brand-sub { display: none; }
  .p-now { flex-basis: 150px; }
}
@media (max-width: 640px) {
  .top { padding-top: 14px; font-size: 11px; letter-spacing: .12em; }
  .tracker span:last-child { display: none; } .tracker { padding: 7px; }
  .top { gap: 10px; } .brand { min-width: 0; } .brand span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .nav { flex: none; gap: 10px; } .follow { padding: 7px 11px; }
  .arrow { display: none; }
  .player { flex-wrap: wrap; row-gap: 6px; }
  .p-now { flex: 1 1 0; order: 1; }
  .p-ctrl { order: 2; }
  .p-seek { order: 3; flex-basis: 100%; }
  .p-rate { order: 2; }
  #pPrev, #pNext { display: none; }
  .timeline { height: 44px; }
  .actions { margin-top: 10px; }
  .toast { bottom: 150px; }
}
@media (max-height: 640px) {
  .actions { display: none; }
  .timeline { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }
