/* /albums — terminal-ish catalog, underground + pop accents */

:root {
  --term-bg: #0a0a0f;
  --term-panel: #12121a;
  --term-line: #1e1e2a;
  --term-fg: #d8dce8;
  --term-dim: #6b7080;
  --term-magenta: #ff3dac;
  --term-cyan: #22d3ee;
  --term-amber: #fbbf24;
  --term-lime: #b8f077;
  --term-violet: #a78bfa;
  /* site_header_terminal.css uses --violet (defined in base.css on app shell pages) */
  --violet: var(--term-violet);
  /* shell_chrome.css (shared logo + site menu) */
  --accent: var(--term-cyan);
  --accent-glow: 0 0 12px rgba(34, 211, 238, 0.42);
  --panel: var(--term-panel);
  --line: var(--term-line);
  --fg: var(--term-fg);
  --muted: var(--term-dim);
  --pop: var(--term-magenta);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.term-body {
  margin: 0;
  min-height: 100vh;
  background: var(--term-bg);
  color: var(--term-fg);
  font-family:
    "Noto Sans JP",
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  overflow-x: hidden;
}

/* subtle scan / noise layer */
.term-scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.06) 2px,
    rgba(255, 255, 255, 0.06) 3px
  );
}

.term-wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 32px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Reserve space for fixed .term-top (height set via --term-header-offset from term_header_fixed.js) */
.term-wrap > .term-top + * {
  margin-top: calc(var(--term-header-offset, 112px) + 16px);
}

.term-app-mark {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin: 0 0 10px;
}

.term-app-mark:focus-visible {
  outline: 2px solid var(--term-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.term-app-mark__img {
  display: block;
  height: calc(33px * 1.1);
  width: auto;
  max-width: calc(180px * 1.1);
  object-fit: contain;
  filter:
    drop-shadow(0 0 5px rgba(34, 211, 238, 0.65))
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.42))
    drop-shadow(0 0 20px rgba(34, 211, 238, 0.22));
}

.term-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: 12px;
  display: block;
  border-bottom: 1px solid var(--term-line);
  background: var(--term-bg);
}

.term-top .term-brand {
  width: 100%;
  min-width: 0;
}

/* Shell header: stacked terminal lines, shared cursor moves between rows */
.term-terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
  font-size: inherit;
  line-height: inherit;
}

.term-terminal .term-vh {
  top: 0;
  left: 0;
}

.term-line {
  min-width: 0;
  width: 100%;
}

.term-line--secondary[hidden] {
  display: none;
}

.term-line .term-brand {
  width: 100%;
}

/* Typed text lives in the buffer; cursor is a sibling so it hugs the last glyph (no flex-grow gap). */
.term-line__buffer {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.term-brand.term-brand--shell-row {
  gap: 2px;
}

.term-brand.term-brand--shell-row > .term-cursor {
  margin-left: 0;
}

.term-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.term-brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  font-size: inherit;
  line-height: 1.2;
}

.term-brand .term-arg {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-brand .term-prompt,
.term-brand .term-cmd {
  flex-shrink: 0;
}

/* Terminal `$` — violet (not body fg white) */
.term-prompt {
  color: #c4b5fd;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

.term-sp {
  white-space: pre;
  font-weight: 400;
  color: var(--term-dim);
  opacity: 0.65;
}

.term-cmd {
  color: var(--term-cyan);
  font-weight: 600;
}

.term-arg {
  color: var(--term-magenta);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(255, 61, 172, 0.35);
}

.term-cursor {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 1.1em;
  margin-left: 0;
  background: var(--term-violet);
  vertical-align: text-bottom;
  animation: terminal-cursor-uniform-blink 1s linear infinite;
}

/* Match site_header_terminal: ~50% on / ~50% off per second (no step-end skew). */
@keyframes terminal-cursor-uniform-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.term-nav {
  display: flex;
  gap: 14px;
}

.term-link {
  color: var(--term-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.35);
}

.term-link:hover {
  color: var(--term-magenta);
  border-bottom-color: rgba(255, 61, 172, 0.5);
}

.term-link--dim {
  color: var(--term-dim);
  border-bottom-color: rgba(107, 112, 128, 0.4);
}

.term-panel {
  background: var(--term-panel);
  border: 1px solid var(--term-line);
  border-radius: 4px;
  padding: 18px 16px 14px;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.45);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.term-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}

.term-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}

