/* =========================================================================
   Dalga — the pixel skin. Loaded after style.css on /pixel only.
   One 3px grid everywhere: stepped corners, blocky shadows, pixel type,
   sprite records, and a scene canvas that moves with the music.
   ========================================================================= */

[data-skin="pixel"] {
  --f-display: "Jersey 10", "Pixelify Sans", monospace;
  --f-ui: "Pixelify Sans", system-ui, sans-serif;
  --f-tag: "Pixelify Sans", system-ui, sans-serif;   /* small labels: readable, never tiny pixel capitals */
  /* a rectangle with one-pixel stepped corners */
  --notch: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  --edge: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line);
  --pv: #191614; --pg: #2E2925; --ps: #433B34; --pS: #5C5148; --pe: #191614;
  --track-solid: #DCCDB0;
  --dash: rgba(31, 26, 22, 0.3);
  --plank-hi: #EADBB8; --plank-lo: #B59B6C;
}
[data-skin="pixel"][data-theme="dark"] {
  --pv: #120A08; --pg: #2A1A15; --ps: #2E201A; --pS: #3E2C24; --pe: #6A5244;
  --track-solid: #4A3226;
  --dash: rgba(243, 230, 204, 0.22);
  --plank-hi: #6A4434; --plank-lo: #2E1A12;
}

[data-skin="pixel"] *, [data-skin="pixel"] *::before, [data-skin="pixel"] *::after { border-radius: 0 !important; }
/* the focus ring is drawn inside (stepped corners would cut an outer one off) in the element's own text colour, so it always contrasts */
[data-skin="pixel"] :focus-visible { outline: 3px solid currentColor; outline-offset: -8px; }
[data-skin="pixel"] :is(input, select, .rec):focus-visible { outline-offset: 2px; }
[data-skin="pixel"] a:focus-visible { outline-offset: 2px; }

/* ---- stepped corners: a 3px border with the corner pixels cut away */
[data-skin="pixel"] :is(.round, .tabs, .cat, .place, .fav-btn, .seg, .daypick, .pillbtn, .guide, .rec-badge, .rec-fav, kbd) {
  border-width: 3px;
  clip-path: var(--notch);
}
[data-skin="pixel"] :is(.tab[aria-selected="true"], .seg-btn[aria-selected="true"], .now-box, .cat-all, .tab-count, .cc, .toast, .tab:hover) {
  clip-path: var(--notch);
}
[data-skin="pixel"] .tab-count { border: 0; font-family: var(--f-tag); font-weight: 400; }
[data-skin="pixel"] .place-all { border-style: dashed; }

/* ---- things with a drop shadow: the border and the shadow are drawn with box-shadows */
[data-skin="pixel"] .player {
  border: 0;
  margin: 3px 9px 9px 3px;
  box-shadow: var(--edge), 9px 6px 0 0 var(--shadow), 6px 9px 0 0 var(--shadow);
}
[data-skin="pixel"] .play {
  border: 0;
  box-shadow: var(--edge), 6px 3px 0 0 var(--shadow), 3px 6px 0 0 var(--shadow);
  transition: none;
}
[data-skin="pixel"] .play:active { transform: translate(3px, 3px); box-shadow: var(--edge); }
[data-skin="pixel"] :is(.menu, .mini, .dialog) {
  border: 0;
  box-shadow: var(--edge), 7px 4px 0 0 var(--shadow), 4px 7px 0 0 var(--shadow);
}
[data-skin="pixel"] .searchbar { border-width: 3px; clip-path: var(--notch); }
[data-skin="pixel"] .browse-search {
  border: 0;
  clip-path: none;
  margin: 3px;
  box-shadow: var(--edge), 6px 3px 0 0 var(--shadow), 3px 6px 0 0 var(--shadow);
}
[data-skin="pixel"] .browse-search:focus-within {
  border: 0;
  box-shadow: 0 -3px 0 0 var(--tomato), 0 3px 0 0 var(--tomato), -3px 0 0 0 var(--tomato), 3px 0 0 0 var(--tomato),
    6px 3px 0 0 var(--tomato), 3px 6px 0 0 var(--tomato);
}
[data-skin="pixel"] .round:active { transform: translate(3px, 3px); }

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

