:root {
  --bg0: #05050e;
  --bg1: #140f28;
  --ink: #fcf5e9;
  --muted: #969dc8;
  --dim: #5d628a;
  --gold: #f7c24c;
  --violet: 150, 120, 210;
  --line: rgba(150, 157, 200, 0.14);
  --display: Futura, "Futura PT", Jost, "Century Gothic", sans-serif;
  --mono: ui-monospace, Menlo, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg0); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--display);
  background: radial-gradient(120% 80% at 30% 0%, var(--bg1) 0%, #0b0a18 45%, var(--bg0) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }

/* ---- hero: the wheel and the wordmark, laid out like the banner ---- */
.hero {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(48px, 11vh, 140px) clamp(16px, 5vw, 64px) clamp(56px, 9vh, 110px);
}
.wheel { margin: 0; display: grid; justify-items: center; gap: 10px; }
#wheel { width: min(46vw, 64vh, 560px); aspect-ratio: 1; display: block; }
.wheel figcaption {
  font: 11px/1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.handle {
  margin: 0 0 18px 4px;
  font: 14px/1 var(--mono);
  letter-spacing: 0.42em;
  color: var(--gold);
}
h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 6.6vw, 116px);
  line-height: 0.98;
  letter-spacing: 0.15em;
  text-shadow: 0 0 0.05em rgba(var(--violet), 0.95), 0 0 0.35em rgba(var(--violet), 0.45);
}
h1 span { display: block; margin-right: -0.15em; }
.tag {
  margin: 22px 0 0 4px;
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.22em;
  color: var(--muted);
}
.tag i { font-style: normal; padding: 0 1.2em; }
.sound {
  margin: 34px 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 14, 0.5);
  color: var(--muted);
  font: 12px/1 var(--mono);
  letter-spacing: 0.26em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.sound b, .subscribe b {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dim);
  transition: background 0.3s, box-shadow 0.3s;
}
.sound:hover { border-color: rgba(247, 194, 76, 0.45); color: var(--ink); }
.sound[aria-pressed="true"] { color: var(--gold); border-color: rgba(247, 194, 76, 0.5); }
.sound[aria-pressed="true"] b { background: var(--gold); box-shadow: 0 0 10px 2px rgba(247, 194, 76, 0.7); }

/* ---- sections ---- */
main { width: 100%; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 56px) 40px; }
section { margin-bottom: clamp(72px, 10vw, 128px); }
.label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.32em;
  color: var(--muted);
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(var(--violet), 0.45);
}
.player iframe, .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade {
  position: absolute; inset: 0;
  padding: 0; border: 0; background: #000;
  cursor: pointer;
}
.facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.4s; }
.facade:hover img { filter: brightness(1.12); }
/* the play control is the wheel's core: a white light inside a thin ring */
.core {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  border: 1px solid rgba(252, 245, 233, 0.35);
  background: radial-gradient(circle, rgba(255, 252, 245, 1) 0 12%, rgba(255, 245, 235, 0.55) 22%, rgba(var(--violet), 0.18) 48%, rgba(5, 5, 14, 0.25) 70%);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
}
.facade:hover .core { transform: scale(1.12); box-shadow: 0 0 40px 8px rgba(255, 245, 235, 0.25); }

.now-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(340px, 1fr); gap: 36px; }
/* the notes column is exactly the player's height and scrolls inside it */
.notes { position: relative; }
.notes-in {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: 2px 14px 0 28px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.notes h3 { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: 0.08em; }
#now-sub { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.4; }
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 16px 0 0;
  font: 12px/1 var(--mono); letter-spacing: 0.2em; color: var(--dim);
}
.meta a { color: var(--gold); text-decoration: none; }
.meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.desc { margin-top: 22px; padding-bottom: 24px; font-size: 16px; line-height: 1.6; color: #d9d6e4; }
.desc p { margin: 0 0 14px; }
.desc a { color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.desc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.desc .ts {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 13px var(--mono); letter-spacing: 0.06em; color: var(--gold);
}
.desc .ts:hover { text-decoration: underline; text-underline-offset: 3px; }
.desc .tags { font: 12px/1.6 var(--mono); letter-spacing: 0.08em; color: var(--dim); }
.more {
  margin: 4px 0 0; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: none;
  color: var(--muted); font: 11px/1 var(--mono); letter-spacing: 0.26em; cursor: pointer;
}
.more:hover { color: var(--ink); }

.about { max-width: 640px; }
.about p { margin: 0 0 16px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink); }
.about p + p { font-size: 18px; color: var(--muted); }
.subscribe {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 194, 76, 0.5);
  color: var(--gold); text-decoration: none;
  font: 12px/1 var(--mono); letter-spacing: 0.26em;
  transition: background 0.3s;
}
.subscribe b { background: var(--gold); box-shadow: 0 0 10px 2px rgba(247, 194, 76, 0.6); }
.subscribe:hover { background: rgba(247, 194, 76, 0.08); }

