/* hyd-player.css: the purple player skin. It loads after hyd-own-media.css and before
   hyd-retro.css (see the link order in hyd-world.html), and wins over hyd-aqua.css at equal
   specificity.

   Order: font face and palette tokens, header (.shell), player page (#cinema) frame, screen,
   transport bar, route window, note card, extras row, recording heading and facts, chapters,
   next-stop queue, then the 1000, 820 and 620 px breakpoints, reduced motion, and a closing
   block that repaints the desktop entry window purple.

   Unused selectors: 11 of the 75 class and id names written in this file appear in neither
   hyd-world.html nor any site script (grep, 6 Oct 2026): the player top nav (.cinema-nav,
   .cinema-brand), .player-note, the window lights and the #mobile-route-slot rules. They are
   kept exactly as shipped: this pass only adds comments and blank lines. */

/* Player + shared menu: existing dark purple palette, clearer controls.
   Palette: #100d1b / #261d33 / #9578aa / #f6efff / #ccb3e5 / #efa4ce.
   Own footage leads. Instrument Sans is bundled locally under the OFL. */

/* Instrument Sans, bundled in the fonts folder. font-display swap shows fallback text until it
   loads, and the 400 to 700 range covers the 500, 600, 650 and 700 weights used below. */
@font-face {
  font-family: 'Hyd Instrument';
  src: url('fonts/InstrumentSans.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Palette tokens, as listed in the header. --player-panel and --player-border are declared but
   nothing in the tree reads them. */
:root {
  --player-ink: #100d1b;
  --player-panel: #261d33;
  --player-border: #9578aa;
  --player-white: #f6efff;
  --player-blue: #ccb3e5;
  --player-pink: #efa4ce;
}

/* Header (.shell): dark purple bar with brand, nav buttons, music deck button and motion toggle. */
.shell {
  height: auto;
  min-height: 62px;
  padding: 9px 24px;
  gap: 22px;
  background: linear-gradient(#382c46 0, #22192e 49%, #120d1c 50%, #21172e);
  color: var(--player-white);
  border-bottom: 1px solid #907ba4;
  box-shadow:
    inset 0 1px #b59cca5c,
    0 3px 0 #0009;
}

.shell .brand {
  font:
    700 23px/1 'Hyd Instrument',
    Arial,
    sans-serif;
  letter-spacing: -1px;
  color: #fff;
  gap: 5px;
  white-space: nowrap;
}
.shell .brand .dot {
  color: #e5b3d9;
}

.shell .logo-star {
  color: #eedaff;
  font-size: 32px;
  text-shadow: 0 1px 2px #000;
}

.shell nav {
  display: flex;
  gap: 7px;
  align-items: center;
}
.shell nav button {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    500 13px/1.2 'Hyd Instrument',
    Tahoma,
    sans-serif;
  min-height: 38px;
  padding: 6px 11px;
  color: var(--player-white);
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: none;
}
.shell nav button svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 1px #000);
}

.shell .nav-pin {
  font-size: 25px;
  line-height: 1;
  color: #dbc2ed;
}

.shell nav button.active {
  border-color: #aa89bd;
  background: linear-gradient(#59416b, #30203f);
  color: #fff;
  text-shadow: 0 1px #000;
  box-shadow:
    inset 0 1px #dcb4ff70,
    0 2px 3px #0006;
}
.shell nav button:hover {
  background-color: #3b2b4b;
  border-color: #aa8dbe;
}

.shell .deck-launch {
  color: var(--player-white);
  font:
    500 12px 'Hyd Instrument',
    Tahoma,
    sans-serif;
  background: linear-gradient(#4c3c5c, #261b35);
  border: 1px solid #9981ad;
  box-shadow: inset 0 1px #edceff50;
  min-height: 35px;
  border-radius: 5px;
  padding: 6px 12px;
}

.shell .motion {
  color: var(--player-pink);
  min-width: 32px;
  min-height: 35px;
}
.shell .motion span {
  font-size: 23px;
}

/* Player page (#cinema): dotted dark background, shared font and one focus ring for its
   controls. */
#cinema {
  background-color: var(--player-ink);
  background-image: radial-gradient(#b48cd526 0.6px, transparent 0.8px);
  background-size: 23px 23px;
  color: var(--player-white);
  font-family: 'Hyd Instrument', Arial, sans-serif;
  padding-bottom: 30px;
}

#cinema button:focus-visible,
.shell button:focus-visible,
#cinema input:focus-visible,
#cinema select:focus-visible {
  outline: 2px solid var(--player-blue);
  outline-offset: 4px;
}
#cinema button:disabled {
  opacity: 0.5;
}

/* Player top nav and brand. Unused today (grep, 6 Oct 2026). */
.cinema-nav {
  padding: 17px 25px;
  color: #dfcbe9;
  font:
    12px 'Hyd Instrument',
    Arial,
    sans-serif;
}
.cinema-nav button {
  min-height: 30px;
  color: #f1e2ff;
  font:
    500 12px 'Hyd Instrument',
    Arial,
    sans-serif;
  text-decoration: none;
}

.cinema-brand {
  font:
    12px 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #c9b3d6;
}
.cinema-brand > span {
  color: var(--player-pink);
  margin-right: 6px;
}

/* Player frame: chrome border, title bar, app icon, signal wave and window lights. */
.cinema-chrome {
  padding: 4px;
  margin-inline: 22px;
  background: linear-gradient(120deg, #bca5ce, #493752 45%, #9c87ac);
  border: 1px solid #b29dc0;
  border-radius: 8px 8px 5px 5px;
  box-shadow:
    inset 0 1px #fff5ff,
    0 8px 0 #0005;
}

.cinema-titlebar {
  height: 34px;
  padding: 3px 10px;
  background: linear-gradient(#4e3b5d, #281c36 48%, #191022 50%, #3b284b);
  border-bottom: 1px solid #90769f;
  border-radius: 3px 3px 0 0;
  color: #f3e8ff;
  text-shadow: 0 1px #000;
  font:
    11px Tahoma,
    sans-serif;
}

.player-app {
  display: flex;
  gap: 8px;
  align-items: center;
}
.player-app svg {
  width: 25px;
  height: 25px;
}

.signal-wave {
  height: 25px;
  max-width: 80px;
  opacity: 0.75;
  filter: grayscale(1) brightness(2);
}

.player-window-lights {
  display: flex;
  gap: 6px;
}
.player-window-lights i {
  width: 8px;
  height: 8px;
  border: 1px solid #f0e1fa;
  border-radius: 50%;
  background: #ccb3e5;
  box-shadow: inset 0 1px #fff;
}
.player-window-lights i:nth-child(2) {
  background: #aa8cbd;
}
.player-window-lights i:last-child {
  background: #efa4ce;
}

/* Screen overlays: bottom shade, title block, corner label (date and disclaimer are hidden) and
   the big play button (#play-preview). */
#big-screen .screen-shade {
  background: linear-gradient(transparent 60%, #0d0619b5);
  transition: opacity 0.3s;
}
#big-screen.playing .screen-shade {
  opacity: 0;
}
#big-screen .screen-title {
  left: 28px;
  bottom: 22px;
  max-width: calc(100% - 305px);
}
#big-screen .screen-title h1 {
  font:
    650 clamp(calc(24 * var(--px)), 3vw, calc(40 * var(--px)))/1.08 'Hyd Instrument',
    Arial,
    sans-serif;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 2px 6px #000;
  margin: 6px 0;
}
#big-screen .screen-title small {
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}