[data-skin="pixel"] .logo { padding: 0; font: inherit; display: inline-flex; }
[data-skin="pixel"] .px-logo { width: 174px; height: 60px; }
[data-skin="pixel"] .px-logo .pl { fill: var(--ink); }
[data-skin="pixel"] .px-logo .pt { fill: var(--teal); }
[data-skin="pixel"] .brand:hover .px-logo { animation: px-hop 0.4s steps(2); }
@keyframes px-hop { 50% { transform: translateY(-6px); } }
[data-skin="pixel"] .brand-tag { margin-top: 6px; border-left-width: 3px; font: 600 13px/1.15 var(--f-tag); }
[data-skin="pixel"] .round-text { font: 600 14px var(--f-tag); }
[data-skin="pixel"] .aa-btn { padding: 0 12px; }
/* light and dark live in the Aa menu on this page, so the header fits on a phone */
[data-skin="pixel"] #themeBtn { display: none; }
[data-skin="pixel"] .aa-btn .aa { font: 400 26px/1 var(--f-display); }
/* for screen readers only */
.px-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- player: scene on top, record and controls below */

[data-skin="pixel"] .player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px 36px;
  padding: 24px 30px 28px;
}
[data-skin="pixel"] .scene-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  min-height: 246px;
  background: #0B0A1A;
  border: 3px solid var(--line);
  clip-path: var(--notch);
}
[data-skin="pixel"] .scene-wrap { position: relative; }
/* notes collected, in the scene's top-right corner: opens the wardrobe (the speech bubble keeps clear of it) */
[data-skin="pixel"] .scene-notes {
  position: absolute; top: 9px; right: 9px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px 0 8px;
  border: 0; background: rgba(14, 10, 8, 0.8); color: #F3E6CC;
  font: 600 14px var(--f-tag); font-variant-numeric: tabular-nums;
  clip-path: var(--notch); cursor: pointer;
}
[data-skin="pixel"] .scene-notes:hover { background: rgba(14, 10, 8, 0.95); }
[data-skin="pixel"] .scene-notes #notesIcon { display: inline-flex; color: #F2B23E; }
[data-skin="pixel"] .scene-notes.bump { animation: px-hop 0.3s steps(2); }