.term-tag--magenta {
  background: rgba(255, 61, 172, 0.15);
  color: var(--term-magenta);
  border: 1px solid rgba(255, 61, 172, 0.45);
  box-shadow: 0 0 16px rgba(255, 61, 172, 0.2);
}

.term-dim {
  color: var(--term-dim);
}

.term-h1 {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.term-h1__glow {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--term-fg);
  text-shadow:
    0 0 20px rgba(34, 211, 238, 0.25),
    0 0 28px rgba(167, 139, 250, 0.2);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.term-h1__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--term-amber);
  min-width: 0;
}

.term-empty {
  margin: 12px 0 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--term-amber);
  color: var(--term-dim);
}

.term-warn {
  color: var(--term-amber);
  font-weight: 700;
}

.term-table-wrap {
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
  margin: 0 -4px;
}

.term-table {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12px;
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
}

.term-table thead th:nth-child(1),
.term-table tbody td:nth-child(1) {
  width: 2.75rem;
}

.term-table thead th:nth-child(2),
.term-table tbody td:nth-child(2) {
  width: 36%;
}

.term-table thead th:nth-child(3),
.term-table tbody td:nth-child(3) {
  width: 28%;
}

.term-table thead th:nth-child(4),
.term-table tbody td:nth-child(4) {
  width: 34%;
}

.term-table thead th {
  text-align: left;
  padding: 8px 10px;
  color: var(--term-dim);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--term-line);
}

.term-th-inner {
  border-bottom: 2px solid var(--term-violet);
  padding-bottom: 4px;
}

.term-row {
  transition: background 0.12s ease;
}

.term-row:hover {
  background: rgba(34, 211, 238, 0.06);
}

.term-td {
  padding: 10px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(30, 30, 42, 0.9);
  min-width: 0;
}

.term-td--idx {
  color: var(--term-violet);
  font-variant-numeric: tabular-nums;
  width: 2.75rem;
}

.term-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.term-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--term-line);
  flex-shrink: 0;
}

.term-thumb--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.08);
  color: var(--term-violet);
  font-size: 14px;
}

