* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: white;
  font-family: Arial, sans-serif;
}

body {
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

#app {
  width: 100%;
  height: 100vh;
}

.page {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 120px;
}

.card {
  background: #111;
  border-radius: 22px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  transition: transform .1s ease;
}

.card.dragging {
  opacity: .5;
  transform: scale(.98);
}

.card-left {
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
}

.card-sub {
  opacity: .6;
  margin-top: 4px;
}

.secondary {
  background: #222;
  color: white;
  border-radius: 14px;
  padding: 12px 16px;
}

.primary {
  background: white;
  color: black;
  border-radius: 14px;
  padding: 12px 18px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #222;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: white;
  color: black;
  font-size: 42px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.drag-handle {
  width: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: .45;
  font-size: 24px;
  flex-shrink: 0;
}

.drag-handle::before {
  content: '⋮⋮';
  letter-spacing: -2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 1000;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #111;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalIn .12s ease-out;
}

@keyframes modalIn {
  from {
    transform: scale(.96);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 28px;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

input {
  width: 100%;
  background: #222;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
}

.metronome-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.song-title {
  font-size: 38px;
  font-weight: bold;
}

.bpm {
  opacity: .6;
  font-size: 22px;
}

.balls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ball {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #222;
  transition: transform .05s linear;
}

.ball.big {
  width: 100px;
  height: 100px;
}

.ball.active {
  background: white;
  transform: scale(1.12);
}

.next-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  padding: 20px;
}

.next-label {
  opacity: .6;
  font-size: 22px;
}

.next-song {
  font-size: 42px;
  font-weight: bold;
}

.big-play {
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: white;
  color: black;
  font-size: 90px;
}