/* the wardrobe */
[data-skin="pixel"] .wardrobe { width: min(680px, 94vw); max-height: 88vh; padding: 18px 18px 16px; }
[data-skin="pixel"] .wardrobe[open] { display: flex; flex-direction: column; gap: 12px; }
[data-skin="pixel"] .wardrobe-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
[data-skin="pixel"] .wardrobe-head h3 { margin: 0; }
[data-skin="pixel"] .wardrobe-intro { margin: 0; font-size: 14px; color: var(--ink-2); }
[data-skin="pixel"] .wardrobe-progress p { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
[data-skin="pixel"] .wardrobe-bar { max-width: none; background: repeating-linear-gradient(90deg, transparent 0 15px, var(--card) 15px 18px), var(--track-solid); }
[data-skin="pixel"] .wardrobe-grid {
  list-style: none; margin: 0; padding: 3px; overflow-y: auto; scrollbar-width: thin;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px;
}
[data-skin="pixel"] .item {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 6px 9px; border: 3px solid var(--line); clip-path: var(--notch);
  background: var(--card-2); color: var(--ink); text-align: center;
}
[data-skin="pixel"] .item canvas { width: 102px; height: 78px; image-rendering: pixelated; image-rendering: crisp-edges; }
[data-skin="pixel"] .item-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
[data-skin="pixel"] .item-name::first-letter { text-transform: uppercase; }
[data-skin="pixel"] .item-meta { font: 600 12px/1.3 var(--f-tag); color: var(--ink-2); }
[data-skin="pixel"] .item[aria-pressed="true"] { background: var(--mustard); color: #1F1A16; }
[data-skin="pixel"] .item[aria-pressed="true"] .item-meta { color: #1F1A16; }
[data-skin="pixel"] .item:disabled { background: var(--card); cursor: default; }
[data-skin="pixel"] .item:disabled .item-name { color: var(--ink-2); }

/* the little radio says what's going on, in a speech bubble beside its head (main.js places it) */
[data-skin="pixel"] {
  --bubble: #F6ECD8; --bubble-ink: #1F1A16; --bubble-mark: #B23A22;
}
[data-skin="pixel"] .scene-cap {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  width: max-content;
  max-width: min(340px, calc(100% - 24px));
  display: flex; align-items: flex-start; gap: 8px;
  margin: 3px;
  padding: 8px 11px 9px 9px;
  background: var(--bubble);
  color: var(--bubble-ink);
  box-shadow: 0 -3px 0 0 var(--bubble-ink), 0 3px 0 0 var(--bubble-ink), -3px 0 0 0 var(--bubble-ink), 3px 0 0 0 var(--bubble-ink);
  cursor: pointer;
  transition: opacity 0.2s steps(2), transform 0.2s steps(2);
}
/* its tail: two stepped pixels pointing at the radio */
[data-skin="pixel"] .scene-cap::before, [data-skin="pixel"] .scene-cap::after {
  content: ""; position: absolute; width: 6px; height: 6px; background: var(--bubble);
  box-shadow: 0 -3px 0 0 var(--bubble-ink), 0 3px 0 0 var(--bubble-ink), -3px 0 0 0 var(--bubble-ink), 3px 0 0 0 var(--bubble-ink);
}
[data-skin="pixel"] .scene-cap::before { left: -12px; top: var(--tail, 22px); }
[data-skin="pixel"] .scene-cap::after { left: -20px; top: calc(var(--tail, 22px) + 8px); }
[data-skin="pixel"] .scene-cap.no-tail::before, [data-skin="pixel"] .scene-cap.no-tail::after { display: none; }
[data-skin="pixel"] .scene-cap.tail-down::before { left: var(--tail-x, 30px); top: auto; bottom: -12px; }
[data-skin="pixel"] .scene-cap.tail-down::after { left: calc(var(--tail-x, 30px) - 8px); top: auto; bottom: -20px; }
[data-skin="pixel"] .scene-cap.out { opacity: 0; transform: translateY(4px); }
/* while a new item is being revealed in the scene, the bubble steps aside; it comes back with the item's picture */
[data-skin="pixel"] .scene-wrap.revealing .scene-cap { opacity: 0; pointer-events: none; }
[data-skin="pixel"] .scene-cap.has-item { align-items: center; }
[data-skin="pixel"] .scene-cap.has-item .cap-icon { margin: 0; }
[data-skin="pixel"] .scene-cap.has-item .cap-icon canvas { display: block; width: 68px; height: 52px; image-rendering: pixelated; image-rendering: crisp-edges; }
[data-skin="pixel"] .cap-icon { flex: none; display: inline-flex; margin-top: 1px; color: var(--bubble-mark); }
[data-skin="pixel"] .cap-body { display: block; min-width: 0; font: 600 15px/1.32 var(--f-ui); overflow-wrap: anywhere; }
[data-skin="pixel"] .cap-label { font-weight: 700; }
[data-skin="pixel"] .cap-label::after { content: ": "; white-space: pre; }
[data-skin="pixel"] .cap-label:empty { display: none; }
[data-skin="pixel"] .cap-why { display: block; margin-top: 3px; font: 500 13px/1.3 var(--f-ui); opacity: 0.8; }
[data-skin="pixel"] .cap-why:empty { display: none; }

/* next and previous say where they go: one line under the three buttons, previous on the left, next on the right */
[data-skin="pixel"] .transport-wrap { display: flex; flex-direction: column; gap: 8px; flex: 0 1 270px; min-width: 0; }
[data-skin="pixel"] .transport-wrap .transport { justify-content: center; }
[data-skin="pixel"] .peek { display: flex; justify-content: space-between; gap: 12px; font: 600 13px/1.25 var(--f-ui); color: var(--ink-2); }
[data-skin="pixel"] .peek[hidden] { display: none; }
[data-skin="pixel"] .peek span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* they share the line by length */
[data-skin="pixel"] .peek span:empty { visibility: hidden; }
[data-skin="pixel"] #prevName::before { content: "‹ "; }
[data-skin="pixel"] #nextName { text-align: right; }
[data-skin="pixel"] #nextName::after { content: " ›"; }
[data-skin="pixel"] .scene { display: block; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; touch-action: manipulation; }
[data-skin="pixel"] .player .px-disc { width: 192px; height: 192px; image-rendering: pixelated; image-rendering: crisp-edges; }

[data-skin="pixel"] .tag { font: 600 14px/1 var(--f-tag); letter-spacing: 0; text-transform: none; }
[data-skin="pixel"] .station { font: 400 clamp(44px, 5.6vw, 68px)/0.95 var(--f-display); }
[data-skin="pixel"] .line { font-size: 21px; font-weight: 500; }
[data-skin="pixel"] .fav-btn { font-weight: 600; height: 36px; }

/* progress and volume are rows of blocks */
[data-skin="pixel"] .bar {
  height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 15px, var(--card) 15px 18px), var(--track-solid);
}
[data-skin="pixel"] .bar span {
  background: repeating-linear-gradient(90deg, var(--tomato) 0 15px, transparent 15px 18px);
  transition: width 0.8s steps(6);
}
[data-skin="pixel"] .volume input::-webkit-slider-runnable-track {
  height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--card) 6px 9px),
    linear-gradient(90deg, var(--ink) 0 var(--pct), var(--track-solid) var(--pct));
}
[data-skin="pixel"] .volume input::-webkit-slider-thumb { width: 12px; height: 24px; margin-top: -6px; border: 3px solid var(--line); background: var(--tomato); }
[data-skin="pixel"] .volume input::-moz-range-track {
  height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--card) 6px 9px),
    linear-gradient(90deg, var(--ink) 0 var(--pct), var(--track-solid) var(--pct));
}
[data-skin="pixel"] .volume input::-moz-range-progress { background: transparent; }
[data-skin="pixel"] .volume input::-moz-range-thumb { width: 9px; height: 18px; border: 3px solid var(--line); background: var(--tomato); }
[data-skin="pixel"] .ghost-text { font: 600 14px var(--f-tag); }
[data-skin="pixel"] .menu button { font-weight: 500; }

