:root {
  --mini-player-height: 82px;
  --mini-player-bottom-fill: max(12px, env(safe-area-inset-bottom));
}

body.has-player .app {
  padding-bottom: calc(clamp(18px, 3vw, 40px) + (var(--mini-player-height) / var(--page-scale)));
}

.mini-player {
  --mini-player-progress: 0%;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  height: calc(var(--mini-player-height) + var(--mini-player-bottom-fill));
  overflow: visible;
  background: rgba(38, 36, 35, 0.96);
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(24px);
}

.mini-player::before,
.mini-player::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 2px;
  pointer-events: none;
  content: "";
}

.mini-player::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
}

.mini-player::after {
  width: var(--mini-player-progress);
  background: rgba(248, 242, 236, 0.88);
  transition: width 180ms linear;
}

.mini-player__expand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: 100%;
  height: var(--mini-player-height);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: 0;
  touch-action: none;
}

body.player-dragging {
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

.mini-player__expand:focus-visible {
  background: transparent;
  outline: none;
}

.mini-player__expand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.mini-player__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.mini-player__title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.mini-player__episode {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 500;
}

.mini-player__title-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#miniPlayerStatus {
  overflow: hidden;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player__controls {
  display: flex;
  height: var(--mini-player-height);
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 0;
}

.mini-player__controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.08rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mini-player__controls button:focus-visible {
  background: transparent;
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.mini-player__controls .mini-player__play:disabled {
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  background: transparent;
}

.mini-player__controls .mini-player__play {
  width: 56px;
  height: 56px;
}

.mini-player__controls svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mini-player__controls button:not(.mini-player__play) svg {
  width: 24px;
  height: 24px;
}

.mini-player__controls button:not(.mini-player__play) svg path,
.full-player__controls button:not(.full-player__play) svg path {
  fill: currentColor;
  stroke: none;
}

.mini-player__controls .mini-player__play svg {
  width: 30px;
  height: 30px;
}

.mini-player__controls .mini-player__play.is-locked svg {
  width: 31px;
  height: 31px;
  stroke: none;
}

.player-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  cursor: default;
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.32, 0.72, 0, 1);
}

.player-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.player-backdrop.is-dragging {
  transition: none;
}

.full-player {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 0fr) auto auto auto;
  width: 100%;
  height: 100dvh;
  margin: 0;
  gap: clamp(10px, 1.6vh, 22px);
  padding: max(16px, env(safe-area-inset-top)) clamp(18px, 5vw, 42px) max(38px, calc(32px + env(safe-area-inset-bottom)));
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: #1f1d1c;
  border: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -22px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  isolation: isolate;
}

/* Postage-stamp canvas (blur + luminosity at ~80×142), CSS-scaled to the sheet. */
.full-player__ambient {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1f1d1c;
}

.full-player__ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
  /* Smooth upscale — soft ambient has no edges to alias. */
  image-rendering: auto;
}

.full-player__ambient::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(12, 11, 11, 0.28), rgba(12, 11, 11, 0.58)),
    radial-gradient(circle at 50% 48%, transparent 20%, rgba(12, 11, 11, 0.3) 100%);
}

.full-player__collapse,
.full-player__now-playing-area,
.full-player__queue-panel,
.full-player__transcript-panel,
.full-player__playback,
.full-player__controls,
.full-player__utility-row {
  position: relative;
  z-index: 1;
}

.full-player[data-mode="queue"],
.full-player[data-mode="transcript"] {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}

.full-player.is-open {
  transform: translateY(0);
}

.full-player.is-dragging {
  transition: none;
  will-change: transform;
}

.full-player__collapse {
  display: grid;
  justify-self: center;
  width: 88px;
  height: 28px;
  place-items: center;
  padding: 0;
  cursor: grab;
  background: transparent;
  border: 0;
  border-radius: 0;
  touch-action: none;
}

body.player-dragging .full-player__collapse {
  cursor: grabbing;
}

.full-player__grabber {
  display: block;
  width: 48px;
  height: 5px;
  background: rgba(248, 242, 236, 0.55);
  border-radius: 5px;
}

.full-player__collapse:focus-visible {
  outline: none;
}

.full-player__collapse:focus-visible .full-player__grabber {
  background: rgba(248, 242, 236, 0.82);
}

.full-player__now-playing-area {
  position: relative;
  display: grid;
  width: min(100%, 1180px);
  min-width: 0;
  min-height: 0;
  justify-self: center;
  align-items: center;
}

.full-player__hero,
.full-player__compact {
  grid-area: 1 / 1;
}

.full-player__hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  contain: size;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 1.4vh, 18px);
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
}

.full-player__hero .full-player__status {
  width: min(100%, 1180px);
}

