/* ==========================================================================
   The Rebound — site styles (new look, 2026)
   ========================================================================== */

:root {
  --brand: #1f66d8;          /* sampled from the artwork */
  --brand-deep: #0d3f9b;
  --brand-soft: #e8f0fd;
  --brand-glow: rgba(31, 102, 216, 0.18);

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e7f0;
  --line-strong: #cbd3e1;
  --link: #1a5cc8;
  --focus: #1f66d8;

  --nav-bg: rgba(245, 247, 251, 0.82);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-art: 0 18px 40px -12px rgba(13, 63, 155, 0.45);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1040px;
  --read: 740px;
  --player-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4f8df0;
    --brand-deep: #2f6fe0;
    --brand-soft: #14233f;
    --brand-glow: rgba(79, 141, 240, 0.22);

    --bg: #0b1120;
    --surface: #111a2d;
    --surface-2: #16213a;
    --ink: #e6ebf4;
    --ink-2: #c4cddc;
    --muted: #8a97ad;
    --line: #1f2b44;
    --line-strong: #2c3a58;
    --link: #7fb0ff;
    --focus: #7fb0ff;

    --nav-bg: rgba(11, 17, 32, 0.8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-art: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "calt";
}

body.has-dock { padding-bottom: calc(var(--player-h) + 24px); }

img { max-width: 100%; height: auto; border: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- announcement (Rebound Prime) ---------- */

.announce {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-align: center;
  background:
    radial-gradient(900px 160px at 50% 120%, rgba(120, 190, 255, 0.55), transparent 70%),
    linear-gradient(90deg, #0a3d9e 0%, #1f66d8 50%, #1352bf 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
/* glass highlight across the top half */
.announce::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  pointer-events: none;
  z-index: -1;
}
/* slow light sweep */
.announce::after {
  content: "";
  position: absolute;
  top: -40%; bottom: -40%;
  left: -30%;
  width: 26%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-18deg);
  filter: blur(2px);
  animation: announce-sheen 22s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes announce-sheen {
  0%, 80% { left: -30%; opacity: 0; }
  82%     { opacity: 1; }
  96%, 100% { left: 130%; opacity: 0; }
}
.announce .announce-text { font-weight: 500; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.announce .announce-text strong { font-weight: 700; }
.announce a.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  color: #0d3f9b;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 14px -4px rgba(0, 0, 0, 0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.announce a.announce-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 18px -6px rgba(0, 0, 0, 0.5);
}
.announce .arrow { display: inline-block; transition: transform .15s ease; }
.announce a.announce-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .announce { min-height: 52px; padding: 10px 14px; gap: 10px; font-size: 14px; }
  .announce .announce-more { display: none; }
}
@media (prefers-color-scheme: dark) {
  .announce { background:
    radial-gradient(900px 160px at 50% 120%, rgba(120, 190, 255, 0.35), transparent 70%),
    linear-gradient(90deg, #0c3a8f 0%, #2a6fdd 50%, #174fb5 100%); }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand img {
  width: 30px; height: 30px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-links a.nav-cta {
  color: var(--brand);
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--brand-soft); }

.nav-links a { white-space: nowrap; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 8px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .nav-links li:first-child { display: none; } /* logo already links home */
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 360px at 8% -10%, var(--brand-glow), transparent 65%),
    radial-gradient(600px 320px at 95% 10%, var(--brand-glow), transparent 70%),
    var(--surface);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-art {
  width: 240px; height: 240px;
  border-radius: 22px;
  box-shadow: var(--shadow-art);
  display: block;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero .tagline {
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 560px;
}
.hero .tagline strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }

.hosts {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.hosts a { color: var(--ink-2); font-weight: 500; }
.hosts .credit { display: block; margin-top: 6px; font-size: 13px; }

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 36px;
    padding-bottom: 36px;
    text-align: center;
  }
  .hero-art { margin: 0 auto; width: 200px; height: 200px; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .listen-row { justify-content: center; }
  .eyebrow { justify-content: center; }
}

/* ---------- sections ---------- */

.section { padding: 40px 0 24px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-head .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  vertical-align: middle;
}

/* search */
.search {
  position: relative;
  flex: 0 1 320px;
  min-width: 220px;
}
.search input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.search svg {
  position: absolute;
  left: 13px; top: 50%;
  width: 15px; height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search .search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.search.has-value .search-clear { display: inline-flex; }
.search .kbd {
  position: absolute;
  right: 11px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 1px 6px;
  line-height: 1.4;
  pointer-events: none;
  background: var(--surface-2);
}
.search.has-value .kbd, .search:focus-within .kbd { display: none; }
@media (hover: none) { .search .kbd { display: none; } }
.search-empty {
  display: none;
  padding: 28px 0 40px;
  color: var(--muted);
  text-align: center;
}
.search-empty.show { display: block; }

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

.ep-list { display: grid; gap: 14px; }

.ep {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ep:hover { border-color: var(--line-strong); }
.ep.is-hidden { display: none; }
.ep.is-playing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }

.ep-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: start;
}
.ep-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.ep-title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ep-title a {
  color: var(--ink);
  text-decoration: none;
}
.ep-title a:hover { color: var(--brand); }
.ep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ep-meta a { color: var(--muted); }
.ep-meta a:hover { color: var(--ink); }
.ep-meta time { white-space: nowrap; }

.ep-actions { display: flex; gap: 8px; align-items: center; }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px var(--brand-deep);
  transition: transform .15s ease, background .15s ease;
  flex: none;
}
.play-btn:hover { transform: scale(1.05); background: var(--brand-deep); }
.play-btn:active { transform: scale(.97); }
.play-btn > span { display: flex; align-items: center; justify-content: center; line-height: 0; }
.play-btn svg { width: 18px; height: 18px; display: block; }
.play-btn .i-pause { display: none; }
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }

/* show notes */
.notes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: var(--read);
  overflow-wrap: anywhere;
}
.notes p { margin: 0 0 10px; }
.notes p:last-child { margin-bottom: 0; }
.notes ul, .notes ol { margin: 8px 0 10px; padding-left: 22px; }
.notes li { margin: 4px 0; }
.notes br + br { display: none; }
.notes img { border-radius: var(--radius-sm); }

/* featured (latest) episode */
.ep.featured {
  padding: 26px 28px 24px;
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background:
    radial-gradient(480px 200px at 100% 0%, var(--brand-glow), transparent 70%),
    var(--surface);
}
.ep.featured .ep-title { font-size: clamp(22px, 3vw, 28px); }
.ep.featured .notes { font-size: 16px; }

@media (max-width: 560px) {
  .ep { padding: 16px 16px 14px; }
  .ep.featured { padding: 20px 18px 18px; }
  .ep-head { gap: 12px; }
  .ep .play-btn { width: 40px; height: 40px; }
  .ep-title { font-size: 17.5px; }
}

/* ---------- episode page ---------- */

.ep-page .wrap { max-width: calc(var(--read) + 40px); }
.ep-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 0% 0%, var(--brand-glow), transparent 65%),
    var(--surface);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.ep-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
}
.ep-hero .ep-meta { font-size: 14px; margin-bottom: 22px; }

