/* DAYDREAM TRACK NOTES — web magazine
   Editorial dark stage, cream type, one accent taken from the cover. */

:root{
  --bg:#11100f;
  --bg-deep:#0b0a09;
  --ink:#e8e5de;
  --ink-dim:#c9c4b8;
  --muted:#8d867a;
  --line:rgba(232,229,222,.14);
  --line-soft:rgba(232,229,222,.07);
  --accent:#ead264;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Times New Roman",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI","Apple SD Gothic Neo","Noto Sans KR",Arial,sans-serif;
  --hdr-h:56px;
  --pad:clamp(14px,2.2vw,34px);
}

*{box-sizing:border-box;}

html,body{height:100%;}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow:hidden;
  overscroll-behavior:none;
  -webkit-tap-highlight-color:transparent;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(120% 90% at 50% 32%, rgba(255,246,220,.045), transparent 62%),
    radial-gradient(80% 60% at 50% 110%, rgba(0,0,0,.55), transparent 70%);
  pointer-events:none;
  z-index:0;
}

#app{
  position:relative;
  z-index:1;
  height:100vh;
  height:100dvh;
  display:flex;
  flex-direction:column;
}

/* ---------- header ---------- */

.hdr{
  flex:0 0 auto;
  height:var(--hdr-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--pad);
  padding-top:env(safe-area-inset-top);
  border-bottom:1px solid var(--line-soft);
  background:linear-gradient(180deg, rgba(17,16,15,.6), rgba(17,16,15,0));
}

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}

.brand-main{
  font-family:var(--serif);
  font-style:italic;
  font-size:19px;
  letter-spacing:.01em;
  color:var(--ink);
  white-space:nowrap;
}

.brand-sep{color:var(--muted);font-size:11px;}

.brand-sub{
  font-size:9.5px;
  letter-spacing:.42em;
  text-transform:uppercase;
  color:var(--muted);
  transform:translateY(-1px);
  white-space:nowrap;
}

.hdr-right{
  display:flex;
  align-items:center;
  gap:18px;
}

.counter{
  font-size:10.5px;
  letter-spacing:.22em;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.toc-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:32px;
  padding:0 12px 0 10px;
  border:1px solid var(--line);
  border-radius:2px;
  background:transparent;
  color:var(--ink-dim);
  font-family:var(--sans);
  font-size:9.5px;
  letter-spacing:.26em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .25s ease, color .25s ease, background-color .25s ease;
}
.toc-btn svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;}
.toc-btn.icon-only{padding:0;width:32px;justify-content:center;}
/* the drawer is labelled "Tracks" on the printed-magazine bar and "목차" on a phone,
   where the icon alone was too easy to miss */
.toc-label-narrow{display:none;}
.toc-btn:hover{border-color:rgba(234,210,100,.5);color:var(--ink);}
.toc-btn[aria-expanded="true"]{border-color:rgba(234,210,100,.6);color:var(--accent);}

/* ---------- stage ---------- */

.stage{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(8px,1.6vh,26px) var(--pad);
  overflow:hidden;   /* a pinch-scaled spread stays inside the stage */
}

.book-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  width:100%;
  transform-origin:50% 50%;
}
/* pinch zoom on the stage (app.js): the spread scales in place.
   will-change is claimed only while the two fingers are down — it pins the layer
   to the raster scale it started with, so leaving it on would keep the plate
   blurred after the gesture; released, the browser re-draws at the new scale. */
.stage.is-zoomed.is-pinching-base .book-wrap{will-change:transform;}
.stage.is-zoomed{cursor:grab;}

.book{
  /* size is set from app.js so the spread always fits the free area */
  position:relative;
  opacity:0;
  transform:translateX(0);
  transition:opacity .5s ease, transform .48s cubic-bezier(.25,.7,.25,1);
}
.book.is-ready{opacity:1;}