.full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__hero {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94);
  transition: none;
}

.full-player__compact {
  display: block;
  width: min(100%, 620px);
  min-width: 0;
  justify-self: center;
  padding: 0;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: none;
}

.full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__compact {
  margin-bottom: 6px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.full-player[data-mode="queue"] .full-player__now-playing-area {
  height: 65px;
}

.full-player[data-mode="transcript"] .full-player__now-playing-area {
  height: auto;
  align-items: start;
}

.full-player[data-mode="transcript"] .full-player__compact {
  margin-bottom: 0;
}

.full-player__compact .episode-row,
.full-player__queue-list .episode-row {
  position: static;
  left: auto;
  right: auto;
  width: 100%;
  transform: none !important;
}

.full-player__compact-copy,
.full-player__compact-title,
.full-player__compact-meta {
  display: none;
}

.full-player__compact .episode-row--no-play,
.full-player__queue-list .episode-row--no-play {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  height: var(--row);
  align-items: center;
  margin: 0;
}

.full-player__compact .episode-row .episode-row__line,
.full-player__queue-list .episode-row .episode-row__line {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  white-space: normal;
}

.full-player__compact .episode-row .episode-row__meta,
.full-player__queue-list .episode-row .episode-row__meta {
  width: 100%;
  flex: 0 0 auto;
}

.full-player__compact .episode-row .episode-row__title,
.full-player__queue-list .episode-row .episode-row__title {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.full-player__compact .episode-row.is-selected {
  background: transparent;
  border-color: transparent;
}

.full-player__compact .episode-row .episode-row__title-text,
.full-player__queue-list .episode-row .episode-row__title-text {
  width: max-content;
  min-width: 100%;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.full-player__cover {
  display: block;
  width: auto;
  height: 100%;
  max-width: min(360px, 100%, 52vh);
  max-height: min(100%, 52vh, 360px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  opacity: 0.94;
  transform: scale(0.92);
  transition: transform 220ms ease, opacity 220ms ease;
}

.full-player.is-playback-active .full-player__cover {
  max-width: min(390px, 100%, 52vh);
  max-height: min(100%, 52vh, 390px);
  opacity: 1;
  transform: scale(1);
}

.full-player__copy {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__copy {
  display: none;
}

.full-player__playback {
  display: grid;
  gap: clamp(8px, 1.2vh, 14px);
  width: min(100%, 1180px);
  min-width: 0;
  justify-self: center;
}

.full-player__aside {
  display: contents;
}

.full-player__eyebrow,
.full-player__title,
.full-player__meta,
.full-player__signals {
  margin: 0;
}

.full-player__eyebrow,
.full-player__meta {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.full-player__signals {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
}

.full-player__signals span[hidden] {
  display: none;
}

.full-player__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.full-player__views-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.full-player__views .signal-pending-mark {
  width: 11px;
  height: 14px;
  display: block;
}

.full-player__title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(6px, 1.5vw, 10px);
  margin: 4px 0;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.08;
  overflow: hidden;
}

.full-player .full-player__title-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.full-player__episode {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92em;
  font-weight: 650;
}

.full-player__title-text {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  font-weight: 780;
}

.full-player .full-player__title-text {
  display: block;
  width: max-content;
  min-width: 100%;
  overflow: visible;
  white-space: nowrap;
  will-change: transform;
}

.full-player__status {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.full-player__status span {
  color: var(--muted);
  font-size: 0.84rem;
}

.full-player__status[hidden] {
  display: none;
}

.full-player__queue-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1180px);
  min-width: 0;
  min-height: 0;
  justify-self: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(76px);
  transition: none;
  grid-column: 1;
  grid-row: 3;
}

.full-player[data-mode="queue"] .full-player__queue-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(0.22, 0.72, 0, 1);
}

.full-player__queue-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-bottom: 20px;
}

.full-player__queue-header h3 {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.34rem);
  line-height: 1.1;
}

.full-player__queue-header span {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.full-player__queue-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 0 2px 34px 0;
  overflow: auto;
  list-style: none;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 54px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 54px), transparent);
}

.full-player__queue-item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--text);
  transition: opacity 160ms ease, transform 190ms cubic-bezier(0.22, 0.72, 0, 1);
}

.full-player__queue-list .episode-row .episode-row__select,
.full-player__queue-list .episode-row .episode-row__aside,
.full-player__compact .episode-row .episode-row__select,
.full-player__compact .episode-row .episode-row__aside {
  padding: 0;
}

.full-player__queue-item.is-queue-removing {
  opacity: 0;
}

.full-player__queue-item.is-queue-shifting .episode-row {
  transform: translateY(var(--queue-shift, 0)) !important;
  transition: transform 190ms cubic-bezier(0.22, 0.72, 0, 1);
}

