/* ===========================================================
   CRT.CSS — Retro 80's monitor effects + base layout
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Major+Mono+Display&family=Share+Tech+Mono&display=swap');

:root {
  /* Phosphor palette — METAL default (blood red / bone / chrome) */
  --bg-deep: #08070a;
  --bg-grid: #1a0808;
  --fg-primary: #d61f1f;     /* blood red */
  --fg-secondary: #b8b6ad;   /* bone / chrome */
  --fg-accent: #ff3b3b;      /* hot crimson */
  --fg-success: #c4ff00;     /* toxic green */
  --fg-dim: #5a3a3a;
  --fg-text: #e8e2d4;

  /* Effect intensities (driven by Tweaks) */
  --scanline-opacity: 0.35;
  --vignette: 0.65;
  --chroma-x: 1.4px;
  --curve-radius: 32px;
  --bloom: 8px;
  --flicker-strength: 1;

  /* Font scale */
  --mono: 'VT323', 'Share Tech Mono', monospace;
  --pixel: 'Press Start 2P', 'VT323', monospace;
  --display: 'Major Mono Display', 'VT323', monospace;
}

/* Phosphor presets */
.phosphor-synthwave {
  --bg-deep: #0a0420;
  --bg-grid: #1a0a3a;
  --fg-primary: #ff2bd6;
  --fg-secondary: #00f0ff;
  --fg-accent: #ffb347;
  --fg-success: #39ff14;
  --fg-dim: #6c5b9c;
  --fg-text: #e8d8ff;
}
.phosphor-green {
  --bg-deep: #021008;
  --bg-grid: #053b1c;
  --fg-primary: #39ff14;
  --fg-secondary: #80ff80;
  --fg-accent: #b9ffb9;
  --fg-success: #39ff14;
  --fg-dim: #1a6b2a;
  --fg-text: #b9ffb9;
}
.phosphor-amber {
  --bg-deep: #100802;
  --bg-grid: #2a1804;
  --fg-primary: #ffb347;
  --fg-secondary: #ffd27a;
  --fg-accent: #ff8800;
  --fg-success: #ffb347;
  --fg-dim: #7a4a14;
  --fg-text: #ffd27a;
}
.phosphor-mono {
  --bg-deep: #050507;
  --bg-grid: #1a1a22;
  --fg-primary: #d8e0ff;
  --fg-secondary: #a0a8d0;
  --fg-accent: #ffffff;
  --fg-success: #d8e0ff;
  --fg-dim: #4a4d66;
  --fg-text: #d8e0ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--fg-primary); color: #000; }
::-moz-selection { background: var(--fg-primary); color: #000; }
html, body { height: 100%; overflow: hidden; background: #000; }
body {
  font-family: var(--mono);
  color: var(--fg-text);
  font-size: 20px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;

  /* Retro pixel cursor — chunky red arrow with black outline */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'><path d='M2 2h2v2h-2zM4 4h2v2h-2zM2 4h2v2h-2zM6 6h2v2h-2zM4 6h2v2h-2zM2 6h2v2h-2zM8 8h2v2h-2zM6 8h2v2h-2zM4 8h2v2h-2zM2 8h2v2h-2zM10 10h2v2h-2zM8 10h2v2h-2zM6 10h2v2h-2zM4 10h2v2h-2zM2 10h2v2h-2zM12 12h2v2h-2zM10 12h2v2h-2zM8 12h2v2h-2zM6 12h2v2h-2zM4 12h2v2h-2zM2 12h2v2h-2zM8 14h2v2h-2zM6 14h2v2h-2zM4 14h2v2h-2zM2 14h2v2h-2zM10 16h2v2h-2zM8 16h2v2h-2zM2 16h2v2h-2zM12 18h2v2h-2zM10 18h2v2h-2zM12 20h2v2h-2z' fill='black'/><path d='M4 4h2v2h-2zM4 6h2v2h-2zM6 6h2v2h-2zM4 8h2v2h-2zM6 8h2v2h-2zM8 8h2v2h-2zM4 10h2v2h-2zM6 10h2v2h-2zM8 10h2v2h-2zM10 10h2v2h-2zM4 12h2v2h-2zM6 12h2v2h-2zM8 12h2v2h-2zM10 12h2v2h-2zM4 14h2v2h-2zM6 14h2v2h-2zM8 14h2v2h-2zM4 16h2v2h-2zM10 18h2v2h-2z' fill='%23d61f1f'/></svg>") 2 2, crosshair;
}

/* Clickable elements: METAL HORNS hand \m/ — silhouette outline, index + pinky raised */
button, a, .nav button, .cassette .controls button, .guestbook button,
.cat-card, .file-card, .cat-pill, .dropzone, .thumb-zone,
.mini-btn, .big-btn, .banner,
[style*="cursor: pointer"], [style*="cursor:pointer"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 24 28' shape-rendering='crispEdges'><g fill='black'><rect x='4' y='0' width='1' height='1'/><rect x='8' y='0' width='1' height='1'/><rect x='14' y='0' width='1' height='1'/><rect x='18' y='0' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='6' y='1' width='1' height='1'/><rect x='8' y='1' width='1' height='1'/><rect x='14' y='1' width='1' height='1'/><rect x='16' y='1' width='1' height='1'/><rect x='18' y='1' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='6' y='2' width='1' height='1'/><rect x='8' y='2' width='1' height='1'/><rect x='14' y='2' width='1' height='1'/><rect x='16' y='2' width='1' height='1'/><rect x='18' y='2' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='6' y='3' width='1' height='1'/><rect x='8' y='3' width='1' height='1'/><rect x='14' y='3' width='1' height='1'/><rect x='16' y='3' width='1' height='1'/><rect x='18' y='3' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='6' y='4' width='1' height='1'/><rect x='8' y='4' width='1' height='1'/><rect x='14' y='4' width='1' height='1'/><rect x='16' y='4' width='1' height='1'/><rect x='18' y='4' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='8' y='5' width='1' height='1'/><rect x='14' y='5' width='1' height='1'/><rect x='16' y='5' width='1' height='1'/><rect x='18' y='5' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='8' y='6' width='1' height='1'/><rect x='14' y='6' width='1' height='1'/><rect x='16' y='6' width='1' height='1'/><rect x='18' y='6' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='8' y='7' width='7' height='1'/><rect x='16' y='7' width='1' height='1'/><rect x='18' y='7' width='1' height='1'/><rect x='4' y='8' width='1' height='1'/><rect x='6' y='8' width='1' height='1'/><rect x='8' y='8' width='1' height='1'/><rect x='11' y='8' width='1' height='1'/><rect x='14' y='8' width='1' height='1'/><rect x='16' y='8' width='1' height='1'/><rect x='18' y='8' width='1' height='1'/><rect x='4' y='9' width='1' height='1'/><rect x='6' y='9' width='2' height='1'/><rect x='9' y='9' width='2' height='1'/><rect x='12' y='9' width='2' height='1'/><rect x='15' y='9' width='2' height='1'/><rect x='18' y='9' width='1' height='1'/><rect x='3' y='10' width='2' height='1'/><rect x='6' y='10' width='11' height='1'/><rect x='18' y='10' width='2' height='1'/><rect x='3' y='11' width='1' height='1'/><rect x='5' y='11' width='2' height='1'/><rect x='16' y='11' width='2' height='1'/><rect x='19' y='11' width='1' height='1'/><rect x='3' y='12' width='1' height='1'/><rect x='5' y='12' width='1' height='1'/><rect x='17' y='12' width='1' height='1'/><rect x='19' y='12' width='1' height='1'/><rect x='3' y='13' width='1' height='1'/><rect x='5' y='13' width='1' height='1'/><rect x='17' y='13' width='1' height='1'/><rect x='19' y='13' width='1' height='1'/><rect x='3' y='14' width='1' height='1'/><rect x='5' y='14' width='1' height='1'/><rect x='17' y='14' width='1' height='1'/><rect x='19' y='14' width='1' height='1'/><rect x='3' y='15' width='1' height='1'/><rect x='5' y='15' width='2' height='1'/><rect x='16' y='15' width='2' height='1'/><rect x='19' y='15' width='1' height='1'/><rect x='3' y='16' width='2' height='1'/><rect x='6' y='16' width='1' height='1'/><rect x='16' y='16' width='1' height='1'/><rect x='18' y='16' width='2' height='1'/><rect x='4' y='17' width='1' height='1'/><rect x='6' y='17' width='1' height='1'/><rect x='16' y='17' width='1' height='1'/><rect x='18' y='17' width='1' height='1'/><rect x='4' y='18' width='1' height='1'/><rect x='6' y='18' width='2' height='1'/><rect x='15' y='18' width='2' height='1'/><rect x='18' y='18' width='1' height='1'/><rect x='4' y='19' width='2' height='1'/><rect x='7' y='19' width='1' height='1'/><rect x='15' y='19' width='1' height='1'/><rect x='17' y='19' width='2' height='1'/><rect x='5' y='20' width='1' height='1'/><rect x='7' y='20' width='2' height='1'/><rect x='14' y='20' width='2' height='1'/><rect x='17' y='20' width='1' height='1'/><rect x='5' y='21' width='2' height='1'/><rect x='8' y='21' width='7' height='1'/><rect x='16' y='21' width='2' height='1'/><rect x='6' y='22' width='1' height='1'/><rect x='16' y='22' width='1' height='1'/><rect x='6' y='23' width='11' height='1'/></g><g fill='%23d61f1f'><rect x='5' y='0' width='3' height='1'/><rect x='15' y='0' width='3' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='15' y='1' width='1' height='1'/><rect x='17' y='1' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='7' y='2' width='1' height='1'/><rect x='15' y='2' width='1' height='1'/><rect x='17' y='2' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='7' y='3' width='1' height='1'/><rect x='15' y='3' width='1' height='1'/><rect x='17' y='3' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='15' y='4' width='1' height='1'/><rect x='17' y='4' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='7' y='5' width='1' height='1'/><rect x='15' y='5' width='1' height='1'/><rect x='17' y='5' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/><rect x='15' y='6' width='1' height='1'/><rect x='17' y='6' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/><rect x='15' y='7' width='1' height='1'/><rect x='17' y='7' width='1' height='1'/><rect x='5' y='8' width='1' height='1'/><rect x='7' y='8' width='1' height='1'/><rect x='9' y='8' width='2' height='1'/><rect x='12' y='8' width='2' height='1'/><rect x='15' y='8' width='1' height='1'/><rect x='17' y='8' width='1' height='1'/><rect x='5' y='9' width='1' height='1'/><rect x='8' y='9' width='1' height='1'/><rect x='11' y='9' width='1' height='1'/><rect x='14' y='9' width='1' height='1'/><rect x='17' y='9' width='1' height='1'/><rect x='5' y='10' width='1' height='1'/><rect x='17' y='10' width='1' height='1'/><rect x='4' y='11' width='1' height='1'/><rect x='18' y='11' width='1' height='1'/><rect x='4' y='12' width='1' height='1'/><rect x='18' y='12' width='1' height='1'/><rect x='4' y='13' width='1' height='1'/><rect x='18' y='13' width='1' height='1'/><rect x='4' y='14' width='1' height='1'/><rect x='18' y='14' width='1' height='1'/><rect x='4' y='15' width='1' height='1'/><rect x='18' y='15' width='1' height='1'/><rect x='5' y='16' width='1' height='1'/><rect x='17' y='16' width='1' height='1'/><rect x='5' y='17' width='1' height='1'/><rect x='17' y='17' width='1' height='1'/><rect x='5' y='18' width='1' height='1'/><rect x='17' y='18' width='1' height='1'/><rect x='6' y='19' width='1' height='1'/><rect x='16' y='19' width='1' height='1'/><rect x='6' y='20' width='1' height='1'/><rect x='16' y='20' width='1' height='1'/><rect x='7' y='21' width='1' height='1'/><rect x='15' y='21' width='1' height='1'/><rect x='7' y='22' width='9' height='1'/></g></svg>") 6 0, pointer !important;
}

/* Inputs keep the text I-beam — restore it after the !important above */
input:not([type=range]), textarea {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='26' viewBox='0 0 14 26' shape-rendering='crispEdges'><path d='M1 0h2v2h-2zM3 0h2v2h-2zM5 0h2v2h-2zM7 0h2v2h-2zM9 0h2v2h-2zM3 2h2v2h-2zM7 2h2v2h-2zM5 4h2v2h-2zM5 6h2v2h-2zM5 8h2v2h-2zM5 10h2v2h-2zM5 12h2v2h-2zM5 14h2v2h-2zM5 16h2v2h-2zM5 18h2v2h-2zM5 20h2v2h-2zM3 22h2v2h-2zM7 22h2v2h-2zM1 24h2v2h-2zM3 24h2v2h-2zM5 24h2v2h-2zM7 24h2v2h-2zM9 24h2v2h-2z' fill='black'/><path d='M3 0h2v2h-2zM7 0h2v2h-2zM5 2h2v2h-2zM5 4h2v2h-2zM5 6h2v2h-2zM5 8h2v2h-2zM5 10h2v2h-2zM5 12h2v2h-2zM5 14h2v2h-2zM5 16h2v2h-2zM5 18h2v2h-2zM5 20h2v2h-2zM5 22h2v2h-2zM3 24h2v2h-2zM7 24h2v2h-2z' fill='%23d61f1f'/></svg>") 7 13, text !important;
}

/* ===========================================================
   CRT STAGE — outer monitor housing
   =========================================================== */
.crt-stage {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #1a0a26 0%, #000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  perspective: 1400px;
}

/* The actual glass surface */
.crt-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  border-radius: var(--curve-radius);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255, 43, 214, 0.25),
    inset 0 0 120px rgba(0, 0, 0, 0.85),
    inset 0 0 30px rgba(255, 43, 214, 0.08);
  isolation: isolate;
  animation: crt-flicker calc(7s / var(--flicker-strength)) infinite;
}

/* Pre-warm boot moment */
@keyframes crt-flicker {
  0%, 100% { filter: brightness(1) contrast(1); }
  2%   { filter: brightness(1.15) contrast(1.05); }
  3%   { filter: brightness(0.92) contrast(0.98); }
  45%  { filter: brightness(1.02) contrast(1.01); }
  46%  { filter: brightness(0.96) contrast(1); }
  70%  { filter: brightness(1.04) contrast(1); }
}

/* Subtle horizontal jitter on the inner content */
.crt-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-primary) transparent;
  animation: crt-jitter 9s infinite steps(1);
  background:
    /* Phosphor grid floor effect */
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255,43,214,0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,240,255,0.06), transparent 70%),
    var(--bg-deep);
}
.crt-content::-webkit-scrollbar { width: 10px; }
.crt-content::-webkit-scrollbar-track { background: transparent; }
.crt-content::-webkit-scrollbar-thumb { background: var(--fg-primary); border-radius: 0; }