/* The shadow sits on its own layer, shaped like what is actually visible: one
   plate on the cover and the curtain call, the whole spread inside. It used to
   be filter: drop-shadow on the book, which on iOS makes the browser rasterise
   the entire book — plates included — into one buffer before drawing it.
   app.js sets --plate-x / --plate-w because the library decides which half of
   the book the single plate is drawn in, and that differs from the book's box. */
.book::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:var(--plate-x,0);
  width:var(--plate-w,100%);
  z-index:-1;
  box-shadow:0 26px 46px rgba(0,0,0,.62), 0 3px 8px rgba(0,0,0,.5);
}

.book .page{
  background:var(--bg-deep);
  overflow:hidden;
  -webkit-user-select:none;
  user-select:none;
}

.book .page img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  -webkit-user-drag:none;
  user-drag:none;
  pointer-events:none;
}

/* seam between the two pages of a spread */
.book::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:24px;
  margin-left:-12px;
  background:linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.16) 42%, rgba(0,0,0,.20) 50%, rgba(0,0,0,.16) 58%, rgba(0,0,0,0));
  pointer-events:none;
  opacity:0;
  transition:opacity .4s ease;
  z-index:3;
}
.book.is-spread::after{opacity:1;}

.nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--ink);
  opacity:.42;
  cursor:pointer;
  transition:opacity .25s ease, transform .25s ease;
  z-index:5;
}
.nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;}
.nav:hover{opacity:.95;}
.nav:disabled{opacity:.1;cursor:default;}
.nav-prev{left:max(4px, calc(var(--pad) - 40px));}
.nav-next{right:max(4px, calc(var(--pad) - 40px));}

/* ---------- loading ---------- */

.loading{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:var(--bg);
  z-index:9;
  transition:opacity .55s ease, visibility .55s ease;
}
.loading.is-done{opacity:0;visibility:hidden;}

.loading-inner{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:9.5px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--muted);
}
.loading-line{
  position:relative;
  width:132px;
  height:1px;
  background:var(--line);
  overflow:hidden;
}
.loading-line i{
  position:absolute;
  inset:0;
  width:0%;
  background:var(--accent);
  transition:width .3s ease;
}
.loading-count{font-variant-numeric:tabular-nums;letter-spacing:.16em;}

/* ---------- music bar ---------- */

.bar{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:clamp(14px,2vw,34px);
  padding:10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg, rgba(11,10,9,0), rgba(9,8,7,.72) 40%, rgba(9,8,7,.9));
  backdrop-filter:blur(12px) saturate(115%);
  -webkit-backdrop-filter:blur(12px) saturate(115%);
}

.bar-id{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.bar-scene{
  font-size:8.5px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bar-title{
  font-family:var(--serif);
  font-style:italic;
  font-size:17px;
  line-height:1.1;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:opacity .3s ease;
}
.bar-id.is-changing .bar-title{opacity:.25;}

.bar-controls{
  display:flex;
  align-items:center;
  gap:6px;
}

.bar-hint{
  margin-left:8px;
  font-size:8px;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}

.ctl{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--ink-dim);
  border-radius:50%;
  cursor:pointer;
  transition:color .2s ease, background-color .2s ease, transform .12s ease;
}
.ctl svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
.ctl:hover{color:var(--ink);background:rgba(232,229,222,.06);}
.ctl:active{transform:scale(.94);}

.bar-player{
  justify-self:end;
  display:flex;
  align-items:center;
  min-width:0;
}

/* Apple Music official dark embed — the player is the embed's own UI */
.player-frame{
  position:relative;
  width:clamp(320px,28vw,440px);
  height:182px;              /* the embed's own compact layout + its bottom note */
  background:#000;
  border-radius:10px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(232,229,222,.12);
}

.player-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:transparent;
}

/* the embed carries its own artwork, title and play button */

/* mini player — the phone's default: one compact row that opens the embed
   (app.js toggles .bar-player.is-open). Desktop never shows it. */
.mini-player{display:none;}

/* ---------- zoom view ---------- */

