.tf-wave-player {
  --tf-wave-accent: var(--orange, #ff4d12);
  --tf-wave-muted: color-mix(in srgb, var(--muted, #8a8178) 32%, transparent);
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.tf-wave-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--tf-wave-accent);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.tf-wave-button::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}
.tf-wave-button[data-state='pause']::before {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg,currentColor 0 3px,transparent 3px 7px,currentColor 7px 10px);
}
.tf-wave-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.tf-wave-button:disabled { cursor: wait; opacity: .45; transform: none; }
.tf-wave-main { min-width: 0; }
.tf-wave-canvas {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--line, #d7cbbc) 55%, transparent);
  cursor: pointer;
  transition: filter .18s ease, opacity .18s ease;
}
.tf-wave-canvas:hover { filter: brightness(1.12); }
.tf-wave-canvas.is-loading { opacity: .55; }
.tf-wave-meta {
  min-height: 18px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim, var(--muted, #8a8178));
  font: 9px var(--mono, monospace);
}
.tf-wave-loading { margin-left: auto; color: var(--tf-wave-accent); }
.tf-wave-canvas:hover::part(cursor) { opacity: 1; }
@media (max-width: 520px) {
  .tf-wave-player { gap: 9px; }
  .tf-wave-button { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .tf-wave-player { gap: 7px; }
  .tf-wave-button { width: 34px; height: 34px; }
  .tf-wave-button::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }
  .tf-wave-meta { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-wave-button, .tf-wave-canvas { transition: none; }
}