.full-player__queue-item.is-unavailable .episode-row {
  color: rgba(248, 242, 236, 0.48);
}

.full-player__utility:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.full-player__queue-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.full-player__timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.full-player__time {
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}

.full-player__time--start {
  grid-column: 1;
  grid-row: 2;
}

.full-player__time--end {
  grid-column: 3;
  grid-row: 2;
  text-align: right;
}

.full-player__time--start.is-loading {
  display: inline-block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: player-spinner 720ms linear infinite;
}

.full-player__speed {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  transform: translateY(6px);
}

.full-player__speed.is-open {
  z-index: 30;
}

.full-player__speed-toggle {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  padding: 2px 10px;
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.full-player__speed.is-open .full-player__speed-toggle {
  visibility: hidden;
  pointer-events: none;
}

.full-player__speed-value,
.full-player__speed-sizer {
  grid-area: 1 / 1;
}

.full-player__speed-sizer {
  visibility: hidden;
  pointer-events: none;
}

.full-player__speed-toggle:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.full-player__speed-panel {
  --speed-row: 22px;
  z-index: 250;
  width: 52px;
  padding: 0;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.full-player__speed-panel[hidden] {
  display: none;
}

.full-player__speed-barrel {
  position: relative;
  width: 100%;
  height: calc(var(--speed-row) * 3);
}

.full-player__speed-barrel-visor {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  height: var(--speed-row);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 4px;
  transform: translateY(-50%);
}

.full-player__speed-barrel-list {
  position: relative;
  z-index: 2;
  height: 100%;
  margin: 0;
  padding: var(--speed-row) 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-mask-image: linear-gradient(#0000, #fff, #0000);
  mask-image: linear-gradient(#0000, #fff, #0000);
  outline: none;
}

.full-player__speed-barrel-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.full-player__speed-barrel-list::-webkit-scrollbar {
  display: none;
}

.full-player__speed-barrel-option {
  display: grid;
  height: var(--speed-row);
  place-items: center;
  color: inherit;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.full-player__speed-barrel-list:focus,
.full-player__speed-barrel-list:focus-visible {
  outline: none;
}

.player-timeline__scrubber {
  position: relative;
  z-index: 3;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  min-width: 0;
  height: 32px;
  touch-action: none;
}

.full-player__timeline input {
  height: 32px;
  margin: 0;
  padding: 12px 0;
  width: 100%;
  appearance: none;
  cursor: pointer;
  background: transparent;
  touch-action: none;
}

.full-player__timeline input:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.full-player__timeline input::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(
    to right,
    rgba(248, 242, 236, 0.88) 0 var(--timeline-progress, 0%),
    rgba(255, 255, 255, 0.24) var(--timeline-progress, 0%) 100%
  );
  border-radius: 5px;
}

.full-player__timeline input::-webkit-slider-thumb {
  width: 0;
  height: 0;
  margin: 0;
  appearance: none;
  background: transparent;
  border: 0;
}

.full-player__timeline input::-moz-range-track {
  height: 5px;
  background: linear-gradient(
    to right,
    rgba(248, 242, 236, 0.88) 0 var(--timeline-progress, 0%),
    rgba(255, 255, 255, 0.24) var(--timeline-progress, 0%) 100%
  );
  border-radius: 5px;
}

.full-player__timeline input::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
}

.player-timeline__tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: var(--scrub-position, 0%);
  z-index: 6;
  min-width: 44px;
  padding: 5px 7px;
  color: var(--text);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  pointer-events: none;
  background: rgba(17, 16, 15, 0.96);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateX(-50%);
}

.player-timeline__tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border: 5px solid transparent;
  border-top-color: rgba(17, 16, 15, 0.96);
  transform: translateX(-50%);
}

.player-timeline__tooltip[hidden] {
  display: none;
}

.mini-player .mini-player__timeline-tooltip {
  top: 0;
  bottom: auto;
  left: var(--scrub-position, 0%);
  z-index: 3;
  transform: translate(-50%, calc(-100% - 6px));
}

.full-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: clamp(8px, 1.2vh, 14px);
  margin-bottom: 0;
}

.full-player__controls button {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.full-player__controls button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.full-player__controls .full-player__play:disabled {
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
}

.full-player__controls .full-player__play {
  width: 80px;
  height: 80px;
}

.full-player__controls svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.full-player__controls button:not(.full-player__play) svg {
  width: 30px;
  height: 30px;
}

.full-player__controls .full-player__play svg {
  width: 52px;
  height: 52px;
}

.full-player__controls .full-player__play.is-locked svg {
  width: 32px;
  height: 32px;
  stroke: none;
}

.full-player__utility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: min(100%, 390px);
  min-height: 36px;
  justify-self: center;
  margin-top: clamp(18px, 2.8vh, 30px);
  padding-top: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.14);
}

