/* =========================================
   NOXIASOUNDS — Home / Needs Screen
   + Bottom Navigation
   ========================================= */

/* ── Page layout ── */
.home-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 16px;
}

/* ── Header row ── */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 72px 0 12px;
}

.home-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(192,132,252,0.14), rgba(124,58,237,0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(192,132,252,0.28);
  border-top-color: rgba(233,213,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-warm);
  box-shadow:
    0 0 20px rgba(124,58,237,0.22),
    0 2px 8px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.home-logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.40rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.home-logo-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose-warm);
  letter-spacing: 0.02em;
}

.home-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.home-avatar:hover {
  border-color: var(--glass-border-strong);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(157,92,255,0.25);
}

/* ── Section heading ── */
.needs-heading-wrap {
  padding: 28px 0 24px;
}

.needs-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-warm);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.needs-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.needs-title em {
  font-style: italic;
  color: var(--rose-warm);
  text-shadow: 0 0 24px rgba(192,132,252,0.4);
}

.needs-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.48s forwards;
}

/* ── Needs Cards Grid ── */
.needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 32px;
}

/* ══════════════════════════════════════════
   3D GLASS CATEGORY CARDS
══════════════════════════════════════════ */

/* Card outer — perspective wrapper */
.need-card {
  position: relative;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  display: block;
  perspective: 800px;
  /* staggered entrance */
  opacity: 0;
  animation: cardIn 0.60s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Face — the actual 3D glass surface */
.need-card-face {
  position: relative;
  border-radius: 24px;
  /* No overflow:hidden — causes text blur with backdrop-filter */
  height: 100%;

  /* Layered glass */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(0,0,0,0.10) 100%
  );
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.13);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);

  /* Depth shadow */
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 8px 24px rgba(0,0,0,0.40),
    0 2px 6px rgba(0,0,0,0.30);

  transition:
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;

  /* 3D tilt — no preserve-3d to avoid text rendering issues */
  transform: rotateX(0deg) rotateY(0deg);
}

/* Hover: lift + tilt + colour glow */
.need-card:hover .need-card-face,
.need-card:focus-visible .need-card-face {
  transform: rotateX(-4deg) rotateY(2deg) translateY(-6px) scale(1.03);
  border-color: rgba(255,255,255,0.22);
  border-top-color: var(--card-color);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.30) inset,
    0 0 32px var(--card-glow),
    0 20px 48px rgba(0,0,0,0.55),
    0 4px 12px rgba(0,0,0,0.35);
}

.need-card:active .need-card-face {
  transform: rotateX(0deg) rotateY(0deg) scale(0.97);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 4px 12px rgba(0,0,0,0.40);
}

/* Glowing orb behind content */
.need-card-glow-orb {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--card-color);
  opacity: 0.15;
  filter: blur(24px);
  top: -10px; right: -10px;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.need-card:hover .need-card-glow-orb {
  opacity: 0.35;
  transform: scale(1.3);
}

/* Shine sweep — diagonal highlight */
.need-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 30%,
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;          /* behind inner content */
  border-radius: inherit;
  transition: opacity 0.35s ease;
}

.need-card:hover .need-card-shine {
  opacity: 1;
}

/* Top edge shimmer line */
.need-card-face::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.55) 50%,
    transparent
  );
  border-radius: 1px;
  z-index: 3;
}

/* Bottom accent line — colour tinted */
.need-card-face::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--card-color) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.need-card:hover .need-card-face::after {
  opacity: 0.80;
}

/* Card inner — isolation keeps text crisp above backdrop-filter */
.need-card-inner {
  position: relative;
  z-index: 2;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
  isolation: isolate;          /* new stacking context — text stays sharp */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lottie animation wrapper */
.need-anim-wrap {
  width: 56px; height: 56px;
  flex-shrink: 0;
  position: relative;
}

.need-lottie {
  width: 56px !important;
  height: 56px !important;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.45));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.need-card:hover .need-lottie {
  transform: scale(1.18) translateY(-3px);
  filter: drop-shadow(0 6px 16px var(--card-glow));
}