.screen-corner {
  left: 18px;
  top: 16px;
  padding: 5px 8px;
  border: 1px solid #d0b4e380;
  border-radius: 2px;
  background: #170d24c9;
  font: calc(10 * var(--px)) Tahoma;
  color: #fff;
}

.screen-date,
.screen-disclaimer {
  display: none;
}

.screen-corner .red-dot {
  background: #efa4ce;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 2px #efa4ce22;
}

#play-preview {
  width: 62px;
  height: 62px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: linear-gradient(#f6e9ffeb, #b493cce8);
  box-shadow:
    inset 0 2px #fff,
    0 3px 15px #0008;
  color: #321d43;
  font-size: 22px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  transition:
    scale 0.2s,
    opacity 0.2s;
}
#play-preview:hover {
  scale: 1.09;
}

/* Transport bar under the screen. */
#cinema .transport {
  background: linear-gradient(#3a294a, #21142f);
  color: #f6ebff;
  border-top: 1px solid #c3a7d6;
  padding: 10px 13px;
  gap: 13px;
  font:
    calc(11 * var(--px)) Tahoma,
    sans-serif;
  border-radius: 0 0 2px 2px;
}

.transport button,
.transport #note-toggle {
  background: linear-gradient(#f5e8ff, #ac90c0);
  border: 1px solid #d7bce8;
  border-radius: 4px;
  color: #301d3e;
  box-shadow: inset 0 1px white;
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  min-height: 32px;
  padding: 6px 12px;
}
.transport input,
#journey-volume {
  accent-color: #ccb3e5;
}
.transport #note-toggle:before {
  content: none;
}
.transport #play-small {
  width: 36px;
  padding-inline: 6px;
}

