:root {
  --bg-void: #07060a;
  --bg-panel: #0c0b10;
  --bg-chrome: #121018;
  --fg: #e8dcc8;
  --fg-dim: #8a7f6e;
  --amber: #ff9f1c;
  --amber-hot: #ffb84d;
  --phosphor: #f0c674;
  --signal: #ff5a36;
  --cyan: #5ec8e8;
  --line: #2a2433;
  --ok: #7dcea0;
  --err: #e76f51;
  --glow: rgba(255, 159, 28, 0.35);
  --font: "IBM Plex Mono", "Share Tech Mono", ui-monospace, monospace;
  --font-display: "Share Tech Mono", "IBM Plex Mono", monospace;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* —— Wallpaper —— */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.02);
  filter: contrast(1.18) brightness(1.05);
}

.wallpaper__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.55) 0%, transparent 18%, transparent 82%, rgba(7, 6, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.25) 0%, transparent 30%, rgba(7, 6, 10, 0.55) 100%);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— CRT overlays —— */
.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.crt__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.crt__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.28) 100%);
}

.crt__glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(255, 159, 28, 0.06);
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.92;
  }
  94% {
    opacity: 1;
  }
  96% {
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt__glow {
    animation: none;
  }
  .cursor {
    animation: none !important;
    opacity: 1;
  }
  .boot__log {
    animation: none;
  }
}

/* —— Boot: band reveal + DOS setup —— */
.wallpaper.is-boot-hidden {
  opacity: 0;
}

.boot {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
}

.boot[hidden],
.desktop[hidden],
.lightbox[hidden] {
  display: none !important;
}

.boot__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.boot__band {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.12);
  filter: contrast(1.2) brightness(0.35);
  opacity: 0;
}

.boot.is-reveal .boot__band {
  animation: band-reveal 1.8s ease-out forwards;
}

.boot.is-settle .boot__band {
  animation: band-settle 1.1s ease-in-out forwards;
}

@keyframes band-reveal {
  0% {
    opacity: 0;
    transform: scale(1.18);
    filter: contrast(1.4) brightness(0.15);
  }
  55% {
    opacity: 1;
    filter: contrast(1.25) brightness(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
    filter: contrast(1.15) brightness(1);
  }
}

@keyframes band-settle {
  to {
    opacity: 0;
    transform: scale(1);
    filter: contrast(1.1) brightness(0.7);
  }
}

.boot__band-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 40%, rgba(0, 0, 0, 0.55)),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.boot__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.boot.is-flash .boot__flash {
  animation: boot-flash 0.45s ease-out;
}

@keyframes boot-flash {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

.boot__setup {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  background: #c0c0c0;
  color: #111;
  border: 2px solid;
  border-color: #dfdfdf #000 #000 #dfdfdf;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    6px 6px 0 rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.boot.is-panel .boot__setup {
  animation: setup-in 0.45s ease-out forwards;
}

.boot.is-panel-out .boot__setup {
  animation: setup-out 0.4s ease-in forwards;
}

@keyframes setup-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes setup-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.boot__setup-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.45rem;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.boot__setup-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.boot__setup-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.boot__log {
  margin: 0 0 0.75rem;
  min-height: 5.5em;
  font-family: var(--font);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #111;
  white-space: pre-wrap;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 0.45rem 0.55rem;
}

.boot__log .ok {
  color: #008000;
}

.boot__log .warn {
  color: #000080;
  font-weight: 600;
}

.boot__log .brand {
  color: #000080;
  font-weight: 700;
}

.boot__meters {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.boot__meter {
  display: grid;
  gap: 0.15rem;
}

.boot__meter-label {
  font-size: 0.72rem;
  color: #222;
}

.boot__meter-track {
  height: 16px;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px;
}

.boot__meter-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #000080 0 8px,
    #1084d0 8px 10px
  );
  transition: width 0.6s linear;
}

.boot__setup-foot {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.75rem;
  color: #333;
}

