/* ==========================================================================
   The Podcast Station — after-midnight broadcast studio.
   Lab shell palette (#060606 / zinc / #f4f4f5) with a per-episode accent
   (--ep) extracted from the cover art at build time, and a warm ON AIR
   signal red reserved for live-playback moments.
   ========================================================================== */

:root {
  --bg: #060606;
  --panel: #0d0d0f;
  --panel-2: #131316;
  --border: #27272a;
  --border-soft: #1c1c1f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #64646b;
  --accent: #38bdf8;          /* station default; episodes override --ep */
  --ep: var(--accent);
  --onair: #fb4d5c;
  --deck-h: 92px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body.has-deck { padding-bottom: calc(var(--deck-h) + 18px); }

.mono { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.02em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* film-grain over everything, very faint */
#noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

#app:focus { outline: none; }

/* ==========================================================================
   HOME — station masthead
   ========================================================================== */

.masthead {
  position: relative;
  padding: 72px 6vw 44px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

/* faint EQ columns rising from the masthead floor */
.masthead::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 75%;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 26px,
      rgba(56, 189, 248, 0.05) 26px 30px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
          mask-image: linear-gradient(to top, #000, transparent 80%);
  pointer-events: none;
}
.masthead::after {
  content: "";
  position: absolute; top: -260px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13), transparent 62%);
  pointer-events: none;
}

.mast-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.onair {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--faint);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.onair .lamp {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3f3f46;
  transition: background 0.4s, box-shadow 0.4s;
}
body.is-playing .onair {
  color: var(--onair);
  border-color: rgba(251, 77, 92, 0.5);
  box-shadow: 0 0 22px rgba(251, 77, 92, 0.16);
}
body.is-playing .onair .lamp {
  background: var(--onair);
  box-shadow: 0 0 10px var(--onair);
  animation: lamp 1.6s ease-in-out infinite;
}
@keyframes lamp { 50% { opacity: 0.45; } }

.mast-title {
  font-size: clamp(44px, 7.5vw, 108px);
  font-weight: 800;
  font-stretch: 90%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14ch;
}
.mast-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 244, 245, 0.55);
}

.mast-tag {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 58ch;
}

.mast-stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.mast-stats b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

/* tool-level share bar, sat under the station stats */
.mast-share { margin-top: 26px; }

/* staggered load-in */
.masthead > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.masthead > *:nth-child(2) { animation-delay: 0.07s; }
.masthead > *:nth-child(3) { animation-delay: 0.14s; }
.masthead > *:nth-child(4) { animation-delay: 0.21s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

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

.browse {
  padding: 30px 6vw 90px;
}

.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 30px;
}

.search {
  flex: 1 1 260px;
  max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.25s;
}
.search:focus-within { border-color: var(--ep); }
.search svg { flex: none; color: var(--faint); }
.search input {
  width: 100%;
  background: none; border: none; outline: none;
  color: var(--text);
  font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.active {
  color: #071018;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.result-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 18px;
}

/* ---------- episode cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
}

.card {
  --ep: var(--accent);
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--ep) 55%, var(--border));
  box-shadow: 0 18px 46px -18px color-mix(in srgb, var(--ep) 55%, transparent);
}

.card-art { position: relative; aspect-ratio: 1; overflow: hidden; }
.card-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-art img { transform: scale(1.045); }
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 6, 0.72), transparent 45%);
}

.card-len {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(6, 6, 6, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.card-len.script { color: #fbbf24; }

.card-play {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ep);
  color: #071018;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--ep) 80%, transparent);
}
.card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: translateY(0); }

.card-cast {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  display: flex;
}
.card-cast img, .card-cast .disc {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(6, 6, 6, 0.9);
  object-fit: cover;
  margin-left: -9px;
  background: var(--panel-2);
}
.card-cast img:first-child, .card-cast .disc:first-child { margin-left: 0; }

.card-body { padding: 15px 17px 17px; }
.card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-title {
  margin-top: 6px;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card-host {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.card-host span { color: var(--faint); }

.empty {
  padding: 70px 0;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}

/* ==========================================================================
   EPISODE VIEW
   ========================================================================== */

.episode { position: relative; }

/* blurred active-cover backdrop, tinted by the episode accent */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.backdrop img {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(64px) saturate(1.15) brightness(0.42);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.backdrop img.on { opacity: 0.55; }
.backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,6,6,0.25), rgba(6,6,6,0.88) 78%),
    radial-gradient(80% 60% at 20% 0%, color-mix(in srgb, var(--ep) 14%, transparent), transparent 70%);
}

.ep-top {
  padding: 26px 5vw 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.backlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 6, 6, 0.5);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s;
}
.backlink:hover { color: var(--text); border-color: var(--faint); }

.ep-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px);
  padding: 30px 5vw 80px;
  align-items: start;
}

.ep-side { position: sticky; top: 26px; }

/* ---------- rotating triptych ---------- */

.triptych {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 60px -22px color-mix(in srgb, var(--ep) 60%, transparent);
}
.triptych img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.3s ease, transform 6s linear;
}
.triptych img.on { opacity: 1; transform: scale(1); }

.trip-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6, 6, 6, 0.55);
  backdrop-filter: blur(6px);
}
.trip-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.25s, transform 0.25s;
}
.trip-dots button.on { background: var(--ep); transform: scale(1.25); }

/* ---------- episode meta ---------- */

.ep-meta { margin-top: 26px; }

.ep-date-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep);
}
.ep-group {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--ep) 45%, transparent);
  border-radius: 6px;
  font-size: 11px;
}