@keyframes crt-jitter {
  0%, 97%, 100% { transform: translateX(0); }
  97.5% { transform: translateX(-1px); }
  98%   { transform: translateX(2px); }
  98.5% { transform: translateX(-1px); }
}

/* ===========================================================
   SCANLINES — fine horizontal lines like an interlaced CRT
   =========================================================== */
.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, var(--scanline-opacity)) 0px,
      rgba(0, 0, 0, var(--scanline-opacity)) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
}

/* Slowly rolling scanline — the "hum bar" */
.crt-rollbar {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 101;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.045) 50%,
    transparent 100%
  );
  animation: crt-roll 8s linear infinite;
}
@keyframes crt-roll {
  0%   { transform: translateY(-120px); }
  100% { transform: translateY(100vh); }
}

/* ===========================================================
   VIGNETTE + GLASS — corner darkening, screen curvature illusion
   =========================================================== */
.crt-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 102;
  background:
    radial-gradient(
      ellipse at center,
      transparent 50%,
      rgba(0, 0, 0, calc(var(--vignette) * 0.5)) 80%,
      rgba(0, 0, 0, var(--vignette)) 100%
    );
}

/* Glass highlight — top-left sheen + inner frame over scrollbar */
.crt-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 103;
  border-radius: var(--curve-radius);
  background:
    radial-gradient(
      ellipse 60% 50% at 30% 10%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%
    );
  box-shadow: none;
}

/* ===========================================================
   CHROMATIC ABERRATION — RGB fringe via duplicated text shadow
   Applied as a class to any text we want to "bleed"
   =========================================================== */
.chroma {
  text-shadow:
    calc(var(--chroma-x) * -1) 0 rgba(255, 0, 200, 0.55),
    var(--chroma-x) 0 rgba(0, 220, 255, 0.55),
    0 0 var(--bloom) currentColor;
}

.glow {
  text-shadow:
    0 0 calc(var(--bloom) * 0.5) currentColor,
    0 0 var(--bloom) currentColor,
    0 0 calc(var(--bloom) * 1.5) currentColor;
}

/* ===========================================================
   LAYOUT
   =========================================================== */
.page {
  position: relative;
  z-index: 1;
}

/* Status bar */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--fg-primary);
  padding: 6px 14px 6px;
  font-size: 18px;
  color: var(--fg-secondary);
  letter-spacing: 0.05em;
}
.statusbar .left, .statusbar .right { display: flex; gap: 18px; align-items: center; }
.statusbar .blob {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--fg-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--fg-success);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* Banner */
.banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0 18px;
  padding: 18px 24px;
  border: 2px solid var(--fg-primary);
  background:
    linear-gradient(180deg, rgba(255,43,214,0.08), rgba(0,240,255,0.04));
  position: relative;
}

.ascii-logo {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  white-space: pre;
  color: var(--fg-primary);
  letter-spacing: 0;
}
.banner-title {
  font-family: var(--pixel);
  font-size: 30px;
  color: var(--fg-accent);
  line-height: 1.3;
}
.banner-sub {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg-secondary);
  margin-top: 8px;
}

/* Nav */
.nav {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 22px;
}
.nav-system {
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}
.nav-left {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}
.nav-more {
  flex-shrink: 0;
  position: relative;
}
.nav-more-btn {
  font-family: var(--mono);
  font-size: 22px;
  background: transparent;
  color: var(--fg-accent);
  border: 1px solid var(--fg-dim);
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.08s;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-more-btn:hover,
.nav-more-btn.active {
  background: var(--fg-primary);
  color: var(--bg-deep);
  border-color: var(--fg-primary);
  box-shadow: 0 0 12px var(--fg-primary);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-deep);
  border: 1px solid var(--fg-primary);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  box-shadow: 0 0 24px rgba(214,31,31,0.35);
}
.nav-dropdown button {
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.nav button {
  font-family: var(--mono);
  font-size: 22px;
  background: transparent;
  color: var(--fg-text);
  border: 1px solid var(--fg-dim);
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.08s;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav button:hover {
  background: var(--fg-primary);
  color: var(--bg-deep);
  border-color: var(--fg-primary);
  box-shadow: 0 0 12px var(--fg-primary);
}
.nav button.active {
  background: var(--fg-primary);
  color: var(--bg-deep);
  border-color: var(--fg-primary);
}
.nav .prompt {
  color: var(--fg-success);
  align-self: center;
  margin-right: 8px;
}

/* Marquee */
.marquee {
  border: 1px dashed var(--fg-secondary);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  margin-bottom: 22px;
  color: var(--fg-accent);
  font-size: 22px;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── 3-column layout: sidebar | content | sidebar ─────────── */
.page {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  align-items: start;
  padding: 0;
}

.col-left {
  padding: 16px 14px 32px 16px;
  min-width: 0;
}

.col-main {
  min-width: 0;
  padding: 0 20px 64px;
}

.col-right {
  padding: 16px 16px 32px 14px;
  min-width: 0;
}

@media (max-width: 1500px) {
  .page { grid-template-columns: 250px 1fr 330px; }
}
@media (max-width: 1200px) {
  .page { grid-template-columns: 1fr 280px; }
  .col-left { display: none; }
}
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .col-right { display: none; }
}
/* Móvil: contenido central ocupa todo, sin sidebars */
@media (max-width: 600px) {
  .page { grid-template-columns: 1fr; padding: 0; }
  .col-left, .col-right { display: none; }
  .col-main { padding: 0 8px 80px; }
  .music-player { padding: 6px 8px; gap: 6px; }
  .mp-volume { display: none; }
  .mp-info { min-width: 0; }
  .statusbar { font-size: 11px; padding: 3px 8px; }
  .nav { gap: 4px; padding: 4px 8px; }
  .nav button { font-size: 9px; padding: 4px 6px; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}

/* Legacy */
.grid { display: block; }
.right-sidebar-col { display: none; }
.span-all { display: contents; }

.panel {
  border: 1px solid var(--fg-dim);
  background: rgba(0,0,0,0.25);
  position: relative;
}
.panel-hd {
  background: var(--fg-primary);
  color: var(--bg-deep);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-hd .dots { letter-spacing: 2px; }
.panel-body { padding: 14px 16px; }

.cat-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.22);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.12s, box-shadow 0.12s;
}
.cat-upload-btn:hover {
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

/* Hero / welcome */
.hero h2 {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--fg-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero p {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--fg-text);
}
.hero .cursor {
  display: inline-block;
  background: var(--fg-success);
  width: 12px;
  height: 22px;
  vertical-align: text-top;
  animation: blink 1s steps(1) infinite;
}

/* Sidebar widgets */
.widget {
  margin-bottom: 18px;
}

.cassette {
  background: linear-gradient(180deg, #1a0830, #0a0420);
  border: 1px solid var(--fg-secondary);
  padding: 14px;
  position: relative;
}
.cassette .label {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  text-align: center;
  border-bottom: 1px dashed var(--fg-dim);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.cassette .reels {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px 0;
}
.reel {
  width: 56px; height: 56px;
  border: 2px solid var(--fg-secondary);
  border-radius: 50%;
  position: relative;
  animation: spin 3s linear infinite;
  background: radial-gradient(circle, var(--bg-deep) 30%, transparent 31%);
}
.reel::before, .reel::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--fg-dim);
  border-radius: 50%;
}
.reel::after {
  inset: 22px;
  border: 1px dashed var(--fg-primary);
}
.cassette.paused .reel { animation-play-state: paused; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.cassette .track {
  font-size: 20px;
  color: var(--fg-text);
  text-align: center;
}
.cassette .track strong {
  color: var(--fg-primary);
  font-weight: normal;
  display: block;
}
.cassette .controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.cassette .controls button {
  font-family: var(--mono);
  font-size: 18px;
  background: transparent;
  border: 1px solid var(--fg-secondary);
  color: var(--fg-secondary);
  width: 36px; height: 28px;
  cursor: pointer;
  padding: 0;
}
.cassette .controls button:hover { background: var(--fg-secondary); color: var(--bg-deep); }

/* Visitor counter */
.counter {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: #000;
  border: 1px inset #444;
}
.counter .digit {
  font-family: var(--pixel);
  font-size: 22px;
  width: 26px;
  text-align: center;
  background: #1a0a06;
  color: var(--fg-accent);
  padding: 6px 0;
  border: 1px solid var(--fg-dim);
  text-shadow: 0 0 6px var(--fg-accent);
}

/* Pixel gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.tile {
  aspect-ratio: 1;
  border: 1px solid var(--fg-dim);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,43,214,0.12) 0 4px,
      transparent 4px 12px
    ),
    var(--bg-grid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-secondary);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px;
  position: relative;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--fg-dim);
}

/* Band wall — 6-col logo grid */
.bandwall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 700px) { .bandwall { grid-template-columns: repeat(2, 1fr); } }
.bandtile {
  aspect-ratio: 1;
  border: 2px solid var(--fg-primary);
  background: #08070a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  position: relative;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--fg-secondary);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--bg-deep), inset 0 0 0 3px var(--fg-primary);
}
.bandtile svg { width: 38px; height: 38px; color: var(--fg-accent); }
.bandtile span { color: var(--fg-text); font-size: 10px; line-height: 1.3; }

/* Festival listing */
.festival {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--fg-dim);
}
.festival:last-child { border-bottom: none; }
.festival .date {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  letter-spacing: 0.1em;
  min-width: 80px;
}
.festival .name {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg-text);
}
.festival .name b {
  display: block;
  color: var(--fg-primary);
  font-weight: normal;
}
.festival .price {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--fg-success);
  border: 1px solid var(--fg-success);
  padding: 3px 6px;
  letter-spacing: 0.1em;
}

