/* =========================================
   CSS CUSTOM PROPERTIES (overridden per mode)
========================================= */

:root {
  --bg: #000000;
  --bg2: #080808;
  --bg3: #0d0d0d;
  --border: #121212;
  --border2: #1a1a1a;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.45);
  --text-dimmer: rgba(255,255,255,0.25);
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.08);
  --font-ui: "Space Mono", monospace;
  --font-display: "Space Mono", monospace;
  --font-body: "Space Mono", monospace;
  --bar-bg: #0b0b0b;
  --bar-fill: #ffffff;
  --vis-bar: #ffffff;
  --vis-bg: #000000;
  --track-hover-bg: #050505;
  --radius: 0px;
  --shadow: none;
  --transition-speed: 0.3s;
  --font-hn-bold: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =========================================
   BASE RESET
========================================= */

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

body {
  background: var(--bg);
  overflow: hidden;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
  font-family: var(--font-ui);
  color: var(--text);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px
  );
  transition: opacity 0.4s;
}

.mode-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--text);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mode-flash.flash { opacity: 0.06; }

/* =========================================
   HEADER
========================================= */

.header {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
  background: var(--bg);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--text);
  transition: color var(--transition-speed) ease;
}

.meta, .header-link, .meta-title, .section-label, .meta-label, .np-label {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  transition: color var(--transition-speed) ease;
}