/* Route window (#cinema .route-window): the small map card with its title bar, caption and note
   text. */
#cinema .route-window {
  border: 1px solid #b89fcc;
  border-radius: 5px;
  box-shadow: 2px 3px 12px #0008;
  background: #251831;
}

.route-title {
  background: linear-gradient(#4e3b5d, #2e203b);
  color: #f8efff;
  text-shadow: none;
  padding: 7px 9px;
}
.route-title button {
  color: #2b193a;
  background: #e6d0f2;
  border: 1px solid #baa1cc;
}

.route-caption,
.route-window small {
  background: #251831;
  color: #eadaf5;
}

.route-window .route-caption b {
  font:
    calc(11 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
}
.route-window #route-content > small {
  color: #d3bddf;
}

/* Note card (.player-note). Unused today (grep, 6 Oct 2026). */
.player-note {
  background: #2e213b;
  border: 1px solid #a58cb7;
  color: #f5e8ff;
  rotate: 0deg;
  transform: none;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 6px 25px #0008;
}
.player-note > span {
  color: #d6b2f4;
  font: 11px Tahoma;
}
.player-note h3 {
  font:
    600 22px 'Hyd Instrument',
    Arial,
    sans-serif;
}
.player-note p {
  font:
    13px/1.6 'Hyd Instrument',
    Arial,
    sans-serif;
}
.player-note .close-note {
  color: #fff;
}

/* Extras row under the transport: random and area buttons, collection link, volume slider and
   music deck launcher. */
#cinema .player-extras {
  padding: 20px 25px 0;
  gap: 9px;
}

.player-extras > button,
.player-extras > button:nth-child(2),
.player-extras > .deck-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(#483157, #281a36);
  color: #faf0ff;
  border: 1px solid #9b7bac;
  border-radius: 4px;
  box-shadow:
    inset 0 1px #efc7ff25,
    0 2px #0009;
  font:
    500 calc(13 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  padding: 8px 13px;
  min-height: 38px;
}
.player-extras > [data-random='area'] {
  border-color: #c09dd6;
}
.player-extras > [data-random='area'] > span {
  font-size: 23px;
  line-height: 16px;
  color: #dfb9fa;
}
.player-extras > .collection-link .folder-art {
  width: 20px;
  height: 16px;
  min-width: 20px;
  transform: none;
  box-shadow: none;
  margin: 0;
}
.player-extras > .collection-link .folder-art:before {
  width: 10px;
  height: 5px;
  top: -4px;
}

.journey-volume {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font: calc(11 * var(--px)) Tahoma;
  color: #d7c4e5;
}
.journey-volume input {
  width: 78px;
}

.player-extras > .deck-launch {
  margin-left: 0;
}

/* Recording heading and facts: clip stamp, title, description and the facts grid with its
   glyphs. */
#cinema .cinema-below {
  display: block;
  padding: 28px 26px 18px;
}