/* Interview */
.interview .qa { margin-bottom: 14px; font-size: 20px; }
.interview .q { color: var(--fg-accent); font-weight: normal; }
.interview .q::before { content: 'Q: '; color: var(--fg-primary); }
.interview .a { color: var(--fg-text); margin-top: 4px; }
.interview .a::before { content: 'A: '; color: var(--fg-secondary); }
.interview .pull {
  border-left: 4px solid var(--fg-primary);
  padding: 8px 14px;
  margin: 14px 0;
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-accent);
  background: rgba(214,31,31,0.06);
}

/* Album reviews */
.review {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--fg-dim);
}
.review:last-child { border-bottom: none; }
.review .cover {
  width: 64px; height: 64px;
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.3) 0 3px, transparent 3px 6px),
    linear-gradient(135deg, #2a0808, #0a0306);
  border: 1px solid var(--fg-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pixel); font-size: 8px; color: var(--fg-secondary);
  text-align: center; padding: 4px;
}
.review .info { font-size: 20px; }
.review .info b { color: var(--fg-primary); font-weight: normal; display: block; }
.review .info span { color: var(--fg-dim); font-size: 17px; }
.review .score {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--fg-accent);
  letter-spacing: 0.1em;
}

/* Tour diary */
.diary .stamp {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.diary p { font-size: 20px; margin-bottom: 10px; }
.diary .sig {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--fg-primary);
  letter-spacing: 0.15em;
  text-align: right;
  margin-top: 8px;
}

/* Poll */
.poll .bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 19px;
}
.poll .meter {
  position: relative;
  height: 14px;
  border: 1px solid var(--fg-dim);
  background: rgba(0,0,0,0.3);
  margin-top: 4px;
  grid-column: 1 / -1;
}
.poll .meter .fill {
  height: 100%;
  background: var(--fg-primary);
  box-shadow: 0 0 8px var(--fg-primary);
}
.poll .pct { color: var(--fg-accent); font-family: var(--pixel); font-size: 12px; }
.poll button {
  font-family: var(--pixel); font-size: 11px;
  background: var(--fg-primary); color: #fff;
  border: none; padding: 8px 14px; margin-top: 10px;
  cursor: pointer; letter-spacing: 0.1em;
}

/* Shows */
.show {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--fg-dim);
  font-size: 19px;
}
.show:last-child { border-bottom: none; }
.show .day {
  border: 1px solid var(--fg-primary);
  padding: 4px 0;
  text-align: center;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-primary);
  line-height: 1.3;
}
.show .day b { display: block; color: var(--fg-accent); font-size: 16px; }
.show .venue { color: var(--fg-text); }
.show .venue span { color: var(--fg-dim); display: block; font-size: 16px; }
.show .status {
  font-family: var(--pixel); font-size: 10px;
  padding: 3px 6px; border: 1px solid var(--fg-secondary); color: var(--fg-secondary);
}
.show .status.sold { color: var(--fg-primary); border-color: var(--fg-primary); }