.ep-title {
  margin-top: 12px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ep-desc {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: #cfcfd4;
}
.ep-desc em { color: var(--text); }

.ep-share { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }

.ep-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tune {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ep);
  color: #071018;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--ep) 75%, transparent);
}
.tune:hover { transform: translateY(-2px); filter: brightness(1.08); }
.tune:disabled { opacity: 0.45; cursor: default; transform: none; }
.ep-len { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.script-note {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  border-radius: 10px;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- panel (cast) ---------- */

.panel-card {
  margin-top: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel-head {
  padding: 13px 17px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--border-soft);
}
.panel-people { padding: 13px 17px; display: flex; flex-direction: column; gap: 11px; }
.person { display: flex; align-items: center; gap: 12px; }
.person img, .person .disc {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}
.disc {
  display: grid; place-items: center;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.person-name { font-size: 14.5px; font-weight: 600; }
.person-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.person-role.host { color: var(--ep); }

.panel-card .team { border-top: 1px solid var(--border-soft); }
.panel-card .team img { width: 100%; }

/* ---------- transcript theater ---------- */

.script-col { min-width: 0; max-width: 900px; }

.script-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 8px;
}
.script-head h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.follow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}
.follow.on { color: var(--ep); border-color: color-mix(in srgb, var(--ep) 55%, transparent); }
.follow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.turn {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px 18px 14px;
  border-radius: 14px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.turn:hover { background: rgba(255, 255, 255, 0.028); }
.turn.host-turn { border-left-color: color-mix(in srgb, var(--ep) 40%, transparent); }
.turn.active {
  background: color-mix(in srgb, var(--ep) 7%, transparent);
  border-left-color: var(--ep);
}
.turn.active .turn-name { color: var(--ep); }

.turn img, .turn .disc { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }

.turn-head { display: flex; align-items: baseline; gap: 11px; margin-bottom: 5px; }
.turn-name { font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em; transition: color 0.25s; }
.turn-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}
.turn-host-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ep);
  border: 1px solid color-mix(in srgb, var(--ep) 40%, transparent);
  border-radius: 5px;
  padding: 1px 6px;
  text-transform: uppercase;
}

.turn-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.68;
  color: #d6d6db;
}
.turn-text p + p { margin-top: 0.7em; }
.turn-text em { color: var(--text); }
.turn-text strong { color: var(--text); font-weight: 600; }
.turn-text h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 1.1em 0 0.45em;
}
.turn-text ul { margin: 0.6em 0 0.6em 1.2em; }
.turn-text li { margin-bottom: 0.35em; }
.turn-text .mention { color: var(--ep); font-family: var(--font-mono); font-size: 0.82em; }

/* ==========================================================================
   TRANSPORT DECK
   ========================================================================== */

.deck {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.deck-wave {
  position: absolute;
  left: 0; right: 0; top: -34px;
  width: 100%; height: 34px;
  pointer-events: none;
  opacity: 0.85;
}

.deck-inner {
  height: var(--deck-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  max-width: 1500px;
  margin: 0 auto;
}

.deck-now { display: flex; align-items: center; gap: 13px; min-width: 0; }
.deck-cover {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}
.deck-meta { min-width: 0; }
.deck-title {
  font-weight: 700; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-sub {
  color: var(--faint); font-size: 11px; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.deck-transport { display: flex; flex-direction: column; gap: 6px; }
.deck-buttons { display: flex; align-items: center; justify-content: center; gap: 6px; }

.tbtn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.tbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.tbtn:active { transform: scale(0.92); }
.tbtn-15 {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 7.5px;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
}
.tbtn-play {
  width: 46px; height: 46px;
  background: var(--ep);
  color: #071018;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--ep) 80%, transparent);
}
.tbtn-play:hover { background: var(--ep); color: #071018; filter: brightness(1.1); }
/* Buffering: the episode is fetching as a seekable blob (Cloudflare Pages serves
   /library without HTTP Range, so we load the whole MP3 to make seeking work). */
.tbtn-play { position: relative; }
body.is-buffering .tbtn-play > svg { visibility: hidden; }
body.is-buffering .tbtn-play::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #071018; border-top-color: transparent;
  animation: station-buffer-spin 0.7s linear infinite;
}
@keyframes station-buffer-spin { to { transform: rotate(360deg); } }
#btn-rate { width: auto; padding: 0 12px; border-radius: 9px; font-size: 12px; }

.deck-timeline { display: flex; align-items: center; gap: 12px; }
.deck-timeline .mono { font-size: 11px; color: var(--faint); min-width: 40px; }
.deck-timeline .mono:last-child { text-align: right; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ep) var(--fill, 0%), #2c2c30 var(--fill, 0%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  transition: transform 0.15s;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text);
  border: none;
}

.deck-side { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.vol { display: flex; align-items: center; gap: 9px; color: var(--faint); width: 130px; }

/* ==========================================================================
   RESPONSIVE + MOTION
   ========================================================================== */

@media (max-width: 1020px) {
  .ep-layout { grid-template-columns: 1fr; }
  .ep-side { position: static; max-width: 560px; }
}

@media (max-width: 720px) {
  .masthead { padding: 52px 6vw 36px; }
  .deck-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 14px 12px;
    row-gap: 2px;
  }
  .deck-transport { grid-column: 1 / -1; order: 3; }
  .deck-side { display: none; }
  .deck-cover { width: 44px; height: 44px; }
  body.has-deck { padding-bottom: 150px; }
  .turn { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 15px 10px; }
  .turn img, .turn .disc { width: 38px; height: 38px; }
  .turn-text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #noise { animation: none; }
}