.recording-heading {
  display: flex;
  gap: 17px;
  align-items: flex-start;
}

.clip-stamp {
  font: 500 30px/1 Tahoma;
  color: #e8c5ff;
  border: 1px solid #a58cb5;
  box-shadow: 2px 2px #0008;
  min-width: 58px;
  padding: 11px 8px;
  text-align: center;
  background: linear-gradient(145deg, #4d365b, #21132d);
  border-radius: 3px;
  rotate: -3deg;
}

.recording-heading > div {
  min-width: 0;
}

.cinema-below .sample-label {
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #d5b7e8;
}
.cinema-below h2 {
  font:
    650 clamp(calc(26 * var(--px)), 3vw, calc(39 * var(--px)))/1.1 'Hyd Instrument',
    Arial,
    sans-serif;
  letter-spacing: -1.25px;
  color: #fff;
  margin: 6px 0 10px;
}
.cinema-below p {
  font:
    calc(14 * var(--px))/1.55 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #d6c6df;
  max-width: 720px;
}

.recording-facts {
  display: flex;
  gap: 18px 32px;
  flex-wrap: wrap;
  margin: 25px 0 0 75px;
  padding: 19px 0 5px;
  border-top: 1px solid #51405f;
}
.recording-facts > div {
  display: grid;
  grid-template-columns: 32px auto;
  gap: 1px 9px;
  align-items: center;
}
.recording-facts dt {
  font:
    11px 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #c7b2d5;
}
.recording-facts dd {
  font:
    600 14px 'Hyd Instrument',
    Arial,
    sans-serif;
  margin: 0;
  color: #fff3ff;
}
.recording-facts dd.unlabelled {
  color: #cdb9db;
  font-weight: 400;
}
.recording-facts svg,
.recording-facts .calendar-glyph,
.recording-facts .day-glyph {
  grid-row: 1/3;
  grid-column: 1;
  width: 32px;
  height: 32px;
  font: 31px/1 Tahoma;
  color: #e5c8fa;
}
.recording-facts .day-glyph {
  color: #f1b6d0;
}
.recording-facts .calendar-glyph {
  font-size: 34px;
}

/* Chapters bar. */
#cinema .chapters {
  margin: 0 26px;
  padding: 17px 0;
  border-top: 1px solid #51405f;
  border-bottom: none;
  gap: 10px 16px;
  color: #d7c0e4;
  font: calc(11 * var(--px)) Tahoma;
}

.chapters > span {
  min-width: 92px;
}
.chapters button {
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  background: #271832;
  color: #e9d7f7;
  border: 1px solid #88709b;
  border-radius: 3px;
  padding: 7px 10px;
}
.chapters button[aria-pressed='true'] {
  background: #513767;
  color: #fff;
  border-color: #ba99d2;
  box-shadow: none;
}

/* Next stop queue: heading, auto-next toggle, next recording card and the footer with the
   recording picker. */
.next-stop {
  margin: 15px 26px 0;
  padding: 21px 0 0;
  border-top: 1px solid #9d82ac;
}

.queue-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 17px;
}
.queue-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.queue-heading h2 {
  font:
    600 calc(22 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 0;
}

.queue-spark {
  font: 35px/1 Georgia;
  color: #aad7ff;
}

.queue-heading #queue-area {
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #d1b9de;
}

.auto-next {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #f2e0ff;
  cursor: pointer;
}
.auto-next input {
  accent-color: #ccb3e5;
  width: 16px;
  height: 16px;
}