.term-release-link {
  color: var(--term-cyan);
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-release-link:hover {
  color: var(--term-magenta);
  text-shadow: 0 0 14px rgba(255, 61, 172, 0.35);
}

.term-td--artist {
  color: var(--term-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-td--route {
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.term-td--route .term-code {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-code {
  color: var(--term-lime);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(184, 240, 119, 0.2);
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
}

.term-footer-route {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.term-footer-route__label {
  flex-shrink: 0;
}

.term-footer-route__code {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-foot {
  margin: 16px 0 0;
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.term-footer {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px dashed var(--term-line);
  font-size: 11px;
  min-width: 0;
}

/* --- album player (/albums/{slug}) --- */

.term-wrap--player {
  max-width: 720px;
}

.term-tag--cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--term-cyan);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.term-tag--sm {
  font-size: 10px;
  padding: 2px 6px;
}

.term-code--inline {
  font-size: inherit;
  padding: 1px 4px;
}

.term-panel--player {
  padding-bottom: 20px;
  --term-player-pad-x: 16px;
}

/* Player stream: no card chrome — match plain page background (header column stays shell max-width). */
.term-panel.term-panel--player {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Inset now-playing sections so framed bodies align with headings (same width as composer blocks). */
.term-panel--player .term-now-track-panel.term-bleed-sm {
  box-sizing: border-box;
  padding-left: var(--term-player-pad-x);
  padding-right: var(--term-player-pad-x);
}

/* Temporarily hidden (album player): BUFFER_SESSION row, tracks count */
.term-panel--player > .term-meta {
  display: none;
}

.term-panel--player .term-artwork-extra {
  display: none;
}

/* Album player (PC): title + artist + rule; artwork | queue; rule + album description; dock / lyrics / track description. */
@media (min-width: 641px) {
  body.term-body--player-page:not(.term-body--node-page) .term-play-hero {
    display: contents;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel.term-panel--player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 36%);
    column-gap: 20px;
    row-gap: 16px;
    align-items: start;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-head {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-rule--after-head {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-hero-main {
    grid-column: 1;
    grid-row: 3;
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-queue-stack {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    min-width: 0;
    max-height: min(75vh, 640px);
    overflow-y: auto;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player > .term-player-shell {
    display: contents;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player audio#audio-el {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-album-after-queue {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-album-after-queue .term-desc-accordion.term-bleed-sm {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-player-dock {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player #term-now-track-lyrics {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player #term-now-track-description {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  body.term-body--player-page:not(.term-body--node-page)
    .term-panel--player
    #term-now-track-description.term-now-track-panel.term-bleed-sm {
    padding-left: 0;
    padding-right: 0;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-cover-flip:not(.term-cover-flip--video) {
    width: 100%;
    max-width: min(100%, 520px);
    margin-inline: 0;
    margin-right: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-cover-flip.term-cover-flip--video {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.term-play-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--term-line);
}

hr.term-play-rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--term-line);
  width: 100%;
  box-sizing: border-box;
}

.term-play-head {
  min-width: 0;
}

.term-album-after-queue {
  min-width: 0;
  box-sizing: border-box;
}

.term-play-hero-main {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.term-artwork-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}

.term-track-meta-line {
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
}

.term-track-meta-line__n {
  color: var(--term-cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.term-desc-accordion {
  margin-top: 0;
  border: 1px solid var(--term-line);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.term-desc-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--term-cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
  user-select: none;
}

.term-desc-accordion__summary::-webkit-details-marker {
  display: none;
}

.term-desc-accordion__summary::marker {
  content: "";
}

.term-desc-accordion__summary::after {
  content: " +";
  color: var(--term-dim);
  font-weight: 600;
  letter-spacing: 0;
}

.term-desc-accordion[open] .term-desc-accordion__summary::after {
  content: " −";
}

.term-desc-accordion__body {
  padding: 0 10px 8px;
  border-top: 1px solid rgba(30, 30, 42, 0.85);
}

/* Open accordion: grow with content, no inner scrollbar */
.term-desc-accordion__body .term-desc {
  max-height: none;
  overflow: visible;
  overflow-y: visible;
  scrollbar-width: none;
}

.term-desc-accordion__body .term-desc::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.term-cover-lg {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--term-line);
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.term-cover-flip {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  perspective: 960px;
  outline: none;
  cursor: pointer;
}

.term-cover-flip--video {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 16 / 9;
  cursor: default;
}

.term-yt-host {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #000;
}

/* Transparent overlay over entire iframe: captures taps for flip (iframe UI is unreachable). */
.term-flip-video-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.term-flip-video-hit:focus-visible {
  outline: 2px solid var(--term-cyan);
  outline-offset: -2px;
}

.term-cover-flip--video .term-cover-flip__face {
  position: absolute;
  inset: 0;
}

.term-player-dock--node .term-player-dock__fft {
  display: none;
}

.term-node-comment {
  margin-top: 10px;
}

/* Node player: YouTube title/channel primary; node/curator secondary. */
.term-body--node-page .term-play-yt-meta {
  margin-bottom: 10px;
}

.term-body--node-page .term-play-yt-meta .term-play-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.term-body--node-page .term-play-node-meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--term-line);
}

.term-body--node-page .term-play-node-title,
.term-body--node-page .term-play-node-curator {
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--term-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-body--node-page .term-play-node-curator {
  margin-bottom: 0;
}

/* Node player: wider than phone — video spans full hero width inside .term-wrap--player */
@media (min-width: 641px) {
  .term-body--node-page .term-play-hero-main {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .term-body--node-page .term-play-meta {
    width: 100%;
    min-width: 0;
  }

  .term-body--node-page .term-cover-flip.term-cover-flip--video {
    width: 100%;
    max-width: none;
    align-self: stretch;
    aspect-ratio: 16 / 9;
  }

  .term-body--node-page .term-yt-host {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* PC: album + node (YouTube) player share the same content column cap as node watch layout. */
@media (min-width: 960px) {
  .term-body--player-page .term-wrap.term-wrap--player {
    max-width: min(100%, 960px);
  }
}

.term-cover-flip:focus-visible {
  outline: 2px solid var(--term-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.term-cover-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.term-cover-flip.is-flipped .term-cover-flip__inner {
  transform: rotateY(180deg);
}

.term-cover-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--term-line);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.term-cover-flip__face--back {
  transform: rotateY(180deg);
  /* Match QR "light" modules (#9ca3af in segno) so the whole back reads as one gray field */
  background: #9ca3af;
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.18);
}

.term-cover-flip .term-cover-lg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.term-cover-flip .term-cover-lg--ph {
  width: 100%;
  height: 100%;
  min-height: 0;
  font-size: clamp(32px, 10vw, 48px);
}

.term-cover-flip__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  background: transparent;
}

.term-cover-flip__url {
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
  font-size: 8px;
  line-height: 1.25;
  word-break: break-all;
  text-align: center;
  color: #0f172a;
  text-decoration: none;
  text-shadow: none;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.25);
  max-height: 2.8em;
  overflow: hidden;
  flex-shrink: 0;
}

.term-cover-flip__url:hover {
  color: #020617;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

.term-cover-flip__qr {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.term-cover-flip__qr svg {
  /* Fit the flex slot: width-only scaling made the square taller than the row → overflow */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.term-cover-flip__hint {
  margin: 0;
  font-size: 9px;
  text-align: center;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.72);
  flex-shrink: 0;
}

.term-cover-lg--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  color: var(--term-violet);
  font-size: 42px;
  font-weight: 300;
}

.term-play-meta {
  flex: 1;
  min-width: 0;
}

/* Album player: title block (node pages still use .term-play-meta inside .term-play-hero-main). */
.term-play-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--term-fg);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-play-artist {
  margin: 0;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Prose: album description, now-playing lyrics / track description / credit frames (same typography). */
.term-desc,
.term-now-track-panel__body,
.term-now-track-desc__body,
.term-now-track-credit-frame {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-desc {
  margin: 0;
  color: var(--term-dim);
  max-height: 8.5em;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.45) rgba(10, 10, 15, 0.98);
}

.term-desc::-webkit-scrollbar {
  width: 8px;
}

.term-desc::-webkit-scrollbar-track {
  background: rgba(10, 10, 15, 0.98);
  border-radius: 4px;
}

.term-desc::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.32);
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.12);
}

.term-desc::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.5);
}


.term-player-shell {
  margin-top: 0;
}

.term-player-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.term-player-dock__controls {
  order: 1;
}

.term-player-dock__seek {
  order: 2;
}

.term-player-dock__fft {
  order: 3;
}

.term-player-dock__fft .term-wave-wrap,
.term-player-dock__seek .term-seek-block {
  margin-bottom: 0;
}

.term-player-dock__controls .term-player-controls {
  margin-bottom: 0;
}

.term-player-controls-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  column-gap: 8px;
}

.term-player-controls-row .term-player-controls {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.term-repeat-cycle {
  grid-column: 3;
  justify-self: end;
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  min-width: 3.25rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.12s, border-color 0.12s, box-shadow 0.12s, background 0.12s;
  /* OFF: same cyan family as transport */
  color: var(--term-cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.38);
  box-shadow:
    0 0 6px rgba(34, 211, 238, 0.18),
    0 0 14px rgba(34, 211, 238, 0.06);
}

.term-repeat-cycle[data-repeat="none"]:hover {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.52);
  background: rgba(34, 211, 238, 0.1);
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.22),
    0 0 16px rgba(34, 211, 238, 0.08);
}

/* one / album: red family */
.term-repeat-cycle[data-repeat="one"],
.term-repeat-cycle[data-repeat="all"] {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(185, 28, 28, 0.92);
  box-shadow:
    0 0 8px rgba(248, 113, 113, 0.22),
    0 0 16px rgba(239, 68, 68, 0.1);
}

.term-repeat-cycle[data-repeat="one"]:hover,
.term-repeat-cycle[data-repeat="all"]:hover {
  color: #ffe4e6;
  border-color: rgba(220, 38, 38, 0.98);
  background: rgba(153, 27, 27, 0.4);
  box-shadow:
    0 0 10px rgba(251, 113, 113, 0.28),
    0 0 20px rgba(239, 68, 68, 0.12);
}

.term-player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.term-btn {
  font-family: "JetBrains Mono", "SF Mono", "Consolas", ui-monospace, monospace;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--term-cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 3px;
  transition: color 0.12s, border-color 0.12s, box-shadow 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.term-btn__icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.term-btn--play-pause .term-btn__icon {
  width: 22px;
  height: 22px;
}

.term-btn--play-pause:not(.term-btn--playing) .term-btn__icon--pause {
  display: none;
}

.term-btn--play-pause.term-btn--playing .term-btn__icon--play {
  display: none;
}

.term-btn--play-pause.term-btn--playing .term-btn__icon--pause {
  display: block;
}

.term-btn:hover {
  color: var(--term-magenta);
  border-color: rgba(255, 61, 172, 0.55);
  box-shadow: 0 0 12px rgba(255, 61, 172, 0.15);
}

.term-btn--accent {
  font-weight: 700;
  border-color: rgba(255, 61, 172, 0.5);
  color: var(--term-magenta);
  box-shadow: 0 0 14px rgba(255, 61, 172, 0.12);
}

/* Fixed dock: prev/next stay cyan after click/hover; play/pause idle blue / playing red — subtle glow */
.term-player-dock__controls .term-player-controls > .term-btn {
  box-shadow:
    0 0 6px rgba(34, 211, 238, 0.2),
    0 0 14px rgba(34, 211, 238, 0.07);
  transition: color 0.12s, border-color 0.12s, box-shadow 0.12s, background 0.12s, filter 0.12s;
}

.term-player-dock__controls .term-player-controls > .term-btn .term-btn__icon {
  filter: drop-shadow(0 0 2px rgba(34, 211, 238, 0.45));
}

.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):hover,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):focus,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):focus-visible,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):active {
  color: var(--term-cyan);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(34, 211, 238, 0.09);
  box-shadow:
    0 0 7px rgba(34, 211, 238, 0.24),
    0 0 14px rgba(34, 211, 238, 0.08);
}

.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):hover .term-btn__icon,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):focus .term-btn__icon,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):focus-visible .term-btn__icon,
.term-player-dock__controls .term-player-controls > .term-btn:not(.term-btn--play-pause):active .term-btn__icon {
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.5));
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(34, 211, 238, 0.1);
  color: var(--term-cyan);
  box-shadow:
    0 0 7px rgba(34, 211, 238, 0.28),
    0 0 16px rgba(56, 189, 248, 0.1);
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause .term-btn__icon {
  filter: drop-shadow(0 0 3px rgba(125, 211, 252, 0.55));
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause:hover {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(34, 211, 238, 0.14);
  box-shadow:
    0 0 9px rgba(56, 189, 248, 0.32),
    0 0 18px rgba(34, 211, 238, 0.12);
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause:hover .term-btn__icon {
  filter: drop-shadow(0 0 4px rgba(186, 230, 253, 0.55));
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause.term-btn--playing {
  color: #fecaca;
  border-color: rgba(185, 28, 28, 0.95);
  background: rgba(244, 63, 94, 0.12);
  box-shadow:
    0 0 8px rgba(248, 113, 113, 0.32),
    0 0 18px rgba(239, 68, 68, 0.14);
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause.term-btn--playing .term-btn__icon {
  filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.45));
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause.term-btn--playing:hover {
  color: #ffe4e6;
  border-color: rgba(220, 38, 38, 1);
  background: rgba(244, 63, 94, 0.16);
  box-shadow:
    0 0 10px rgba(251, 113, 113, 0.38),
    0 0 20px rgba(248, 113, 113, 0.16);
}

.term-player-dock__controls .term-player-controls > .term-btn--play-pause.term-btn--playing:hover .term-btn__icon {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.term-select {
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
  color: var(--term-fg);
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 2px;
}

/* Full-width seek stack (same usable width as spectrum block below) */
.term-seek-block {
  width: 100%;
  margin-bottom: 12px;
}

.term-seek-times-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.term-seek-head-center {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  font-size: 10px;
  line-height: 1.2;
}

.term-seek-pct {
  font-variant-numeric: tabular-nums;
  color: var(--term-cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.term-seek-wrap {
  --seek-pct: 0;
  position: relative;
  height: 22px;
  border-radius: 2px;
}

.term-seek-rail {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 2px;
  background: #060608;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.term-seek-wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  border-radius: 2px;
}

.term-seek-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  border-radius: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(34, 211, 238, 0.15) 3px,
    rgba(34, 211, 238, 0.15) 4px
  );
  pointer-events: none;
}

.term-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  border-radius: 2px 0 0 2px;
  transform: scaleX(var(--seek-pct, 0));
  transform-origin: left center;
  opacity: 0.42;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.75),
    rgba(255, 61, 172, 0.55)
  );
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
  pointer-events: none;
}

.term-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
}

.term-seek:focus {
  outline: none;
}

.term-seek:focus-visible {
  outline: 1px solid var(--term-cyan);
  outline-offset: 2px;
}

.term-seek::-webkit-slider-runnable-track {
  height: 22px;
  background: transparent;
}

.term-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 18px;
  margin-top: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8f4ff, var(--term-cyan));
  border: 1px solid rgba(34, 211, 238, 0.9);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.65),
    0 0 18px rgba(255, 61, 172, 0.25);
}

