/* cumu — design system, OpenCode DESIGN.md compliant */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary:              #201d1d;
  --on-primary:           #fdfcfc;
  --ink:                  #201d1d;
  --ink-deep:             #0f0000;
  --charcoal:             #302c2c;
  --body:                 #424245;
  --mute:                 #646262;
  --stone:                #6e6e73;
  --ash:                  #9a9898;
  --canvas:               #fdfcfc;
  --surface-soft:         #f8f7f7;
  --surface-card:         #f1eeee;
  --surface-dark:         #201d1d;
  --surface-dark-elevated:#302c2c;
  --hairline:             rgba(15,0,0,0.12);
  --hairline-strong:      #646262;
  --on-dark:              #fdfcfc;
  --on-dark-mute:         #9a9898;
  --accent:               #007aff;
  --danger:               #ff3b30;
  --warning:              #ff9f0a;
  --success:              #30d158;
  --font: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
  --radius:         4px;
  --nav-h:          56px;
  --bottom-nav-h:   64px;
  --np-bar-h:       90px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 2px; }

/* Typography */
h1 { font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1.5; }
h2 { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.5; }
h3 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }
p  { font-size: 16px; font-weight: 400; color: var(--body); line-height: 1.5; }
.caption { font-size: 14px; font-weight: 400; line-height: 2; color: var(--mute); }
.mute { color: var(--mute); }
.ink  { color: var(--ink); }

/* Wordmark */
.wordmark {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
}
.wordmark-small {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  padding: 4px 20px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}
.btn-primary:hover  { background: var(--charcoal); }
.btn-primary:active { background: var(--ink-deep); }

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  padding: 4px 20px;
  height: 36px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.1s;
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-icon {
  background: transparent;
  color: var(--mute);
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2px 12px;
  cursor: pointer;
  height: 30px;
}
.btn-icon:hover { color: var(--ink); border-color: var(--ink); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 16px;
  height: 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Generic icon button (used in now-playing page, sheets, etc.) */
.icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.1s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }

/* Inputs */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="email"],
select,
textarea {
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  padding: 8px 12px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 100%;
  outline: none;
  transition: border-color 0.1s, background 0.1s;
}
input:focus, select:focus, textarea:focus {
  background: var(--canvas);
  border-color: var(--ink);
}
textarea { height: auto; min-height: 80px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23646262'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Layout */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

.main-content {
  margin-top: var(--nav-h);
  padding-bottom: calc(var(--bottom-nav-h) + var(--np-bar-h) + 24px);
  min-height: calc(100vh - var(--nav-h));
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--mute);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  transition: color 0.1s;
}
.nav-tab.active { color: var(--ink); }
.nav-tab:hover  { color: var(--charcoal); }
.nav-icon { font-size: 16px; line-height: 1; }

/* ── Now Playing Bar (mini) ─────────────────────────────────────────────── */
.now-playing-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0; right: 0;
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 10px 16px 8px;
  z-index: 99;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  border-top: 1px solid var(--charcoal);
}
.np-info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.np-cover {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-dark-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.np-text { min-width: 0; }
.np-title  { font-size: 14px; font-weight: 500; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 12px; color: var(--on-dark-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.np-progress {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--on-dark-mute);
}
.np-progress input[type="range"] {
  flex: 1;
  height: 3px;
  background: var(--charcoal);
  border: none;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--on-dark);
  cursor: pointer;
}

/* Playback buttons (used in both mini bar and full page) */
.np-btn {
  background: transparent;
  border: none;
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  min-width: 36px;
  min-height: 36px;
}
.np-btn:hover  { background: var(--surface-dark-elevated); }
.np-btn.active { color: var(--accent); }

/* Larger buttons for the full now-playing page */
.np-btn-lg {
  min-width: 56px;
  min-height: 56px;
  padding: 12px;
  border-radius: 50%;
}
.np-btn-lg:hover { background: rgba(253,252,252,0.12); }

/* ── Now Playing Full Page ───────────────────────────────────────────────── */
.now-playing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 0 0 32px;
}

.np-page-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--on-dark);
}
.np-page-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-mute);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.np-page-back { color: var(--on-dark); }

.np-full-cover-wrap {
  width: 100%;
  max-width: 340px;
  margin: 16px auto 24px;
  padding: 0 24px;
}
.np-full-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}
.np-full-cover--placeholder {
  background: var(--surface-dark-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--on-dark-mute);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}

.np-full-info {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  padding: 0 24px;
}
.np-full-title  { font-size: 22px; font-weight: 700; color: var(--on-dark); line-height: 1.3; margin-bottom: 4px; }
.np-full-artist { font-size: 16px; color: var(--on-dark-mute); }

.np-full-seek {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--on-dark-mute);
}
.seek-input {
  flex: 1;
  height: 4px;
  background: var(--surface-dark-elevated);
  border: none;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--on-dark);
  cursor: pointer;
}

.np-full-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--on-dark);
}

