/* Podistic — public site styles. Plain CSS, no build step. */

/* ——— Tokens ——— */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;

  /* Brand accent (violet) */
  --accent-200: #ddd6fe;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;
  --accent-950: #2e1065;
  --fuchsia: #d946ef;

  --bg: #ffffff;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #52525b;
  --subtle: #71717a;
  --faint: #a1a1aa;
  --line: rgb(9 9 11 / 0.1);
  --line-soft: rgb(9 9 11 / 0.06);
  --wash: rgb(9 9 11 / 0.04);
  --wash-strong: rgb(9 9 11 / 0.07);
  --surface: rgb(255 255 255 / 0.65);
  --surface-solid: #ffffff;
  --well: #f4f4f5;
  --placeholder: #e4e4e7;
  --accent: var(--accent-600);
  --accent-wash: rgb(139 92 246 / 0.07);
  --accent-line: rgb(139 92 246 / 0.45);
  --on-accent: #ffffff;
  --contrast: #09090b;
  --on-contrast: #ffffff;
  --mark-bg: var(--accent-200);
  --mark-ink: var(--accent-950);
  --danger-bg: #fee2e2;
  --danger-ink: #991b1b;
  --danger: #dc2626;
  --ok-bg: #f0fdf4;
  --ok-line: #bbf7d0;
  --ok-ink: #166534;
  --ok-ink-2: #15803d;
  --hero-fade-mid: rgb(255 255 255 / 0.6);
  --hero-art-opacity: 0.25;
  --shadow-card: 0 20px 25px -5px rgb(9 9 11 / 0.1), 0 8px 10px -6px rgb(9 9 11 / 0.1);

  --nav-height: 4rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --ink: #ffffff;
    --ink-2: #e4e4e7;
    --muted: #a1a1aa;
    --subtle: #a1a1aa;
    --faint: #71717a;
    --line: rgb(255 255 255 / 0.12);
    --line-soft: rgb(255 255 255 / 0.07);
    --wash: rgb(255 255 255 / 0.05);
    --wash-strong: rgb(255 255 255 / 0.1);
    --surface: rgb(24 24 27 / 0.65);
    --surface-solid: #18181b;
    --well: #18181b;
    --placeholder: #27272a;
    --accent: var(--accent-400);
    --accent-wash: rgb(139 92 246 / 0.12);
    --contrast: #ffffff;
    --on-contrast: #09090b;
    --mark-bg: rgb(139 92 246 / 0.4);
    --mark-ink: #ffffff;
    --danger-bg: #450a0a;
    --danger-ink: #fca5a5;
    --danger: #f87171;
    --ok-bg: #052e16;
    --ok-line: #14532d;
    --ok-ink: #86efac;
    --ok-ink-2: #4ade80;
    --hero-fade-mid: rgb(9 9 11 / 0.6);
    --hero-art-opacity: 0.3;
  }
}

/* ——— Base ——— */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.sheet-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
}

/* The app feels native on touch devices: text isn't selectable by accident,
   except where reading/copying is the point. */
@media (pointer: coarse) {
  * {
    -webkit-user-select: none;
    user-select: none;
  }

  .selectable,
  .selectable *,
  input,
  textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

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

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

/* Thin bar across the top while the next page loads */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--fuchsia));
  transform-origin: left;
  animation: nav-progress 8s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}

@keyframes nav-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.9);
  }
}

/* ——— Layout ——— */

.container,
.container-md,
.container-sm,
.container-xs {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}

.container {
  max-width: 80rem;
}

.container-md {
  max-width: 72rem;
}

.container-sm {
  max-width: 56rem;
}

.container-xs {
  max-width: 48rem;
}