/* Emoji fallback (hidden when lottie works) */
.need-emoji-fallback {
  display: none;
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* Show fallback if dotlottie-player fails */
dotlottie-player:not(:defined) ~ .need-emoji-fallback,
dotlottie-player[error]        ~ .need-emoji-fallback {
  display: block;
}

dotlottie-player:not(:defined) { display: none; }

/* Legacy .need-emoji (used in skeleton + old code) */
.need-emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Label — Cormorant Garamond, sharp and visible */
.need-label {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.32;
  color: #ffffff;
  flex: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.50);
  /* Force crisp rendering */
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  z-index: 3;
}

/* Arrow */
.need-arrow {
  align-self: flex-end;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30);
}

.need-card:hover .need-arrow {
  background: var(--card-color);
  border-color: var(--card-color);
  color: #fff;
  box-shadow: 0 0 14px var(--card-glow), 0 2px 8px rgba(0,0,0,0.35);
  transform: translateX(3px);
}


/* ══════════════════════════════════════════
   ANIMATED SVG CATEGORY ICONS
══════════════════════════════════════════ */

.need-anim-wrap {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-svg {
  width: 54px;
  height: 54px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.40));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              filter 0.35s ease;
}

.need-card:hover .cat-icon-svg {
  transform: scale(1.18) translateY(-4px);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
}

/* Float animation — sleep moon */
.icon-float {
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Pulse ring — focus */
.icon-pulse-ring {
  animation: iconPulseRing 2s ease-in-out infinite;
}

@keyframes iconPulseRing {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.05); }
}

/* Star twinkle */
.icon-stars circle {
  transform-origin: center;
}


/* ══════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
  /* safe area for notch phones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.bottom-nav-inner {
  max-width: 520px;
  margin: 0 auto 14px;
  border-radius: 24px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* glass override for nav */
  background: rgba(15,8,35,0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow:
    0 -2px 20px rgba(0,0,0,0.4),
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Nav items */
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  flex: 1;
}

.bnav-item:hover {
  background: rgba(255,255,255,0.05);
}

/* Icon wrapper */
.bnav-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.25s ease;
  position: relative;
}

/* Label */
.bnav-label {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
}

/* Active state */
.bnav-item.active .bnav-icon-wrap {
  background: linear-gradient(135deg, rgba(124,58,237,0.30), rgba(192,132,252,0.15));
  border: 1px solid rgba(157,92,255,0.30);
  color: var(--rose-warm);
  box-shadow: 0 0 18px rgba(124,58,237,0.30);
}

.bnav-item.active .bnav-label {
  color: var(--rose-warm);
  font-weight: 500;
}

/* Active indicator dot above icon */
.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-warm), var(--rose-warm));
  box-shadow: 0 0 8px rgba(192,132,252,0.6);
}

/* Hover effect on inactive items */
.bnav-item:not(.active):hover .bnav-icon-wrap {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
}

.bnav-item:not(.active):hover .bnav-label {
  color: var(--text-secondary);
}

/* tap ripple on mobile */
.bnav-item:active {
  transform: scale(0.93);
}


/* ── Responsive ── */
@media (min-width: 480px) {
  .home-header { padding-top: 64px; }
  .needs-title { font-size: 2.8rem; }
  .need-card-inner { padding: 24px 20px 20px; min-height: 128px; }
  .need-emoji { font-size: 2.2rem; }
  .need-label { font-size: 0.88rem; }
}

@media (min-width: 768px) {
  .home-header { padding-top: 80px; }
  .needs-grid { gap: 16px; }
  .bottom-nav-inner { margin-bottom: 20px; }
  .bnav-item { padding: 6px 20px; }
  .bnav-label { font-size: 0.72rem; }
}

/* Hide bottom nav on very large screens if desired */
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  #home-page { padding-bottom: 0; }
}

/* ══════════════════════════════════════════
   SKELETON LOADING CARDS
   Shown while API fetches categories
══════════════════════════════════════════ */

.skeleton-card {
  pointer-events: none;
  cursor: default;
  border-color: rgba(255,255,255,0.05) !important;
}

.skeleton-card .need-card-inner {
  gap: 14px;
}

.skeleton-emoji {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
}

.skeleton-label {
  display: block;
  width: 85%;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
}

/* Shimmer animation */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.6s ease-in-out infinite;
}

/* Stagger the pulse on each card */
.skeleton-card:nth-child(2) .skeleton-pulse { animation-delay: 0.15s; }
.skeleton-card:nth-child(3) .skeleton-pulse { animation-delay: 0.30s; }
.skeleton-card:nth-child(4) .skeleton-pulse { animation-delay: 0.45s; }
.skeleton-card:nth-child(5) .skeleton-pulse { animation-delay: 0.60s; }
.skeleton-card:nth-child(6) .skeleton-pulse { animation-delay: 0.75s; }

