/* public/css/app.css */

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.page {
  height: 100%;
  display: grid;
  place-items: center;
}

.button {
  padding: 0;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 0;
  background: #b62634;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 7px rgba(182, 38, 52, 0.55);
}

.button[disabled] {
  opacity: 0.7;
  cursor: default;
}

.button.--error {
  /* Error state stays clickable; just add a subtle cue. */
  opacity: 0.92;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.player-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.player-icon * {
  fill: currentColor;
}

/* Smooth play/pause morph using opacity + transform. */
.player-icon .icon-play,
.player-icon .icon-pause {
  transform-origin: 50% 50%;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.player-icon .icon-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.player-icon .icon-pause {
  opacity: 0;
  transform: translateY(2px) scale(0.85);
}

.button.--playing .player-icon .icon-play {
  opacity: 0;
  transform: translateY(-2px) scale(0.85);
}

.button.--playing .player-icon .icon-pause {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .player-icon .icon-play,
  .player-icon .icon-pause {
    transition: none;
    transform: none;
  }
}

.app-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: auto;
}
