.rhythm-player {
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--paper, #fffdf7);
  border: 1px solid rgba(13, 90, 50, 0.2);
  border-left: 4px solid var(--gold, #d8a936);
  border-radius: 12px;
}

.rhythm-player [hidden] {
  display: none !important;
}

.rhythm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green, #0d5a32);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.rhythm-toggle:hover {
  color: var(--green-dark, #042c19);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rhythm-toggle:focus-visible {
  outline: 3px solid var(--gold, #d8a936);
  outline-offset: 5px;
  border-radius: 3px;
}

.rhythm-icon {
  flex: 0 0 24px;
  font-size: 19px;
  line-height: 1;
  text-align: center;
}

.rhythm-player audio {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 40px;
  margin-top: 12px;
}

.rhythm-player .rhythm-credit {
  margin: 10px 0 0;
  color: #465349;
  font-size: 14px;
  line-height: 1.5;
}

.rhythm-credit a {
  color: var(--green, #0d5a32);
  text-underline-offset: 3px;
}

.rhythm-player .rhythm-status {
  margin: 10px 0 0;
  font-size: 14px;
}

@media (max-width: 560px) {
  .rhythm-player {
    padding: 16px;
  }
}