/* ---------------------------------------------------------------- browse */

[data-skin="pixel"] .tabs { padding: 4px; gap: 4px; }
[data-skin="pixel"] .tab { font-size: 15px; font-weight: 600; }
[data-skin="pixel"] .cats { gap: 8px; }
[data-skin="pixel"] .cat { height: 51px; padding: 0 14px 0 6px; gap: 8px; font-size: 15px; }
[data-skin="pixel"] .cat-disc.px { width: 39px; height: 39px; background: none; }
[data-skin="pixel"] .px-cat .pv { fill: var(--pv); }
[data-skin="pixel"] .cat-all { width: 39px; height: 39px; }
[data-skin="pixel"] .places { gap: 8px; }
[data-skin="pixel"] .place { height: 42px; }
[data-skin="pixel"] .loading-row, [data-skin="pixel"] .place-group { font-family: var(--f-tag); font-weight: 600; }

/* ---------------------------------------------------------------- shelves of pixel records */

[data-skin="pixel"] .shelf-title { font: 400 34px/1 var(--f-display); }
[data-skin="pixel"] :is(.shelf-dot, .shelf-dot i) {
  clip-path: polygon(30% 0, 70% 0, 70% 10%, 90% 10%, 90% 20%, 100% 20%, 100% 80%, 90% 80%, 90% 90%, 70% 90%, 70% 100%,
    30% 100%, 30% 90%, 10% 90%, 10% 80%, 0 80%, 0 20%, 10% 20%, 10% 10%, 30% 10%);
}
[data-skin="pixel"] .shelf-dot { width: 30px; height: 30px; background: var(--pv); }
[data-skin="pixel"] .shelf-dot i { width: 18px; height: 18px; box-shadow: inset 0 0 0 3px var(--lr, transparent); }
[data-skin="pixel"] .see-all { font-weight: 600; }
[data-skin="pixel"] .plank {
  height: 12px;
  box-shadow: none;
  background: linear-gradient(var(--plank-hi) 0 3px, var(--plank) 3px 9px, var(--plank-lo) 9px 12px);
}