.next-recording {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 19px;
  padding: 9px;
  background: linear-gradient(110deg, #412c50, #21162b 75%);
  border: 1px solid #a88abb;
  border-radius: 4px;
  box-shadow:
    inset 0 1px #f0d0ff25,
    3px 4px #0006;
  color: #fff3ff;
  text-align: left;
  transition:
    border-color 0.2s,
    translate 0.2s;
}
.next-recording:hover {
  border-color: #efd0ff;
  translate: 0 -2px;
}

.next-picture {
  position: relative;
  width: 155px;
  flex: 0 0 155px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid #a18aaa;
  border-radius: 2px;
}
.next-picture img {
  width: 100%;
  height: 100%;
  transition: scale 0.35s;
}

.next-recording:hover img {
  scale: 1.04;
}

.next-picture > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 27px;
  background: #0003;
  text-shadow: 0 2px 8px #000;
}

.next-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.next-copy small {
  font:
    calc(12 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #dcbde8;
}
.next-copy strong {
  font:
    600 calc(23 * var(--px))/1.15 'Hyd Instrument',
    Arial,
    sans-serif;
  letter-spacing: -0.4px;
}
.next-copy > span {
  font: calc(11 * var(--px)) Tahoma;
  color: #d4bddd;
}

.next-arrow {
  padding: 12px;
  font-size: 30px;
  color: #e9c3ff;
}

.queue-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 16px;
}
.queue-footer > .text-button {
  font:
    calc(13 * var(--px)) 'Hyd Instrument',
    Arial,
    sans-serif;
  color: #ead2fa;
  min-height: 34px;
}
.queue-footer .recording-picker {
  min-width: 0;
  max-width: 300px;
  width: 45%;
}
.queue-footer .recording-picker select {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  background: #2a1b37;
  color: #efdfff;
  border: 1px solid #957ba7;
  border-radius: 3px;
  box-shadow: none;
  font:
    12px 'Hyd Instrument',
    Arial,
    sans-serif;
  padding: 7px;
}

.next-stop #queue-empty {
  font-size: 14px;
  color: #e5cbee;
}

/* Up to 1000px wide: tighter header, and the facts list loses its indent. */
@media (max-width: 1000px) {
  .shell {
    gap: 12px;
    padding-inline: 16px;
  }

  .shell .brand {
    font-size: 21px;
  }

  .shell nav {
    gap: 2px;
  }
  .shell nav button {
    padding-inline: 8px;
  }

  .shell .deck-launch {
    padding-inline: 8px;
  }

  .recording-facts {
    margin-left: 0;
  }
}

/* Up to 820px wide: the route window turns into a full-width strip inside #mobile-route-slot;
   headings and queue spacing tighten. The #mobile-route-slot rules are unused today (no markup
   or script mentions that id, grep 6 Oct 2026). */
@media (max-width: 820px) {
  .cinema-brand {
    display: none;
  }

  /* Screen title. */
  #big-screen .screen-title {
    max-width: 85%;
    left: 20px;
    bottom: 20px;
  }
  #big-screen .screen-title h1 {
    font-size: calc(30 * var(--px));
  }

  /* Route window as a full-width strip. */
  #mobile-route-slot .route-window {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    transform: none;
    rotate: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #mobile-route-slot #route-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }
  #mobile-route-slot #route-content[hidden] {
    display: none;
  }

  /* !important: hyd-own-media.css sets #journey-map to 140px with !important at every width, so
     the phone strip needs its own !important to get a shorter 116px map. This selector also
     starts with an id, which out-ranks that rule. */
  #mobile-route-slot #journey-map {
    grid-row: 1/3;
    height: 116px !important;
  }
  #mobile-route-slot .route-caption {
    display: block;
    padding: 4px;
  }
  #mobile-route-slot .route-caption b {
    font-size: 12px;
    display: block;
    line-height: 1.4;
  }
  #mobile-route-slot .route-caption span {
    display: none;
  }
  #mobile-route-slot #route-content > small {
    font-size: 10px;
    line-height: 1.5;
    padding: 4px;
  }
  #mobile-route-slot .route-title {
    font-size: 11px;
    padding: 7px 10px;
  }
  #mobile-route-slot .route-title button {
    width: 24px;
    height: 22px;
  }

  /* Volume slider, recording heading, facts and queue. */
  .journey-volume {
    margin-left: auto;
  }

  .recording-heading {
    gap: 13px;
  }

  .clip-stamp {
    font-size: 24px;
    min-width: 49px;
  }

  .recording-facts {
    gap: 18px 26px;
  }

  .queue-heading #queue-area {
    flex-basis: 100%;
    margin-left: 33px;
  }
}

