/* Chroma Lightshows
   Near-black base with the brand colors as light: purple first, then coral, orange,
   gold, teal and cyan. One stylesheet, no build step. Colors only come from the
   tokens below. */

:root {
  /* base */
  --bg: #121212;
  --bg-2: #191919;
  --panel: #1e1e1e;
  --panel-2: #272727;
  --input: #171717;
  --line: #383838;
  --line-soft: #2a2a2a;
  --line-hover: #575757;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --dim: #8a8a8a;

  /* brand colors */
  --purple: #6600cb;
  --purple-hi: #7d1fe6;
  --lavender: #9e9ded;   /* purple that reads on the dark base, for text */
  --magenta: #ba2ab5;
  --red: #ff4343;
  --orange: #ff800d;
  --gold: #f4b706;
  --gold-hi: #ffc93a;
  --teal: #20b9ac;
  --cyan: #13b3d0;
  --cyan-hi: #6fd6e8;
  --on-light: #1e1e1e;   /* text on gold, cyan, teal or white */

  /* the same colors as r, g, b for see-through fills */
  --purple-rgb: 102, 0, 203;
  --lavender-rgb: 158, 157, 237;
  --magenta-rgb: 186, 42, 181;
  --red-rgb: 255, 67, 67;
  --orange-rgb: 255, 128, 13;
  --gold-rgb: 244, 183, 6;
  --teal-rgb: 32, 185, 172;
  --cyan-rgb: 19, 179, 208;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px rgba(var(--cyan-rgb), 0.6);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 6%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 31%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 38%, rgba(255, 255, 255, 0.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 24%, rgba(255, 255, 255, 0.25) 50%, transparent 51%),
    radial-gradient(900px 520px at 85% -12%, rgba(var(--purple-rgb), 0.32), transparent 70%),
    radial-gradient(760px 460px at -5% 0%, rgba(var(--cyan-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0, var(--bg) 620px);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, video, svg, canvas { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cyan-hi); }
strong { color: #fff; }
code, kbd {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  overflow-wrap: anywhere;
}
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--gold); color: var(--on-light); padding: 8px 14px; border-radius: 8px; font-weight: 650;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center-page { text-align: center; padding-top: 12vh; padding-bottom: 12vh; }
.section { padding: 44px 0; }
.section-tight { padding: 26px 0; }
.lead { font-size: 1.14rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 0.6em;
}

/* ---------- string of lights ---------- */
.lights {
  height: 16px;
  background:
    radial-gradient(circle at 12px 8px, var(--red) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x,
    radial-gradient(circle at 36px 8px, var(--gold) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x,
    radial-gradient(circle at 60px 8px, var(--teal) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x,
    radial-gradient(circle at 84px 8px, var(--cyan) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x,
    radial-gradient(circle at 108px 8px, var(--lavender) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x,
    radial-gradient(circle at 132px 8px, var(--orange) 0 3.2px, transparent 4.4px) 0 0 / 144px 16px repeat-x;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.25));
  opacity: 0.9;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 8px); gap: 3px; }
.brand-mark i { width: 8px; height: 8px; border-radius: 50%; display: block; box-shadow: 0 0 6px currentColor; background: currentColor; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(9) { color: var(--red); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(6) { color: var(--gold); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(7) { color: var(--cyan); }
.brand-mark i:nth-child(4) { color: var(--teal); }
.brand-mark i:nth-child(5) { color: var(--lavender); }
.brand-mark i:nth-child(8) { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-weight: 550; font-size: 0.98rem; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(var(--purple-rgb), 0.3); }
.site-nav .btn { margin-left: 6px; }
.site-nav a.btn-coffee, .site-nav a.btn-coffee:hover { color: var(--on-light); background: var(--gold); padding: 6px 13px; border-radius: 999px; }
.site-nav a.btn-coffee:hover { background: var(--gold-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { color: #fff; border-color: var(--line-hover); background: #303030; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { border-radius: 999px; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--purple), var(--magenta)); border-color: transparent;
  box-shadow: 0 6px 22px rgba(var(--purple-rgb), 0.4);
}
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--purple-hi), #cc3cc7); border-color: transparent; }
.btn-coffee { color: var(--on-light); background: var(--gold); border-color: transparent; }
.btn-coffee:hover { color: var(--on-light); background: var(--gold-hi); border-color: transparent; }
.btn-gold-line { color: var(--gold); background: transparent; border-color: rgba(var(--gold-rgb), 0.6); }
.btn-gold-line:hover { color: var(--gold-hi); background: rgba(var(--gold-rgb), 0.12); border-color: var(--gold); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: 6px 13px; font-size: 0.92rem; }
.btn-danger { color: #ffd6d6; border-color: #7a2a2a; background: #3a1515; }
.btn-danger:hover { background: #521d1d; border-color: #a33a3a; color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-soon { color: var(--muted); background: transparent; border-style: dashed; cursor: default; }
.btn-soon:hover { transform: none; color: var(--muted); background: transparent; border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- hero (home page) ---------- */
.hero { padding: 48px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--lavender), var(--magenta) 32%, var(--red) 58%, var(--orange) 80%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the LED matrix that plays a holiday loop (drawn by /js/hero-matrix.js): just the lights, no frame */
.hero-matrix { position: relative; margin: 0; aspect-ratio: 16 / 9; }
.hero-matrix canvas { display: block; width: 100%; height: 100%; background: transparent; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, #222, #1b1b1b);
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}

.tip-band { display: flex; gap: 18px 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(var(--gold-rgb), 0.35); }
.tip-band p { margin: 0; max-width: 640px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin: 0 0 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }

/* ---------- song catalogue (cards) ---------- */
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.song-card {
  display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, #222, #1b1b1b);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.song-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(var(--lavender-rgb), 0.6); }
.song-card:focus-visible { border-radius: var(--radius); border-color: var(--cyan); box-shadow: var(--focus), var(--shadow); }
.song-card-media { position: relative; aspect-ratio: 16 / 9; background: #050505; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.song-card-media img, .song-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.song-card-media video { opacity: 0; transition: opacity 0.25s ease; }
.song-card-media video.is-playing { opacity: 1; }
.song-card-length { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 0.78rem; font-weight: 650; color: #fff; background: rgba(0, 0, 0, 0.78); padding: 2px 8px; border-radius: 6px; }
.badges { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: var(--on-light); background: var(--cyan); }
.badge-audio { background: var(--teal); }
.badge-gold { background: var(--gold); }
.song-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.song-card-body .card-title { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.song-card-body .card-artist { color: var(--muted); font-size: 0.93rem; margin: 0; }
.song-card-body .card-tagline { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.song-card-cta { margin-top: auto; padding-top: 12px; font-size: 0.9rem; font-weight: 650; color: var(--cyan); }
.catalogue-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.catalogue-head h2 { margin: 0; }

/* ---------- the strip of other songs at the top of a song page ---------- */
.shelf { background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--line-soft); }
.shelf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title list more"; gap: 8px 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.shelf-title { grid-area: title; margin: 0; width: 6.5em; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.14em; line-height: 1.35; text-transform: uppercase; color: var(--orange); }
.shelf-more { grid-area: more; font-weight: 650; font-size: 0.92rem; white-space: nowrap; }
.shelf-list { grid-area: list; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; min-height: 64px; padding: 2px 2px 4px; }
.shelf-list > p { margin: 0; align-self: center; }
.mini-card {
  flex: 0 0 auto; width: 236px; display: flex; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; scroll-snap-align: start;
  color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.mini-card:hover { color: var(--text); border-color: rgba(var(--lavender-rgb), 0.6); background: var(--panel-2); }
.mini-card:focus-visible { border-radius: 10px; }
.mini-card.is-featured { border-color: rgba(var(--gold-rgb), 0.55); }
.mini-thumb { position: relative; width: 88px; aspect-ratio: 16 / 9; flex: none; border-radius: 6px; overflow: hidden; background: #000; }
.mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mini-title { margin: 0; font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tag { font-size: 0.72rem; font-weight: 700; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-scroll { grid-area: list; justify-self: end; z-index: 2; width: 34px; height: 34px; margin-right: -6px; border-radius: 50%; border: 1px solid var(--line); background: rgba(18, 18, 18, 0.92); color: #fff; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 0 18px 10px rgba(18, 18, 18, 0.85); }
.shelf-scroll.is-back { justify-self: start; margin: 0 0 0 -6px; }
.shelf-scroll:hover { border-color: var(--lavender); }

/* ---------- one song's page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.92rem; color: var(--muted); padding: 16px 0 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; padding-bottom: 38px; }
.video-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.caption { font-size: 0.88rem; color: var(--muted); margin: 10px 2px 0; }

/* the main preview area: up to three videos (matrices, house, mini trees), one shown at a time,
   picked from the row of small pictures under the frame */
.gallery { display: flex; flex-direction: column; }
.slide { display: contents; }
.slide > .video-frame { order: 1; }
.slide > .caption { order: 3; }
.slide-vertical > .video-frame { aspect-ratio: 9 / 16; width: 100%; max-width: 320px; align-self: center; }
.gallery-tabs { order: 2; display: flex; gap: 10px; margin: 12px 0 0; }
.gallery-tab {
  flex: 0 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 5px 5px 7px;
  font: inherit; text-align: left; color: var(--muted); background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.gallery-tab:hover { border-color: var(--line-hover); }
.gallery-tab[aria-pressed="true"] { border-color: var(--lavender); background: rgba(var(--purple-rgb), 0.2); box-shadow: 0 0 0 1px var(--lavender) inset; }
.gallery-tab:focus-visible { border-radius: var(--radius-sm); box-shadow: var(--focus); }
.gallery-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #000; margin-bottom: 5px; }
.gallery-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-tab[data-show="trees"] .gallery-thumb img { object-fit: contain; }
.gallery-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 21px; margin: -11px 0 0 -15px; border-radius: 6px; background: rgba(18, 18, 18, 0.85); border: 1px solid rgba(255, 255, 255, 0.4); }
.gallery-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.gallery-label { font-weight: 650; font-size: 0.9rem; line-height: 1.25; color: var(--text); padding: 0 3px; overflow-wrap: anywhere; }
.gallery-sub { font-size: 0.76rem; line-height: 1.25; padding: 0 3px; }
.yt-link { font-size: 0.93rem; color: var(--muted); margin: 10px 2px 0; }
.product-buy h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.15em; }
.product-blurb { font-size: 1.06rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; }
.facts li { font-size: 0.86rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
.facts li b { color: var(--text); font-weight: 650; }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover { color: #fff; text-decoration: underline; }
.buy-actions { display: grid; gap: 10px; }
.btn-big { min-height: 60px; padding: 10px 22px; border-radius: 14px; flex-direction: column; gap: 2px; font-size: 1.08rem; }
.btn-big small { font-size: 0.8rem; font-weight: 500; opacity: 0.88; }
.btn-big:focus-visible { border-radius: 14px; }
.buy-note { font-size: 0.9rem; color: var(--muted); margin: 12px 0 0; }
#fit-note a { font-weight: 650; }
.full-seq {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 14px 0 0; padding: 12px 14px;
  border: 1px solid rgba(var(--gold-rgb), 0.4); border-radius: var(--radius-sm); background: rgba(var(--gold-rgb), 0.07);
}
.full-seq p { flex: 1 1 230px; margin: 0; font-size: 0.93rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.section-card { padding: 24px; margin-bottom: 22px; min-width: 0; }
.pair .section-card { margin-bottom: 0; }
.section-card h2 { font-size: 1.3rem; margin-bottom: 0.6em; }
.section-card > :last-child { margin-bottom: 0; }
.story { font-size: 1.05rem; max-width: 900px; }
.music-line { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.music-line p { flex: 1 1 380px; margin: 0; color: var(--muted); }
.music-line .btn { flex: none; }
.fineprint-block { font-size: 0.88rem; color: var(--dim); margin: 4px 0 26px; max-width: 880px; }
.fineprint-block p { margin: 0 0 6px; }
.fineprint-block a { color: var(--muted); }

/* the pop-up after a download button is pressed */
dialog.after-dl {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 26px 22px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(var(--purple-rgb), 0.25);
}
dialog.after-dl::backdrop { background: rgba(0, 0, 0, 0.62); }
.after-dl h2 { font-size: 1.45rem; margin-bottom: 0.4em; }
.after-dl .eyebrow { padding-right: 40px; }
.after-dl-close { position: absolute; right: 12px; top: 10px; margin: 0; }
.icon-close { width: 36px; height: 36px; padding: 0; font: inherit; font-size: 1.5rem; line-height: 1; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.icon-close:hover { color: #fff; border-color: var(--line-hover); }
.after-dl-ai { padding: 10px 12px; font-size: 0.95rem; border: 1px solid rgba(var(--cyan-rgb), 0.35); border-radius: var(--radius-sm); background: rgba(var(--cyan-rgb), 0.08); }
.after-dl-offer { margin: 16px 0; padding: 14px 16px; border: 1px solid rgba(var(--gold-rgb), 0.4); border-radius: var(--radius-sm); background: rgba(var(--gold-rgb), 0.07); }
.after-dl-offer h3 { margin: 0 0 0.35em; font-size: 1.1rem; }
.after-dl-offer p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.after-dl-signup label { font-weight: 600; font-size: 0.95rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-row input { flex: 1 1 220px; }
.after-dl-signup .help.error { color: #ff8a8a; }

/* the house video's click-to-play picture; it fills the frame it sits in */
.yt-facade { position: absolute; inset: 0; display: block; background: #000; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 74px; height: 52px; margin: -26px 0 0 -37px; border-radius: 14px; background: rgba(18, 18, 18, 0.85); border: 1px solid rgba(255, 255, 255, 0.4); transition: background-color 0.15s ease; }
.yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: var(--red); }
.yt-facade:focus-visible { box-shadow: none; border-radius: 0; outline: 3px solid var(--cyan); outline-offset: -3px; }

/* ---------- media boxes shared by cards, pages and the order form ---------- */
.matrix-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px; text-align: center;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0) 0 1.6px, rgba(5, 5, 5, 0.82) 2.2px) 0 0 / 9px 9px,
    linear-gradient(135deg, hsl(var(--hue, 270) 85% 50%), hsl(calc(var(--hue, 270) + 70) 85% 55%) 55%, hsl(calc(var(--hue, 270) + 150) 90% 58%));
}
.matrix-ph b { font-family: var(--font-head); font-size: 1.5rem; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 3px #000; }
.matrix-ph span { font-size: 0.85rem; color: #fff; background: rgba(0, 0, 0, 0.72); padding: 3px 10px; border-radius: 999px; }
.song-artist { color: var(--muted); margin-bottom: 0.9em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.chips li { font-size: 0.84rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
.chips li b { color: var(--text); font-weight: 600; }
details.zip-contents { margin: 0 0 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 9px 14px; background: rgba(0, 0, 0, 0.2); }
details.zip-contents summary { cursor: pointer; font-weight: 600; }
details.zip-contents ul, details.zip-contents ol { margin: 10px 0 4px; padding-left: 20px; color: var(--muted); }
.tip-line { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 0.95rem; color: var(--muted); border-top: 1px dashed var(--line); margin: 16px 0 0; padding-top: 14px; }
.tip-line span { flex: 1 1 260px; }
.actions-center { justify-content: center; }

/* the song picked on the order form */
.picked { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 12px; border: 1px solid var(--cyan); border-radius: var(--radius-sm); background: rgba(var(--cyan-rgb), 0.08); }
.picked-thumb { position: relative; width: 136px; aspect-ratio: 16 / 9; flex: none; border-radius: 6px; overflow: hidden; background: #050505; }
.picked-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.picked-thumb .matrix-ph b { font-size: 0.8rem; }
.picked-thumb .matrix-ph span { display: none; }
.picked-text { flex: 1 1 180px; min-width: 0; }
.picked-text .picked-label { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.picked-text b { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; }
.picked-text small { display: block; color: var(--muted); font-size: 0.9rem; }
.choice-thumb { position: relative; width: 72px; aspect-ratio: 16 / 9; flex: none; border-radius: 4px; overflow: hidden; background: #050505; align-self: center; }
.choice-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- notices ---------- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--cyan); background: rgba(var(--cyan-rgb), 0.07); border-radius: var(--radius-sm); padding: 13px 16px; margin: 0 0 18px; }
.notice p:last-child { margin-bottom: 0; }
.notice-warm { border-left-color: var(--gold); background: rgba(var(--gold-rgb), 0.07); }
.notice-good { border-left-color: var(--teal); background: rgba(var(--teal-rgb), 0.08); }
.notice-bad { border-left-color: var(--red); background: rgba(var(--red-rgb), 0.09); }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 14px 46px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; font-family: var(--font-head);
  color: #fff; background: linear-gradient(135deg, var(--purple), var(--magenta));
}
.steps > li:last-child { padding-bottom: 0; }

/* ---------- forms ---------- */
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: 12px; }
.field { margin: 0 0 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.help { font-size: 0.9rem; color: var(--muted); margin: 5px 0 0; }
.optional { font-weight: 400; color: var(--dim); font-size: 0.9em; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #777; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--cyan); box-shadow: var(--focus); border-radius: var(--radius-sm); }
input[type="file"] {
  width: 100%; font: inherit; color: var(--muted);
  background: var(--input); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin-right: 12px; cursor: pointer;
}
.error { display: block; color: #ff8a8a; font-size: 0.92rem; font-weight: 600; margin-top: 6px; }
.error:empty { display: none; }
.has-error input, .has-error textarea, .has-error .choices { border-color: var(--red); }
.has-error .choices { outline: 1px solid var(--red); outline-offset: 4px; border-radius: var(--radius-sm); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--input); cursor: pointer; font-weight: 400; }
.choice:hover { border-color: var(--line-hover); }
.choice input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: var(--purple-hi); flex: none; }
.choice b { display: block; font-weight: 650; }
.choice small { color: var(--muted); font-size: 0.88rem; }
.choice.is-checked { border-color: var(--lavender); background: rgba(var(--purple-rgb), 0.16); box-shadow: 0 0 0 1px var(--lavender) inset; }
.choice:focus-within { box-shadow: var(--focus); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { margin: 5px 0 0; width: 20px; height: 20px; accent-color: var(--purple-hi); flex: none; }

.progress { height: 10px; border-radius: 999px; background: var(--input); border: 1px solid var(--line); overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple-hi), var(--cyan)); transition: width 0.2s ease; }

.link-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin: 10px 0 6px; }
.link-box input { flex: 1 1 280px; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 0.9rem; }
.big-number { font-family: var(--font-head); font-size: 2.6rem; font-weight: 750; line-height: 1; color: #fff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 6px 0 18px; }
.stat-row > div > span { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 0.86rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-in_line { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.1); border-color: rgba(var(--cyan-rgb), 0.3); }
.pill-fitting { color: var(--lavender); background: rgba(var(--purple-rgb), 0.18); border-color: rgba(var(--lavender-rgb), 0.35); }
.pill-fitting::before { animation: twinkle 1.4s ease-in-out infinite; }
.pill-needs_info { color: var(--orange); background: rgba(var(--orange-rgb), 0.1); border-color: rgba(var(--orange-rgb), 0.3); }
.pill-ready { color: var(--teal); background: rgba(var(--teal-rgb), 0.1); border-color: rgba(var(--teal-rgb), 0.3); }
.pill-closed { color: var(--dim); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- queue table ---------- */
.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: rgba(30, 30, 30, 0.9); box-shadow: var(--shadow); }
table.queue { width: 100%; border-collapse: collapse; }
table.queue th { text-align: left; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
table.queue td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.queue tr:last-child td { border-bottom: 0; }
table.queue .pos { font-family: var(--font-head); font-weight: 750; font-size: 1.15rem; color: #fff; width: 70px; }
table.queue .num { color: var(--dim); font-size: 0.9rem; white-space: nowrap; }
table.queue tr.is-mine td { background: rgba(var(--gold-rgb), 0.07); }
table.queue td.sg a { color: inherit; text-decoration-color: var(--line); }
table.queue td.sg a:hover { color: #fff; text-decoration-color: currentColor; }
.mine-tag { font-size: 0.74rem; font-weight: 700; color: var(--on-light); background: var(--gold); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); }

/* ---------- admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.admin-bar .spacer { flex: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: inherit; font-weight: 600; font-size: 0.93rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.tabs button[aria-pressed="true"] { color: var(--on-light); background: var(--cyan); border-color: transparent; }
.req { margin: 0 0 18px; }
.req-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-bottom: 10px; }
.req-head h3 { margin: 0; font-size: 1.2rem; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 26px; }
.kv { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 5px 12px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.req .field { margin-bottom: 12px; }
.req textarea { min-height: 70px; }
.req-note { white-space: pre-wrap; }
.req-msg { font-size: 0.92rem; min-height: 1.4em; margin: 8px 0 0; }
.setup { max-width: 860px; margin: 0 0 18px; padding: 16px 20px; }
.setup summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; }
.setup-list { list-style: none; margin: 14px 0 0; padding: 0; }
.setup-list li { position: relative; padding: 0 0 11px 26px; }
.setup-list li:last-child { padding-bottom: 0; }
.setup-list li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.setup-list li.is-done::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.setup-list li.is-info::before { background: var(--dim); box-shadow: none; }
.setup-list small { display: block; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.stats-wrap { overflow-x: auto; margin-top: 12px; }
table.stats { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.stats th { text-align: left; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.stats td { padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.stats tr:last-child td { border-bottom: 0; }
table.stats td b { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; color: #fff; }
table.stats td small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.35); color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { padding-top: 26px; padding-bottom: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 8px; max-width: 860px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; background: #fff; color: var(--on-light); font-weight: 600; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 26px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav a { padding: 7px 9px; }
  .field-row { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .section-card { padding: 18px; }
  .song-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery-tabs { gap: 8px; }
  .gallery-sub { font-size: 0.72rem; }
  .crumbs { padding-top: 12px; }
  .actions .btn { flex: 1 1 100%; }
  .shelf-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "list list"; padding-top: 8px; padding-bottom: 8px; gap: 4px 12px; }
  .shelf-title { width: auto; }
  .mini-card { width: 210px; }
  .mini-thumb { width: 76px; }
  .shelf-scroll { display: none; }

  /* the queue table turns into a list of small cards */
  table.queue thead { position: absolute; left: -9999px; }
  table.queue, table.queue tbody, table.queue tr, table.queue td { display: block; width: 100%; }
  table.queue tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; }
  table.queue tr:last-child { border-bottom: 0; }
  table.queue td { padding: 0; border: 0; width: auto; }
  table.queue tr.is-mine td { background: transparent; }
  table.queue tr.is-mine { background: rgba(var(--gold-rgb), 0.07); }
  table.queue td.pos { grid-row: 1 / span 2; width: auto; font-size: 1.5rem; padding-right: 4px; }
  table.queue td.who { grid-column: 2; font-weight: 650; }
  table.queue td.st { grid-column: 3; grid-row: 1; justify-self: end; }
  table.queue td.sg { grid-column: 2 / span 2; color: var(--muted); font-size: 0.93rem; }
  table.queue td.num { grid-column: 2 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-fitting::before { animation: none; }
  .btn, .song-card, .song-card-media video, .gallery-tab, .yt-play, .mini-card { transition: none; }
  .song-card:hover { transform: none; }
}