[data-skin="pixel"] .rec { font-size: 15px; }
[data-skin="pixel"] :is(.rec-disc, .mini-disc) { position: relative; }
[data-skin="pixel"] .rec-disc { transition: transform 0.16s steps(2); }
[data-skin="pixel"] .rec:hover .rec-disc { transform: translateY(-6px); }
[data-skin="pixel"] .rec[aria-current="true"] .rec-disc { box-shadow: none; }
[data-skin="pixel"] .rec:hover .rec-fav { transform: none; }
/* the record art carries a 4-cell margin for the "playing" ring */
[data-skin="pixel"] .px-rec {
  position: absolute;
  left: calc(-100% / 9);
  top: calc(-100% / 9);
  width: calc(100% * 11 / 9);
  height: calc(100% * 11 / 9);
}
[data-skin="pixel"] .px-rec .pv { fill: var(--pv); }
[data-skin="pixel"] .px-rec .pg { fill: var(--pg); }
[data-skin="pixel"] .px-rec .ps { fill: var(--ps); }
[data-skin="pixel"] .px-rec .pS { fill: var(--pS); }
[data-skin="pixel"] .px-rec .pe { fill: var(--pe); }
[data-skin="pixel"] .px-rec .ph { fill: var(--paper); }
[data-skin="pixel"] .mini .px-rec .ph { fill: var(--card); }
[data-skin="pixel"] .px-rec .pr { fill: var(--tomato); display: none; }
[data-skin="pixel"] .rec[aria-current="true"] .px-rec .pr { display: inline; }
[data-skin="pixel"] .rec-badge { width: 30px; height: 30px; right: -6px; bottom: -3px; }
[data-skin="pixel"] .rec-fav { width: 27px; height: 27px; border-width: 3px; }

/* ---------------------------------------------------------------- guide */