.full-player__utility {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: center;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.full-player__utility:disabled {
  cursor: default;
  opacity: 0.5;
}

.full-player__utility[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
}

.full-player__utility svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.full-player__utility.full-player__transcripts svg {
  transform: scaleX(-1);
}

.full-player__favorite svg {
  fill: transparent;
}

.full-player__favorite[aria-pressed="true"] svg {
  fill: currentColor;
}

body.player-expanded {
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .full-player,
  .player-backdrop,
  .full-player__hero,
  .full-player__compact,
  .full-player__queue-panel,
  .full-player__transcript-panel,
  .full-player__transcript-list {
    transition: none;
  }
}

@keyframes player-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 900px),
  ((min-width: 640px) and (orientation: landscape)),
  ((min-width: 768px) and (min-height: 640px)) {
  .mini-player {
    width: auto;
    transform: none;
  }

  .full-player {
    grid-template-columns: minmax(240px, min(36vw, 430px)) minmax(320px, min(38vw, 560px));
    grid-template-rows: auto minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    justify-content: center;
    column-gap: clamp(34px, 4vw, 64px);
    row-gap: clamp(10px, 1.6vh, 18px);
    align-items: center;
    padding-inline: clamp(32px, 5vw, 72px);
  }

  .full-player[data-mode="queue"],
  .full-player[data-mode="transcript"] {
    grid-template-rows: auto minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  }

  .full-player .full-player__collapse {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .full-player:not([data-mode="queue"]) .full-player__queue-panel {
    display: none;
  }

  .full-player .full-player__now-playing-area {
    grid-column: 1;
    grid-row: 3 / 6;
    align-self: center;
    width: 100%;
    justify-self: end;
  }

  .full-player .full-player__hero {
    grid-template-rows: none;
    contain: none;
    height: auto;
    align-content: center;
    justify-items: end;
  }

  .full-player .full-player__cover {
    width: min(100%, 430px, 36vw);
    height: auto;
    max-width: none;
    max-height: min(430px, 36vw, 78dvh);
    justify-self: end;
  }

  .full-player.is-playback-active .full-player__cover {
    width: min(100%, 460px, 38vw);
    max-width: none;
    max-height: min(460px, 38vw, 82dvh);
  }

  .full-player .full-player__aside {
    display: grid;
    grid-column: 2;
    grid-row: 3 / 6;
    align-self: center;
    align-content: center;
    --transport-gap: clamp(32px, 4.5vh, 44px);
    gap: var(--transport-gap);
    width: min(100%, 560px);
    min-width: 0;
    justify-self: start;
  }

  .full-player .full-player__playback {
    width: 100%;
    justify-self: stretch;
  }

  .full-player .full-player__title {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
  }

  .full-player .full-player__controls {
    justify-content: center;
    width: 100%;
    /* Pull controls up so transport gap is measured from the scrubber track, not the timestamps below it. */
    margin-top: calc(-1 * (2px + 4px + 0.76rem * 1.2 + 2px));
  }

  .full-player .full-player__utility-row {
    width: 100%;
    margin-top: 0;
  }

  .full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__now-playing-area {
    z-index: 3;
    height: min(430px, 78dvh);
    align-items: start;
    pointer-events: none;
  }

  .full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__compact {
    width: 100%;
    margin-bottom: 0;
    pointer-events: auto;
  }

  .full-player:is([data-mode="queue"], [data-mode="transcript"]) .full-player__copy {
    display: grid;
  }

  .full-player[data-mode="queue"] .full-player__queue-panel {
    grid-column: 1;
    grid-row: 3 / 6;
    align-self: center;
    width: 100%;
    height: min(430px, 78dvh);
    box-sizing: border-box;
    min-height: 0;
    justify-self: end;
    padding-top: 82px;
    transform: translateY(0);
  }
}

@media (max-aspect-ratio: 7 / 6) {
  :root {
    --mini-player-height: 76px;
  }

  .mini-player__expand {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  .mini-player__expand img {
    width: 52px;
    height: 52px;
  }

  .mini-player__controls {
    gap: 2px;
    padding: 8px 8px 8px 0;
  }

  .mini-player__controls button {
    width: 36px;
    height: 36px;
  }

  .mini-player__controls .mini-player__play {
    width: 42px;
    height: 42px;
  }

  .full-player {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .full-player__timeline input::-webkit-slider-runnable-track {
    height: 7px;
  }

  .full-player__timeline input::-moz-range-track {
    height: 7px;
  }
}

.mini-player[hidden],
.player-backdrop[hidden],
.full-player[hidden] {
  display: none;
}
