/*
  Cast page only - SAMPLE VOICE
*/

.cast-voice {
  margin: 16px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.cast-voice-label {
  margin: 0 0 9px;
  color: var(--color-accent);
  font-family: var(--font-eng-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.cast-voice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cast-voice-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.cast-voice-button:hover,
.cast-voice-button:focus {
  color: var(--color-text);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .42);
}

.cast-voice-button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cast-voice-button.is-playing {
  color: #111827;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.cast-voice-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 14px;
  flex: 0 0 auto;
}

.cast-voice-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.cast-voice-button.is-playing .cast-voice-icon::before,
.cast-voice-button.is-playing .cast-voice-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 3px;
  height: 10px;
  background: currentColor;
  border: 0;
}

.cast-voice-button.is-playing .cast-voice-icon::before {
  left: 2px;
}

.cast-voice-button.is-playing .cast-voice-icon::after {
  right: 2px;
}

@media (max-width: 560px) {
  .cast-voice {
    margin-top: 14px;
  }

  .cast-voice-buttons {
    gap: 7px;
  }

  .cast-voice-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }
}