/* Up to 620px wide (phones): wrapped header, compact player frame, transport, extras, facts
   grid, chapters and queue, and a note card sized to the screen. */
@media (max-width: 620px) {
  /* Header: the nav drops to its own full-width row. */
  .shell {
    padding: 8px 12px;
    gap: 5px;
    min-height: 89px;
  }

  .shell .brand {
    font-size: 21px;
  }

  .shell .logo-star {
    font-size: 29px;
  }

  .shell nav {
    order: 3;
    width: 100%;
    padding-top: 6px;
    margin: 0;
    justify-content: space-between;
    border-top: 1px solid #89679d66;
  }
  .shell nav button {
    font-size: 12px;
    gap: 7px;
    padding: 5px 12px;
    min-height: 36px;
  }
  .shell nav button svg {
    width: 22px;
    height: 22px;
  }

  .shell .deck-launch {
    margin-left: auto;
    font-size: 11px;
    padding: 5px 9px;
    min-height: 30px;
  }

  .shell .motion {
    min-height: 30px;
    min-width: 28px;
    margin: 0;
    padding: 0;
  }

  .cinema-nav {
    padding: 10px 15px;
  }

  /* Player frame and screen text. */
  .cinema-chrome {
    margin-inline: 9px;
    padding: 3px;
  }

  #big-screen .screen-title {
    left: 15px;
    bottom: 12px;
    max-width: 90%;
  }
  #big-screen .screen-title h1 {
    font-size: calc(25 * var(--px));
  }

  .cinema-titlebar {
    height: 31px;
    font-size: 10px;
  }

  .signal-wave {
    max-width: 50px;
  }

  .screen-corner {
    left: 12px;
    top: 12px;
    font-size: calc(9 * var(--px));
  }

  .screen-title small {
    font-size: calc(11 * var(--px));
  }

  .screen {
    aspect-ratio: 4/3;
  }

  /* Transport bar. */
  #cinema .transport {
    gap: 8px;
    padding: 9px 8px;
    font-size: calc(10 * var(--px));
  }

  .transport #note-toggle {
    font-size: calc(12 * var(--px));
    padding: 6px 8px;
  }
  .transport #play-small {
    width: 31px;
    min-height: 30px;
  }

  /* Extras row and volume slider. */
  #cinema .player-extras {
    padding: 18px 15px 0;
    gap: 9px;
  }

  .player-extras > button,
  .player-extras > button:nth-child(2),
  .player-extras > .deck-launch {
    font-size: calc(12 * var(--px));
    padding: 7px 10px;
    min-height: 37px;
  }

  .journey-volume {
    order: 3;
    margin: 0;
    flex: 1;
    font-size: calc(11 * var(--px));
  }
  .journey-volume input {
    width: 85px;
  }

  .player-extras > .deck-launch {
    order: 4;
    margin-left: auto;
  }

  /* Recording heading and facts grid. */
  #cinema .cinema-below {
    padding: 25px 16px 15px;
  }

  .clip-stamp {
    font-size: 22px;
    min-width: 44px;
    padding: 9px 6px;
  }

  .cinema-below h2 {
    font-size: calc(28 * var(--px));
  }
  .cinema-below p {
    font-size: calc(13 * var(--px));
  }

  .recording-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
    margin-top: 20px;
    padding-top: 15px;
  }
  .recording-facts dd {
    font-size: 13px;
  }
  .recording-facts svg,
  .recording-facts .calendar-glyph,
  .recording-facts .day-glyph {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }
  .recording-facts > div {
    grid-template-columns: 28px auto;
    gap: 1px 8px;
  }

  /* Chapters. */
  #cinema .chapters {
    margin-inline: 16px;
    gap: 9px;
  }

  .chapters > span {
    width: 100%;
  }

  .chapter-buttons {
    gap: 6px;
  }

  .chapters button {
    font-size: calc(11 * var(--px));
    padding: 7px 8px;
  }

  /* Next stop queue. */
  .next-stop {
    margin: 15px 16px 0;
    padding-top: 18px;
  }

  .queue-heading {
    gap: 6px;
    align-items: flex-start;
  }
  .queue-heading > div {
    gap: 6px;
  }
  .queue-heading h2 {
    font-size: calc(20 * var(--px));
  }
  .queue-heading #queue-area {
    font-size: calc(11 * var(--px));
    margin-left: 25px;
  }

  .queue-spark {
    font-size: 27px;
  }

  .auto-next {
    font-size: calc(11 * var(--px));
    margin-top: 5px;
  }

  .next-recording {
    gap: 12px;
    padding: 7px;
  }

  .next-picture {
    width: 98px;
    flex-basis: 98px;
  }

  .next-copy strong {
    font-size: calc(17 * var(--px));
  }
  .next-copy small {
    font-size: calc(10 * var(--px));
  }
  .next-copy > span {
    font-size: calc(10 * var(--px));
  }

  .next-arrow {
    font-size: 22px;
    padding: 4px;
  }

  .queue-footer {
    flex-wrap: wrap;
    gap: 7px;
  }
  .queue-footer .recording-picker {
    width: 100%;
    max-width: none;
  }
  .queue-footer > .text-button {
    font-size: calc(12 * var(--px));
  }

  /* Note card sized to the screen (.player-note is unused today). */
  .player-note {
    max-width: calc(100% - 30px);
    max-height: calc(100% - 50px);
    overflow: auto;
    top: 32px;
    right: 15px;
  }
}