@media (min-width: 640px) {
  .container,
  .container-md,
  .container-sm,
  .container-xs {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .container-md,
  .container-sm,
  .container-xs {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 2rem;
}

/* Room for the mini player and (on small screens) the tab bar */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(11rem + var(--safe-bottom));
}

.page > main {
  flex: 1;
  outline: none;
}

@media (min-width: 1024px) {
  .page {
    min-height: calc(100vh - 4rem);
    padding-bottom: 7rem;
  }
}

/* Subtle tint behind list pages */
.page-bg {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(139 92 246 / 0.06), transparent 60%),
    radial-gradient(50rem 35rem at -10% 25%, rgb(217 70 239 / 0.05), transparent 55%);
}

/* ——— Header (desktop) ——— */

.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background:
    linear-gradient(90deg, rgb(124 58 237 / 0.25), transparent 50%, rgb(192 38 211 / 0.15)),
    rgb(9 9 11 / 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: #a1a1aa;
}

@media (min-width: 1024px) {
  .site-header {
    display: block;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: auto;
  height: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-pill {
  position: relative;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.nav-pill:hover {
  background: rgb(255 255 255 / 0.05);
  color: #fff;
}

.nav-pill[aria-current="page"] {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.count-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--accent-600);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.header-spacer {
  flex: 1;
}

.now-playing {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.875rem;
}

@media (min-width: 1280px) {
  .now-playing {
    display: flex;
  }
}

.np-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #a1a1aa;
}

.now-playing.playing .np-dot {
  background: #22c55e;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.np-title {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1.25rem 0.375rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-size: 0.875rem;
  transition: border-color 0.15s, color 0.15s;
}

.header-search:hover {
  border-color: rgb(255 255 255 / 0.25);
  color: #fff;
}

.header-search .icon {
  width: 1rem;
  height: 1rem;
}

/* ——— Tab bar (mobile) ——— */

.mobile-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 0 0.5rem var(--safe-bottom);
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mnav-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  margin-inline: 0.25rem;
  border-radius: 0.5rem;
  color: var(--subtle);
  transition: color 0.15s;
}

.mnav-item[aria-current="page"] {
  color: var(--accent);
}

.mnav-icon {
  position: relative;
  display: flex;
}

.mnav-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mnav-item[aria-current="page"] .icon {
  stroke-width: 2.4;
}

.mnav-icon .count-badge {
  right: -0.5rem;
}

.mnav-label {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
}

.mnav-item[aria-current="page"] .mnav-label {
  font-weight: 600;
}

/* ——— Footer ——— */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--subtle);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-note {
  flex-shrink: 0;
}

/* ——— Page headings ——— */

.page-head {
  margin-bottom: 2rem;
}

