.for-you-card > [data-fy-audio] {
  display: none;
}

.fy-bottom-nav.has-audio-dock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.fy-nav-items {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.fy-audio-dock[hidden] {
  display: none !important;
}

.fy-audio-dock {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  min-height: 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 4px 0;
  color: #fff;
}

.fy-audio-dock-control {
  min-width: 66px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: inherit;
  font: 750 .58rem/1 var(--font-ui, Inter, Arial, sans-serif);
  cursor: pointer;
}

.fy-audio-dock-control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fy-audio-dock-control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.fy-audio-dock-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: 650 .6rem/1.2 var(--font-ui, Inter, Arial, sans-serif);
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .78;
}

.fy-audio-dock-progress[hidden] {
  display: none !important;
}

.fy-audio-dock-progress {
  position: absolute;
  top: -5px;
  left: 4px;
  right: 4px;
  height: 12px;
  border-radius: 6px;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.fy-audio-dock-progress::before,
.fy-audio-dock-progress > span {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
}

.fy-audio-dock-progress::before {
  content: "";
  background: rgb(255 255 255 / 28%);
}

.fy-audio-dock-progress > span {
  display: block;
  transform: scaleX(0);
  transform-origin: left center;
  background: #fff;
  box-shadow: 0 0 6px rgb(255 255 255 / 70%);
  pointer-events: none;
}

.fy-audio-dock-progress:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

html[data-theme="light"] .fy-audio-dock {
  color: #17191d;
}

html[data-theme="light"] .fy-audio-dock-control {
  background: rgb(17 19 24 / 7%);
}

html[data-theme="light"] .fy-audio-dock-progress::before {
  background: rgb(17 19 24 / 22%);
}

html[data-theme="light"] .fy-audio-dock-progress > span {
  background: #17191d;
  box-shadow: 0 0 6px rgb(17 19 24 / 36%);
}

.fy-audio-card-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(73 79 91 / 28%), rgb(45 51 62 / 38%));
  pointer-events: none;
}

.fy-audio-card-play {
  position: absolute;
  transition: opacity 420ms ease;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 48%));
  cursor: pointer;
}

.for-you-card:has(.fy-audio-card-play) .for-you-actions {
  z-index: 8;
}

.fy-audio-card-play::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(3 6 12 / 75%) 0%, rgb(3 6 12 / 30%) 46%, transparent 72%);
  pointer-events: none;
}

.fy-audio-card-play svg {
  position: relative;
}

.fy-audio-card-play svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
  stroke: none;
}

.fy-audio-card-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

.fy-audio-card-play.is-playing svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.fy-audio-card-play:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

body:has(.for-you-page:not([hidden])) .for-you-card:has([data-fy-audio]) .for-you-copy,
body:has(.for-you-page:not([hidden])) .for-you-card:has([data-fy-audio]) .for-you-actions {
  bottom: max(130px, calc(env(safe-area-inset-bottom) + 118px));
}

.for-you-copy > p a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .fy-audio-card-play {
    transition: none;
  }
}

@media (max-width: 800px) {
  body:has(.for-you-page:not([hidden])) .for-you-card:has([data-fy-audio]) .for-you-copy,
  body:has(.for-you-page:not([hidden])) .for-you-card:has([data-fy-audio]) .for-you-actions {
    bottom: max(122px, calc(env(safe-area-inset-bottom) + 110px));
  }
}