.term-seek::-moz-range-track {
  height: 22px;
  background: transparent;
}

.term-seek::-moz-range-thumb {
  width: 8px;
  height: 18px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8f4ff, var(--term-cyan));
  border: 1px solid rgba(34, 211, 238, 0.9);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.65),
    0 0 18px rgba(255, 61, 172, 0.25);
}

.term-seek-ascii {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 2px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--term-dim);
  overflow: hidden;
  max-width: 100%;
  white-space: pre;
}

.term-time {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--term-dim);
  min-width: 2.5rem;
}

.term-queue-head {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--term-violet);
}

.term-track-queue {
  margin: 0;
  padding: 0;
  list-style: none;
}

.term-track-li {
  margin: 0;
  border-bottom: 1px solid rgba(30, 30, 42, 0.85);
}

.term-track-btn.track-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  color: var(--term-fg);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.1s;
}

.term-track-btn.track-item:hover {
  background: rgba(34, 211, 238, 0.07);
}

.term-track-btn.track-item[aria-current="true"] {
  background: rgba(255, 61, 172, 0.08);
  border-left: 3px solid var(--term-magenta);
  padding-left: 5px;
}

.term-track-idx {
  color: var(--term-violet);
  font-variant-numeric: tabular-nums;
  min-width: 1.75rem;
}