[data-skin="pixel"] .guide-title { font: 400 34px/1 var(--f-display); }
[data-skin="pixel"] .now-tag { font: 600 13px var(--f-tag); }
[data-skin="pixel"] .now-bar { height: 9px; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--mustard) 9px 12px), rgba(31, 26, 22, 0.22); }
[data-skin="pixel"] .now-bar i { background: repeating-linear-gradient(90deg, #1F1A16 0 9px, transparent 9px 12px); }
[data-skin="pixel"] .row {
  border-bottom: 0;
  background: linear-gradient(90deg, var(--dash) 50%, transparent 50%) left bottom / 6px 3px repeat-x;
}
[data-skin="pixel"] .row:last-child { background: none; }
[data-skin="pixel"] .row-time { font: 600 13px/1.8 var(--f-tag); }
[data-skin="pixel"] .seg-btn { font-weight: 600; }
[data-skin="pixel"] .daypick select { font-weight: 500; }

[data-skin="pixel"] .dialog h3, [data-skin="pixel"] .mini-name { font-family: var(--f-display); }
[data-skin="pixel"] .dialog h3 { font-size: 32px; }
[data-skin="pixel"] .mini-name { font-size: 22px; line-height: 1; }
[data-skin="pixel"] kbd { font: 600 13px var(--f-tag); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  [data-skin="pixel"] .player .px-disc { width: 150px; height: 150px; }
}

@media (max-width: 760px) {
  [data-skin="pixel"] .px-logo { width: 116px; height: 40px; }
  [data-skin="pixel"] .player { grid-template-columns: 104px minmax(0, 1fr); gap: 14px 16px; padding: 16px; box-shadow: var(--edge), 8px 5px 0 0 var(--shadow), 5px 8px 0 0 var(--shadow); }
  [data-skin="pixel"] .scene-wrap { grid-row: 1; min-height: 166px; }
  [data-skin="pixel"] .player .disc { grid-row: 2 / span 3; }
  [data-skin="pixel"] .player .px-disc { width: 104px; height: 104px; }
  [data-skin="pixel"] .station { font-size: 36px; }
  [data-skin="pixel"] .line { font-size: 17px; }
  [data-skin="pixel"] .cat { height: 48px; }
  [data-skin="pixel"] .rec-disc { width: 72px; height: 72px; }
  [data-skin="pixel"] .shelf-grid .rec { width: 84px; }
  [data-skin="pixel"] .shelf-title { font-size: 28px; }
  [data-skin="pixel"] .brand-tag { font-size: 12px; }
  [data-skin="pixel"] .scene-notes { top: 6px; right: 6px; height: 28px; padding: 0 8px 0 6px; font-size: 13px; }
  [data-skin="pixel"] .wardrobe-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
  [data-skin="pixel"] .item canvas { width: 68px; height: 52px; }
  [data-skin="pixel"] .cap-body { font-size: 14px; }
  [data-skin="pixel"] .cap-why { font-size: 12.5px; }
  [data-skin="pixel"] .transport-wrap { grid-column: 2; grid-row: 1; }   /* (it holds the buttons now, where the phone layout put them) */
  [data-skin="pixel"] .peek { font-size: 12.5px; gap: 8px; }
}

/* ---------------------------------------------------------------- the Display menu (Aa) */

[data-skin="pixel"] .display-dialog { width: min(420px, 94vw); padding: 18px 18px 20px; }
[data-skin="pixel"] .display-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
[data-skin="pixel"] .disp-group { display: flex; flex-direction: column; gap: 8px; }
[data-skin="pixel"] .disp-label { font: 600 15px var(--f-ui); }
[data-skin="pixel"] .disp-seg { display: flex; gap: 3px; padding: 3px; border: 3px solid var(--line); clip-path: var(--notch); }
[data-skin="pixel"] .disp-seg button {
  flex: 1; min-width: 0; height: 46px; padding: 0 6px; border: 0; background: none;
  color: var(--ink); font: 600 15px var(--f-ui); cursor: pointer;
}
[data-skin="pixel"] .disp-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); clip-path: var(--notch); }
[data-skin="pixel"] .disp-seg .disp-pixel { font: 400 25px/1 "Jersey 10", "Pixelify Sans", monospace; }
[data-skin="pixel"] .disp-seg .disp-readable { font-family: "Rubik", system-ui, sans-serif; }
[data-skin="pixel"] .disp-seg .disp-a1 { font-size: 15px; }
[data-skin="pixel"] .disp-seg .disp-a2 { font-size: 19px; }
[data-skin="pixel"] .disp-seg .disp-a3 { font-size: 23px; }
[data-skin="pixel"] .disp-hint { margin: 0; font: 500 13.5px/1.35 var(--f-ui); color: var(--ink-2); }
[data-skin="pixel"] .disp-switches { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; background: linear-gradient(90deg, var(--dash) 50%, transparent 50%) left top / 6px 3px repeat-x; }
[data-skin="pixel"] .disp-switch { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
[data-skin="pixel"] .disp-sw-text { flex: 1; display: flex; flex-direction: column; gap: 3px; font: 600 15px var(--f-ui); }
[data-skin="pixel"] .disp-sw-text small { font: 500 13px/1.3 var(--f-ui); color: var(--ink-2); }
[data-skin="pixel"] .disp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
[data-skin="pixel"] .disp-knob { flex: none; position: relative; width: 54px; height: 30px; margin: 3px; background: var(--track-solid); box-shadow: var(--edge); }
[data-skin="pixel"] .disp-knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: var(--ink); }
[data-skin="pixel"] .disp-switch input:checked + .disp-knob { background: var(--teal); }
[data-skin="pixel"] .disp-switch input:checked + .disp-knob::after { left: auto; right: 4px; }
[data-skin="pixel"] .disp-switch input:focus-visible + .disp-knob { outline: 3px solid var(--ink); outline-offset: 5px; }

/* Scripts the pixel fonts can't draw (Pixelify Sans has Latin and Cyrillic, Jersey 10 only Latin):
   Japanese gets a dot-matrix face, the others the system's own, never a typewriter fallback. */
[data-skin="pixel"]:is(:lang(el), :lang(ar), :lang(fa), :lang(hi), :lang(ko), :lang(zh)) {
  --f-display: "Jersey 10", "Pixelify Sans", system-ui, sans-serif;
}
[data-skin="pixel"]:lang(ja) {
  --f-display: "Jersey 10", "DotGothic16", system-ui, sans-serif;
  --f-ui: "Pixelify Sans", "DotGothic16", system-ui, sans-serif;
  --f-tag: "Pixelify Sans", "DotGothic16", system-ui, sans-serif;
}

