:root {
  color-scheme: light;
  --bg: #f4f1e7;
  --surface: #fffdf8;
  --surface-2: #f7f2e7;
  --surface-3: #efe7d8;
  --text: #1d1a15;
  --muted: #6b6456;
  --accent: #b34824;
  --accent-2: #1d5f83;
  --border: #d8cfbe;
  --shadow: 0 12px 28px rgba(32, 22, 10, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fff3cf 0%, rgba(255, 243, 207, 0) 28%),
    linear-gradient(180deg, #f7f1e4 0%, #ece4d6 100%);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.muted,
.meta {
  color: var(--muted);
}

.meta {
  font-size: 0.88rem;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.btn.success {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.danger {
  background: #7c2b22;
  border-color: #7c2b22;
  color: #fff;
}

.btn.small {
  padding: 0.42rem 0.72rem;
  font-size: 0.88rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.panel,
.utility-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.playlist-filter-input,
input[type="text"],
select {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.playlist-filter-input {
  width: min(100%, 360px);
  background: var(--surface-2);
}

.empty-state,
.downloaded-placeholder {
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

.icon-btn {
  min-width: 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
