:root {
  color-scheme: dark;
  --bg: #101820;
  --surface: #172431;
  --surface-2: #203143;
  --text: #f6fbff;
  --muted: #b4c2cf;
  --accent: #48d89b;
  --accent-2: #ffcf5a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(72, 216, 155, 0.2), transparent 28rem),
    linear-gradient(135deg, #0c1319 0%, var(--bg) 54%, #182719 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.player {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(23, 36, 49, 0.92);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--accent);
  color: #08120e;
  font-weight: 800;
}

h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.brand p,
.hint,
.status {
  color: var(--muted);
  line-height: 1.45;
}

.meter {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b1117;
  border: 1px solid var(--border);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 120ms linear;
}

.time-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 12px;
  margin-bottom: 20px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.play-btn {
  background: var(--accent);
  color: #07120e;
  font-weight: 800;
}

.icon-btn {
  color: var(--accent-2);
  font-weight: 700;
}

.panel {
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

label {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input[type="text"] {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1821;
  color: var(--text);
}

select {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1821;
  color: var(--text);
  font-weight: 700;
}

.track-panel {
  margin-bottom: 16px;
}

.wide {
  grid-column: 1 / -1;
  background: #2e4052;
  font-weight: 700;
}

.toggles {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.toggles label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.toggles input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.status {
  min-height: 22px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .app {
    align-items: stretch;
    padding: 12px;
  }

  .player {
    min-height: calc(100vh - 24px);
    padding: 18px;
  }

  h1 {
    font-size: 26px;
  }
}
