/* ── NFC_ALBUM design tokens ──────────────────────────────────────────── */
:root {
  /* Cream (default) */
  --bg:        oklch(96% 0.012 85);
  --bg-2:      oklch(93% 0.014 85);
  --bg-3:      oklch(90% 0.018 85);
  --fg:        oklch(20% 0.01 70);
  --fg-2:      oklch(40% 0.012 70);
  --fg-3:      oklch(58% 0.012 70);
  --line:      oklch(20% 0.01 70 / 0.10);
  --line-2:    oklch(20% 0.01 70 / 0.18);
  --accent:    oklch(64% 0.10 60);
  --accent-soft: oklch(88% 0.04 60);

  --shell-w: 420px;
  --shell-h: 920px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-display: "Instrument Serif", "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans:    "Geist", "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
}
html { background: oklch(88% 0.012 85); }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: oklch(88% 0.012 85);
  overflow: hidden;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

/* ── App shell: mobile-first, letterboxed on desktop ───────────────────── */
.stage {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, oklch(92% 0.014 85) 0%, oklch(86% 0.014 85) 60%, oklch(82% 0.012 70) 100%);
  overflow: hidden;
}
.shell {
  position: relative;
  width: min(100vw, var(--shell-w));
  height: min(100vh, var(--shell-h));
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  container-type: size;
  container-name: shell;
}
@media (min-width: 460px) {
  .shell {
    border-radius: 44px;
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.05),
      0 30px 80px -20px rgba(20,16,10,0.35),
      0 8px 24px -8px rgba(20,16,10,0.18);
  }
}

/* ── Screen base ───────────────────────────────────────────────────────── */
.screen {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { width: 0; }

/* ── Bottom nav ───────────────────────────────────────────────────────── */
.bottomnav {
  flex: 0 0 auto;
  padding: 8px 12px 22px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 30%);
}
.navbtn {
  appearance: none; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px;
  color: var(--fg-3); cursor: pointer;
  font: 500 9.5px/1.1 var(--font-sans);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.navbtn.active { color: var(--fg); }
.navbtn svg { width: 20px; height: 20px; }

/* ── Mini player ──────────────────────────────────────────────────────── */
.miniplayer {
  margin: 0 14px 6px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 18px;
  cursor: pointer;
}
.miniplayer .cover {
  width: 36px; height: 36px;
  border-radius: 8px; flex-shrink: 0;
  background: var(--accent);
  background-size: cover; background-position: center;
}
.miniplayer .meta { flex: 1; min-width: 0; line-height: 1.2; }
.miniplayer .meta .t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer .meta .a { font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer .play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg); color: var(--fg);
  display: grid; place-items: center;
  border: 0; cursor: pointer;
}
.miniplayer .play svg { width: 14px; height: 14px; }

/* ── Type utilities ───────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "tnum";
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }

/* ── Common chrome ────────────────────────────────────────────────────── */
.topbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 20px 12px;
}
.iconbtn {
  appearance: none; border: 0; background: transparent; padding: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg); cursor: pointer;
}
.iconbtn:active { background: var(--bg-2); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn.bordered { border: 1px solid var(--line-2); }

/* ── Screen-transition (page) ─────────────────────────────────────────── */
.page-enter { animation: pageIn .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Placeholder cover art (subtle stripes) ───────────────────────────── */
.cover-art {
  position: relative;
  overflow: hidden;
  background: var(--accent-soft);
}
.cover-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0 1px,
      transparent 1px 14px);
}
.cover-art .label-tag {
  position: absolute; left: 10px; bottom: 10px;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
  padding: 4px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