/* ── Song Action Sheet (3-dot menu) ──────────────────────────────────────── */
.song-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.song-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32,29,29,0.6);
}
.song-sheet-inner {
  position: relative;
  background: var(--canvas);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 0 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.song-sheet-header {
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.song-sheet-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.song-sheet-sub   { font-size: 13px; color: var(--mute); }

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--body);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.sheet-item:hover  { background: var(--surface-soft); color: var(--ink); }
.sheet-item.danger { color: var(--danger); }
.sheet-item.muted  { color: var(--mute); }

/* ── Page sections ───────────────────────────────────────────────────────── */
.page-section {
  padding: 24px 24px 0;
  max-width: 960px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.see-all {
  font-size: 14px;
  color: var(--mute);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
}
.see-all:hover { color: var(--ink); }

/* Song List */
.song-list { list-style: none; }
.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.1s;
  border-radius: var(--radius);
}
.song-row:hover { background: var(--surface-soft); }
.song-cover {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--mute);
  overflow: hidden;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.song-meta    { flex: 1; min-width: 0; }
.song-title   { font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-sub     { font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-duration{ font-size: 14px; color: var(--mute); flex-shrink: 0; }
.song-more {
  background: none;
  border: none;
  color: var(--mute);
  font-family: var(--font);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
}
.song-more:hover { color: var(--ink); }

/* Album Cards */
.card-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.card-scroll::-webkit-scrollbar { display: none; }
.album-card {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
}
.album-cover {
  width: 140px; height: 140px;
  border-radius: var(--radius);
  background: var(--surface-card);
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--mute);
  margin-bottom: 8px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card-title { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card-sub   { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Search */
.search-bar { position: relative; margin-bottom: 24px; }
.search-bar input { padding-left: 40px; font-size: 16px; }
.search-bar::before {
  content: '[?]';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  font-size: 14px;
  pointer-events: none;
}

/* Forms */
.form-section { margin-bottom: 24px; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.form-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}
.form-row.inline { flex-direction: row; align-items: center; gap: 12px; }
.form-row.inline label { width: 140px; flex-shrink: 0; }
.form-row.inline input { flex: 1; }

/* Error */
.error-msg {
  color: var(--danger);
  font-size: 14px;
  padding: 8px 0;
}

/* Setup Page */
.setup-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.setup-container { width: 100%; max-width: 480px; padding: 32px 0; }
.setup-header { margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.setup-form .section-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.setup-form .form-section {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,29,29,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal {
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.modal .wordmark { margin-bottom: 24px; }

/* Context Menu */
.context-menu {
  position: fixed;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 4px 0;
  min-width: 200px;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.context-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  transition: background 0.1s;
}
.context-item:hover { background: var(--surface-soft); color: var(--ink); }
.context-item.danger { color: var(--danger); }

/* Badge */
.badge {
  background: var(--surface-dark);
  color: var(--on-dark);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius);
  display: inline-block;
}
.badge.success      { background: var(--success); color: #fff; }
.badge.warning      { background: var(--warning); color: #fff; }
.badge.spoken-word  { background: var(--charcoal); color: var(--on-dark); }

/* Admin Panel */
.admin-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}
.admin-sidebar {
  background: var(--surface-soft);
  border-right: 1px solid var(--hairline);
  padding: 24px 0;
}
.admin-sidebar-item {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: color 0.1s, background 0.1s;
}
.admin-sidebar-item:hover  { color: var(--ink); background: var(--surface-card); }
.admin-sidebar-item.active { color: var(--ink); font-weight: 700; background: var(--surface-card); }
.admin-main { padding: 24px 32px; }

/* Upload Area */
.upload-zone {
  border: 2px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
  margin-bottom: 24px;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--ink); background: var(--surface-soft); }
.upload-zone .upload-label { font-size: 16px; font-weight: 500; color: var(--ink); }
.upload-zone .upload-sub   { font-size: 14px; color: var(--mute); margin-top: 4px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-value { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--surface-card);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Artist / album hero */
.artist-hero {
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 48px 24px 32px;
  margin-bottom: 0;
}
.artist-hero h1 { color: var(--on-dark); font-size: 38px; }
.artist-hero .caption { color: var(--on-dark-mute); }

/* Tabs */
.tab-strip {
  display: flex;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: 16px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--mute);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.1s;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-btn:hover  { color: var(--charcoal); }

/* Misc */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--mute);
  font-size: 14px;
}
.empty-state .big { font-size: 32px; margin-bottom: 8px; }

.spinner {
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  width: 20px; height: 20px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--mute);
}

.song-row.playing .song-title { color: var(--accent); }

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.playlist-cover {
  width: 48px; height: 48px;
  background: var(--surface-card);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Upload progress */
.upload-progress {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--body);
  margin-bottom: 8px;
}
input[type="checkbox"] { width: auto; height: auto; }

/* Toast notification */
.cumu-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--np-bar-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-dark);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 20px;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 500;
}
.cumu-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 8px 0; border-right: none; border-bottom: 1px solid var(--hairline); }
  .admin-sidebar-item { white-space: nowrap; }
  .admin-main { padding: 16px; }
  h1 { font-size: 28px; }
  .page-section { padding: 16px 16px 0; }
  .np-full-cover-wrap { max-width: 280px; }
  .np-full-info, .np-full-seek, .np-full-controls { max-width: 280px; }
}