@media (prefers-reduced-motion: reduce) {
  .boot.is-reveal .boot__band,
  .boot.is-settle .boot__band,
  .boot.is-flash .boot__flash,
  .boot.is-panel .boot__setup,
  .boot.is-panel-out .boot__setup {
    animation: none !important;
  }
  .boot.is-reveal .boot__band {
    opacity: 1;
    transform: scale(1.02);
    filter: contrast(1.15) brightness(1);
  }
  .boot.is-panel .boot__setup {
    opacity: 1;
    transform: none;
  }
}

/* —— Desktop shell —— */
.desktop {
  position: relative;
  z-index: 2;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 0.5rem;
  padding: 0.5rem clamp(0.75rem, 4vw, 2.5rem) 0.65rem;
  max-width: min(1200px, 92vw);
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.menubar {
  position: relative;
  z-index: 40;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem;
  background: #c0c0c0;
  color: #111;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
  font-size: 0.78rem;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #dfdfdf;
}

.menubar__brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #000080;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.menubar__start {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
  background: #000080;
  font-size: 0.7rem;
  border: 1px solid #000;
}

.menubar__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.menubar__ver {
  color: #444;
  font-size: 0.7rem;
}

.menubar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  flex: 1;
}

.menubar__nav button,
.dock__btn {
  font: inherit;
  color: #111;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: none;
  box-shadow: inset -1px -1px 0 #000;
}

.menubar__nav button:hover,
.menubar__nav button:focus-visible,
.dock__btn:hover,
.dock__btn:focus-visible {
  color: #000;
  background: #d4d0c8;
  border-color: #fff #808080 #808080 #fff;
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.menubar__nav button:active,
.dock__btn:active {
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px 0 #000;
}

.menubar__nav button.is-active {
  color: #fff;
  background: #000080;
  border-color: #1084d0 #000040 #000040 #1084d0;
}

.menubar__clock {
  margin-left: auto;
  color: #111;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.45rem;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
}

/* —— Window (Win95 / CMD) —— */
.window {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: none;
  background: #0c0c0c;
  border: 2px solid;
  border-color: #dfdfdf #000 #000 #dfdfdf;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    4px 4px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: window-in 0.55s ease-out both;
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.window__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 3px 3px 3px 4px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  border-bottom: 1px solid #000;
}

.window__icon {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
}

.window__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}

.window__actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}

.win-btn {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset -1px -1px 0 #000;
}

.win-btn--close {
  font-size: 0.85rem;
}

.terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.65rem 0.75rem 0.8rem;
  background: #0c0c0c;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  margin: 2px;
}

.terminal__output {
  flex: 1;
  overflow-y: auto;
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) transparent;
}

.terminal__output::-webkit-scrollbar {
  width: 8px;
}
.terminal__output::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--amber) 55%, transparent);
  border-radius: 4px;
}

.line {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.line--cmd {
  color: #c0c0c0;
}

.line--err {
  color: var(--err);
}

.line--muted {
  color: var(--fg-dim);
}

.line--ok {
  color: var(--ok);
}

.line--accent {
  color: var(--amber-hot);
  text-shadow: 0 0 14px var(--glow);
}

.line--signal {
  color: var(--signal);
  font-weight: 600;
}

.ascii {
  color: var(--amber);
  text-shadow: 0 0 18px var(--glow);
  font-size: clamp(0.45rem, 1.35vw, 0.72rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.85rem;
  overflow-x: auto;
}

.block {
  margin: 0.65rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--amber);
  background: rgba(255, 159, 28, 0.04);
}

.block__title {
  color: var(--amber-hot);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.grid-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}

.member,
.release,
.media-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(42, 36, 51, 0.9);
}

.member__id,
.release__id,
.media-row__id {
  color: var(--cyan);
  font-weight: 600;
}

.member__role,
.release__meta,
.media-row__meta {
  color: var(--fg-dim);
  font-size: 0.85em;
}
.grid-list--band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem 1rem;
  margin: 0.65rem 0 1rem;
}