/* Readable text: everything but the logo and the big titles in a plain font */
[data-skin="pixel"][data-text="readable"] { --f-ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; --f-tag: "Rubik", system-ui, sans-serif; }

/* Text size: the whole page grows, like the browser's own zoom */
[data-skin="pixel"][data-size="l"] { zoom: 1.12; }
[data-skin="pixel"][data-size="xl"] { zoom: 1.25; }
/* everything in the player may shrink rather than push the page sideways */
[data-skin="pixel"] :is(.volume, .volume input, .station-row, .controls > *, .browse-search, .browse-search input) { min-width: 0; }
[data-skin="pixel"] .fav-btn { max-width: 100%; overflow: hidden; }
[data-skin="pixel"] #favText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-skin="pixel"] .transport > * { flex: none; }   /* the buttons keep their shape; the row makes room instead */
[data-skin="pixel"] .tag { max-width: 100%; overflow: hidden; }
[data-skin="pixel"] #tagText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) {
  [data-skin="pixel"] .px-logo { width: 100px; height: 34px; }
  [data-skin="pixel"] .top-nav { gap: 6px; }
}
@media (max-width: 560px) {   /* on a phone the header keeps to one row: the small tag next to the logo steps aside */
  [data-skin="pixel"] .search-key { display: none; }   /* no keyboard on a phone: no "/" hint */
  [data-skin="pixel"]:is([data-size="l"], [data-size="xl"]) .brand-tag { display: none; }
  [data-skin="pixel"][data-size="xl"] .px-logo { width: 96px; height: 33px; }
  [data-skin="pixel"]:is([data-size="l"], [data-size="xl"]) .transport { gap: 8px; }
  /* extra large on a phone: the three buttons get the whole row; the timer and the website link sit beside the volume */
  [data-skin="pixel"][data-size="xl"] .controls .transport-wrap { grid-column: 1 / -1; }
  [data-skin="pixel"][data-size="xl"] .controls .sleep-wrap { grid-column: 1; grid-row: 2; }
  [data-skin="pixel"][data-size="xl"] .controls .volume { grid-column: 2; grid-row: 2; padding: 0 6px; }
  [data-skin="pixel"][data-size="xl"] .controls #siteBtn { grid-column: 3; grid-row: 2; }
}

/* Calm and Still motion: no hopping, bumping or popping */
[data-skin="pixel"]:is([data-motion="calm"], [data-motion="still"]) *,
[data-skin="pixel"]:is([data-motion="calm"], [data-motion="still"]) *::before,
[data-skin="pixel"]:is([data-motion="calm"], [data-motion="still"]) *::after { animation: none !important; }
[data-skin="pixel"]:is([data-motion="calm"], [data-motion="still"]) .rec:hover .rec-disc { transform: none; }

/* High contrast: black, white and yellow (the scene keeps its colours) */
[data-skin="pixel"][data-contrast="high"] {
  --paper: #000000; --card: #000000; --card-2: #1C1C1C;
  --ink: #FFFFFF; --ink-2: #F2F2F2; --line: #FFFFFF; --shadow: #000000;
  --track: rgba(255, 255, 255, 0.4); --rule: rgba(255, 255, 255, 0.45);
  --plank: #333333; --plank-hi: #555555; --plank-lo: #1A1A1A;
  --tomato: #FF6A3D; --tomato-ink: #FF8A66; --mustard: #FFD400; --teal: #00E0FF; --on-accent: #000000;
  --pv: #000000; --pg: #3A3A3A; --ps: #222222; --pS: #444444; --pe: #FFFFFF;
  --track-solid: #555555; --dash: rgba(255, 255, 255, 0.6);
  --bubble: #FFFFFF; --bubble-ink: #000000; --bubble-mark: #000000;
  color-scheme: dark;
}
[data-skin="pixel"][data-contrast="high"] .scene-notes { background: #000000; box-shadow: inset 0 0 0 3px #FFFFFF; }