/* Reduced motion: no transitions on the next-recording card, its picture and the play button. */
@media (prefers-reduced-motion: reduce) {
  .next-recording,
  .next-picture img,
  #play-preview {
    transition: none;
  }
}

/* Keep the desktop's layout and objects; restore the requested purple identity. */
.portal-collage .web-desktop,
.portal-collage .web-desktop[data-wallpaper='night'] {
  background:
    radial-gradient(ellipse at 59% 39%, #55306865, transparent 65%),
    linear-gradient(145deg, #100b1b, #21142f 62%, #120d20);
}

.portal-collage #desk-entry {
  border-color: #d8c1e8 #786184 #705776 #cab1dc;
  box-shadow:
    0 2px 3px #0009,
    0 12px 30px #0009;
}

/* !important: hyd-aqua.css and hyd-personal-web.css both paint this title bar with an !important
   gradient; this purple one loads later at equal specificity, so it wins. */
.portal-collage #desk-entry .desktop-titlebar {
  background: linear-gradient(#eee1f4, #b49ac5 50%, #d2bedf) !important;
  border-color: #fff0ff #9279a5 #9279a5;
}

/* Entry panel and its suggestions in purple. */
.visual-entry {
  background: #21182d;
  border-color: #8c769e;
}

.visual-entry .entry-play {
  background: linear-gradient(#edddf7, #b399ca);
  border-color: #a98abc;
  color: #271534;
  box-shadow: inset 0 1px #fff0ff;
}

.visual-entry .terminal-input {
  background: #130d1f;
  border-color: #9d85b0;
}

.visual-entry .area-suggestions .discovery-result {
  color: #e0cbef;
}
.visual-entry .area-suggestions.has-query .discovery-result {
  background: #382647;
}
.visual-entry .area-suggestions.has-query .discovery-result small {
  color: #d8b6dc;
}
