/* Winamp-adjacent dark skin: charcoal, green accents, mono readout */

:root {
  --bg-deep: #0d0d0f;
  --bg-panel: #16161a;
  --bg-raised: #1e1e24;
  --border: #2a2a32;
  --border-light: #3a3a44;
  --text: #c8c8d0;
  --text-dim: #6a6a78;
  --accent: #3dcc6e;
  --accent-dim: #1f6b3d;
  --lcd-bg: #0a1a0c;
  --lcd-glow: #2dffa0;
  --danger: #c44;
  --titlebar-mid: #2a2f3a;
  --titlebar-edge: #12141a;
  --knob-size: 72px;
  --font-ui: "JetBrains Mono", ui-monospace, monospace;
  --font-lcd: "Share Tech Mono", "JetBrains Mono", monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #1a2030 0%, transparent 55%),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.app {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-panel) 8%, var(--bg-panel) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 10px;
  background: linear-gradient(180deg, var(--titlebar-mid) 0%, var(--titlebar-edge) 100%);
  border-bottom: 1px solid #000;
  user-select: none;
}

.titlebar-drag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.titlebar-icon {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(61, 204, 110, 0.35);
}

.titlebar-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e8e8f0;
}

.titlebar-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.titlebar-controls {
  display: flex;
  gap: 4px;
}

.tb-btn {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: #333;
  border: 1px solid #111;
}

.tb-btn.close {
  background: #553333;
}

.display-strip {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #0a0a0c 0%, #121218 100%);
  border-bottom: 1px solid var(--border);
}

.vu-wrap {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.vu {
  width: 10px;
  height: 64px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.vu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  transition: height 0.06s ease-out;
}

.vu-l::after,
.vu-r::after {
  height: var(--vu-h, 15%);
}

.lcd {
  flex: 1;
  min-width: 0;
  background: var(--lcd-bg);
  border: 1px solid #0f2014;
  border-radius: 2px;
  padding: 8px 10px;
  box-shadow: 0 0 12px rgba(45, 255, 160, 0.06) inset;
}

.lcd-line {
  font-family: var(--font-lcd);
  font-size: 11px;
  line-height: 1.35;
}

.lcd-mood {
  color: var(--lcd-glow);
  text-shadow: 0 0 6px rgba(45, 255, 160, 0.35);
  letter-spacing: 0.2em;
  font-size: 13px;
}

.lcd-readout {
  color: #7abf8e;
  margin-top: 4px;
}

.lcd-unit {
  color: var(--text-dim);
  font-size: 10px;
}

.lcd-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.mood-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  flex-shrink: 0;
}

.mood-select {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 10px;
  cursor: pointer;
  outline: none;
}

.mood-select:hover,
.mood-select:focus {
  border-color: var(--accent-dim);
}

.knob-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 18px 12px 14px;
  background: linear-gradient(180deg, #141418 0%, var(--bg-panel) 100%);
  border-bottom: 1px solid var(--border);
}

.knob-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.knob {
  position: relative;
  width: var(--knob-size);
  height: var(--knob-size);
  cursor: ns-resize;
  touch-action: none;
  border-radius: 50%;
  outline: none;
}

.knob:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 50%;
}

.knob-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #2a2a32 0deg, #0f0f12 180deg, #2a2a32 360deg);
  border: 2px solid #111;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.knob-indicator {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, var(--accent) 0%, #1a5c32 100%);
  border-radius: 1px;
  transform-origin: 50% calc(var(--knob-size) / 2 - 10px);
  transform: rotate(-45deg);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(61, 204, 110, 0.4);
}

.knob-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.knob-value {
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.transport {
  padding: 14px 14px 10px;
  text-align: center;
  background: var(--bg-panel);
}

.btn-play {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a120e;
  background: linear-gradient(180deg, #4be08a 0%, var(--accent) 45%, var(--accent-dim) 100%);
  border: 1px solid #1a4a2a;
  border-radius: 3px;
  padding: 10px 36px;
  cursor: pointer;
  box-shadow: 0 2px 0 #0a1a0f;
}

.btn-play:hover {
  filter: brightness(1.08);
}

.btn-play:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-play.is-playing {
  background: linear-gradient(180deg, #888 0%, #555 100%);
  border-color: #333;
  color: #eee;
}

.hint {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.foot {
  padding: 8px 14px 12px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 380px) {
  :root {
    --knob-size: 64px;
  }

  .lcd-readout {
    font-size: 10px;
  }
}