.term-track-name {
  color: var(--term-cyan);
  font-weight: 600;
}

.term-track-btn.track-item[aria-current="true"] .term-track-name {
  color: var(--term-magenta);
}

/* Current track lyrics / description (below queue; after playback has started). */
.term-now-track-panel,
.term-now-track-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--term-line);
}

/* Credits are the first block: drop the panel top rule so nothing sits above Composer. */
#term-now-track-lyrics.term-now-track-panel {
  border-top: none;
  padding-top: 0;
}

/* Album: description follows lyrics — no rule between those two blocks. */
#term-now-track-lyrics + #term-now-track-description.term-now-track-panel {
  border-top: none;
  margin-top: 8px;
  padding-top: 0;
}

.term-now-track-panel__head,
.term-now-track-desc__head {
  margin-bottom: 3px;
}

.term-now-track-credits[hidden] {
  display: none !important;
}

.term-now-track-credits {
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-now-track-credit-block[hidden] {
  display: none !important;
}

.term-now-track-credit-title {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: none;
  color: var(--term-violet);
}

.term-now-track-lyrics-core {
  margin: 0;
}

.term-now-track-lyrics-core[hidden] {
  display: none !important;
}

.term-now-track-panel__body,
.term-now-track-desc__body,
.term-now-track-credit-frame {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 4px 10px;
  color: var(--term-dim);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

/* spectrum / ascii scope (album player) */
.term-wave-wrap {
  --term-wave-logical-h: 72px;
  position: relative;
  margin-bottom: 14px;
  border: 1px solid var(--term-line);
  border-radius: 3px;
  overflow: hidden;
  background: #08080c;
}

.term-wave-canvas {
  display: block;
  width: 100%;
  height: var(--term-wave-logical-h);
  vertical-align: middle;
}

.term-wave-scan {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--term-wave-logical-h);
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.12) 2px,
    rgba(255, 255, 255, 0.12) 3px
  );
}