.page-head.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 0.25rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.page-lead {
  max-width: 36rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.page-meta {
  margin-top: 0.75rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

.section-title {
  margin-block: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.list-label {
  margin-bottom: 0.75rem;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-lg {
  padding-block: 0.75rem;
}

.btn-primary {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(139 92 246 / 0.25), 0 4px 6px -4px rgb(139 92 246 / 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-700);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 500;
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow .icon {
  transition: transform 0.15s;
}

.btn-arrow:hover .icon {
  transform: translateX(2px);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--faint);
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}

.icon-btn:hover {
  background: var(--wash-strong);
  color: var(--ink-2);
}

.icon-btn:active {
  transform: scale(0.88);
}

.link-btn {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.link-btn:hover {
  text-decoration: underline;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

/* Buttons with several faces: CSS shows the one matching the state */
.face-pause,
.face-loading,
.face-queued,
.face-on,
.face-downloading,
.face-downloaded,
.face-error {
  display: none;
}

.face-play,
.face-add,
.face-off,
.face-idle,
[data-state="playing"] .face-pause,
[data-state="loading"] .face-loading,
[data-queued] .face-queued,
[aria-pressed="true"] > .face-on,
[data-download-state="downloading"] > .face-downloading,
[data-download-state="downloaded"] > .face-downloaded,
[data-download-state="error"] > .face-error {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

[data-state="playing"] .face-play,
[data-state="loading"] .face-play,
[data-queued] .face-add,
[aria-pressed="true"] > .face-off,
[data-download-state]:not([data-download-state="idle"]) > .face-idle {
  display: none;
}

/* The playing episode can't be queued behind itself */
[data-current] .queue-btn,
[data-current] .queue-pill {
  display: none;
}

/* ——— Podcast cards ——— */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  min-width: 0;
}

.card-link {
  display: block;
}

.card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--placeholder);
  box-shadow: 0 1px 2px rgb(9 9 11 / 0.05), 0 0 0 1px var(--line-soft);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-art img {
  transform: scale(1.05);
}

.art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--placeholder);
  font-size: 2.25rem;
}

img.img-error {
  visibility: hidden;
}

.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(9 9 11 / 0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card-play {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card-play .icon {
  transform: translateX(1px);
}

@media (hover: hover) {
  .card:hover .card-art::after,
  .card:hover .card-play {
    opacity: 1;
  }
}

.card-rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: 0.375rem;
  border-radius: 999px;
  background: rgb(9 9 11 / 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

.card-rank.top {
  background: var(--accent-600);
}

.card-title {
  display: -webkit-box;
  margin: 0.625rem 0.125rem 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.card-author,
.card-sub {
  margin: 0.125rem 0.125rem 0;
  font-size: 0.75rem;
  line-height: 1rem;
}

.card-author {
  overflow: hidden;
  color: var(--subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  color: var(--accent);
  font-weight: 500;
}

/* Unsubscribe (My Podcasts) */
.card-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgb(9 9 11 / 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: opacity 0.15s, background-color 0.15s;
}

.card-remove .icon {
  width: 1rem;
  height: 1rem;
}

.card-remove:hover {
  background: rgb(9 9 11 / 0.9);
}

@media (hover: hover) {
  .card-remove {
    opacity: 0;
  }

  .card:hover .card-remove,
  .card-remove:focus-visible {
    opacity: 1;
  }
}

.empty-note,
.end-note {
  color: var(--subtle);
  text-align: center;
}

.empty-note {
  padding-block: 6rem;
}

.end-note {
  margin-top: 3rem;
}

.episode-list + .end-note {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.continued-note {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.continued-note a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  font-weight: 500;
}

.continued-note .icon {
  width: 1rem;
  height: 1rem;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  color: var(--subtle);
}

.load-more .loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more.busy .btn {
  display: none;
}

/* ——— About / FAQ (home) ——— */

.about {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq {
  display: grid;
  gap: 1.5rem 2.5rem;
}

@media (min-width: 768px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-item p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ——— Hero (podcast & episode pages) ——— */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-art-opacity);
  filter: blur(64px);
  transform: scale(1.25);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--hero-fade-mid) 50%, var(--bg));
}

.hero-inner {
  position: relative;
  padding-block: 2.5rem 2rem;
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-row {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
  }
}

.hero-art {
  width: 12rem;
  height: 12rem;
  flex-shrink: 0;
  border-radius: 1.5rem;
  background: var(--placeholder);
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgb(9 9 11 / 0.3), 0 0 0 1px var(--line);
}

.hero-art-empty {
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-art {
    width: 14rem;
    height: 14rem;
  }
}

.hero-body {
  flex: 1;
  min-width: 0;
}

.hero-title {
  margin-top: 0.25rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.hero-title.episode-title {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-title.episode-title {
    font-size: 1.875rem;
  }
}

.hero-author {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

.hero-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}

.badge-explicit,
.badge-e {
  border-radius: 0.25rem;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-weight: 500;
}

.badge-explicit {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.badge-e {
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .hero-meta,
  .hero-actions {
    justify-content: flex-start;
  }
}

.play-latest {
  display: inline-flex;
}

.subscribe-btn {
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
}

.subscribe-btn:hover:not(:disabled) {
  background: var(--accent-wash);
}

.subscribe-btn[aria-pressed="true"],
.queue-pill,
.download-pill {
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 600;
}

.subscribe-btn[aria-pressed="true"]:hover,
.queue-pill:hover,
.download-pill:hover:not(:disabled) {
  border-color: var(--line);
  background: var(--wash-strong);
  color: var(--ink-2);
}

[data-queued] > .queue-pill,
.download-pill[data-download-state="downloaded"] {
  border-color: var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

.back-link .icon {
  width: 1rem;
  height: 1rem;
}

.hero-desc {
  max-width: 48rem;
  margin: 2rem auto 0;
}

@media (min-width: 768px) {
  .hero-desc {
    margin-inline: 0;
  }
}

.hero-desc .prose {
  font-size: 0.875rem;
}

.clamp {
  max-height: 4.875em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.clamp.expanded,
.clamp.fits {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ——— Feed-supplied rich text ——— */

.prose {
  color: var(--muted);
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  margin-block: 1em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong,
.prose b {
  color: var(--ink-2);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-block: 0.25em;
}

.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.5em 0 0.5em;
  color: var(--ink);
  font-size: 1em;
  font-weight: 600;
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 1em;
  border-left: 3px solid var(--line);
}

.prose code {
  font-size: 0.875em;
}

.prose pre {
  padding: 0.75em 1em;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: var(--well);
}

/* Long-form documents (privacy policy) */
.prose-doc h2 {
  margin: 2em 0 0.75em;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: 6rem;
}

.prose-doc h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.25rem;
}

.prose-doc p,
.prose-doc ul {
  margin-block: 1.25em;
}

.toc {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--well);
}

.toc ol {
  display: grid;
  gap: 0.375rem 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toc a {
  color: var(--muted);
  transition: color 0.15s;
}

.toc a:hover {
  color: var(--accent);
}

/* ——— Episode rows ——— */

.episode-list > * + * {
  border-top: 1px solid var(--line-soft);
}

.episode-row {
  display: flex;
  gap: 1rem;
  margin-inline: -0.75rem;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  transition: background-color 0.15s;
}

.episode-row:hover {
  background: var(--wash);
}

.episode-row[data-current] {
  background: var(--accent-wash);
}

.ep-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--contrast);
  color: var(--on-contrast);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  opacity: 0.9;
  transition: opacity 0.15s, background-color 0.15s, transform 0.1s;
}

.ep-play:hover {
  opacity: 1;
}

.ep-play:active {
  transform: scale(0.94);
}

.ep-play.accent,
[data-current] > .ep-play {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(139 92 246 / 0.3);
  opacity: 1;
}

.ep-play .face-play .icon {
  transform: translateX(1px);
}

.ep-body {
  flex: 1;
  min-width: 0;
}

.ep-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.ep-link {
  min-width: 0;
}

.ep-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.15s;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ep-link:hover .ep-title {
  color: var(--accent);
}

.ep-num {
  color: var(--faint);
}

.ep-date {
  flex-shrink: 0;
  color: var(--subtle);
  font-size: 0.75rem;
}

.ep-date-wide {
  display: none;
}

@media (min-width: 640px) {
  .ep-date-wide {
    display: block;
  }

  .ep-date-narrow {
    display: none;
  }
}

.ep-desc {
  display: -webkit-box;
  margin-top: 0.25rem;
  overflow: hidden;
  color: var(--subtle);
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.25rem;
  margin-top: 0.375rem;
  color: var(--subtle);
  font-size: 0.75rem;
}

.ep-meta .queue-btn {
  margin: -0.5rem 0 -0.5rem auto;
}

[data-queued] .queue-btn {
  color: var(--accent);
}

[data-queued] .queue-btn:hover {
  background: var(--accent-wash);
  color: var(--accent);
}

.more-episodes {
  margin-top: 3rem;
}

.noscript-audio {
  width: 100%;
  margin-bottom: 1rem;
}

.more-link {
  margin-top: 1.5rem;
}

/* ——— Search ——— */

.search-form {
  position: relative;
  margin-top: 1.25rem;
}

.search-form > .icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-form input {
  width: 100%;
  padding: 0.875rem 6rem 0.875rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  outline: none;
  background: var(--surface-solid);
  box-shadow: 0 1px 2px rgb(9 9 11 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.search-form input::placeholder {
  color: var(--faint);
}

.search-form input:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgb(139 92 246 / 0.3);
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-form .btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: none;
  transform: translateY(-50%);
}

.search-form .btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.97);
}

.result-count {
  margin-top: 1.5rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

.results {
  margin-top: 1.5rem;
}

.results + .results {
  margin-top: 2rem;
}

.result-list {
  display: grid;
  gap: 0.5rem;
}

.result {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s;
}

.result-link:hover {
  border-color: var(--accent-line);
  background: var(--surface-solid);
}

.result-art {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--placeholder);
  object-fit: cover;
}

.result-art .art-fallback {
  font-size: 1.5rem;
}

.result .ep-play {
  margin-top: 0;
}

.result-body {
  flex: 1;
  min-width: 0;
}

.result-title {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.result-link:hover .result-title,
.result-body a:hover .result-title {
  color: var(--accent);
}

.result-sub,
.result-snippet {
  overflow: hidden;
  color: var(--subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-sub {
  font-size: 0.875rem;
}

.result-snippet {
  margin-top: 0.125rem;
  font-size: 0.75rem;
}

.result-thumb {
  display: none;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--placeholder);
  object-fit: cover;
}

@media (min-width: 640px) {
  .result-thumb {
    display: block;
  }
}

mark {
  padding-inline: 0.125rem;
  border-radius: 0.25rem;
  background: var(--mark-bg);
  color: var(--mark-ink);
}

.import-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

.empty-state {
  padding-block: 5rem;
  color: var(--subtle);
  text-align: center;
}

.empty-state .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  opacity: 0.4;
}

/* ——— My Podcasts ——— */

.downloads {
  margin-bottom: 2.5rem;
}

.downloads .section-title {
  margin: 0;
}

.downloads-note {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.download-list {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.download-item + .download-item {
  border-top: 1px solid var(--line-soft);
}

.download-item .ep-play {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0;
}

.dl-art {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--placeholder);
  object-fit: cover;
}

.dl-art .art-fallback {
  font-size: 1.25rem;
}

.dl-body {
  flex: 1;
  min-width: 0;
}

.dl-title,
.dl-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-title {
  font-size: 0.875rem;
  font-weight: 600;
}

a.dl-title:hover {
  text-decoration: underline;
}

.dl-sub {
  color: var(--subtle);
  font-size: 0.75rem;
}

.library-empty {
  padding-block: 4rem;
  text-align: center;
}

.library-empty p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ——— Forms ——— */

.form {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

.field {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  outline: none;
  background: var(--surface-solid);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

textarea.input {
  resize: vertical;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgb(139 92 246 / 0.25);
}

.help {
  color: var(--subtle);
  font-size: 0.875rem;
}

/* Honeypot field: off-screen for people, visible to naive bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
}

.notice {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.notice h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.notice p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.notice a {
  text-decoration: underline;
}

.notice-success {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.notice-success h2 {
  color: var(--ok-ink);
}

.notice-success p {
  color: var(--ok-ink-2);
}

/* ——— Status pages (offline, 404, 500) ——— */

.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.status-page .page-lead {
  margin-inline: auto;
}

.status-icon .icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--faint);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Toasts & offline indicator ——— */

.toasts {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 95;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  width: max-content;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toasts {
    top: 5rem;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.1);
  animation: toast-in 0.2s ease-out;
}

.toast .icon {
  width: 1rem;
  height: 1rem;
}

.toast.leaving {
  opacity: 0;
  transition: opacity 0.2s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

/* ——— Mini player ——— */

.mini {
  position: fixed;
  inset: auto 0 calc(var(--nav-height) + 0.5rem + var(--safe-bottom));
  z-index: 50;
  padding-inline: 0.75rem;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .mini {
    bottom: 1rem;
    padding-inline: 0;
  }
}

.mini-card {
  max-width: 36rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s;
}

.mini-card:active {
  transform: scale(0.99);
}

.mini-progress {
  height: 2px;
  background: var(--line);
}

.mini-progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent-500);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem 0.625rem 0.625rem;
}

.mini-art {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--placeholder);
  object-fit: cover;
}

.mini-art .art-fallback,
.queue-art .art-fallback,
.up-next-art .art-fallback {
  font-size: 1.25rem;
}

/* Artwork placeholders are spans standing in for an <img> */
span.mini-art,
span.sheet-art,
span.queue-art,
span.up-next-art,
span.dl-art,
span.result-art,
.up-next-label,
.up-next-title {
  display: block;
}

.mini-text {
  flex: 1;
  min-width: 0;
}

.mini-title,
.mini-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.mini-sub {
  color: var(--subtle);
  font-size: 0.75rem;
}

.mini-skip {
  display: none;
  color: var(--muted);
}

.mini-skip .icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 640px) {
  .mini-skip {
    display: flex;
  }
}

.mini-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(139 92 246 / 0.3);
  transition: background-color 0.15s;
}

.mini-toggle:hover {
  background: var(--accent-700);
}

.mini-toggle .face-play .icon {
  transform: translateX(1px);
}

/* ——— Full-screen player ——— */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #09090b;
  color: #fff;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.38s;
  -webkit-user-select: none;
  user-select: none;
}

.sheet.open {
  visibility: visible;
  transform: none;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet.dragging {
  transition: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sheet-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(64px);
  transform: scale(1.25);
}

.sheet-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(9 9 11 / 0.4), rgb(9 9 11 / 0.7) 50%, #09090b);
}

.sheet-drag {
  position: relative;
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top, 0px);
  cursor: grab;
  touch-action: none;
}

.sheet-handle {
  width: 3rem;
  height: 0.375rem;
  margin: 0.75rem auto 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.3);
}

.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0;
}

.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: rgb(255 255 255 / 0.7);
  transition: background-color 0.15s, color 0.15s;
}

.sheet-btn:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.sheet-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.sheet-label {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet-scroll {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  padding: 0 2rem calc(2rem + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-art-wrap {
  width: 100%;
  flex-shrink: 0;
  margin-top: 1rem;
  touch-action: pan-y;
}

@media (min-width: 640px) {
  .sheet-art-wrap {
    margin-top: 2rem;
  }
}

.sheet-art {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #27272a;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgb(9 9 11 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.1);
  -webkit-user-drag: none;
}

.sheet-art .art-fallback {
  background: #27272a;
  font-size: 3.75rem;
}

.sheet-info {
  margin-top: 1.5rem;
  text-align: center;
}

.sheet-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.375;
  overflow-wrap: anywhere;
}

.sheet-title:hover {
  text-decoration: underline;
}

.sheet-podcast {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.sheet-podcast:hover {
  color: #fff;
}

.scrub-wrap {
  margin-top: 1.5rem;
}

.scrubber {
  position: relative;
  display: flex;
  align-items: center;
  height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  touch-action: none;
}

.scrub-track {
  width: 100%;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
}

.scrub-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #fff;
}

.scrub-thumb {
  position: absolute;
  left: 0;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  transform: scale(0);
  transition: transform 0.15s;
}

.scrubber:hover .scrub-thumb,
.scrubber:focus-visible .scrub-thumb {
  transform: scale(1);
}

.scrubber.dragging .scrub-thumb {
  transform: scale(1.25);
}

.scrub-times {
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.sheet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.ctl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: rgb(255 255 255 / 0.8);
  transition: background-color 0.15s, color 0.15s;
}

.ctl:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.ctl .icon {
  width: 2rem;
  height: 2rem;
}

.ctl-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #fff;
  color: #09090b;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  transition: transform 0.15s;
}

.ctl-main:hover {
  transform: scale(1.05);
}

.ctl-main:active {
  transform: scale(0.95);
}

.ctl-main .icon {
  width: 2rem;
  height: 2rem;
}

.ctl-main .face-play .icon {
  transform: translateX(2px);
}

.ctl-main .spinner {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 3px;
}

.sheet-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pill-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, color 0.15s;
}

.pill-btn:hover {
  border-color: rgb(255 255 255 / 0.4);
  color: #fff;
}

.pill-btn .icon {
  width: 1rem;
  height: 1rem;
}

.queue-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.375rem;
  border-radius: 999px;
  background: var(--accent-600);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.up-next {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  text-align: left;
  transition: background-color 0.15s;
}

.up-next:hover {
  background: rgb(255 255 255 / 0.1);
}

.up-next-art,
.queue-art {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #27272a;
  object-fit: cover;
}

.up-next-art {
  width: 2.5rem;
  height: 2.5rem;
}

.up-next-art .art-fallback,
.queue-art .art-fallback {
  background: #27272a;
}

.up-next-text {
  flex: 1;
  min-width: 0;
}

.up-next-label {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.up-next-title {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.up-next > .icon {
  color: rgb(255 255 255 / 0.6);
}

.sheet-about {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
  -webkit-user-select: text;
  user-select: text;
}

.sheet-about h3 {
  margin-bottom: 0.5rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet-about p {
  line-height: 1.625;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Queue panel — slides up inside the full-screen player */

.queue-backdrop {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgb(9 9 11 / 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0s 0.25s;
}

.queue-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s;
}

.queue-panel {
  position: absolute;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 75%;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.5rem 1.5rem 0 0;
  background: rgb(24 24 27 / 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 -25px 50px -12px #09090b;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.32s;
}

.queue-panel.open {
  visibility: visible;
  transform: none;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1rem 1.25rem 0.5rem;
}

.queue-title {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.queue-title span {
  margin-left: 0.5rem;
  color: rgb(255 255 255 / 0.4);
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.queue-clear {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}

.queue-clear:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.queue-actions .sheet-btn {
  width: 2rem;
  height: 2rem;
}

.queue-actions .sheet-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.queue-empty {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 2rem 2rem calc(3.5rem + var(--safe-bottom));
  color: rgb(255 255 255 / 0.5);
  font-size: 0.875rem;
  line-height: 1.625;
  text-align: center;
}

.queue-empty .icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  opacity: 0.4;
}

.queue-list {
  width: 100%;
  max-width: 36rem;
  flex: 1;
  margin-inline: auto;
  padding: 0.25rem 0.75rem calc(2rem + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.25rem;
  border-radius: 1rem;
}

.queue-item.dragging {
  position: relative;
  z-index: 1;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

.queue-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: rgb(255 255 255 / 0.4);
  cursor: grab;
  touch-action: none;
}

.queue-handle:active {
  cursor: grabbing;
}

.queue-play {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.25rem;
  border-radius: 0.75rem;
  text-align: left;
  transition: background-color 0.15s;
}

.queue-play:hover {
  background: rgb(255 255 255 / 0.05);
}

.queue-art {
  width: 2.75rem;
  height: 2.75rem;
}

.queue-text {
  flex: 1;
  min-width: 0;
}

.queue-item-title,
.queue-item-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.queue-item-sub {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
}

.queue-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  color: rgb(255 255 255 / 0.5);
  transition: background-color 0.15s, color 0.15s;
}

.queue-remove:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.queue-remove .icon {
  width: 1rem;
  height: 1rem;
}

/* ——— Motion preferences & page transitions ——— */

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spinner {
    animation-duration: 1.4s !important;
    animation-iteration-count: infinite !important;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  #player-root,
  .toasts,
  .site-footer {
    display: none !important;
  }

  .page {
    padding-bottom: 0;
  }
}