/* API error message */
.home-api-error {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
}


/* ══════════════════════════════════════════
   DESKTOP SIDE NAVIGATION
   Shown at ≥ 768px, hidden on mobile
   Uses same .bnav-item class so router
   active-state logic applies automatically
══════════════════════════════════════════ */

.side-nav {
  display: none; /* hidden on mobile */
}

@media (min-width: 768px) {

  /* ── Layout: sidebar + content side by side ── */

  #app-shell {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }

  /* Sidebar */
  .side-nav {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;

    /* Glass panel */
    background: rgba(8, 3, 22, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-right: 1px solid rgba(157, 92, 255, 0.15);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.40);
    padding: 28px 16px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Hide bottom nav on desktop */
  .bottom-nav {
    display: none !important;
  }

  /* Hide topbar avatar on desktop (sidebar has account link) */
  .app-topbar .topbar-avatar {
    display: none;
  }

  /* Shift topbar and main content to the right of sidebar */
  .app-topbar {
    left: 220px;
    width: calc(100% - 220px);
  }

  #main-content {
    margin-left: 220px;
    padding-top: 80px; /* topbar height */
    padding-left: 24px;
    padding-right: 24px;
  }

  /* home-inner has its own max-width — ensure it centres */
  .home-inner,
  .home-inner.view-content {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* ── Brand / Logo ── */
  .snav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .snav-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(192,132,252,0.14), rgba(124,58,237,0.08));
    border: 1px solid rgba(192,132,252,0.28);
    border-top-color: rgba(233,213,255,0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 0 20px rgba(124,58,237,0.22),
      0 2px 8px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.12);
    flex-shrink: 0;
  }

  .snav-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    white-space: nowrap;
  }

  .snav-brand-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--rose-warm);
  }

  /* ── Nav Items ── */
  .snav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .snav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: all 0.22s ease;
    position: relative;
    cursor: pointer;
  }

  .snav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
  }

  .snav-item.active {
    background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.22) 0%,
      rgba(124, 58, 237, 0.10) 100%
    );
    color: var(--text-primary);
    border: 1px solid rgba(157, 92, 255, 0.22);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.14);
  }

  /* Active left accent bar */
  .snav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(to bottom, var(--purple-warm), var(--rose-warm));
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.60);
  }

  .snav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    transition: all 0.22s ease;
    color: inherit;
  }

  .snav-item:hover .snav-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(157, 92, 255, 0.20);
  }

  .snav-item.active .snav-icon {
    background: rgba(124, 58, 237, 0.20);
    border-color: rgba(157, 92, 255, 0.30);
    color: var(--rose-warm);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
  }

  .snav-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: inherit;
    transition: color 0.22s ease;
  }

  .snav-item.active .snav-label {
    font-weight: 500;
    color: var(--text-primary);
  }

  /* ── Footer tagline ── */
  .snav-footer {
    padding: 24px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    flex-shrink: 0;
  }

  .snav-tagline {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.20);
    text-align: center;
  }

  /* ── Mini player centred in content area (right of sidebar) ── */
  #mini-player {
    /* Override the 50% viewport centering — use sidebar offset instead */
    left: calc(220px + (100% - 220px) / 2) !important;
    right: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    width: calc(100% - 220px - 32px) !important;
    max-width: 488px !important;
    bottom: 24px !important;
  }

  #mini-player.player-visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
  }

  /* ── Full player and all overlays stay full width ── */
  #full-player,
  .paywall-overlay,
  .checkout-overlay,
  .custom-confirm-overlay,
  .noxia-sheet,
  #splash-screen {
    left: 0 !important;
    width: 100% !important;
  }

  /* ── All views centred in the content column ── */
  #main-content > * {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

}

/* ── Wide desktop: slightly wider sidebar ── */
@media (min-width: 1200px) {
  .side-nav {
    width: 240px;
  }
  .app-topbar {
    left: 240px;
    width: calc(100% - 240px);
  }
  #main-content {
    margin: auto;
  }
  #mini-player {
    left: calc(240px + (100% - 240px) / 2) !important;
    width: calc(100% - 240px - 32px) !important;
  }
}