*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fafafa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  color: #333;
}

.player {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2rem;
}

.selects {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.selects label {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  gap: 0.4rem;
}

select {
  appearance: none;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  color: #333;
  font-size: 0.95rem;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  cursor: pointer;
  width: 100%;
}

select:focus {
  outline: none;
  border-color: #888;
}

.progress-wrap {
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: transparent;
  accent-color: #333;
}

.progress-bar::-webkit-slider-runnable-track {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  margin-top: -4.5px;
}

.progress-bar::-moz-range-track {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: none;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1.25rem;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  transition: background 0.15s, color 0.15s;
}

button:hover {
  background: #f0f0f0;
  color: #111;
}

button:focus {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

#btn-play-pause svg,
#btn-stop svg {
  width: 1.5rem;
  height: 1.5rem;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.volume-wrap label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  white-space: nowrap;
}

.volume-wrap input[type="range"] {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  accent-color: #333;
  background: #e0e0e0;
  border-radius: 2px;
}

.status {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  min-height: 1.2em;
}