/* Drop zone */
.dropzone {
  border: 2px dashed var(--fg-primary);
  border-radius: 3px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.06) 0 8px, transparent 8px 16px),
    rgba(0,0,0,0.25);
  color: var(--fg-text);
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.dropzone:hover { background: rgba(214,31,31,0.1); }
.dropzone.drag {
  border-color: var(--fg-success);
  background: rgba(196,255,0,0.08);
  color: var(--fg-success);
}
.dropzone.busy { border-color: var(--fg-accent); animation: dz-pulse 1.2s infinite; }
@keyframes dz-pulse {
  0%, 100% { background: rgba(255,59,59,0.08); }
  50%      { background: rgba(255,59,59,0.2); }
}
.dropzone .dz-glyph {
  color: var(--fg-primary);
  margin-bottom: 8px;
}
.dropzone.drag .dz-glyph { color: var(--fg-success); }
.dz-title {
  font-family: var(--pixel);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--fg-accent);
  margin-bottom: 6px;
}
.dz-sub {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.dz-err {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  font-size: 18px;
  background: rgba(214,31,31,0.08);
}

/* Mini buttons (DL / DEL) */
.mini-btn {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px solid var(--fg-success);
  color: var(--fg-success);
  padding: 4px 7px;
  cursor: pointer;
  text-transform: uppercase;
}
.mini-btn:hover { background: var(--fg-success); color: #000; }
.mini-btn.alt { border-color: var(--fg-primary); color: var(--fg-primary); }
.mini-btn.alt:hover { background: var(--fg-primary); color: #fff; }

/* Two-col layout helper for new sections */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ─── Big action buttons ─────────────────────────────────── */
.big-btn {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.12em;
  background: var(--fg-primary);
  color: #fff;
  border: 2px solid var(--fg-primary);
  padding: 14px 22px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(214,31,31,0.5), inset 0 0 8px rgba(255,255,255,0.1);
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
  transition: transform 0.08s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.big-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(214,31,31,0.4), 0 0 20px rgba(214,31,31,0.7); }
.big-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.big-btn.ghost {
  background: transparent;
  color: var(--fg-secondary);
  border-color: var(--fg-secondary);
  box-shadow: 0 0 10px rgba(184,182,173,0.3);
  text-shadow: none;
}
.big-btn.ghost:hover { color: var(--fg-text); border-color: var(--fg-text); box-shadow: 0 0 14px rgba(232,226,212,0.4); }

/* ─── Nav glyphs ─────────────────────────────────────────── */
.nav button {
  display: inline-flex;
  align-items: center;
}
.nav button svg { opacity: 0.85; }

/* ─── Category cards (home page) ─────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.cat-card {
  border: 2px solid var(--fg-primary);
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  transition: transform 0.12s, box-shadow 0.15s;
  color: var(--fg-text);
  overflow: hidden;
  padding: 0;
  text-align: left;
}
.cat-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(214,31,31,0.4), 0 0 16px rgba(214,31,31,0.55);
}
.cat-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(214,31,31,0.14) 0%, #08070a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--fg-primary);
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.cat-card-no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-primary);
  opacity: 0.7;
}
.cat-card-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid var(--fg-primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}
.cat-card:hover .cat-card-play {
  opacity: 1;
}
.cat-card-play:hover {
  background: var(--fg-primary);
  border-color: var(--fg-accent);
  box-shadow: 0 0 14px rgba(214,31,31,0.8);
}
.cat-card-info {
  padding: 10px 12px 12px;
  background: rgba(0,0,0,0.55);
}
.cat-card .cat-name {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-text);
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card .cat-count {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
  margin-top: 3px;
}

/* ─── Album sub-navigation ───────────────────────────────── */
.album-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}
.album-pill {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-secondary);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.1s;
  text-transform: uppercase;
}
.album-pill:hover { border-color: var(--fg-secondary); color: var(--fg-text); }
.album-pill.on {
  background: var(--fg-primary);
  color: #fff;
  border-color: var(--fg-primary);
  box-shadow: 0 0 10px rgba(214,31,31,0.5);
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid var(--fg-primary);
  background: rgba(0,0,0,0.35);
  color: var(--fg-text);
  cursor: pointer;
  overflow: visible;
  transition: transform 0.42s cubic-bezier(0.23,1,0.32,1), box-shadow 0.42s;
  text-align: left;
  will-change: transform;
  transform-origin: center bottom;
  z-index: 1;
}
.album-card:hover {
  z-index: 10;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 18px 50px rgba(214,31,31,0.6), 0 0 30px rgba(214,31,31,0.3);
}
.album-card-row {
  flex-direction: row;
  align-items: center;
}
.album-card-row .album-card-thumb {
  width: 120px;
  min-width: 120px;
  aspect-ratio: auto 1 / 1;
}
.album-card-row .album-card-body {
  flex: 1;
}
.album-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(8,7,10,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.album-card:hover .album-card-thumb {
  overflow: visible;
}
.album-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
/* ─── Vinyl record ───────────────────────────────────────────── */
.album-card-vinyl {
  position: absolute;
  right: 0;
  top: 50%;
  width: 88%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateY(-50%);
  box-shadow: -10px 4px 36px rgba(0,0,0,0.95), 2px 0 8px rgba(0,0,0,0.6);
}
.ac-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
  animation: vinyl-spin 6s linear infinite;
  animation-play-state: paused;
  background:
    /* agujero central */
    radial-gradient(circle, #000 3.8%, transparent 4%),
    /* etiqueta central roja (tema CRT) */
    radial-gradient(circle,
      #060101 3.9%, #4a0808 7%, #9a1010 10.5%,
      #d41c1c 12.5%, #b81818 15%, #6e0c0c 17.5%,
      #200404 19.5%, transparent 20.5%
    ),
    /* borde etiqueta */
    radial-gradient(circle, transparent 20%, rgba(255,100,100,0.12) 20.5%, transparent 22%),
    /* surcos del vinilo */
    radial-gradient(circle, transparent 24.5%, rgba(255,255,255,0.07) 25%,   transparent 25.6%),
    radial-gradient(circle, transparent 31%,   rgba(255,255,255,0.05) 31.5%, transparent 32.2%),
    radial-gradient(circle, transparent 38.5%, rgba(255,255,255,0.07) 39%,   transparent 39.7%),
    radial-gradient(circle, transparent 47%,   rgba(255,255,255,0.05) 47.5%, transparent 48.2%),
    radial-gradient(circle, transparent 56.5%, rgba(255,255,255,0.07) 57%,   transparent 57.8%),
    radial-gradient(circle, transparent 66.5%, rgba(255,255,255,0.05) 67%,   transparent 67.8%),
    radial-gradient(circle, transparent 77%,   rgba(255,255,255,0.07) 77.5%, transparent 78.3%),
    radial-gradient(circle, transparent 87.5%, rgba(255,255,255,0.06) 88%,   transparent 89%),
    /* rim exterior */
    radial-gradient(circle, transparent 94%, rgba(255,255,255,0.05) 95%, rgba(255,255,255,0.02) 97%, transparent 98%),
    /* brillo tenue en esquina superior */
    radial-gradient(ellipse at 30% 22%, rgba(120,100,180,0.10) 0%, transparent 52%),
    /* base negra con tinte levemente morado (plástico PVC) */
    radial-gradient(circle, #14101a 0%, #0a080e 60%, #060408 100%);
}
.album-card:hover .ac-vinyl-disc {
  animation-play-state: running;
}
/* Brillo rojo detrás del vinilo cuando sale */
.album-card-vinyl {
  transition: filter 0.45s ease-out;
}
.album-card:hover .album-card-vinyl {
  filter: drop-shadow(0 0 18px rgba(214,31,31,0.9)) drop-shadow(0 0 8px rgba(214,31,31,0.6));
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
.album-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.album-card-title {
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-card-sub {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
}
/* ─── Parallax helpers ───────────────────────────────────────── */
.ac-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  transition: transform 0.55s cubic-bezier(0.23,1,0.32,1);
  will-change: transform;
}
.ac-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.album-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.search-suggestion {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--fg-text);
  transition: background 0.12s, border-color 0.12s;
}
.search-suggestion:hover {
  background: rgba(214,31,31,0.18);
  border-color: var(--fg-primary);
}
.search-suggestion.empty {
  border-color: rgba(255,255,255,0.05);
  color: var(--fg-dim);
}
.search-item-type {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--fg-accent);
  letter-spacing: 0.12em;
  border: 1px solid var(--fg-accent);
  padding: 3px 7px;
  border-radius: 999px;
}
.search-suggestion-thumb {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.search-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* ─── Category page header ───────────────────────────────── */
.cat-header {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 0 18px;
  border-bottom: 1px dashed var(--fg-dim);
  color: var(--fg-primary);
}

/* ─── File grid + cards ──────────────────────────────────── */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.file-card {
  border: 2px solid var(--fg-primary);
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s, box-shadow 0.15s;
}
.file-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--fg-primary), 0 0 14px rgba(214,31,31,0.5);
}
.file-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.15) 0 3px, transparent 3px 6px),
    #08070a;
  overflow: hidden;
  border-bottom: 2px solid var(--fg-primary);
}
.file-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
.file-card-glyph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-primary);
  opacity: 0.85;
}
.file-card-cat {
  position: absolute;
  top: 6px; left: 6px;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.1em;
  background: var(--fg-primary);
  color: #fff;
  padding: 3px 6px;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.file-card-body {
  padding: 10px 12px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.file-card-name {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.file-card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.file-card-meta span:last-child { color: var(--fg-accent); }

/* ─── Upload form ────────────────────────────────────────── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
@media (max-width: 800px) { .upload-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field-label {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-shadow: 0 0 6px var(--fg-accent);
}
.field-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 20px;
  background: #000;
  border: 1px solid var(--fg-dim);
  color: var(--fg-text);
  padding: 8px 12px;
  outline: none;
  resize: vertical;
}
.field-input:focus { border-color: var(--fg-primary); box-shadow: 0 0 8px rgba(214,31,31,0.4); }

.cat-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: transparent;
  border: 2px solid var(--fg-dim);
  color: var(--fg-text);
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.1s;
}
.cat-pill:hover { border-color: var(--fg-secondary); color: var(--fg-secondary); }
.cat-pill.on {
  background: var(--fg-primary);
  color: #fff;
  border-color: var(--fg-primary);
  box-shadow: 0 0 12px rgba(214,31,31,0.6), inset 0 0 6px rgba(255,255,255,0.15);
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.cat-pill.new { border-style: dashed; color: var(--fg-accent); border-color: var(--fg-accent); }
.cat-pill.new:hover { background: rgba(255,59,59,0.15); }

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ─── Thumbnail upload zone ──────────────────────────────── */
/* ===========================================================
   Drop zone
   =========================================================== */
.thumb-zone {
  border: 2px dashed var(--fg-primary);
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.10) 0 6px, transparent 6px 12px),
    #08070a;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--fg-primary);
  transition: background 0.12s, border-color 0.12s;
}
.thumb-zone:hover {
  border-color: var(--fg-accent);
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.18) 0 6px, transparent 6px 12px),
    rgba(214,31,31,0.05);
}
.thumb-zone img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: auto;
}
.thumb-empty {
  text-align: center;
  color: var(--fg-primary);
  padding: 18px;
}

/* Drop zone: extend has-file state */
.dropzone.has-file {
  border-color: var(--fg-primary);
  border-style: solid;
  background: rgba(214,31,31,0.08);
  color: var(--fg-primary);
}
.dropzone.has-file .dz-glyph { color: var(--fg-primary); }

/* ─── Detail page / player ───────────────────────────────── */
.detail-page .panel-hd {
  background: linear-gradient(90deg, var(--fg-primary) 0%, #8a0a0a 100%);
  color: #fff;
}

.player { padding: 8px 0; }

/* player-cassette: matches sidebar cassette aesthetic */
.player-cassette {
  background: linear-gradient(180deg, #1a0830, #0a0420);
  border: 2px solid var(--fg-secondary);
  padding: 14px 18px 18px;
  position: relative;
  box-shadow: 0 0 24px rgba(0,240,255,0.08), inset 0 0 30px rgba(0,0,0,0.5);
  max-width: 520px;
  margin: 0 auto;
}
.player-cassette-brand {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  text-align: center;
  border-bottom: 1px dashed var(--fg-dim);
  padding-bottom: 8px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px var(--fg-accent);
}
.player-cassette-reels {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
}
.player-cassette-window {
  flex: 1;
  max-width: 200px;
  border: 2px solid var(--fg-secondary);
  background: #0d0a18;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.8);
}
.player-cassette-window img {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.player-cassette-glyph { color: var(--fg-secondary); opacity: 0.6; }
.player-cassette-cat {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--fg-secondary);
  letter-spacing: 0.1em;
  text-shadow: 0 0 4px var(--fg-secondary);
  background: rgba(0,0,0,0.78);
  padding: 3px 0;
}

.deck-screen {
  max-height: 280px;
  min-height: 60px;
  background: #000;
  border: 2px solid var(--fg-accent);
  box-shadow: inset 0 0 20px rgba(255,59,59,0.4), 0 0 18px rgba(255,59,59,0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deck-screen img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background:
    repeating-linear-gradient(45deg, rgba(214,31,31,0.12) 0 4px, transparent 4px 8px);
}
.deck-glyph { color: var(--fg-primary); opacity: 0.7; }
.deck-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 14px 12px 10px;
}
.deck-cat {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent), 0 0 12px var(--fg-accent);
}

/* Track info bar */
.player-track {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.5);
  border-left: 4px solid var(--fg-primary);
  position: relative;
}
.vu-bars {
  display: flex;
  gap: 3px;
  height: 18px;
  margin-bottom: 10px;
  align-items: flex-end;
}
.vu-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--fg-accent), var(--fg-primary));
  box-shadow: 0 0 4px var(--fg-primary);
  animation: vu 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes vu {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}
.track-title {
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--fg-text);
  text-shadow: 0 0 10px var(--fg-primary), 0 0 20px var(--fg-primary);
  letter-spacing: 0.04em;
  word-break: break-word;
  line-height: 1.3;
}
.track-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-secondary);
}

.player-section { margin-top: 18px; }
.player-section-label {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--fg-accent);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-shadow: 0 0 6px var(--fg-accent);
}
.player-desc {
  font-size: 21px;
  color: var(--fg-text);
  line-height: 1.5;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid var(--fg-secondary);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 700px) { .specs { grid-template-columns: 1fr; } }
.spec {
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--fg-dim);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec span {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-accent);
}
.spec b {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--fg-text);
  font-weight: normal;
}

