:root {
  --bg-1: #0f1115;
  --bg-2: #1b1f2a;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --text: #e9eef6;
  --muted: #b6c0cf;
  --accent: #79c9ff;
  --accent-2: #a3ffd6;
  --danger: #ff7b7b;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --blur: 18px;
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Figtree", "Sora", system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% 10%, #2a3142 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 20%, #203143 0%, transparent 55%),
              linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 32px 20px 60px;
}

.app {
  width: min(1120px, 95vw);
  display: grid;
  gap: 22px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.title {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 0.5px;
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px 22px;
}

.layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.controls {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 680px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

.now-cover {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.now-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-meta h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.now-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.transport {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button, input[type="range"], select {
  font-family: inherit;
  color: var(--text);
}

.btn {
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass-strong);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(121, 201, 255, 0.35), rgba(163, 255, 214, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.danger { background: rgba(255, 123, 123, 0.22); }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.range {
  width: 140px;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.uploader {
  display: grid;
  gap: 12px;
}

.input-group {
  display: grid;
  gap: 6px;
}

input[type="file"], input[type="text"], select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.card h4 {
  margin: 0;
  font-size: 14px;
}

.card .card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(121, 201, 255, 0.2);
}

.recent {
  display: grid;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.recent-item img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-note {
  color: var(--muted);
  font-size: 12px;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(6px); }
}

.progress-wrap {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
}

.waveform {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.waveform-wrap {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
}

.playhead {
  position: absolute;
  top: 0;
  left: 0%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(121, 201, 255, 0.9), rgba(163, 255, 214, 0.6));
  box-shadow: 0 0 12px rgba(121, 201, 255, 0.7);
  pointer-events: none;
  transition: left 0.08s linear;
}

.wave-tooltip {
  position: absolute;
  top: 8px;
  left: 0%;
  transform: translateX(-50%);
  background: rgba(17, 20, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.waveform-wrap:hover .wave-tooltip {
  opacity: 1;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
