body.has-home-sounds {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
}

@media (min-width: 700px) {
  body.has-home-sounds {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0));
  }
}

.home-sounds {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.home-sounds__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0 0.5rem;
}

.home-sounds__row--main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

.home-sounds__controls {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.home-sounds__btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.home-sounds__btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.home-sounds__btn--play {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(239, 68, 68, 0.45);
}

.home-sounds__btn--play svg {
  width: 1rem;
  height: 1rem;
}

.home-sounds__btn:hover,
.home-sounds__btn:focus-visible {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.35);
}

.home-sounds__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  flex: 1;
  color: var(--muted);
  line-height: 1.3;
}

.home-sounds__dot {
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}

.home-sounds__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}

.home-sounds__artist {
  color: #fca5a5;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-sounds__artist:hover {
  text-decoration: underline;
}

.home-sounds__cta {
  margin: 0;
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
}

.home-sounds__cta a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.25rem;
}

.home-sounds__cta a:hover {
  color: var(--white);
  text-decoration: underline;
}

.home-sounds__row--scrub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.home-sounds__time {
  flex-shrink: 0;
  width: 2.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  text-align: center;
}

.home-sounds__time:last-child {
  text-align: right;
}

.home-sounds__progress {
  position: relative;
  flex: 1;
  height: 1.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.home-sounds__progress-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.home-sounds__progress-fill {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 999px;
  background: var(--red);
  pointer-events: none;
}

.home-sounds__progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.home-sounds__embed {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

@media (min-width: 700px) {
  .home-sounds__inner {
    padding: 0.55rem 0 0.6rem;
    gap: 0.4rem;
  }

  .home-sounds__title {
    max-width: 16rem;
  }

  .home-sounds__btn {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 599px) {
  .home-sounds__cta {
    width: 100%;
    margin-left: 0;
  }
}