.zoom{
  position:fixed;
  inset:0;
  z-index:30;
  display:flex;
  flex-direction:column;
  background:radial-gradient(120% 100% at 50% 40%, #141312 0%, #0a0908 70%);
  opacity:0;
  /* the viewer must be gone on its own terms: visibility flips with the fade,
     so no browser can leave the last frame painted over the magazine */
  visibility:hidden;
  transition:opacity .3s ease, visibility 0s linear .32s;
}
.zoom.is-open{opacity:1;visibility:visible;transition:opacity .3s ease;}
.zoom[hidden]{display:none;}

.zoom-bar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:calc(12px + env(safe-area-inset-top)) var(--pad) 2px;
}
.zoom-label{
  font-size:9.5px;
  letter-spacing:.24em;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  min-width:74px;
  text-align:center;
}
.zoom-tools{display:flex;align-items:center;gap:6px;}
.zoom-nav{display:flex;align-items:center;gap:8px;}

.zoom-tool{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:2px;
  background:transparent;
  color:var(--ink-dim);
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
.zoom-tool svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;}
.zoom-tool:hover:not(:disabled){border-color:rgba(234,210,100,.5);color:var(--ink);}
.zoom-tool:disabled{opacity:.28;cursor:default;}

.zoom-pct{
  min-width:46px;
  text-align:center;
  font-size:9.5px;
  letter-spacing:.12em;
  color:var(--ink-dim);
  font-variant-numeric:tabular-nums;
}

.zoom-fit{
  height:34px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:2px;
  background:transparent;
  color:var(--muted);
  font-family:var(--sans);
  font-size:8.5px;
  letter-spacing:.24em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
.zoom-fit:hover{border-color:rgba(234,210,100,.5);color:var(--ink);}

.zoom-stage{
  flex:1 1 auto;
  min-height:0;
  position:relative;
  overflow:hidden;
  padding:10px var(--pad) 4px;
  touch-action:none;
  cursor:grab;
}
.zoom-stage.is-dragging{cursor:grabbing;}

.zoom-canvas{
  position:absolute;
  inset:10px var(--pad) 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  transform-origin:center center;
  will-change:auto;
  transition:transform .22s cubic-bezier(.25,.7,.25,1);
}
/* prime the layer only while the viewer is up — a closed viewer keeps nothing */
.zoom.is-open .zoom-canvas{will-change:transform;}

@media (max-width:520px){
  .zoom-fit{display:none;}
  .zoom-label{min-width:64px;font-size:9px;}
  .zoom-tool{width:31px;height:31px;}
  .zoom-tools{gap:4px;}
  .zoom-pct{min-width:40px;}
}
.zoom-stage.is-dragging .zoom-canvas,
.zoom-stage.is-pinching .zoom-canvas{transition:none;}

.zoom-canvas img{
  display:block;
  /* app.js writes the pixel size for the current zoom, so the browser resamples
     the 600dpi plate at exactly the pixels it draws. No max-width/-height here:
     a cap would clip the zoomed plate back to the box. */
  width:auto;
  height:auto;
  aspect-ratio:2016 / 2867;
  object-fit:contain;
  flex:0 0 auto;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  -webkit-user-drag:none;
  user-select:none;
}

.zoom-hint{
  flex:0 0 auto;
  padding:6px 0 calc(12px + env(safe-area-inset-bottom));
  text-align:center;
  font-size:8.5px;
  letter-spacing:.2em;
  color:#5f5a51;
  transition:opacity .4s ease;
}
.zoom-hint.is-faded{opacity:0;}

/* ---------- table of contents ---------- */

.toc-backdrop{
  position:fixed;
  inset:0;
  background:rgba(6,5,5,.55);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  opacity:0;
  transition:opacity .35s ease;
  z-index:20;
}
.toc-backdrop.is-open{opacity:1;}

.toc{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(392px,100%);
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#141312,#0d0c0b);
  border-left:1px solid var(--line);
  transform:translateX(100%);
  transition:transform .42s cubic-bezier(.22,.7,.2,1);
  z-index:21;
  padding:calc(18px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom));
}
.toc.is-open{transform:translateX(0);}