.term-wave-foot {
  padding: 6px 0 8px;
  border-top: 1px solid var(--term-line);
  background: rgba(0, 0, 0, 0.35);
}

.term-wave-foot .term-dim {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.term-wave-ascii {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--term-lime);
  text-shadow: 0 0 8px rgba(184, 240, 119, 0.25);
  white-space: pre;
  overflow: hidden;
  max-width: 100%;
  text-align: left;
}

@media (max-width: 640px) {
  .term-table thead th:nth-child(4),
  .term-table tbody td:nth-child(4) {
    display: none;
  }

  .term-table thead th:nth-child(2),
  .term-table tbody td:nth-child(2) {
    width: 52%;
  }

  .term-table thead th:nth-child(3),
  .term-table tbody td:nth-child(3) {
    width: auto;
  }

  /* Album player mobile: align scroll column with fixed dock (10px + safe-area); black chrome */
  body.term-body--player-page {
    background: #000;
  }

  .term-wrap.term-wrap--player {
    --term-dock-spacer: clamp(248px, 56vh, 400px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
    background: #000;
  }

  .term-body--player-page .term-scan {
    opacity: 0.02;
  }

  .term-body--player-page .term-top {
    border-bottom-color: #141414;
    background: #000;
  }

  .term-wrap.term-wrap--player > .term-top {
    width: 100%;
    max-width: none;
  }

  .term-player-shell {
    padding-bottom: calc(var(--term-dock-spacer) + env(safe-area-inset-bottom, 0px));
  }

  .term-play-hero-main {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .term-panel--player .term-play-head {
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  /* Album mobile only: DOM order matches PC grid; visually cover first, then title + artist + rule. */
  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-hero-main {
    order: 1;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-head {
    order: 2;
  }

  body.term-body--player-page:not(.term-body--node-page) .term-panel--player .term-play-rule--after-head {
    order: 3;
  }

  .term-play-meta {
    min-width: 0;
    width: 100%;
  }

  .term-artwork-extra {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .term-track-meta-line {
    text-align: center;
  }

  .term-panel--player {
    padding-bottom: 12px;
    --term-player-pad-x: 12px;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .term-panel--player > .term-play-hero {
    border-bottom-color: #141414;
  }

  .term-panel--player .term-cover-flip {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }

  /* Node: YouTube area stays 16:9 (album artwork stays 1:1 above) */
  .term-panel--player .term-cover-flip.term-cover-flip--video {
    aspect-ratio: 16 / 9;
  }

  .term-panel--player .term-cover-flip .term-cover-lg,
  .term-panel--player .term-cover-flip .term-cover-lg.term-cover-lg--ph {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: none;
    border: 0;
  }

  .term-panel--player .term-cover-flip .term-cover-lg--ph {
    font-size: clamp(28px, 12vw, 48px);
    background: transparent;
  }

  .term-panel--player .term-cover-flip__face {
    box-shadow: none;
    border-color: #000;
  }

  .term-panel--player .term-bleed-sm {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .term-panel--player .term-bleed-sm.term-desc-accordion {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: #0a0a0a;
    border-color: #141414;
  }

  .term-panel--player .term-bleed-sm.term-desc-accordion .term-desc-accordion__summary {
    padding-left: var(--term-player-pad-x);
    padding-right: var(--term-player-pad-x);
  }

  .term-panel--player .term-bleed-sm.term-desc-accordion .term-desc-accordion__body {
    padding-left: var(--term-player-pad-x);
    padding-right: var(--term-player-pad-x);
  }

  .term-panel--player .term-queue-stack.term-bleed-sm .term-queue-head {
    padding-left: var(--term-player-pad-x);
    padding-right: var(--term-player-pad-x);
  }

  .term-panel--player .term-queue-stack.term-bleed-sm .term-track-btn.track-item {
    padding-left: var(--term-player-pad-x);
    padding-right: var(--term-player-pad-x);
  }

  .term-panel--player .term-queue-stack.term-bleed-sm .term-empty {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--term-player-pad-x);
    padding-right: var(--term-player-pad-x);
  }

  .term-panel--player .term-now-track-panel.term-bleed-sm .term-now-track-panel__body,
  .term-panel--player .term-now-track-panel.term-bleed-sm .term-now-track-credit-frame,
  .term-panel--player .term-now-track-desc.term-bleed-sm .term-now-track-desc__body {
    box-sizing: border-box;
    width: 100%;
  }

  .term-player-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    gap: 0;
    margin-bottom: 0;
    padding:
      8px calc(10px + env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px));
    background: #000;
    border-top: 1px solid #141414;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
  }

  .term-player-dock__fft {
    order: 1;
  }

  .term-player-dock__seek {
    order: 2;
  }

  .term-player-dock__controls {
    order: 3;
  }

  .term-player-dock .term-wave-wrap {
    --term-wave-logical-h: 56px;
    margin-bottom: 0;
    border-radius: 2px;
    border-color: #000;
    background: #000;
  }

  .term-player-dock .term-wave-foot {
    padding: 4px 0 5px;
    border-top-color: #141414;
    background: #000;
  }

  .term-player-dock .term-wave-foot .term-dim {
    font-size: 9px;
    margin-bottom: 2px;
    padding: 0;
  }

  .term-player-dock .term-wave-ascii {
    font-size: 9px;
    line-height: 1.15;
    padding: 0;
  }

  .term-player-dock .term-seek-block {
    margin-bottom: 0;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #141414;
  }

  .term-player-dock .term-seek-times-row {
    margin-bottom: 2px;
  }

  .term-player-dock .term-seek-ascii {
    display: none;
  }

  .term-player-dock .term-player-controls-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #141414;
  }

  .term-player-controls {
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 10px;
  }
}
