.now-page {
  background: #102023;
  color: #fffaf0;
  --chapter-back-bg: #132125bb;
  --chapter-back-hover: #273b3de6;
  --chapter-back-border: #fff7e56e;
  --chapter-back-border-hover: #fff7e5;
}
.now-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: max(100svh, 34vw);
}
.now-portrait-wrap, .now-portrait-wrap::after, .now-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.now-portrait-wrap { z-index: -1; }
.now-portrait-wrap::after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, #101a1e80, transparent 20%),
    radial-gradient(ellipse at left bottom, #101a1ee6, #101a1e90 25%, transparent 63%);
}
.now-portrait {
  object-fit: cover;
  object-position: 50% 37%;
}
.now-listen {
  display: grid;
  justify-items: start;
  width: min(36vw, 360px);
  margin: 28px 0 max(clamp(24px, 7vh, 80px), env(safe-area-inset-bottom)) max(clamp(16px, 6vw, 96px), env(safe-area-inset-left));
  text-shadow: 0 2px 10px #000b;
}
.now-listen .memory-scene-number { color: #fff4dc; }
.now-listen h1 {
  margin: 5px 0 10px;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .1em;
}
.now-player {
  display: grid;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #fff7e650;
  border-radius: 16px;
  background: #111b22dd;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px #050b1150;
  font: 13px/1.3 system-ui, sans-serif;
}
.now-play {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #e9dfc77d;
  border-radius: 999px;
  background: #ffffff12;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.now-play { justify-self: center; gap: 9px; min-width: 108px; }
.now-range:disabled { opacity: .5; cursor: default; }
.now-play:hover, .now-play[aria-pressed="true"] { background: #365050; }
.now-player :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#now-icon { width: 1em; }
.now-timeline, .now-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.now-volume { justify-self: center; width: min(68%, 208px); }
#now-volume-value { min-width: 4ch; text-align: right; }
.now-range {
  width: 100%;
  height: 36px;
  margin: 0;
  accent-color: #f8e8c3;
  cursor: pointer;
}
.now-error {
  max-width: 440px;
  margin: 10px 0 0;
  font-size: .875rem;
}
@media (max-width: 900px) and (orientation: portrait), (max-aspect-ratio: 4/5) {
  .now-scene { justify-content: flex-start; }
  .now-scene .memory-scene-header {
    position: absolute;
    inset: 0 0 auto;
  }
  .now-portrait-wrap {
    position: relative;
    z-index: auto;
    display: block;
    height: clamp(280px, calc(100svh - 285px), min(65svh, 760px));
  }
  .now-portrait-wrap::after {
    background: linear-gradient(180deg, #101a1e73, transparent 23%, transparent 82%, #102023);
  }
  .now-portrait { object-position: 50% 35%; }
  .now-page .now-listen {
    justify-items: center;
    align-content: center;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 8px 16px max(20px, calc(env(safe-area-inset-bottom) + 12px));
    text-align: center;
  }
  .now-listen h1 { font-size: clamp(32px, 5vw, 44px); }
  .now-page .now-player { width: min(100%, 380px); }
}
@media (max-width: 760px) and (orientation: portrait) {
  .now-scene .chapter-back {
    position: absolute !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    bottom: auto;
  }
}
@media (pointer: coarse) {
  .now-range { height: 44px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .now-page .now-listen {
    width: min(39vw, 335px);
    margin: 10px 0 max(12px, env(safe-area-inset-bottom)) max(16px, 4vw, env(safe-area-inset-left));
    padding-right: 0;
  }
  .now-listen h1 { font-size: 32px; }
}