/* ---- the catalogue of full-length machines: big cards ---- */
.films {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 40px 28px;
}
.films button {
  width: 100%; display: block; padding: 0;
  background: none; border: 0; color: inherit; text-align: left; font: inherit;
  cursor: pointer;
}
.films img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: 6px; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(var(--violet), 0.5);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), filter 0.4s, box-shadow 0.4s;
}
.films button:hover img { transform: translateY(-3px); filter: brightness(1.1); }
.films .no {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 2px 0;
  font: 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--dim);
}
.films .no b { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.films .no time { margin-left: auto; }
.films .t { display: block; margin: 10px 2px 0; font-size: 24px; letter-spacing: 0.06em; }
.films .s { display: block; margin: 5px 2px 0; font-size: 16px; color: var(--muted); line-height: 1.4; }
.films .d {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 10px 2px 0; font-size: 14.5px; line-height: 1.55; color: var(--dim);
}
.films li.on img { box-shadow: 0 0 0 1px rgba(247, 194, 76, 0.7), 0 24px 60px -30px rgba(247, 194, 76, 0.5); }
.films li.on .t, .films li.on .no { color: var(--gold); }

/* ---- shorts: a strip of vertical cards ---- */
.shorts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, calc((100% - 5 * 16px) / 6), 300px);
  gap: 16px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.shorts button {
  position: relative;
  aspect-ratio: 9 / 16;
  padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  background: #000; color: var(--ink);
  cursor: pointer; scroll-snap-align: start;
  box-shadow: 0 0 0 1px var(--line);
  text-align: left;
}
.shorts img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.4s; }
.shorts button:hover img { transform: scale(1.04); filter: brightness(1.12); }
.shorts .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(5, 5, 14, 0.92));
}
.shorts .cap b { display: block; font-weight: 500; font-size: 17px; line-height: 1.25; letter-spacing: 0.04em; }
.shorts .cap span { display: flex; align-items: center; gap: 7px; margin-top: 7px; font: 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.shorts .cap i { width: 6px; height: 6px; border-radius: 50%; flex: none; }

dialog {
  padding: 0; border: 0; background: transparent; overflow: visible;
  width: min(92vw, calc(86vh * 9 / 16));
}
dialog::backdrop { background: rgba(5, 5, 14, 0.88); backdrop-filter: blur(6px); }
.vframe { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.close {
  position: absolute; top: -46px; right: -4px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(5, 5, 14, 0.7);
  color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}

.offline { font: 13px/1.6 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.offline a { color: var(--gold); }

footer {
  padding: 56px 16px 64px;
  border-top: 1px solid var(--line);
  display: grid; justify-items: center; gap: 22px;
  text-align: center;
}
.foot-line { margin: 0; font-size: 15px; letter-spacing: 0.32em; color: var(--muted); }
footer nav a { font: 12px/1 var(--mono); letter-spacing: 0.26em; color: var(--gold); text-decoration: none; }
footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { margin: 0; font: 11px/1 var(--mono); letter-spacing: 0.24em; color: var(--dim); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 28px; gap: 18px; min-height: auto; padding-bottom: 72px; }
  #wheel { width: min(82vw, 52vh); }
  .handle, .tag, .sound { margin-left: 0; }
  .tag i { padding: 0 0.6em; }
}
@media (max-width: 760px) {
  .tag span { display: block; }
  .tag i { display: none; }
}
/* below this the notes go under the player, the description folded to its opening lines */
@media (max-width: 980px) {
  .now-grid { grid-template-columns: 1fr; gap: 22px; }
  .notes-in { position: static; overflow: visible; padding: 0; border: 0; }
  .notes h3 { font-size: 26px; }
  .desc { max-height: 11.5em; overflow: hidden; padding-bottom: 0;
    -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .desc.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