.player-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* widget cassette clickable hover */
.widget .cassette { transition: box-shadow 0.15s; }
.widget .cassette:hover {
  box-shadow: 0 0 16px var(--fg-primary);
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade 0.18s ease-out;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #08070a;
  border: 2px solid var(--fg-primary);
  width: 480px;
  max-width: 92%;
  box-shadow:
    0 0 0 4px #08070a,
    0 0 24px rgba(214,31,31,0.65),
    inset 0 0 12px rgba(214,31,31,0.2);
  animation: modal-pop 0.18s ease-out;
}
@keyframes modal-pop {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-hd {
  background: var(--fg-primary);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.15em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.modal-x {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 22px;
  padding: 0 4px;
  line-height: 1;
}
.modal-x:hover { color: var(--fg-accent); }
.modal-body { padding: 18px 22px 22px; }

/* ─── Tabs (detail page) ─────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  margin: 22px 0 18px;
  border-bottom: 2px solid var(--fg-primary);
}
.tabs button {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--fg-secondary);
  border: 2px solid var(--fg-dim);
  border-bottom: none;
  padding: 9px 16px;
  cursor: pointer;
  text-transform: uppercase;
  margin-bottom: -2px;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.tabs button:hover:not(.active) {
  color: var(--fg-text);
  border-color: var(--fg-secondary);
}
.tabs button.active {
  background: var(--fg-primary);
  color: #fff;
  border-color: var(--fg-primary);
  text-shadow: 0 0 6px rgba(255,255,255,0.5);
  box-shadow: 0 0 12px rgba(214,31,31,0.5);
}

/* ─── ZIP tree ───────────────────────────────────────────── */
.zip-tree {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--fg-primary);
  box-shadow: inset 0 0 14px rgba(214,31,31,0.18);
}
.zip-stats {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-accent);
  padding: 10px 12px;
  border-bottom: 1px dashed var(--fg-dim);
  text-shadow: 0 0 6px var(--fg-accent);
}
.zip-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-primary) transparent;
}
.zip-list::-webkit-scrollbar { width: 8px; }
.zip-list::-webkit-scrollbar-thumb { background: var(--fg-primary); }
.zip-entry {
  display: grid;
  grid-template-columns: 16px 18px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 6px;
  font-size: 19px;
  color: var(--fg-text);
  cursor: default;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.08s, border-color 0.08s;
}
.zip-entry.is-dir { cursor: pointer; color: var(--fg-secondary); }
.zip-entry.is-dir:hover { background: rgba(214,31,31,0.1); border-left-color: var(--fg-primary); }
.zip-entry.is-file:hover { background: rgba(184,182,173,0.06); }
.zip-toggle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-accent);
  text-align: center;
}
.zip-icon {
  font-size: 16px;
  text-align: center;
}
.is-dir .zip-icon { color: var(--fg-accent); text-shadow: 0 0 6px var(--fg-accent); }
.is-file .zip-icon { color: var(--fg-primary); }
.zip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-dir .zip-name { font-weight: normal; }
.zip-size {
  color: var(--fg-dim);
  font-size: 16px;
  font-family: var(--mono);
}

/* ─── Text preview ───────────────────────────────────────── */
.text-stats {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-accent);
  margin-bottom: 8px;
  text-shadow: 0 0 6px var(--fg-accent);
}
.text-preview {
  font-family: 'Share Tech Mono', var(--mono);
  font-size: 17px;
  line-height: 1.45;
  background: #000;
  border: 1px solid var(--fg-success);
  color: var(--fg-success);
  padding: 14px 16px;
  max-height: 520px;
  overflow: auto;
  white-space: pre;
  text-shadow: 0 0 6px var(--fg-success);
  box-shadow: inset 0 0 20px rgba(57,255,20,0.12);
  scrollbar-width: thin;
  scrollbar-color: var(--fg-success) transparent;
}
.text-preview::-webkit-scrollbar { width: 8px; height: 8px; }
.text-preview::-webkit-scrollbar-thumb { background: var(--fg-success); }

/* ─── Search Bar ─────────────────────────────────────────── */
.searchbar { margin-bottom: 0; }
.searchbar-body { padding: 12px 14px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .field-input { flex: 1; }
.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-accent);
  text-shadow: 0 0 4px var(--fg-accent);
}
.filter-select {
  font-size: 17px;
  padding: 6px 10px;
  appearance: none;
  -webkit-appearance: none;
}
.sort-select {
  font-family: var(--mono);
  font-size: 18px;
  background: var(--bg-deep);
  color: var(--fg-text);
  border: 1px solid var(--fg-dim);
  padding: 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 140px;
}
.sort-select:hover { border-color: var(--fg-secondary); }
.dir-btn {
  font-family: var(--mono);
  font-size: 20px;
  background: transparent;
  color: var(--fg-secondary);
  border: 1px solid var(--fg-dim);
  padding: 4px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.08s;
  line-height: 1;
}
.dir-btn:hover {
  background: var(--fg-primary);
  color: var(--bg-deep);
  border-color: var(--fg-primary);
  box-shadow: 0 0 8px var(--fg-primary);
}
.view-toggle { display: flex; gap: 0; }
.view-toggle button {
  flex: 1;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-text);
  padding: 7px 8px;
  cursor: pointer;
}
.view-toggle button.on {
  background: var(--fg-primary);
  color: #fff;
  border-color: var(--fg-primary);
  box-shadow: 0 0 8px rgba(214,31,31,0.5);
}

/* ─── File card wrap (for multi-select checkbox) ─────────── */
.file-card-wrap {
  position: relative;
}
.file-sel-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(0,0,0,0.7);
  border: 2px solid var(--fg-primary);
  color: var(--fg-primary);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 0 6px currentColor;
}
.file-sel-btn.on {
  background: var(--fg-primary);
  color: #fff;
  box-shadow: 0 0 14px var(--fg-primary);
}
.file-card-wrap.sel .file-card {
  outline: 3px solid var(--fg-accent);
  outline-offset: 2px;
  box-shadow: 0 0 18px rgba(255,59,59,0.5);
}

/* ─── File list table ───────────────────────────────────── */
.file-list-wrap { overflow-x: auto; }
.file-list {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-text);
}
.file-list thead th {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--bg-grid);
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent);
  padding: 10px 8px;
  text-align: left;
  border-bottom: 2px solid var(--fg-primary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.file-list thead th:hover { background: rgba(214,31,31,0.15); }
.file-list thead th.active { color: var(--fg-primary); text-shadow: 0 0 8px var(--fg-primary); }
.file-list .sort-dir { color: var(--fg-primary); }
.file-list tbody tr {
  border-bottom: 1px dotted var(--fg-dim);
  cursor: pointer;
  transition: background 0.08s;
}
.file-list tbody tr:hover { background: rgba(214,31,31,0.08); }
.file-list tbody tr.sel { background: rgba(255,59,59,0.12); }
.file-list td { padding: 8px 8px; vertical-align: middle; }
.file-list .col-sel { width: 36px; text-align: center; }
.file-list .col-thumb { width: 60px; }
.file-list .col-thumb img {
  width: 48px; height: 48px; object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid var(--fg-primary);
}
.file-list .list-glyph {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-primary); border: 1px solid var(--fg-primary);
}
.file-list .col-name { min-width: 200px; }
.file-list .list-name {
  color: var(--fg-text);
  font-size: 19px;
}
.file-list .list-fname {
  color: var(--fg-dim);
  font-size: 15px;
}
.file-list .checkbox {
  font-size: 22px;
  color: var(--fg-dim);
  text-align: center;
}
.file-list .checkbox.on {
  color: var(--fg-primary);
  text-shadow: 0 0 8px var(--fg-primary);
}

/* ─── Multi-select floating bar ─────────────────────────── */
.multisel-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483630;
  background: #08070a;
  border: 2px solid var(--fg-primary);
  box-shadow: 0 0 24px rgba(214,31,31,0.55), inset 0 0 12px rgba(214,31,31,0.15);
  padding: 12px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 90vw;
  animation: modal-pop 0.16s ease-out;
}
.ms-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-count {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--fg-accent);
  text-shadow: 0 0 8px var(--fg-accent);
}
.ms-meta {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
}
.ms-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ─── Stats panel ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.stat-tile {
  background: rgba(214,31,31,0.06);
  border: 1px solid var(--fg-primary);
  padding: 12px 14px;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(214,31,31,0.12);
}
.stat-num {
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--fg-accent);
  text-shadow: 0 0 8px var(--fg-accent), 0 0 14px var(--fg-accent);
  line-height: 1.1;
}
.stat-lbl {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-secondary);
  margin-top: 6px;
}
.stats-section { margin-top: 18px; }
.meter.big { height: 22px; }

/* Segmented total meter */
.total-meter {
  display: flex;
  overflow: hidden;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--fg-dim);
}
.total-meter-seg {
  height: 100%;
  transition: width 0.4s ease;
  flex-shrink: 0;
}
.total-meter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 7px;
}
.legend-item {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px currentColor;
}
.bar-chart { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bar-chart .bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
}
.bar-chart .bar-lbl {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px currentColor;
}
.bar-chart .bar-bg {
  height: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--fg-dim);
}
.bar-chart .bar-fill { height: 100%; }
.bar-chart .bar-val { font-size: 17px; color: var(--fg-text); text-align: right; }

/* ─── Media views (image / video / pdf / audio / md) ─────── */
.media-view {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--fg-primary);
  padding: 12px;
}
.media-view .img-full {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--fg-primary);
  box-shadow: 0 0 18px rgba(214,31,31,0.4);
}
.media-view .video-el {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  background: #000;
  border: 2px solid var(--fg-primary);
}
.media-view .pdf-frame {
  width: 100%;
  height: 70vh;
  background: #fff;
  border: 2px solid var(--fg-primary);
}
.media-meta {
  margin-top: 10px;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent);
  text-align: center;
}

/* ─── Retro Radio Player ─────────────────────────────────── */
.radio-body {
  background: linear-gradient(180deg, #1c0a08 0%, #0d0507 100%);
  border: 3px solid var(--fg-primary);
  border-radius: 10px;
  padding: 14px;
  box-shadow:
    inset 0 0 40px rgba(214,31,31,0.12),
    0 0 32px rgba(214,31,31,0.35),
    inset 0 2px 0 rgba(255,255,255,0.06);
  position: relative;
}

/* Top frequency/display bar */
.radio-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 2px solid var(--fg-dim);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 24px rgba(214,31,31,0.25);
}
.radio-band-label {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  border: 1px solid var(--fg-dim);
  padding: 4px 5px;
  flex-shrink: 0;
  line-height: 1.4;
  text-align: center;
}
.radio-freq-display { flex: 1; overflow: hidden; }
.radio-freq-artist {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-accent);
  text-shadow: 0 0 8px var(--fg-accent);
  display: block;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-freq-title {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--fg-success);
  text-shadow: 0 0 10px var(--fg-success), 0 0 22px var(--fg-success);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* VU meters */