/* ── Helvetica Neue Bold: Art Gallery, MODES, 2026 ── */
.header-link {
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.header-link:hover { color: var(--accent); opacity: 1; }

.header .meta {
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
}

/* =========================================
   MODES BUTTON
========================================= */

.modes-btn {
  background: transparent;
  border: 1px solid var(--border2);
  padding: 6px 12px;
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.modes-btn:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================
   LIVE CLOCK
========================================= */

.live-clock {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  transition: color var(--transition-speed);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: right;
}

body.mode-terminal .live-clock {
  color: var(--text-dim);
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

body.mode-noir .live-clock {
  color: var(--accent);
  opacity: 0.7;
  font-family: "Fragment Mono", monospace;
}

body.mode-editorial .live-clock {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

body.mode-brutalist .live-clock {
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  color: #000;
}

body.mode-ghost .live-clock {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 11px;
}

/* =========================================
   MODES PANEL
========================================= */

.modes-panel {
  position: absolute;
  top: 64px;
  right: 18px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-top: none;
  padding: 0;
  z-index: 200;
  display: none;
  width: 280px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modes-panel.open { display: block; animation: panelReveal 0.18s ease; }

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modes-panel-header { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.modes-panel-label  { font-family: var(--font-ui); font-size: 10px; color: var(--text-dim); letter-spacing: 1.5px; }
.modes-panel-sub    { font-family: var(--font-ui); font-size: 9px; color: var(--text-dimmer); letter-spacing: 0.5px; margin-top: 3px; }

.modes-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 3px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.mode-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.12s, background 0.12s;
}
.mode-tile:hover  { border-color: var(--border2); background: var(--accent-dim); }
.mode-tile.active { border-color: var(--accent);  background: var(--accent-dim); }

.mode-tile-swatch {
  width: 32px; height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.mode-tile-info  { display: flex; flex-direction: column; gap: 2px; }
.mode-tile-name  { font-family: var(--font-ui); font-size: 10px; letter-spacing: 1px; color: var(--text); }
.mode-tile-desc  { font-family: var(--font-ui); font-size: 9px; color: var(--text-dimmer); letter-spacing: 0.3px; }

.swatch-default   { background: linear-gradient(135deg, #000 50%, #222 50%); }
.swatch-minimal   { background: #000; border-color: rgba(255,255,255,0.25) !important; }
.swatch-sidebar   { background: linear-gradient(90deg, #111 25%, #000 25%); }
.swatch-immersive { background: linear-gradient(135deg, #111, #000); }
.swatch-bento     { background: repeating-linear-gradient(90deg, #111 0, #111 30%, #000 30%, #000 33%); }
.swatch-noir      { background: radial-gradient(ellipse at center, #1a1a0a, #000); }
.swatch-editorial { background: linear-gradient(135deg, #f5efe6, #e8ddd0); border-color: rgba(0,0,0,0.15) !important; }
.swatch-brutalist { background: repeating-linear-gradient(45deg, #ff3300 0, #ff3300 4px, #fff 4px, #fff 8px); }
.swatch-ghost     { background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); backdrop-filter: blur(4px); }
.swatch-terminal  { background: linear-gradient(135deg, #001200, #002800); border-color: rgba(0,255,0,0.3) !important; }

/* =========================================
   SHARED COMPONENTS
========================================= */

/* ── Helvetica Neue Bold: Library section label + track names/numbers ── */
.library .section-label,
.track-name,
.track-num {
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
}

.track {
  border: 1px solid var(--border);
  padding: 11px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  color: var(--text-dim);
}
.track:hover  { border-color: var(--accent); background: var(--track-hover-bg); color: var(--text); }
.track.active { border-color: var(--accent); color: var(--text); }
.track-num    { color: var(--text-dimmer); font-size: 9px; flex-shrink: 0; letter-spacing: 0.5px; }
.track-name   { flex: 1; letter-spacing: 0.5px; }

.meta-panel {
  border: 1px solid var(--border);
  padding: 14px;
  background: var(--bg3);
  border-radius: var(--radius);
  transition: border-color var(--transition-speed), background var(--transition-speed);
}
.meta-title  { margin-bottom: 14px; }
.meta-block  { margin-bottom: 14px; }
.meta-block:last-child { margin-bottom: 0; }
.meta-label  { margin-bottom: 4px; }
.meta-block div:last-child { font-family: var(--font-body); font-size: 11px; color: var(--text); transition: color var(--transition-speed); }

#waveCanvas { width: 100%; height: 100%; display: block; }

.grid-wall {
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: border-color var(--transition-speed);
}

/* ── Helvetica Neue Bold: Player controls (PREV, PLAY, PAUSE, NEXT) ── */
.controls button {
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
  font-size: 9px;
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.controls button:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

.bar {
  height: 3px;
  background: var(--border2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

#barFill {
  width: 0%;
  height: 100%;
  background: var(--bar-fill);
  transition: background var(--transition-speed);
  border-radius: 2px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--text-dimmer);
}

#albumCover { object-fit: cover; border: 1px solid var(--border2); background: var(--bg2); }

.now-text { display: flex; flex-direction: column; }

/* ── Helvetica Neue Bold: NOW PLAYING label ── */
.np-label {
  font-family: var(--font-hn-bold) !important;
  font-weight: 700 !important;
}

#playerNowTitle {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: color var(--transition-speed);
}

/* =========================================
   PLAYER — Universal base (used by all modes)
========================================= */

.player {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: background var(--transition-speed), border-color var(--transition-speed);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.controls { display: flex; gap: 6px; }

/* =========================================
   MODE: DEFAULT
========================================= */

body.mode-default {
  --bg: #000; --bg2: #080808; --bg3: #0d0d0d;
  --border: #121212; --border2: #1a1a1a; --text: #ffffff;
  overflow: hidden;
}

body.mode-default .grid {
  display: flex;
  height: calc(100vh - 154px);
}

body.mode-default .library {
  width: 28%; min-width: 260px;
  border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto; flex-shrink: 0;
}

body.mode-default .track-list { margin-top: 10px; }

body.mode-default .visual {
  flex: 1; display: flex;
  justify-content: center; align-items: center;
}

body.mode-default .visual-layout {
  width: 92%; height: 84%;
  display: flex; gap: 14px;
}

body.mode-default .grid-wall { flex: 1; height: 100%; }
body.mode-default .meta-panel { width: 180px; height: 100%; }

body.mode-default .player {
  height: 90px;
  position: relative;
}

body.mode-default .now-playing {
  position: absolute; left: 20px;
}

body.mode-default #albumCover { width: 40px; height: 40px; }
body.mode-default .time-row { width: 320px; }
body.mode-default .bar      { width: 320px; }

/* =========================================
   MODE: IMMERSIVE
========================================= */

body.mode-immersive { overflow: hidden; }

body.mode-immersive #app { position: relative; height: 100vh; overflow: hidden; }

body.mode-immersive .header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 50; background: transparent; border-bottom: none;
}

body.mode-immersive .visual {
  position: absolute; inset: 0; z-index: 1; display: block; padding: 0;
}

body.mode-immersive .visual-layout { width: 100%; height: 100%; gap: 0; }
body.mode-immersive .grid-wall { width: 100%; height: 100vh; border: none; border-radius: 0; }
body.mode-immersive .meta-panel { display: none; }

body.mode-immersive .grid {
  display: block; height: 100vh;
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}

body.mode-immersive .library {
  position: absolute; bottom: 100px; left: 0;
  width: 220px; background: rgba(0,0,0,0.75);
  border: none; border-right: 1px solid rgba(255,255,255,0.07);
  padding: 16px; pointer-events: all;
  backdrop-filter: blur(12px);
}

body.mode-immersive .track        { border-color: rgba(255,255,255,0.06); }
body.mode-immersive .track:hover  { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
body.mode-immersive .track.active { border-color: rgba(255,255,255,0.5); }

body.mode-immersive .player {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 90px;
  background: rgba(0,0,0,0.8);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: center; align-items: center;
  padding: 0 20px; pointer-events: all;
  backdrop-filter: blur(16px); z-index: 10;
}

body.mode-immersive .now-playing { position: absolute; left: 20px; }
body.mode-immersive #albumCover { width: 40px; height: 40px; }
body.mode-immersive .controls { display: flex; gap: 8px; }
body.mode-immersive .time-row { width: 320px; }
body.mode-immersive .bar      { width: 320px; }

/* =========================================
   MODE: BENTO
========================================= */

body.mode-bento { --bg: #080808; --bg2: #0d0d0d; overflow: hidden; }

body.mode-bento .header { background: var(--bg); border-bottom: 1px solid #141414; }

body.mode-bento .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: calc(100vh - 64px - 90px);
  padding: 10px;
}

body.mode-bento .library {
  grid-column: 1; grid-row: 1 / 3;
  background: var(--bg2); border: 1px solid #141414;
  padding: 16px; overflow-y: auto;
}

body.mode-bento .track-list { margin-top: 10px; }
body.mode-bento .track { border-color: #161616; }

body.mode-bento .visual {
  grid-column: 2 / 4; grid-row: 1;
  display: block; background: var(--bg2); border: 1px solid #141414;
}

body.mode-bento .visual-layout { width: 100%; height: 100%; gap: 0; display: block; }
body.mode-bento .grid-wall      { width: 100%; height: 100%; border: none; }
body.mode-bento .meta-panel     { display: none; }

body.mode-bento .player {
  grid-column: 2 / 4; grid-row: 2;
  background: var(--bg2); border: 1px solid #141414;
  height: auto;
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; padding: 0; position: static;
}

body.mode-bento .now-playing {
  position: static; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-right: 1px solid #141414;
  height: 100%; width: 110px;
}

body.mode-bento #albumCover { width: 48px; height: 48px; }
body.mode-bento .now-text { align-items: center; text-align: center; }

body.mode-bento .player-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 16px; flex: 1;
}

body.mode-bento .controls { display: flex; gap: 8px; }
body.mode-bento .time-row { width: 100%; max-width: 360px; }
body.mode-bento .bar      { width: 100%; max-width: 360px; }

/* =========================================
   MODE: NOIR
========================================= */

body.mode-noir {
  --bg: #070702; --bg2: #0c0c04; --bg3: #101008;
  --border: #1e1e0c; --border2: #252510;
  --text: #e8e0c8; --text-dim: rgba(232,224,200,0.45); --text-dimmer: rgba(232,224,200,0.2);
  --accent: #c8b878; --accent-dim: rgba(200,184,120,0.08);
  --bar-fill: #c8b878; --vis-bar: #c8b878; --vis-bg: #070702;
  --track-hover-bg: #0f0f06;
  --font-ui: "Fragment Mono", monospace;
  --font-display: "Playfair Display", serif;
  --font-body: "Fragment Mono", monospace;
  --shadow: 0 8px 40px rgba(0,0,0,0.8);
  overflow: hidden;
}

body.mode-noir .noise-overlay { opacity: 0.04; }
body.mode-noir .brand { font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; letter-spacing: 1px; color: var(--accent); }
body.mode-noir .section-label { font-family: "Fragment Mono", monospace; letter-spacing: 3px; color: var(--accent); opacity: 0.6; }
body.mode-noir .track-num  { color: var(--accent); opacity: 0.4; }
body.mode-noir .track.active { border-color: var(--accent); color: var(--accent); }
body.mode-noir .track:hover  { border-color: rgba(200,184,120,0.5); }
body.mode-noir .controls button:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,184,120,0.06); }

body.mode-noir .grid { display: flex; height: calc(100vh - 154px); }
body.mode-noir .library { width: 28%; min-width: 260px; border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; flex-shrink: 0; }
body.mode-noir .track-list { margin-top: 10px; }
body.mode-noir .visual { flex: 1; display: flex; justify-content: center; align-items: center; }
body.mode-noir .visual-layout { width: 92%; height: 84%; display: flex; gap: 14px; }
body.mode-noir .grid-wall  { flex: 1; height: 100%; border-color: var(--border); }
body.mode-noir .meta-panel { width: 180px; height: 100%; }
body.mode-noir .player { height: 90px; position: relative; }
body.mode-noir .now-playing { position: absolute; left: 20px; }
body.mode-noir #albumCover { width: 40px; height: 40px; }
body.mode-noir .time-row { width: 320px; }
body.mode-noir .bar      { width: 320px; background: var(--border2); }

/* =========================================
   MODE: EDITORIAL
========================================= */

body.mode-editorial {
  --bg: #f2ead8; --bg2: #ede3cf; --bg3: #e8ddc8;
  --border: #d4c9b0; --border2: #c8bca0;
  --text: #1a1410; --text-dim: rgba(26,20,16,0.5); --text-dimmer: rgba(26,20,16,0.3);
  --accent: #1a1410; --accent-dim: rgba(26,20,16,0.06);
  --bar-fill: #1a1410; --vis-bar: #1a1410; --vis-bg: #f2ead8;
  --track-hover-bg: #e8ddc8;
  --font-ui: "Cormorant Garamond", serif;
  --font-display: "DM Serif Display", serif;
  --font-body: "Cormorant Garamond", serif;
  overflow: hidden;
}

body.mode-editorial .noise-overlay  { opacity: 0.02; mix-blend-mode: multiply; }
body.mode-editorial * { color: var(--text); }
body.mode-editorial .brand { font-family: "DM Serif Display", serif; font-size: 20px; letter-spacing: 0.5px; }
body.mode-editorial .header { border-bottom: 1px solid var(--border); background: var(--bg); }
body.mode-editorial .section-label { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 11px; letter-spacing: 2px; color: var(--text-dim); }
body.mode-editorial .modes-btn { border-color: var(--border); color: var(--text-dim); }
body.mode-editorial .modes-btn:hover { border-color: var(--text); color: var(--text); }
body.mode-editorial .create-btn { border-color: var(--border); color: var(--text-dim); }
body.mode-editorial .create-btn:hover,
body.mode-editorial .create-btn.active { border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,0.06); }
body.mode-editorial .header-link { color: var(--text-dim); }
body.mode-editorial .header-link:hover { color: var(--text); opacity: 1; }
body.mode-editorial .track { border-color: var(--border); color: var(--text-dim); font-family: "Cormorant Garamond", serif; font-size: 13px; letter-spacing: 0.3px; }
body.mode-editorial .track:hover  { border-color: var(--text); background: var(--track-hover-bg); color: var(--text); }
body.mode-editorial .track.active { border-color: var(--text); color: var(--text); }
body.mode-editorial .track-num    { font-size: 10px; color: var(--text-dimmer); font-style: italic; }
body.mode-editorial .meta-panel   { background: var(--bg2); border-color: var(--border); }
body.mode-editorial .controls button { border-color: var(--border); color: var(--text-dim); font-family: "Cormorant Garamond", serif; font-size: 11px; letter-spacing: 1.5px; }
body.mode-editorial .controls button:hover { border-color: var(--text); background: var(--accent-dim); color: var(--text); }
body.mode-editorial .bar { background: var(--border); }
body.mode-editorial .modes-panel { background: var(--bg2); border-color: var(--border); }
body.mode-editorial .mode-tile-name { color: var(--text); }
body.mode-editorial .mode-tile-desc { color: var(--text-dimmer); }
body.mode-editorial .modes-panel-label { color: var(--text-dim); }
body.mode-editorial .modes-panel-sub   { color: var(--text-dimmer); }
body.mode-editorial .mode-tile:hover  { border-color: var(--border2); background: var(--accent-dim); }
body.mode-editorial .mode-tile.active { border-color: var(--text); background: var(--accent-dim); }

body.mode-editorial .grid { display: flex; height: calc(100vh - 154px); }
body.mode-editorial .library { width: 28%; min-width: 260px; border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; flex-shrink: 0; background: var(--bg); }
body.mode-editorial .track-list { margin-top: 10px; }
body.mode-editorial .visual { flex: 1; display: flex; justify-content: center; align-items: center; background: var(--bg); }
body.mode-editorial .visual-layout { width: 92%; height: 84%; display: flex; gap: 14px; }
body.mode-editorial .grid-wall  { flex: 1; height: 100%; border-color: var(--border); }
body.mode-editorial .meta-panel { width: 180px; height: 100%; }
body.mode-editorial .player { height: 90px; border-top: 2px solid var(--text); background: var(--bg2); position: relative; }
body.mode-editorial .now-playing { position: absolute; left: 20px; }
body.mode-editorial #albumCover  { width: 40px; height: 40px; border-color: var(--border); }
body.mode-editorial .time-row { width: 320px; color: var(--text-dimmer); }
body.mode-editorial .bar      { width: 320px; }
body.mode-editorial #playerNowTitle { font-family: "DM Serif Display", serif; font-size: 14px; }

/* =========================================
   MODE: BRUTALIST
========================================= */

body.mode-brutalist {
  --bg: #f0f0f0; --bg2: #e0e0e0; --bg3: #d0d0d0;
  --border: #000; --border2: #000;
  --text: #000; --text-dim: rgba(0,0,0,0.55); --text-dimmer: rgba(0,0,0,0.3);
  --accent: #ff3300; --accent-dim: rgba(255,51,0,0.08);
  --bar-fill: #ff3300; --vis-bar: #ff3300; --vis-bg: #f0f0f0;
  --track-hover-bg: #000;
  --font-ui: "Archivo Black", sans-serif;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Archivo Black", sans-serif;
  --radius: 0px;
  overflow: hidden;
}

body.mode-brutalist * { color: var(--text); }
body.mode-brutalist .header { border-bottom: 3px solid #000; background: var(--bg); height: 64px; }
body.mode-brutalist .brand  { font-family: "Archivo Black", sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -1px; color: #000; }
body.mode-brutalist .meta, body.mode-brutalist .meta-label, body.mode-brutalist .section-label, body.mode-brutalist .np-label { color: rgba(0,0,0,0.5); font-size: 9px; letter-spacing: 1px; }
body.mode-brutalist .modes-btn { border: 2px solid #000; color: #000; font-weight: 900; font-size: 10px; }
body.mode-brutalist .modes-btn:hover { background: #000; color: #f0f0f0; border-color: #000; }
body.mode-brutalist .create-btn { border: 2px solid #000; color: #000; font-weight: 900; }
body.mode-brutalist .create-btn:hover,
body.mode-brutalist .create-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
body.mode-brutalist .header-link { color: rgba(0,0,0,0.5); }
body.mode-brutalist .header-link:hover { color: #000; }
body.mode-brutalist .track { border: 2px solid #000; color: rgba(0,0,0,0.6); font-weight: 900; margin-bottom: 4px; }
body.mode-brutalist .track:hover { background: #000; color: #f0f0f0; border-color: #000; }
body.mode-brutalist .track:hover .track-num { color: var(--accent); }
body.mode-brutalist .track.active { background: #000; color: #f0f0f0; border-color: var(--accent); }
body.mode-brutalist .track.active .track-num { color: var(--accent); }
body.mode-brutalist .meta-panel { border: 2px solid #000; background: var(--bg2); }
body.mode-brutalist .grid-wall  { border: 3px solid #000; }
body.mode-brutalist .controls button { border: 2px solid #000; font-weight: 900; font-size: 9px; color: #000; }
body.mode-brutalist .controls button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
body.mode-brutalist .bar { height: 6px; border-radius: 0; background: #d0d0d0; border: 2px solid #000; }
body.mode-brutalist .modes-panel { background: var(--bg); border: 3px solid #000; border-top: none; }
body.mode-brutalist .mode-tile-name { color: #000; font-weight: 900; }
body.mode-brutalist .mode-tile-desc { color: rgba(0,0,0,0.4); }
body.mode-brutalist .mode-tile:hover  { border: 2px solid #000; background: transparent; }
body.mode-brutalist .mode-tile.active { border: 2px solid var(--accent); background: rgba(255,51,0,0.05); }

body.mode-brutalist .grid { display: flex; height: calc(100vh - 154px); }
body.mode-brutalist .library { width: 28%; min-width: 260px; border-right: 3px solid #000; padding: 16px; overflow-y: auto; flex-shrink: 0; background: var(--bg); }
body.mode-brutalist .track-list { margin-top: 10px; }
body.mode-brutalist .visual { flex: 1; display: flex; justify-content: center; align-items: center; background: var(--bg); }
body.mode-brutalist .visual-layout { width: 92%; height: 84%; display: flex; gap: 14px; }
body.mode-brutalist .grid-wall  { flex: 1; height: 100%; }
body.mode-brutalist .meta-panel { width: 180px; height: 100%; }
body.mode-brutalist .player { height: 90px; border-top: 3px solid #000; background: var(--bg2); position: relative; }
body.mode-brutalist .now-playing { position: absolute; left: 20px; }
body.mode-brutalist #albumCover  { width: 40px; height: 40px; border: 2px solid #000; }
body.mode-brutalist .time-row { width: 320px; color: rgba(0,0,0,0.4); }
body.mode-brutalist .bar      { width: 320px; }
body.mode-brutalist #playerNowTitle { color: #000; font-weight: 900; }
body.mode-brutalist #albumCover { background: var(--bg2); }

/* =========================================
   MODE: GHOST
========================================= */

body.mode-ghost {
  --bg: #0a0a12; --bg2: rgba(255,255,255,0.04); --bg3: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.1); --border2: rgba(255,255,255,0.14);
  --text: #ffffff; --text-dim: rgba(255,255,255,0.5); --text-dimmer: rgba(255,255,255,0.25);
  --accent: #ffffff; --accent-dim: rgba(255,255,255,0.06);
  --bar-fill: #ffffff; --vis-bar: rgba(255,255,255,0.9); --vis-bg: transparent;
  --track-hover-bg: rgba(255,255,255,0.06);
  --font-ui: "Syne", sans-serif; --font-display: "Syne", sans-serif; --font-body: "Syne", sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
}

body.mode-ghost #app::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(120,80,255,0.12), transparent),
              radial-gradient(ellipse 50% 60% at 80% 60%, rgba(80,160,255,0.08), transparent),
              radial-gradient(ellipse 40% 40% at 50% 80%, rgba(255,80,160,0.06), transparent),
              #0a0a12;
  animation: ghostBg 12s ease-in-out infinite alternate;
}

@keyframes ghostBg { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

body.mode-ghost #app { position: relative; }
body.mode-ghost .header { background: rgba(10,10,18,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--border); position: relative; z-index: 50; }
body.mode-ghost .brand  { font-family: "Syne", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 3px; }
body.mode-ghost .modes-btn { border-color: var(--border); border-radius: 20px; }
body.mode-ghost .track { border-color: var(--border); background: rgba(255,255,255,0.03); border-radius: var(--radius); backdrop-filter: blur(8px); }
body.mode-ghost .track:hover  { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
body.mode-ghost .track.active { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
body.mode-ghost .meta-panel   { background: rgba(255,255,255,0.04); border-color: var(--border); backdrop-filter: blur(12px); }
body.mode-ghost .grid-wall    { border-color: var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.02); backdrop-filter: blur(4px); }
body.mode-ghost .controls button { border-color: var(--border); border-radius: 20px; backdrop-filter: blur(8px); }
body.mode-ghost .bar   { background: rgba(255,255,255,0.08); border-radius: 6px; height: 4px; }
body.mode-ghost .modes-panel { background: rgba(10,10,18,0.85); backdrop-filter: blur(20px); border-color: var(--border); border-radius: 0 0 16px 16px; }
body.mode-ghost .mode-tile { border-radius: 8px; }

body.mode-ghost .grid { display: flex; height: calc(100vh - 154px); position: relative; z-index: 1; }
body.mode-ghost .library { width: 28%; min-width: 260px; border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; flex-shrink: 0; background: rgba(255,255,255,0.02); backdrop-filter: blur(10px); }
body.mode-ghost .track-list { margin-top: 10px; }
body.mode-ghost .visual { flex: 1; display: flex; justify-content: center; align-items: center; }
body.mode-ghost .visual-layout { width: 92%; height: 84%; display: flex; gap: 14px; }
body.mode-ghost .grid-wall  { flex: 1; height: 100%; }
body.mode-ghost .meta-panel { width: 180px; height: 100%; }
body.mode-ghost .player { height: 90px; border-top: 1px solid var(--border); background: rgba(10,10,18,0.7); backdrop-filter: blur(20px); position: relative; z-index: 1; }
body.mode-ghost .now-playing { position: absolute; left: 20px; }
body.mode-ghost #albumCover  { width: 40px; height: 40px; border-radius: 8px; border-color: var(--border); }
body.mode-ghost .time-row { width: 320px; }
body.mode-ghost .bar      { width: 320px; }

/* =========================================
   MODE: TERMINAL
========================================= */

body.mode-terminal {
  --bg: #000d00; --bg2: #001200; --bg3: #001800;
  --border: rgba(0,255,0,0.15); --border2: rgba(0,255,0,0.25);
  --text: #00ff41; --text-dim: rgba(0,255,65,0.55); --text-dimmer: rgba(0,255,65,0.3);
  --accent: #00ff41; --accent-dim: rgba(0,255,65,0.07);
  --bar-fill: #00ff41; --vis-bar: #00ff41; --vis-bg: #000d00;
  --track-hover-bg: rgba(0,255,65,0.06);
  --font-ui: "Fragment Mono", monospace;
  --font-display: "Fragment Mono", monospace;
  --font-body: "Fragment Mono", monospace;
  overflow: hidden;
}

body.mode-terminal * { text-shadow: 0 0 8px rgba(0,255,65,0.4); }
body.mode-terminal .brand { font-size: 12px; letter-spacing: 3px; }
body.mode-terminal .header { border-bottom-color: var(--border); background: var(--bg); }
body.mode-terminal .header::after {
  content: '> SYSTEM READY_';
  font-family: "Fragment Mono", monospace;
  font-size: 9px; color: var(--text-dimmer);
  position: absolute; left: 50%; transform: translateX(-50%);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

body.mode-terminal .track { border-color: rgba(0,255,65,0.12); color: var(--text-dim); position: relative; }
body.mode-terminal .track::before { content: '> '; color: var(--text-dimmer); text-shadow: 0 0 8px rgba(0,255,65,0.4); }
body.mode-terminal .track:hover  { border-color: var(--accent); background: rgba(0,255,65,0.05); color: var(--accent); }
body.mode-terminal .track.active { border-color: var(--accent); color: var(--accent); }
body.mode-terminal .meta-panel { border-color: var(--border); }
body.mode-terminal .grid-wall  { border-color: var(--border); }
body.mode-terminal .scanlines  { opacity: 0.4; }
body.mode-terminal .controls button { border-color: rgba(0,255,65,0.2); color: var(--text-dim); }
body.mode-terminal .controls button:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,255,65,0.05); }
body.mode-terminal .bar { background: rgba(0,255,65,0.08); }
body.mode-terminal .modes-panel { background: var(--bg2); border-color: var(--border); }

body.mode-terminal .grid { display: flex; height: calc(100vh - 154px); }
body.mode-terminal .library { width: 28%; min-width: 260px; border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; flex-shrink: 0; }
body.mode-terminal .track-list { margin-top: 10px; }
body.mode-terminal .visual { flex: 1; display: flex; justify-content: center; align-items: center; }
body.mode-terminal .visual-layout { width: 92%; height: 84%; display: flex; gap: 14px; }
body.mode-terminal .grid-wall  { flex: 1; height: 100%; }
body.mode-terminal .meta-panel { width: 180px; height: 100%; }
body.mode-terminal .player { height: 90px; border-top: 1px solid var(--border); background: var(--bg); position: relative; }
body.mode-terminal .now-playing { position: absolute; left: 20px; }
body.mode-terminal #albumCover  { width: 40px; height: 40px; border-color: var(--border2); filter: sepia(1) hue-rotate(80deg) saturate(3); }
body.mode-terminal .time-row { width: 320px; }
body.mode-terminal .bar      { width: 320px; }

/* =========================================
   MODE: CREATE — Full overlay editor
========================================= */

body.mode-create {
  overflow: hidden;
}

.create-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #080810;
  flex-direction: row;
  animation: overlayIn 0.25s ease;
}

.create-overlay.open {
  display: flex;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Canvas area */
.create-canvas {
  flex: 1;
  position: relative;
  background:
    linear-gradient(rgba(120,100,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,100,255,0.04) 1px, transparent 1px),
    #070710;
  background-size: 40px 40px;
  overflow: hidden;
}

/* Snap grid overlay decoration */
.create-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(200,160,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,160,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Draggable panel cards */
.cp-panel {
  position: absolute;
  background: rgba(14,14,28,0.92);
  border: 1px solid rgba(200,160,255,0.2);
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  min-width: 200px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,160,255,0.05);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.cp-panel:hover {
  border-color: rgba(200,160,255,0.45);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 24px rgba(200,160,255,0.08);
}

.cp-panel.dragging {
  cursor: grabbing;
  border-color: rgba(200,160,255,0.8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(200,160,255,0.2);
  z-index: 100;
}

.cp-panel.selected {
  border-color: rgba(200,160,255,0.9);
  box-shadow: 0 0 0 2px rgba(200,160,255,0.3), 0 12px 48px rgba(0,0,0,0.6);
}

.cp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(200,160,255,0.1);
  background: rgba(200,160,255,0.04);
  border-radius: 6px 6px 0 0;
}

.cp-panel-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(200,160,255,0.7);
}

.cp-edit-btn {
  background: rgba(200,160,255,0.1);
  border: 1px solid rgba(200,160,255,0.25);
  padding: 3px 8px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  cursor: pointer;
  color: rgba(200,160,255,0.8);
  border-radius: 3px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.cp-edit-btn:hover {
  background: rgba(200,160,255,0.2);
  border-color: rgba(200,160,255,0.6);
  color: #c8a0ff;
}

.cp-panel-preview {
  padding: 12px;
  pointer-events: none;
}

/* Library preview */
.cp-track-row {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  letter-spacing: 0.5px;
}

/* Meta preview */
.cp-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Player preview */
.cp-player-thumb {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cp-player-bar {
  height: 3px;
  background: rgba(200,160,255,0.3);
  border-radius: 2px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.cp-player-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 35%;
  background: rgba(200,160,255,0.8);
  border-radius: 2px;
}

.cp-player-controls {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

/* Position tags on panels */
#cp-library { top: 60px; left: 40px; width: 220px; }
#cp-meta    { top: 60px; right: 280px; width: 200px; }
#cp-player  { bottom: 80px; left: 50%; transform: translateX(-50%); width: 380px; }

/* =========================================
   CREATE SIDEBAR
========================================= */

.create-sidebar {
  width: 280px;
  background: #0a0a1a;
  border-left: 1px solid rgba(200,160,255,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.cs-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(200,160,255,0.1);
  background: rgba(200,160,255,0.03);
}

.cs-title {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #c8a0ff;
  margin-bottom: 4px;
}

.cs-sub {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: rgba(200,160,255,0.4);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.cs-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cs-empty {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: rgba(200,160,255,0.3);
  text-align: center;
  margin-top: 40px;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/* Edit form groups */
.cs-group {
  margin-bottom: 20px;
}

.cs-group-label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(200,160,255,0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cs-field {
  margin-bottom: 10px;
}

.cs-field label {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
  letter-spacing: 0.8px;
}

.cs-field input[type="color"] {
  width: 100%;
  height: 30px;
  border: 1px solid rgba(200,160,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  padding: 2px;
}

.cs-field select,
.cs-field input[type="range"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,160,255,0.2);
  border-radius: 3px;
  padding: 5px 8px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  outline: none;
  cursor: pointer;
}

.cs-field select option {
  background: #0a0a1a;
  color: #fff;
}

.cs-field input[type="range"] {
  padding: 4px 0;
  accent-color: #c8a0ff;
}

.cs-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cs-field-row .cs-range-val {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: #c8a0ff;
  min-width: 28px;
  text-align: right;
}

.cs-divider {
  height: 1px;
  background: rgba(200,160,255,0.08);
  margin: 14px 0;
}

/* Footer */
.cs-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(200,160,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-btn {
  width: 100%;
  padding: 9px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cs-btn-save {
  background: rgba(200,160,255,0.15);
  border: 1px solid rgba(200,160,255,0.5);
  color: #c8a0ff;
}

.cs-btn-save:hover {
  background: rgba(200,160,255,0.25);
  border-color: #c8a0ff;
  color: #fff;
}

.cs-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
}

.cs-btn-cancel:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

/* =========================================
   CUSTOM LAYOUT — applied when user saves
========================================= */

body.mode-create-custom .grid {
  display: flex;
  height: calc(100vh - 154px);
}

body.mode-create-custom .library {
  min-width: 200px; max-width: 400px;
  border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto; flex-shrink: 0;
}

body.mode-create-custom .track-list { margin-top: 10px; }

body.mode-create-custom .visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
}

body.mode-create-custom .visual-layout {
  width: 94%; height: 86%; display: flex; gap: 14px;
}

body.mode-create-custom .grid-wall { flex: 1; height: 100%; }
body.mode-create-custom .meta-panel { height: 100%; }

body.mode-create-custom .player {
  height: 90px; position: relative;
}

body.mode-create-custom .now-playing { position: absolute; left: 20px; }
body.mode-create-custom #albumCover  { width: 40px; height: 40px; }
body.mode-create-custom .time-row    { width: 320px; }
body.mode-create-custom .bar         { width: 320px; }

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  body { overflow: auto !important; }

  body.mode-default .grid, body.mode-immersive .grid, body.mode-bento .grid,
  body.mode-noir .grid, body.mode-editorial .grid, body.mode-brutalist .grid,
  body.mode-ghost .grid, body.mode-terminal .grid, body.mode-create-custom .grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    position: static !important;
  }

  body.mode-default .library, body.mode-immersive .library, body.mode-bento .library,
  body.mode-noir .library, body.mode-editorial .library, body.mode-brutalist .library,
  body.mode-ghost .library, body.mode-terminal .library, body.mode-create-custom .library {
    width: 100% !important; min-width: 100% !important;
    position: static !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: none !important;
  }

  .grid-wall { height: 280px !important; }

  body.mode-default .visual, body.mode-immersive .visual, body.mode-bento .visual,
  body.mode-noir .visual, body.mode-editorial .visual, body.mode-brutalist .visual,
  body.mode-ghost .visual, body.mode-terminal .visual, body.mode-create-custom .visual {
    position: static !important; padding: 20px !important; display: flex !important;
  }

  body.mode-default .visual-layout, body.mode-immersive .visual-layout, body.mode-bento .visual-layout,
  body.mode-noir .visual-layout, body.mode-editorial .visual-layout, body.mode-brutalist .visual-layout,
  body.mode-ghost .visual-layout, body.mode-terminal .visual-layout, body.mode-create-custom .visual-layout {
    flex-direction: column !important; height: auto !important;
    width: 100% !important; display: flex !important;
  }

  body.mode-immersive .meta-panel, body.mode-bento .meta-panel { display: block !important; width: 100% !important; }

  body.mode-default .player, body.mode-immersive .player, body.mode-bento .player,
  body.mode-noir .player, body.mode-editorial .player, body.mode-brutalist .player,
  body.mode-ghost .player, body.mode-terminal .player, body.mode-create-custom .player {
    position: static !important;
    height: auto !important; min-height: 100px !important;
    flex-direction: column !important; gap: 12px !important;
    padding: 16px !important; width: 100% !important;
    border-top: 1px solid var(--border) !important;
    display: flex !important; align-items: center !important;
    backdrop-filter: none !important;
    grid-column: unset !important; grid-row: unset !important;
  }

  body.mode-default .now-playing, body.mode-immersive .now-playing, body.mode-bento .now-playing,
  body.mode-noir .now-playing, body.mode-editorial .now-playing, body.mode-brutalist .now-playing,
  body.mode-ghost .now-playing, body.mode-terminal .now-playing, body.mode-create-custom .now-playing {
    position: static !important; flex-direction: row !important;
    align-items: center !important;
    width: auto !important; border-right: none !important;
    padding: 0 !important; height: auto !important;
  }

  body.mode-bento .now-text { display: flex !important; }
  #albumCover { width: 40px !important; height: 40px !important; }

  body.mode-default .player-center, body.mode-immersive .player-center, body.mode-bento .player-center,
  body.mode-noir .player-center, body.mode-editorial .player-center, body.mode-brutalist .player-center,
  body.mode-ghost .player-center, body.mode-terminal .player-center, body.mode-create-custom .player-center {
    flex-direction: column !important; width: 100% !important;
    max-width: 100% !important; padding: 0 !important; align-items: center !important;
  }

  .time-row { width: 280px !important; flex-direction: row !important; }
  .bar       { width: 280px !important; }

  body.mode-immersive .header { position: static !important; border-bottom: 1px solid var(--border) !important; }

  .create-overlay { flex-direction: column !important; overflow-y: auto !important; }
  .create-sidebar { width: 100% !important; border-left: none !important; border-top: 1px solid rgba(200,160,255,0.15) !important; }
}