.ep-body { padding: 28px 0 36px; }
.ep-body .notes {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.ep-body h2.notes-title {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  margin: 0 0 14px;
}

/* prev/next */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 36px;
}
.pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
  min-width: 0;
}
.pager a:hover { border-color: var(--brand); transform: translateY(-1px); }
.pager .dir {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pager .ttl {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pager .next { text-align: right; }
.pager .placeholder { visibility: hidden; }
@media (max-width: 520px) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}

/* subscribe block */
.subscribe {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.subscribe img { width: 88px; height: 88px; border-radius: 16px; box-shadow: var(--shadow-art); }
.subscribe h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.subscribe p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.subscribe .listen-row { margin-bottom: 0; }
@media (max-width: 520px) {
  .subscribe { grid-template-columns: 1fr; text-align: center; }
  .subscribe img { margin: 0 auto; }
  .subscribe .listen-row { justify-content: center; }
}

/* ---------- player ---------- */

.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.player-inline { margin-top: 4px; }
.player .controls { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .skip-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -42%);
  font-size: 7.5px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  line-height: 1;
}
.player .track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
}
.player .track-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .track-title a { color: inherit; text-decoration: none; }
.player .track-title a:hover { color: var(--brand); }
.player .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  margin: 0;
  cursor: pointer;
  --pct: 0%;
}
.player input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--pct), var(--line-strong) var(--pct));
}
.player input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}
.player input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--brand);
}
.player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .1s ease;
}
.player input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.player input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.player .extras { display: flex; align-items: center; gap: 4px; }
.speed-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  color: var(--ink-2);
  cursor: pointer;
  min-width: 46px;
  transition: border-color .15s ease, color .15s ease;
}
.speed-btn:hover { border-color: var(--brand); color: var(--brand); }
.player .dl { color: var(--ink-2); text-decoration: none; }

/* docked (home page) */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.dock.is-open { transform: translateY(0); }
.dock .player {
  max-width: var(--max);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.dock .art {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: block;
}
.dock .player { grid-template-columns: auto auto 1fr auto; }

@media (max-width: 640px) {
  .player { grid-template-columns: auto 1fr; }
  .player .extras { grid-column: 1 / -1; justify-content: flex-end; }
  .dock .player { grid-template-columns: auto auto 1fr; }
  .dock .art { display: none; }
  .icon-btn.skip { display: none; }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}
.footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--brand); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