.radio-vu {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 44px;
  flex-shrink: 0;
}
.radio-vu-bar {
  width: 5px;
  background: linear-gradient(180deg, var(--fg-accent) 0%, var(--fg-primary) 55%, #6b0000 100%);
  border-radius: 1px;
  height: 5%;
  box-shadow: 0 0 4px var(--fg-primary);
  transition: height 0.08s ease-out;
  align-self: flex-end;
}

/* Middle: speakers + display */
.radio-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

/* Speaker grille — pure dotted texture, no knobs inside */
.radio-grille {
  background:
    radial-gradient(circle, rgba(180,60,60,0.55) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  background-color: #080305;
  border: 2px solid var(--fg-dim);
  border-radius: 6px;
  min-height: 180px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Knobs bar — 3-col grid so play button sits in exact center */
.radio-knobs-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--fg-dim);
  border-radius: 4px;
  margin-bottom: 12px;
}
.radio-knobs-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.radio-knobs-side.right {
  justify-content: flex-end;
}
.radio-knob {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #3a1010, #0d0507);
  border: 2px solid var(--fg-primary);
  box-shadow: 0 0 8px rgba(214,31,31,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  flex-shrink: 0;
}
.radio-knob::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 11px;
  background: var(--fg-accent);
  transform: translate(-50%, -8px) rotate(-25deg);
  transform-origin: bottom center;
  border-radius: 1px;
}
.radio-knob.small { width: 20px; height: 20px; }
.radio-knob.small::after { height: 7px; transform: translate(-50%, -5px) rotate(20deg); }

/* Center window — stretches to match grille height, cover centered inside */
.radio-window {
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio-cover-frame {
  width: 260px; height: 260px;
  border: 3px solid var(--fg-secondary);
  outline: 2px solid var(--fg-primary);
  outline-offset: 3px;
  background: #08070a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    inset 0 0 20px rgba(214,31,31,0.2),
    0 0 20px rgba(214,31,31,0.4);
}
.radio-cover-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.radio-cover-empty { color: var(--fg-primary); opacity: 0.7; }
.radio-cover-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px,
    transparent 1px, transparent 3px
  );
}

/* Play button */
.radio-play-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #3a0a0a, #0d0507);
  border: 3px solid var(--fg-primary);
  color: var(--fg-accent);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(214,31,31,0.5),
    inset 0 0 12px rgba(214,31,31,0.15),
    inset 0 2px 0 rgba(255,255,255,0.1);
  transition: transform 0.08s, box-shadow 0.12s;
}
.radio-play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 28px rgba(214,31,31,0.8), inset 0 0 14px rgba(214,31,31,0.3);
}
.radio-play-btn span { display: flex; line-height: 1; }

/* Info strip — own row between grille area and knobs bar */
.radio-info-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--fg-dim);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
  min-width: 0;
  flex-wrap: nowrap;
}
.radio-strip-album {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-secondary);
  flex: 1;
}
.radio-strip-genre {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  border: 1px solid var(--fg-dim);
  padding: 2px 5px;
}
.radio-strip-meta {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}


/* Markdown preview */
.md-preview {
  background: #08070a;
  border: 1px solid var(--fg-primary);
  padding: 18px 22px;
  color: var(--fg-text);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.6;
  max-height: 520px;
  overflow-y: auto;
}
.md-preview h1, .md-preview h2, .md-preview h3 {
  font-family: var(--pixel);
  color: var(--fg-primary);
  text-shadow: 0 0 8px var(--fg-primary);
  letter-spacing: 0.04em;
  margin: 16px 0 10px;
}
.md-preview h1 { font-size: 18px; }
.md-preview h2 { font-size: 15px; color: var(--fg-accent); text-shadow: 0 0 6px var(--fg-accent); }
.md-preview h3 { font-size: 13px; color: var(--fg-secondary); text-shadow: none; }
.md-preview p { margin: 8px 0; }
.md-preview ul, .md-preview ol { padding-left: 24px; margin: 8px 0; }
.md-preview li { margin: 4px 0; }
.md-preview code {
  background: #000;
  color: var(--fg-success);
  padding: 1px 6px;
  border: 1px solid var(--fg-success);
  font-family: var(--mono);
  font-size: 16px;
}
.md-preview pre {
  background: #000;
  color: var(--fg-success);
  padding: 12px 14px;
  border: 1px solid var(--fg-success);
  overflow-x: auto;
  text-shadow: 0 0 4px var(--fg-success);
}
.md-preview pre code { border: none; padding: 0; background: transparent; }
.md-preview a { color: var(--fg-accent); text-decoration: underline; }
.md-preview blockquote {
  border-left: 4px solid var(--fg-primary);
  padding: 6px 14px;
  margin: 10px 0;
  color: var(--fg-secondary);
  background: rgba(214,31,31,0.05);
}
.md-preview hr { border: none; border-top: 1px dashed var(--fg-dim); margin: 16px 0; }
.md-preview img { max-width: 100%; image-rendering: pixelated; border: 1px solid var(--fg-primary); }
.md-preview table { border-collapse: collapse; margin: 10px 0; }
.md-preview th, .md-preview td { border: 1px solid var(--fg-dim); padding: 6px 10px; }
.md-preview th { background: rgba(214,31,31,0.1); color: var(--fg-accent); }

/* ─── Music player (bottom bar) ──────────────────────────── */
.music-player {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2147483625;
  background: linear-gradient(180deg, #1a0606, #08070a);
  border: 2px solid var(--fg-primary);
  box-shadow: 0 0 24px rgba(214,31,31,0.6), inset 0 0 16px rgba(214,31,31,0.18);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto auto auto;
  gap: 14px;
  align-items: center;
  animation: modal-pop 0.18s ease-out;
  overflow: visible;
}
@media (max-width: 800px) {
  .music-player {
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
  }
  .music-player .mp-volume { display: none; }
}
.mp-cover {
  width: 64px; height: 64px;
  background: #000;
  border: 2px solid var(--fg-accent);
  box-shadow: 0 0 12px rgba(255,59,59,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mp-cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mp-cover-empty { color: var(--fg-primary); opacity: 0.7; }
.mp-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-title {
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--fg-text);
  text-shadow: 0 0 6px var(--fg-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-artist {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg-accent);
  text-shadow: 0 0 4px var(--fg-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-progress {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 10px;
  align-items: center;
}
.mp-time {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
  text-align: center;
}
.mp-bar {
  position: relative;
  height: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--fg-dim);
  cursor: pointer;
}
.mp-bar-fill {
  height: 100%;
  background: var(--fg-primary);
  box-shadow: 0 0 8px var(--fg-primary);
}
.mp-bar-knob {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 14px;
  background: var(--fg-accent);
  box-shadow: 0 0 8px var(--fg-accent);
  transform: translateX(-2px);
}
.mp-controls { display: flex; gap: 6px; align-items: center; }
.mp-controls button {
  font-family: var(--pixel);
  font-size: 14px;
  background: rgba(214,31,31,0.15);
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  width: 38px; height: 38px;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 0 6px var(--fg-primary);
  transition: all 0.08s;
}
.mp-controls button:hover { background: var(--fg-primary); color: #000; box-shadow: 0 0 12px var(--fg-primary); }
.mp-controls .mp-play {
  width: 38px; height: 38px;
  font-size: 14px;
}
.mp-controls .mp-play:hover { background: var(--fg-primary); border-color: var(--fg-primary); box-shadow: 0 0 18px var(--fg-primary); color: #000; }
.music-player .like-btn {
  width: 38px; height: 38px;
  padding: 0;
  align-self: auto;
  font-size: 16px;
  background: rgba(214,31,31,0.15);
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  text-shadow: 0 0 6px var(--fg-primary);
}
.music-player .like-btn:hover { background: var(--fg-primary); color: #000; box-shadow: 0 0 12px var(--fg-primary); text-shadow: none; }
.music-player .like-btn.liked { background: rgba(214,31,31,0.35); box-shadow: 0 0 10px var(--fg-primary); }
.mp-volume { display: flex; align-items: center; gap: 6px; min-width: 110px; color: var(--fg-primary); }
.mp-volume span { font-size: 16px; color: var(--fg-primary); }
.mp-volume input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--fg-dim);
  outline: none;
  cursor: pointer;
}
.mp-volume input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 14px;
  background: var(--fg-primary);
  box-shadow: 0 0 6px var(--fg-primary);
  cursor: pointer;
}
.mp-close {
  font-family: var(--mono);
  font-size: 16px;
  background: rgba(214,31,31,0.15);
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  width: 38px; height: 38px;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 0 6px var(--fg-primary);
  transition: all 0.08s;
}
.mp-close:hover { background: var(--fg-primary); color: #000; box-shadow: 0 0 12px var(--fg-primary); text-shadow: none; }

/* VU backdrop — separate fixed element, BEHIND the player */
.vu-backdrop {
  position: fixed;
  left: 12px; right: 12px;
  /* --vu-bottom is set by JS to the exact top-border position of the player.
     Bars grow upward from there, so their bottom aligns with the player's top. */
  bottom: var(--vu-bottom, 104px);
  height: 70px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  pointer-events: none;
  z-index: 2147483600;
}
.vu-backdrop-bar {
  flex: 1;
  min-width: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.28) 0px, rgba(0,0,0,0.28) 1px,
      transparent 1px, transparent 3px
    ),
    linear-gradient(180deg, var(--fg-accent) 0%, var(--fg-primary) 60%, #6b0000 100%);
  min-height: 2px;
  box-shadow: 0 0 4px var(--fg-primary);
  transition: height 0.07s ease-out;
}

/* Push page content up when music player visible */
body:has(.music-player) .crt-content { padding-bottom: 100px; }

/* ─── Upload progress page ────────────────────────────────── */
.upload-progress {
  padding: 12px 0;
}
.up-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.up-name {
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--fg-accent);
  text-shadow: 0 0 8px var(--fg-accent);
  word-break: break-all;
}
.up-sub {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--fg-secondary);
}
.up-meter {
  position: relative;
  height: 32px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--fg-primary);
  margin-bottom: 22px;
  box-shadow: inset 0 0 8px rgba(214,31,31,0.2);
  box-sizing: border-box;
  overflow: hidden;
}
.up-meter-fill {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--fg-primary), var(--fg-accent));
  box-shadow: 0 0 14px var(--fg-primary);
  transition: width 0.15s ease-out;
}
.up-meter-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pixel);
  font-size: 15px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 0 12px var(--fg-primary);
}
.up-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.up-stat {
  border: 1px solid var(--fg-dim);
  background: rgba(0,0,0,0.3);
  padding: 10px 12px;
}
.up-stat-lbl {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--fg-accent);
  text-shadow: 0 0 4px var(--fg-accent);
  margin-bottom: 4px;
}
.up-stat-val {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-text);
}
.up-ascii {
  background: #000;
  border: 1px solid var(--fg-primary);
  padding: 12px 14px;
  font-family: 'Share Tech Mono', var(--mono);
  font-size: 17px;
  color: var(--fg-text);
  line-height: 1.45;
}
.up-ascii .line { white-space: pre; }
.up-ascii .t-prompt { color: var(--fg-success); text-shadow: 0 0 6px var(--fg-success); }
.up-ascii .t-cmd { color: var(--fg-text); }
.up-ascii .t-arg { color: var(--fg-secondary); }
.up-ascii .t-num { color: var(--fg-accent); text-shadow: 0 0 6px var(--fg-accent); }
.up-ascii .t-meta { color: var(--fg-dim); }