.toc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px 18px;
  border-bottom:1px solid var(--line-soft);
}
.toc-kicker{
  font-size:9px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--muted);
}
.toc-close{
  width:32px;height:32px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:2px;
  background:transparent;
  color:var(--ink-dim);
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
.toc-close svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;}
.toc-close:hover{border-color:rgba(234,210,100,.5);color:var(--ink);}

.toc-list{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:10px 0 14px;
}

/* the programme's act headings, as printed on the Scenes page */
.toc-sec{
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 24px 6px;
}
.toc-sec:first-child{padding-top:4px;}
.toc-sec-label{
  flex:0 0 auto;
  font-size:8.5px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}
.toc-sec-rule{
  flex:1 1 auto;
  height:1px;
  background:var(--line);
}

.toc-item{
  width:100%;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 24px;
  border:0;
  border-left:2px solid transparent;
  background:transparent;
  color:var(--ink-dim);
  text-align:left;
  cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.toc-item:hover{background:rgba(232,229,222,.045);color:var(--ink);}
.toc-item.is-active{border-left-color:var(--accent);background:rgba(234,210,100,.055);color:var(--ink);}

.toc-num{
  font-size:9.5px;
  letter-spacing:.16em;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.toc-item.is-active .toc-num{color:var(--accent);}

.toc-name{
  font-family:var(--serif);
  font-size:17px;
  font-style:italic;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.toc-page{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  font-size:8px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

.toc-foot{
  display:flex;
  gap:8px;
  padding:14px 24px 0;
  border-top:1px solid var(--line-soft);
}
.toc-aux{
  flex:1;
  height:34px;
  border:1px solid var(--line);
  border-radius:2px;
  background:transparent;
  color:var(--muted);
  font-family:var(--sans);
  font-size:8.5px;
  letter-spacing:.24em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
.toc-aux:hover{border-color:rgba(234,210,100,.45);color:var(--ink);}

/* ---------- small screens ---------- */

@media (max-width:760px){
  :root{--hdr-h:46px;}

  /* the plate takes the width it can get: no side padding, the arrows sit on
     top of the plate's own margins */
  .stage{padding:2px 0 2px;}

  .brand-main{font-size:17px;}
  .brand-sub{font-size:8.5px;letter-spacing:.34em;}
  .counter{display:inline;font-size:9px;letter-spacing:.16em;}
  .hdr-right{gap:10px;}
  .toc-btn{height:30px;padding:0 10px;gap:6px;font-size:10px;letter-spacing:.08em;}
  .toc-label-wide{display:none;}
  .toc-label-narrow{display:inline;}
  .toc-btn svg{width:15px;height:15px;}
  .toc-btn.icon-only{width:30px;height:30px;padding:0;}

  /* bar: one compact line for the scene, then the embed at the smallest height
     that still shows artwork, title, 재생 and 앱에서 보기 without clipping */
  .bar{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "id     controls"
      "player player";
    row-gap:5px;
    padding:5px 12px calc(6px + env(safe-area-inset-bottom));
    gap:0 10px;
  }
  .bar-id{grid-area:id;align-self:center;gap:3px;}
  .bar-controls{grid-area:controls;}
  .bar-player{grid-area:player;justify-self:stretch;display:block;}

  .bar-title{font-size:14px;}
  .bar-scene{font-size:7.5px;letter-spacing:.26em;}
  .bar-hint{display:none;}

  .ctl{width:32px;height:32px;}
  .ctl svg{width:17px;height:17px;}

  /* page-turn arrows: a thumb-sized target over the plate's edge */
  .nav{
    width:48px;height:62%;opacity:.6;
    transform:translateY(-50%);
    touch-action:manipulation;
  }
  .nav::before{
    content:"";
    position:absolute;
    width:40px;height:40px;
    border-radius:50%;
    background:rgba(10,9,8,.42);
    box-shadow:0 2px 10px rgba(0,0,0,.28);
  }
  .nav svg{position:relative;z-index:1;width:22px;height:22px;stroke-width:1.5;}
  .nav-prev{left:0;}
  .nav-next{right:0;}
}

@media (max-width:480px){
  .bar-title{font-size:13.5px;}
  .player-frame{height:150px;}
}

/* short screens — landscape phones and small laptops. The player is scaled down
   (Apple Music's embed needs its full 175px to lay out) so the plates never
   have to give up their room to the bar. */
@media (max-height:620px){
  .stage{padding:4px var(--pad);}
  .bar{padding:6px var(--pad) calc(6px + env(safe-area-inset-bottom));}
  .player-frame{
    height:182px;
    transform:scale(.68);
    transform-origin:100% 50%;
    margin:-29px 0;          /* reclaim the room the scaled box no longer draws */
  }
}

@media (max-height:620px) and (min-width:761px){
  .player-frame{width:320px;}
}

@media (max-height:620px) and (max-width:760px){
  .player-frame{transform-origin:50% 50%;}
}

/* ---------- compact player ----------
   A phone gives the embed no permanent slice of the screen: the bar carries one
   compact row (mini player) that opens the Apple Music embed when tapped. Same
   row in portrait and in landscape, where the bar is the wide one. app.js toggles
   .bar-player.is-open and loads the embed on the first tap. */

@media (max-width:760px), (max-height:620px) and (hover:none) and (pointer:coarse){
  .bar-player{display:block;justify-self:stretch;}
  .player-frame{display:none;width:100%;height:150px;transform:none;margin:0;}
  .bar-player.is-open .player-frame{display:block;margin-top:6px;}

  .mini-player{
    display:flex;
    align-items:center;
    gap:9px;
    width:100%;
    min-height:44px;
    padding:0 10px;
    border:1px solid var(--line);
    border-radius:2px;
    background:rgba(232,229,222,.03);
    color:var(--ink-dim);
    font-family:var(--sans);
    text-align:left;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
    transition:border-color .2s ease,background-color .2s ease,color .2s ease;
  }
  .mini-player:active{background:rgba(232,229,222,.07);}
  .mini-note{
    flex:0 0 auto;width:15px;height:15px;
    fill:none;stroke:currentColor;stroke-width:1.25;
    stroke-linecap:round;stroke-linejoin:round;color:var(--accent);
  }
  .mini-text{flex:1 1 auto;min-width:0;display:flex;align-items:baseline;gap:7px;}
  .mini-kicker{
    flex:0 0 auto;
    font-size:7.5px;letter-spacing:.28em;text-transform:uppercase;color:var(--muted);
  }
  .mini-title{
    font-family:var(--serif);font-style:italic;font-size:13.5px;line-height:1.1;
    color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .mini-chev{
    flex:0 0 auto;width:14px;height:14px;
    fill:none;stroke:currentColor;stroke-width:1.4;
    stroke-linecap:round;stroke-linejoin:round;
    transition:transform .3s ease;
  }
  .bar-player.is-open .mini-chev{transform:rotate(180deg);}
  .bar-player.is-open .mini-player{border-color:rgba(234,210,100,.45);color:var(--ink);}
}

@media (hover:none){
  .nav{opacity:.55;}
}

/* Held sideways there is no room to give the embed: it comes up over the stage
   instead of pushing the plates into a 150px-high strip. */
@media (max-height:620px) and (hover:none) and (pointer:coarse){
  .bar-player{position:relative;}
  .mini-player{max-width:380px;margin-left:auto;}
  .bar-hint{display:none;}   /* the compact row already says Apple Music */
  .bar-player.is-open .player-frame{
    position:absolute;
    left:0;
    right:0;
    bottom:calc(100% + 6px);
    margin:0;
    border-radius:10px;
    background:#000;
    box-shadow:0 18px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(232,229,222,.12);
    z-index:6;
  }
}

@media (prefers-reduced-motion:reduce){
  .book,.loading,.toc,.toc-backdrop{transition-duration:.01ms;}
}