.grid-list--band .member {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  border-bottom: 0;
}

.member__photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px;
  border: 1px solid #2a2433;
  background: #000;
  cursor: pointer;
}

.member__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.member__photo:hover,
.member__photo:focus-visible {
  border-color: var(--amber, #ff9f1c);
  box-shadow: 0 0 14px rgba(255, 159, 28, 0.35);
  outline: none;
}

.member__info {
  display: grid;
  gap: 0.15rem;
}

.member__name {
  font-weight: 600;
  color: var(--fg, #e8dcc8);
}


.term-link {
  color: var(--amber-hot);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.term-link:hover,
.term-link:focus-visible {
  color: var(--cyan);
  outline: none;
}

.media-thumb {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  border: 1px solid var(--line);
  padding: 2px;
  background: #000;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.25rem;
}

.media-grid .media-thumb {
  margin: 0;
}

.media-thumb:hover,
.media-thumb:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 16px var(--glow);
  outline: none;
}

.media-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.help-table {
  display: grid;
  gap: 0.25rem;
  margin: 0.5rem 0 1rem;
}

.help-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 0.75rem;
}

.help-row code {
  color: var(--cyan);
  font-family: inherit;
}

.terminal__prompt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.prompt-path {
  color: #c0c0c0;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

#cmd {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  caret-color: var(--amber);
  outline: none;
  padding: 0.2rem 0;
}

.cursor {
  position: absolute;
  right: 0;
  width: 0.55em;
  height: 1.15em;
  background: var(--amber);
  opacity: 0;
  pointer-events: none;
}

#cmd:not(:focus) ~ .cursor {
  /* decorative; real caret shows on focus */
}

/* —— Player —— */
.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "cover meta viz"
    "controls controls controls";
  gap: 0.45rem 0.75rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #dfdfdf;
  color: #111;
  flex-shrink: 0;
}

.player.is-playing {
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #dfdfdf, 0 0 0 1px #000080;
}

.player__cover {
  grid-area: cover;
  width: 56px;
  height: 56px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #000;
  overflow: hidden;
}

.player__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.player.is-playing .player__cover {
  border-color: #000080;
  box-shadow: none;
}

.player__meta {
  grid-area: meta;
  min-width: 0;
}

.player__now {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #000080;
  margin-bottom: 0.15rem;
}

.player.is-playing .player__now::after {
  content: " ●";
  color: var(--ok);
  animation: blink-dot 1s steps(1) infinite;
}

@keyframes blink-dot {
  50% {
    opacity: 0;
  }
}

.player__title {
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

.player__artist {
  color: #444;
  font-size: 0.78rem;
}

.player__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.player__btn {
  font: inherit;
  min-width: 40px;
  min-height: 36px;
  padding: 0.25rem 0.45rem;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  cursor: pointer;
  box-shadow: inset -1px -1px 0 #000;
  transition: none;
}

.player__btn:hover,
.player__btn:focus-visible {
  background: #d4d0c8;
  border-color: #fff #808080 #808080 #fff;
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.player__btn.is-active {
  color: #fff;
  background: #000080;
  border-color: #808080 #fff #fff #808080;
}

.player__timeline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 160px;
}

.player__time {
  font-size: 0.72rem;
  color: #333;
  font-variant-numeric: tabular-nums;
  min-width: 2.4em;
}

.player__seek,
.player__vol {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 0;
  background: #808080;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  outline: none;
  cursor: pointer;
}

.player__seek {
  flex: 1;
}

.player__vol {
  width: 72px;
}

.player__seek::-webkit-slider-thumb,
.player__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 18px;
  border-radius: 0;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset -1px -1px 0 #000;
  cursor: pointer;
}

.player__seek::-moz-range-thumb,
.player__vol::-moz-range-thumb {
  width: 12px;
  height: 18px;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
  background: #c0c0c0;
  cursor: pointer;
}