/* ─── Responsive polish ─────────────────────────────────── */
@media (max-width: 700px) {
  body { font-size: 18px; }
  .page { padding: 12px 14px 80px; }
  .statusbar { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 16px; }
  .banner { padding: 14px 16px; }
  .banner-title { font-size: 22px; }
  .banner-sub { font-size: 18px; }
  .nav { gap: 6px; }
  .nav button { font-size: 16px; padding: 6px 10px; }
  .file-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .file-card-name { font-size: 17px; }
  .panel-hd { font-size: 11px; padding: 5px 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bar-chart .bar-row { grid-template-columns: 80px 1fr 100px; gap: 8px; font-size: 16px; }
  .bar-chart .bar-lbl { font-size: 9px; }
  .player-deck { grid-template-columns: 60px 1fr 60px; gap: 8px; padding: 12px; }
  .deck-reel { width: 60px; height: 60px; }
  .deck-screen { max-height: 180px; }
  .deck-screen img { max-height: 180px; }
  .track-title { font-size: 17px; }
  .specs { grid-template-columns: 1fr; }
  .search-filters { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: wrap; gap: 0; }
  .tabs button { font-size: 10px; padding: 7px 10px; }
}
@media (max-width: 480px) {
  .file-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .search-filters { grid-template-columns: 1fr; }
}

/* Guestbook */
.guestbook { font-size: 20px; }
.guestbook .entry {
  border-bottom: 1px dotted var(--fg-dim);
  padding: 8px 0;
}
.guestbook .entry .who {
  color: var(--fg-primary);
  font-weight: normal;
}
.guestbook .entry .when {
  color: var(--fg-dim);
  font-size: 17px;
  margin-left: 8px;
}
.guestbook .entry .msg {
  color: var(--fg-text);
  margin-top: 2px;
}
.guestbook form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.guestbook input {
  font-family: var(--mono);
  font-size: 20px;
  background: #000;
  border: 1px solid var(--fg-dim);
  color: var(--fg-text);
  padding: 4px 8px;
  flex: 1;
  min-width: 100px;
}
.guestbook input:focus { outline: 1px solid var(--fg-secondary); border-color: var(--fg-secondary); }
.guestbook button {
  font-family: var(--mono);
  font-size: 20px;
  background: var(--fg-success);
  color: #000;
  border: none;
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* Terminal — ASCII tree of the vault */
.terminal {
  margin-top: 22px;
  background: #000;
  border: 1px solid var(--fg-primary);
  padding: 14px 16px;
  font-family: 'Share Tech Mono', var(--mono);
  font-size: 19px;
  color: var(--fg-text);
  line-height: 1.4;
  min-height: 130px;
  box-shadow: inset 0 0 18px rgba(214,31,31,0.18);
  overflow-x: auto;
}
.terminal .line { white-space: pre; }

/* Prompt (classic green CRT terminal feel) */
.terminal .t-prompt {
  color: var(--fg-success);
  text-shadow: 0 0 6px var(--fg-success), 0 0 12px rgba(196,255,0,0.4);
  font-weight: bold;
}
.terminal .t-cmd {
  color: var(--fg-text);
  text-shadow: 0 0 4px rgba(232,226,212,0.5);
}
.terminal .t-arg {
  color: var(--fg-secondary);
  text-shadow: 0 0 4px var(--fg-secondary);
}

/* Path header */
.terminal .t-path {
  color: var(--fg-primary);
  text-shadow: 0 0 8px var(--fg-primary), 0 0 14px var(--fg-primary);
  font-weight: bold;
  letter-spacing: 0.04em;
}

/* Tree box-drawing characters */
.terminal .t-box {
  color: #d61f1f;
  opacity: 0.7;
  text-shadow: 0 0 4px rgba(214,31,31,0.5);
}

/* Folder (category) colors — rotation across the rainbow but staying in palette */
.terminal .t-folder {
  font-weight: bold;
  letter-spacing: 0.03em;
}
.terminal .fold-a { color: #ff3b3b; text-shadow: 0 0 8px #ff3b3b, 0 0 14px rgba(255,59,59,0.6); }   /* hot crimson */
.terminal .fold-b { color: #ffb347; text-shadow: 0 0 8px #ffb347, 0 0 14px rgba(255,179,71,0.5); } /* amber */
.terminal .fold-c { color: #c4ff00; text-shadow: 0 0 8px #c4ff00, 0 0 14px rgba(196,255,0,0.5); }   /* toxic */
.terminal .fold-d { color: #5fe0ff; text-shadow: 0 0 8px #5fe0ff, 0 0 14px rgba(95,224,255,0.5); }  /* electric */
.terminal .fold-e { color: #e8d8ff; text-shadow: 0 0 8px #e8d8ff, 0 0 14px rgba(232,216,255,0.5); }/* lilac */
.terminal .fold-f { color: #a64bff; text-shadow: 0 0 8px #a64bff, 0 0 14px rgba(166,75,255,0.55); }/* neon purple */

/* Files */
.terminal .t-file {
  color: var(--fg-text);
  text-shadow: 0 0 4px rgba(232,226,212,0.4);
}
.terminal .t-ext {
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent);
  font-size: 16px;
  letter-spacing: 0.05em;
}

/* Metadata / sizes / brackets */
.terminal .t-meta {
  color: var(--fg-dim);
  text-shadow: none;
}
.terminal .t-num {
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent);
  font-weight: bold;
}
.terminal .t-label {
  color: var(--fg-secondary);
  text-shadow: 0 0 4px rgba(184,182,173,0.4);
}
.terminal .t-sep {
  color: var(--fg-dim);
}

.terminal .caret {
  display: inline-block;
  color: var(--fg-success);
  text-shadow: 0 0 8px var(--fg-success);
  animation: blink 1s steps(1) infinite;
}

/* DIR listing inside the new panel — phosphor-red monospace block */
.dir-listing {
  font-family: 'Share Tech Mono', var(--mono);
  font-size: 20px;
  line-height: 1.35;
  background: #000;
  border: 1px solid var(--fg-primary);
  padding: 12px 16px;
  margin: 14px 0;
  color: var(--fg-primary);
  text-shadow: 0 0 6px var(--fg-primary);
  box-shadow: inset 0 0 18px rgba(214,31,31,0.18);
  white-space: pre;
  overflow-x: auto;
}
.dir-listing .line { white-space: pre; }
.dir-listing .line.dim { color: var(--fg-dim); text-shadow: none; }
.dir-listing .prompt {
  color: var(--fg-accent);
  text-shadow: 0 0 6px var(--fg-accent);
  margin-right: 6px;
}

/* Footer */
.footer {
  margin-top: 28px;
  border-top: 2px solid var(--fg-primary);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--fg-secondary);
  color: var(--fg-secondary);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Section spacing */
.section { margin-top: 22px; }

/* Tweaks panel restyle for dark CRT aesthetic */
.twk-panel {
  background: rgba(10, 4, 32, 0.92) !important;
  color: #e8d8ff !important;
  border: 1px solid #ff2bd6 !important;
  box-shadow: 0 0 24px rgba(255,43,214,0.4) !important;
  font-family: 'VT323', monospace !important;
}
.twk-panel * { font-family: 'VT323', monospace !important; }
.twk-hd b { color: #ff2bd6 !important; letter-spacing: 0.1em !important; text-transform: uppercase; }
.twk-x { color: #ff2bd6 !important; }
.twk-sect { color: #00f0ff !important; border-color: rgba(0,240,255,0.3) !important; }
.twk-lbl { color: #e8d8ff !important; }
.twk-val { color: #ffb347 !important; }

/* ═══════════════════════════════════════════════════════════════
   NEW FEATURES — added 2026-06-02
   ═══════════════════════════════════════════════════════════════ */

/* ─── Library Tree (left sidebar) ───────────────────────────── */
.lib-tree {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--fg-primary);
  box-shadow: inset 0 0 14px rgba(214,31,31,0.1);
  padding: 0 0 10px;
  font-size: 18px;
}
.lib-tree-hd {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-primary);
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--fg-primary);
  text-shadow: 0 0 6px var(--fg-primary);
}
.lib-artist { border-bottom: 1px dotted rgba(214,31,31,0.2); }
.lib-artist-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 10px;
  cursor: pointer;
  transition: background 0.1s;
}
.lib-artist-row:hover { background: rgba(214,31,31,0.1); }
.lib-toggle {
  color: var(--fg-dim);
  font-size: 10px;
  width: 12px;
  flex-shrink: 0;
}
.lib-name {
  flex: 1;
  color: var(--fg-primary);
  font-weight: bold;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.lib-name:hover { color: var(--fg-accent); text-decoration: underline; }
.lib-album-name { color: var(--fg-secondary); font-weight: normal; font-size: 16px; }
.lib-play {
  background: transparent;
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  font-size: 11px;
  padding: 1px 5px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.lib-artist-row:hover .lib-play,
.lib-album-row:hover .lib-play { opacity: 1; }
.lib-album-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 22px;
  cursor: pointer;
}
.lib-album-row:hover { background: rgba(184,182,173,0.07); }
.lib-songs { padding-left: 10px; }
.lib-song-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 34px;
  cursor: pointer;
  font-size: 16px;
}
.lib-song-row:hover { background: rgba(214,31,31,0.08); color: var(--fg-text); }
.lib-song-row .lib-play { opacity: 0; }
.lib-song-row:hover .lib-play { opacity: 1; }
.lib-song-direct { padding-left: 22px !important; }
.lib-song-num { color: var(--fg-dim); font-family: var(--pixel); font-size: 10px; width: 18px; flex-shrink: 0; text-align: right; }
.lib-song-name { color: var(--fg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-empty { padding: 16px 12px; color: var(--fg-dim); font-size: 18px; }

/* ─── Play Queue (right sidebar) ────────────────────────────── */
.play-queue {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--fg-primary);
  margin-bottom: 16px;
}
.widget-hd {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--fg-primary);
  padding: 7px 12px;
  border-bottom: 1px solid var(--fg-primary);
  text-shadow: 0 0 6px var(--fg-primary);
  text-transform: uppercase;
}
.pq-list {
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-primary) transparent;
}
.pq-list::-webkit-scrollbar { width: 3px; }
.pq-list::-webkit-scrollbar-thumb { background: var(--fg-primary); }
.pq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px dotted rgba(214,31,31,0.15);
  transition: background 0.1s;
  user-select: none;
}
.pq-item:hover { background: rgba(214,31,31,0.1); }
.pq-item.pq-current {
  background: rgba(214,31,31,0.18);
  border-left: 2px solid var(--fg-accent);
}
.pq-item.pq-over { border-top: 2px solid var(--fg-accent); }
.pq-item.pq-dragging { opacity: 0.4; }
.pq-playing-icon { color: var(--fg-accent); font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; animation: blink 1s steps(1) infinite; }
.pq-num { color: var(--fg-dim); font-family: var(--pixel); font-size: 9px; min-width: 24px; text-align: right; flex-shrink: 0; margin-right: 2px; }
.pq-info { flex: 1; overflow: hidden; }
.pq-name { font-size: 17px; color: var(--fg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-artist { font-size: 14px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-drag-handle { color: var(--fg-dim); font-size: 16px; cursor: grab; flex-shrink: 0; opacity: 0.5; }
.pq-item:hover .pq-drag-handle { opacity: 1; }
.pq-empty { padding: 14px 12px; color: var(--fg-dim); font-size: 18px; }

/* ─── Top Songs (right sidebar) ─────────────────────────────── */
.top-song-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px dotted rgba(214,31,31,0.15);
  transition: background 0.1s;
}
.top-song-row:hover { background: rgba(214,31,31,0.1); }
.top-rank {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--fg-primary);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.top-info { flex: 1; overflow: hidden; }
.top-name { font-size: 17px; color: var(--fg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-artist { font-size: 14px; color: var(--fg-dim); }
.top-count { font-family: var(--pixel); font-size: 10px; color: var(--fg-success); text-shadow: 0 0 6px var(--fg-success); flex-shrink: 0; }

/* ─── Like Button ────────────────────────────────────────────── */
.like-btn {
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-dim);
  font-size: 22px;
  line-height: 1;
  padding: 2px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.like-btn:hover { border-color: var(--fg-primary); color: var(--fg-primary); }
.like-btn.liked {
  color: var(--fg-primary);
  border-color: var(--fg-primary);
  text-shadow: 0 0 8px var(--fg-primary);
}

/* ─── Stats Page ─────────────────────────────────────────────── */
.stats-page .stat-tile { cursor: default; }
.timeline-wrap {
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
}
.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 80px;
  padding: 0 4px;
}
.tl-bar-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tl-bar {
  width: 18px;
  min-height: 2px;
  background: var(--fg-primary);
  box-shadow: 0 0 6px var(--fg-primary);
  transition: height 0.3s;
}
.tl-label { font-family: var(--pixel); font-size: 8px; color: var(--fg-dim); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.tl-count { font-family: var(--pixel); font-size: 8px; color: var(--fg-accent); }
.artist-plays-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(214,31,31,0.2);
}
.ap-rank { font-family: var(--pixel); font-size: 9px; color: var(--fg-primary); width: 20px; }
.ap-name { flex: 1; font-size: 18px; color: var(--fg-text); }
.ap-bar-bg { flex: 2; height: 8px; background: rgba(214,31,31,0.15); }
.ap-bar-fill { height: 100%; background: var(--fg-primary); box-shadow: 0 0 6px var(--fg-primary); }
.ap-count { font-family: var(--pixel); font-size: 10px; color: var(--fg-success); width: 50px; text-align: right; }
.stat-fact {
  padding: 10px 14px;
  background: rgba(0,0,0,0.35);
  border-left: 2px solid var(--fg-primary);
  font-size: 19px;
}
.stat-fact .sf-label { font-family: var(--pixel); font-size: 9px; color: var(--fg-dim); letter-spacing: 0.08em; }
.stat-fact .sf-val { color: var(--fg-accent); font-size: 22px; }
.stats-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 10px 0; }

/* ─── Stats highlights (favoritos) ─── */
.stats-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.stat-highlight {
  border: 1px solid var(--fg-dim);
  background: rgba(0,0,0,0.3);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat-highlight:hover {
  border-color: var(--fg-primary);
  box-shadow: 0 0 12px rgba(214,31,31,0.3);
}
.sh-icon { color: var(--fg-primary); }
.sh-label {
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.sh-name {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-text);
  line-height: 1.2;
  word-break: break-word;
}
.sh-sub {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--fg-accent);
  letter-spacing: 0.08em;
}

/* ─── Player Menu (3-dot dropdown) ──────────────────────────── */
.mp-menu-wrap { position: relative; }
.mp-menu-btn {
  background: rgba(214,31,31,0.15);
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  font-size: 16px;
  width: 38px; height: 38px;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px var(--fg-primary);
  transition: all 0.08s;
}
.mp-menu-btn:hover { background: var(--fg-primary); color: #000; box-shadow: 0 0 12px var(--fg-primary); text-shadow: none; }
.mp-menu-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #0a0408;
  border: 1px solid var(--fg-primary);
  box-shadow: 0 0 18px rgba(214,31,31,0.4);
  min-width: 180px;
  z-index: 200;
  animation: modal-pop 0.12s ease-out;
}
.mp-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px dotted rgba(214,31,31,0.3);
  color: var(--fg-text);
  font-family: var(--mono);
  font-size: 19px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.mp-menu-dropdown button:last-child { border-bottom: none; }
.mp-menu-dropdown button:hover { background: rgba(214,31,31,0.18); color: var(--fg-accent); }

/* ─── Bookmarks + Clips (DetailPage tabs) ────────────────────── */
.bm-list, .clip-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bm-item, .clip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.35);
  border-left: 2px solid var(--fg-primary);
}
.bm-item .bm-name, .clip-item .clip-name { flex: 1; font-size: 19px; color: var(--fg-text); }
.bm-item .bm-time, .clip-item .clip-range {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--fg-accent);
}
.bm-item button, .clip-item button {
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 16px;
  padding: 2px 8px;
  cursor: pointer;
}
.bm-item button:hover, .clip-item button:hover { border-color: var(--fg-primary); color: var(--fg-primary); }
.clip-item.active-clip { border-color: var(--fg-success); background: rgba(196,255,0,0.06); }
.clip-item.active-clip .clip-name { color: var(--fg-success); }
.bm-empty, .clip-empty { padding: 14px 0; color: var(--fg-dim); font-size: 19px; }

/* ─── Waveform on progress bar ───────────────────────────────── */
.mp-bar {
  position: relative;
  overflow: visible !important;
}
.mp-waveform {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 40px;
  pointer-events: none;
  opacity: 0.55;
}

/* ─── CRT audio-sync pulse overlay ──────────────────────────── */
.crt-audio-pulse {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 50%, rgba(214,31,31,0.30) 0%, rgba(214,31,31,0.10) 55%, transparent 100%);
  opacity: 0;
  z-index: 9;
  mix-blend-mode: screen;
  transition: opacity 0.02s linear;
}

/* ─── Local music page ───────────────────────────────────────── */
.local-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px dotted rgba(214,31,31,0.15);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 19px;
}
.local-track-row:hover { background: rgba(214,31,31,0.1); }
.local-track-active { background: rgba(214,31,31,0.18) !important; border-left: 2px solid var(--fg-accent); }
.local-track-thumb {
  width: 38px; height: 38px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}
.local-track-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  background: rgba(214,31,31,0.1);
  color: var(--fg-dim);
  font-size: 14px;
}
.local-track-num   { color: var(--fg-dim); font-family: var(--pixel); font-size: 9px; width: 20px; text-align: right; flex-shrink: 0; }
.local-track-name  { color: var(--fg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-track-album { color: var(--fg-dim); font-family: var(--pixel); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.local-track-size  { color: var(--fg-dim); font-family: var(--pixel); font-size: 9px; flex-shrink: 0; }
.local-track-play  { color: var(--fg-primary); font-size: 13px; flex-shrink: 0; width: 16px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES — design principles
   ═══════════════════════════════════════════════════════════════ */

/* 1 — Stagger de tarjetas de álbum */
@keyframes album-card-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.album-card-anim {
  animation: album-card-in 180ms ease-out both;
}

/* 2 — Cambio de pista en reproductor */
@keyframes track-slide-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mp-track-anim {
  animation: track-slide-in 160ms ease-out both;
}

/* 3 — Like heartbeat */
@keyframes like-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.like-btn.like-pop-anim {
  animation: like-pop 220ms cubic-bezier(0.23,1,0.32,1);
}

/* 4 — Stagger de sugerencias de búsqueda */
@keyframes suggestion-in {
  from { opacity: 0; transform: translateX(-5px); }
  to   { opacity: 1; transform: translateX(0); }
}
.search-suggestion-anim {
  animation: suggestion-in 140ms ease-out both;
}

/* 5 — Entrada de página */
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: page-in 150ms ease-out both;
}

/* 6 — Barras de stats */
@keyframes stats-bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes stats-bar-up {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.ap-bar-fill {
  transform-origin: left center;
  animation: stats-bar-grow 420ms cubic-bezier(0.23,1,0.32,1) both;
}
.tl-bar {
  transform-origin: bottom center;
  animation: stats-bar-up 380ms cubic-bezier(0.23,1,0.32,1) both;
}

/* 7 — Waveform fade-in */
@keyframes waveform-fade {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}
.mp-waveform {
  animation: waveform-fade 400ms ease both;
}

/* Folder import preview list (in UploadPage) */
.local-file-list-preview {
  display: flex; flex-direction: column;
  max-height: 260px; overflow-y: auto;
  border: 1px solid rgba(214,31,31,0.3);
  scrollbar-width: thin; scrollbar-color: var(--fg-primary) transparent;
}
.local-file-item-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px; font-size: 17px;
  border-bottom: 1px dotted rgba(214,31,31,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   NUEVOS ESTILOS — sesión 2026-06-05
   ═══════════════════════════════════════════════════════════════ */

/* ─── Botón play en esquina portada del AlbumCard ─────────────── */
.ac-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid var(--fg-primary);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  z-index: 6;
  padding: 0;
  padding-left: 2px;
  cursor: pointer;
}
.album-card:hover .ac-play-btn {
  opacity: 1;
}
.ac-play-btn:hover {
  background: var(--fg-primary);
  border-color: var(--fg-accent);
  box-shadow: 0 0 14px rgba(214,31,31,0.8);
}
.ac-play-btn:active {
  transform: scale(0.95);
}


/* ─── Invertir colores lib-play al hover (item 24) ─────────────── */
.lib-play:hover {
  background: var(--fg-primary) !important;
  color: var(--bg-deep) !important;
  opacity: 1;
}

/* ─── Footer links sociales (item 16) ──────────────────────────── */
.footer-link {
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s ease-out, transform 0.15s ease-out;
  padding: 4px;
}
.footer-link:hover {
  color: var(--fg-primary);
  transform: translateY(-2px);
}

/* ─── Activity log estilo tail -f (item 23) ────────────────────── */
.activity-log {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  scrollbar-width: thin;
  scrollbar-color: var(--fg-primary) transparent;
}
.activity-log-line {
  display: flex;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.activity-ts {
  color: var(--fg-dim);
  flex-shrink: 0;
  font-size: 13px;
}
.activity-kind {
  flex-shrink: 0;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  align-self: center;
  min-width: 64px;
}
.activity-name {
  color: var(--fg-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 14px;
}
.activity-log-empty {
  color: var(--fg-dim);
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
}

/* ─── PlayQueue unificado: cassette pegado al header ───────────── */
.play-queue > .cassette {
  margin: 0;
  border-top: none;
}

/* ─── Cursor pointer en barra de progreso del player ───────────── */
.mp-bar {
  cursor: pointer;
  user-select: none;
}
.mp-bar-knob {
  pointer-events: none;
}