.player__viz {
  grid-area: viz;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 0 0.25rem;
}

.player__viz span {
  width: 3px;
  height: 20%;
  background: #000080;
  opacity: 0.45;
  border-radius: 0;
  transition: height 120ms ease;
}

.player.is-playing .player__viz span {
  opacity: 0.9;
  animation: eq 0.85s ease-in-out infinite;
}

.player.is-playing .player__viz span:nth-child(1) { animation-delay: 0s; }
.player.is-playing .player__viz span:nth-child(2) { animation-delay: 0.12s; }
.player.is-playing .player__viz span:nth-child(3) { animation-delay: 0.05s; }
.player.is-playing .player__viz span:nth-child(4) { animation-delay: 0.2s; }
.player.is-playing .player__viz span:nth-child(5) { animation-delay: 0.08s; }

@keyframes eq {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player.is-playing .player__viz span,
  .player.is-playing .player__now::after {
    animation: none;
  }
  .player.is-playing .player__viz span {
    height: 60%;
  }
}

@media (min-width: 860px) {
  .player {
    grid-template-columns: auto minmax(140px, 220px) 1fr auto;
    grid-template-areas: "cover meta controls viz";
  }
}

@media (max-width: 720px) {
  .player__vol {
    width: 56px;
  }

  .player__viz {
    display: none;
  }
}

/* —— Dock —— */
.dock {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset -1px -1px 0 #000;
  flex-shrink: 0;
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
}

.dock__btn--accent {
  color: #fff;
  background: #000080;
  border-color: #1084d0 #000040 #000040 #1084d0;
  font-weight: 700;
}

.dock__btn--accent:hover,
.dock__btn--accent:focus-visible {
  color: #fff;
  background: #0000a8;
  border-color: #1084d0 #000040 #000040 #1084d0;
}

.dock__icon {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* —— Lightbox —— */

/* �� Footer �� */
.site-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem 0.15rem;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #33ff66;
  text-shadow: 0 0 8px rgba(51, 255, 102, 0.45);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #1a5c2e;
  user-select: none;
}

.site-footer__prompt {
  color: #66ff99;
  font-weight: 700;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--amber);
  box-shadow: 0 0 40px var(--glow);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-chrome);
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: none;
}

/* —— Responsive: un solo layout PC + telefono —— */
@media (max-width: 860px) {
  body {
    overflow-y: auto;
  }

  .desktop {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding:
      max(0.45rem, env(safe-area-inset-top, 0px))
      0.55rem
      calc(0.45rem + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    overflow: visible;
  }

  .menubar {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .menubar__nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.3rem;
  }

  .menubar__nav::-webkit-scrollbar {
    display: none;
  }

  .menubar__nav button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
  }

  .menubar__clock {
    align-self: flex-end;
  }

  .window {
    flex: 1 1 auto;
    min-height: 48dvh;
    height: auto;
    max-height: none;
  }

  .window__title {
    font-size: 0.68rem;
  }

  .ascii {
    font-size: clamp(0.32rem, 2.4vw, 0.48rem);
  }

  .help-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    margin-bottom: 0.45rem;
  }

  .grid-list--band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .media-grid .media-thumb {
    width: 100%;
    margin: 0;
  }

  .media-grid .media-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .player {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "cover meta"
      "controls controls";
  }

  .player__viz {
    display: none;
  }

  .player__vol {
    width: 56px;
  }

  .player__controls {
    flex-wrap: wrap;
  }

  .dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
  }

  .dock__btn {
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-height: 48px;
    padding: 0.3rem 0.2rem;
    font-size: 0.7rem;
    width: 100%;
  }

  .boot {
    padding: 0.75rem;
  }

  .boot__setup {
    width: min(440px, 100%);
  }

  .boot__log {
    font-size: 0.72rem;
    max-height: 28vh;
    overflow: auto;
  }
}

@media (min-width: 861px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .desktop {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .grid-list--band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
