/* ==========================================================================
   लग्जरी रिक्शा — cinematic music player
   Design tokens first, then layout, then components, then responsive rules.
   ========================================================================== */

:root {
  --color-cream: #f3e7d3;
  --color-brick: #a6402f;
  --color-maroon: #4a1712;
  --color-maroon-deep: #200b09;
  --color-burnt-orange: #d97a2e;
  --color-charcoal: #17100e;
  --color-olive: #5b6b49;
  --color-gold: #e3a94c;

  --background-overlay: linear-gradient(180deg,
      rgba(32, 11, 9, 0.1) 0%,
      rgba(32, 11, 9, 0.38) 55%,
      rgba(15, 6, 5, 0.72) 100%);
  --player-bg-rgb: 43, 16, 14;
  --player-opacity: 0.85;
  --player-background: rgba(var(--player-bg-rgb), var(--player-opacity));
  --accent-color: var(--color-gold);
  --text-primary: #f8f1e4;
  --text-secondary: rgba(248, 241, 228, 0.62);
  --progress-color: var(--color-gold);

  --font-display: "Yatra One", "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --player-radius: 34px;
  --shadow-soft: 0 20px 55px rgba(8, 3, 2, 0.5);
  --shadow-btn: 0 8px 20px rgba(8, 3, 2, 0.35);

  /* ---- unified glass material: same darkness ratio + blur family for
     every translucent surface (pills, player, panels), scaled by size
     rather than picked ad hoc per component ---- */
  --glass-bg-sm: rgba(20, 8, 7, 0.45);
  --glass-bg-md: rgba(31, 13, 11, 0.85);
  --glass-bg-lg: rgba(31, 13, 11, 0.94);
  --glass-blur-sm: blur(10px);
  --glass-blur-md: blur(18px) saturate(1.3);
  --glass-blur-lg: blur(24px) saturate(1.3);
  --glass-border: 1px solid rgba(255, 255, 255, 0.07);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-maroon-deep);
  font-family: var(--font-ui);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

button:focus-visible,
a:focus-visible,
.progress-track:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-gold);
  border-radius: 4px;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ==========================================================================
   BACKGROUND LAYER
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
}

.bg-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 600ms ease;
}

.skyline-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.string-bulbs circle {
  filter: drop-shadow(0 0 4px rgba(255, 217, 138, 0.85));
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease;
}

.bg-photo.is-visible {
  opacity: 1;
}

.bg-photo--mobile {
  display: none;
}

.bg-photo--dynamic {
  filter: blur(38px) saturate(1.15) brightness(0.6);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 1100ms ease;
}

.bg-photo--dynamic.is-visible {
  opacity: 0.65;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--background-overlay);
}

.bg-grain {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2%, 2%);
  }

  40% {
    transform: translate(2%, -1%);
  }

  60% {
    transform: translate(-1%, -2%);
  }

  80% {
    transform: translate(1%, 1%);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* ==========================================================================
   RAIN EFFECT
   ========================================================================== */

.rain-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms ease;
  overflow: hidden;
}

.rain-layer.is-active {
  opacity: 1;
}

.raindrop {
  position: absolute;
  top: -10%;
  width: 1.5px;
  height: 70px;
  background: linear-gradient(180deg, rgba(210, 225, 245, 0) 0%, rgba(210, 225, 245, 0.55) 60%, rgba(210, 225, 245, 0.75) 100%);
  animation-name: rainFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes rainFall {
  from {
    transform: translateY(-10vh);
  }

  to {
    transform: translateY(110vh);
  }
}

/* ==========================================================================
   TOP-LEFT: WEATHER + CLOCK PILL
   ========================================================================== */

.top-left-pill {
  position: fixed;
  top: 22px;
  left: 62px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 30px;
  background: var(--glass-bg-sm);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.clock {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.weather-chip {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
}

.location-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 160ms ease;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chip svg {
  flex: none;
}

#locationName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chip:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   LOCATION SEARCH PANEL
   ========================================================================== */

.location-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 4, 3, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.location-search-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.location-search-panel {
  position: fixed;
  top: 70px;
  left: 62px;
  z-index: 50;
  width: min(340px, 88vw);
  max-height: min(60vh, 420px);
  max-height: min(60dvh, 420px);
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.location-search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.location-search-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  flex: none;
}

.location-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-primary);
}

.location-search-input::placeholder {
  color: var(--text-secondary);
}

.location-search-close {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 160ms ease, color 160ms ease;
}

.location-search-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.location-search-results {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.location-result-row {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 140ms ease;
}

.location-result-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.location-result-row:active {
  background: rgba(255, 255, 255, 0.12);
}

.location-result-status {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   TOP-RIGHT: LIKE + ONLINE + SOCIAL LINKS
   ========================================================================== */

.service-nav {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.like-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 30px;
  background: var(--glass-bg-sm);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.like-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.like-pill:active {
  transform: scale(0.96);
}

.like-pill.is-liked {
  color: #ff6b6b;
}

.like-pill.is-liked #heartIcon {
  fill: #ff6b6b;
  stroke: #ff6b6b;
}

#heartIcon {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), fill 160ms ease, stroke 160ms ease;
}

.like-pill.is-liked #heartIcon {
  animation: heartPop 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.online-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 30px;
  background: var(--glass-bg-sm);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6cd67a;
  animation: pulseDot 2.2s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 214, 122, 0.55);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(108, 214, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(108, 214, 122, 0);
  }
}

.nav-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.9;
  padding: 5px 8px;
  border-radius: 8px;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  user-select: none;
}

.nav-service-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-service-link:active {
  transform: scale(0.96);
}

.nav-service-icon {
  flex: none;
  display: inline-block;
  color: currentColor;
}

.nav-service-arrow {
  flex: none;
  opacity: 0.7;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-service-link:hover .nav-service-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* ==========================================================================
   HERO TITLE
   ========================================================================== */

.hero-title {
  position: fixed;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: opacity 400ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
}

.hero-title-img {
  width: auto;
  height: auto;
  max-width: min(580px, 72vw);
  max-height: 55vh;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  margin-top: 24vh;
}

.hero-title.is-hidden {
  opacity: 0;
}

/* ==========================================================================
   STATUS / LOADING / ERROR BANNER
   ========================================================================== */

.status-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(20, 8, 7, 0.55);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  font-size: 13.5px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-banner.is-visible {
  opacity: 1;
}

.status-banner.is-error {
  background: rgba(90, 20, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(248, 241, 228, 0.3);
  border-top-color: var(--color-gold);
  animation: spin 800ms linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   TOAST — brief, low-priority confirmations (distinct from status-banner,
   which is reserved for loading/error states that block understanding)
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 148px;
  z-index: 15;
  padding: 9px 18px;
  border-radius: 24px;
  background: rgba(20, 8, 7, 0.72);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 620px) {
  .toast {
    bottom: 118px;
    max-width: 88vw;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   YOUTUBE PLAYER — functional but invisible
   ========================================================================== */

.yt-hidden {
  position: fixed;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  bottom: 0;
  left: 0;
  z-index: -1;
}

/* ==========================================================================
   FLOATING PLAYER ISLAND
   ========================================================================== */

.player {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: min(860px, 94vw);
  min-height: 104px;
  padding: 14px 28px 14px 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(46, 24, 20, 0.88) 0%,
    rgba(125, 45, 34, 0.88) 55%,
    rgba(172, 60, 44, 0.88) 100%
  );
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate(-50%, 40px);
  opacity: 0;
  animation: playerEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

@keyframes playerEnter {
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Mobile override for playerEnter — shift right by half the sidebar width */
@media (max-width: 620px) {
  @keyframes playerEnter {
    to {
      transform: translate(calc(-50% + 18px), 0);
      opacity: 1;
    }
  }
}

.player:hover {
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- left: circular art disc with vinyl center ---- */

.player-art-wrap {
  position: relative;
  flex: none;
  width: 74px;
  height: 74px;
  touch-action: pan-y;
  cursor: grab;
}

.player-art-wrap:active {
  cursor: grabbing;
}

.player-art-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.player-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2b0f0d;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.3)'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34%;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  animation: rotateArt 16s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.player.is-playing .player-art {
  animation-play-state: running;
}

.player-art-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #140706;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}

@keyframes rotateArt {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 3;
}

.swipe-hint--left {
  left: -6px;
}

.swipe-hint--right {
  right: -6px;
}

.player-art-wrap:hover .swipe-hint {
  opacity: 0.85;
}

/* ---- center body: track info + scrubber + time ---- */

.player-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.track-meta {
  width: 100%;
  overflow: hidden;
}

.track-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.track-artist {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.track-subtitle {
  display: none;
}

/* ---- Scrubber Track ---- */

.progress-row {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  touch-action: none;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.progress-track::after {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 0;
  right: 0;
  z-index: 5;
}

.progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.progress-fill-mask {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0%;
  height: 4px;
  border-radius: 4px;
  background: #ffffff;
  transform: translateY(-50%);
  pointer-events: none;
}

.progress-handle {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---- Time Display: 0:05 / 5:04 ---- */

.time-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.time-divider {
  opacity: 0.6;
}

.time-label {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.waveform-row {
  display: none;
}

/* ---- Right Controls ---- */

.player-controls {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 6px;
}

.ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.ctrl-btn:active {
  transform: scale(0.94);
}

.shuffle-btn.is-active,
.queue-btn.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  opacity: 1;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #110706;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 160ms ease;
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: #110706;
  margin-left: 2px;
}

#iconPause {
  margin-left: 0;
}

.play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.play-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   QUEUE DRAWER
   ========================================================================== */

.queue-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(10, 4, 3, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.queue-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.queue-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(560px, 94vw);
  max-height: min(64vh, 520px);
  max-height: min(64dvh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 55px rgba(8, 3, 2, 0.55);
  transform: translate(-50%, 100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: none;
}

.queue-panel.is-open {
  transform: translate(-50%, 0);
}

.queue-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(248, 241, 228, 0.28);
  margin: 12px auto 4px;
  flex: none;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px 12px;
  flex: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.queue-search-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  flex: none;
}

.queue-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-primary);
}

.queue-search-input::placeholder {
  color: var(--text-secondary);
}

.queue-search-clear {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 160ms ease, color 160ms ease;
}

.queue-search-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.queue-search-empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.queue-list-item.is-filtered-out {
  display: none;
}

.queue-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.queue-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 160ms ease, color 160ms ease;
}

.queue-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 14px;
  background: none;
  text-align: left;
  transition: background 140ms ease;
}

.queue-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.queue-row:active {
  background: rgba(255, 255, 255, 0.1);
}

.queue-row-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background-color: var(--color-maroon);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(248,241,228,0.28)'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}

.queue-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.queue-row-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row-artist {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row-index {
  flex: none;
  width: 20px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-row.is-current {
  background: rgba(227, 169, 76, 0.12);
}

.queue-row.is-current .queue-row-title,
.queue-row.is-current .queue-row-index {
  color: var(--color-gold);
}

/* now-playing equalizer — replaces the track number on the current row */
.queue-row-index .eq-bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 12px;
}

.queue-row.is-current .queue-row-index .eq-num {
  display: none;
}

.queue-row.is-current .queue-row-index .eq-bars {
  display: flex;
}

.eq-bars span {
  width: 2.5px;
  border-radius: 1px;
  background: var(--color-gold);
  animation: eqBounce 900ms ease-in-out infinite;
}

.eq-bars span:nth-child(1) {
  height: 40%;
  animation-delay: -600ms;
}

.eq-bars span:nth-child(2) {
  height: 100%;
  animation-delay: -300ms;
}

.eq-bars span:nth-child(3) {
  height: 65%;
  animation-delay: 0ms;
}

.queue-row.is-current.is-paused .eq-bars span {
  animation-play-state: paused;
  height: 30% !important;
}

@keyframes eqBounce {

  0%,
  100% {
    height: 30%;
  }

  50% {
    height: 100%;
  }
}

/* ==========================================================================
   BORDERLESS CURVED OPTION WHEEL (PLAYLIST SELECTOR)
   ========================================================================== */

.playlist-wheel-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, 86vw);
  height: 56vh;
  height: 56dvh;
  max-height: 500px;
  min-height: 300px;
  z-index: 12;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  touch-action: none;
}

/* Soft ambient shadow/vignette glow behind the option wheel for maximum readability */
.playlist-wheel-container::before {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -20px;
  width: 115%;
  background: radial-gradient(ellipse 90% 75% at 0% 50%, rgba(12, 4, 3, 0.78) 0%, rgba(12, 4, 3, 0.5) 45%, rgba(12, 4, 3, 0.15) 75%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
  border-radius: 0 50% 50% 0;
}

.playlist-wheel-mount {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.option-wheel {
  --ow-text-color: rgba(255, 255, 255, 0.52);
  --ow-active-color: #ffffff;
  --ow-font-size: 1.7rem;
  --ow-inset: 42px;

  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
}

.option-wheel--dragging {
  cursor: grabbing;
}

/* Each option is absolutely centered, then offset along the curve by the
   rAF loop through transform/opacity/filter, so everything stays in step. */
.option-wheel__item {
  position: absolute;
  top: 50%;
  left: var(--ow-inset);
  white-space: nowrap;
  font-family: var(--font-ui), "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--ow-font-size);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.01em;
  transform-origin: left center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  /* --ow-p goes 0 -> 1 as an option approaches the middle of the wheel */
  color: color-mix(in srgb, var(--ow-active-color) calc(var(--ow-p, 0) * 100%), var(--ow-text-color));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 3px 12px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.7);
  transition: text-shadow 200ms ease, color 150ms ease;
  pointer-events: auto;
}

.option-wheel--right .option-wheel__item {
  left: auto;
  right: var(--ow-inset);
  transform-origin: right center;
}

.option-wheel__item--selected {
  font-weight: 700;
  color: var(--ow-active-color);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.65), 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.9);
}

.option-wheel__item:hover:not(.option-wheel__item--selected) {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Responsive Scaling */
@media (max-width: 900px) {
  .playlist-wheel-container {
    width: min(380px, 85vw);
    height: 50vh;
    height: 50dvh;
    max-height: 420px;
  }

  .option-wheel {
    --ow-font-size: 1.45rem;
    --ow-inset: 30px;
  }
}

@media (max-width: 620px) {
  .playlist-wheel-container {
    width: min(340px, 88vw);
    height: 46vh;
    height: 46dvh;
    max-height: 360px;
    top: 46%;
  }

  .playlist-wheel-container::before {
    width: 120%;
    background: radial-gradient(ellipse 95% 80% at 0% 50%, rgba(10, 4, 3, 0.82) 0%, rgba(10, 4, 3, 0.55) 50%, rgba(10, 4, 3, 0.18) 78%, transparent 100%);
  }

  .option-wheel {
    --ow-font-size: 1.3rem;
    --ow-inset: 22px;
  }
}

@media (max-width: 380px) {
  .playlist-wheel-container {
    width: min(300px, 90vw);
    height: 42vh;
    height: 42dvh;
  }

  .option-wheel {
    --ow-font-size: 1.15rem;
    --ow-inset: 16px;
  }
}

@media (max-height: 500px) {
  .playlist-wheel-container {
    height: 65vh;
    height: 65dvh;
    max-height: 260px;
  }

  .option-wheel {
    --ow-font-size: 1.15rem;
    --ow-inset: 20px;
  }
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 900px) {
  .top-left-pill {
    top: 18px;
    left: 58px;
    padding: 7px 12px;
  }

  .location-search-panel {
    top: 62px;
    left: 58px;
  }

  .service-nav {
    top: 18px;
    right: 18px;
  }

  .player {
    width: 92vw;
  }

  .hero-title-img {
    max-width: min(480px, 78vw);
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 620px) {
  /* ---- Top Header: clean non-overlapping layout ---- */
  .top-left-pill {
    top: 12px;
    left: 48px;
    padding: 6px 10px;
    gap: 7px;
    max-width: calc(100vw - 180px);
  }

  .clock {
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .weather-chip {
    font-size: 13px;
    display: flex;
    align-items: center;
    line-height: 1;
  }

  .location-chip {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    max-width: 80px;
  }

  .location-search-panel {
    top: 50px;
    left: 48px;
    width: min(310px, calc(100vw - 60px));
  }

  .service-nav {
    top: 12px;
    right: 12px;
    gap: 6px;
  }

  .like-pill {
    display: flex;
    padding: 5px 9px;
    font-size: 11px;
    gap: 4px;
  }

  .online-pill {
    padding: 5px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .nav-service-link {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-sm);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-service-link span,
  .nav-service-arrow {
    display: none;
  }

  .nav-service-icon {
    width: 15px;
    height: 15px;
  }

  /* ---- Mobile Background Image ---- */
  .bg-photo--mobile.is-visible {
    display: block;
  }

  .bg-photo--mobile.is-visible ~ .bg-photo:not(.bg-photo--mobile) {
    opacity: 0;
  }

  /* ---- Central Hero Logo Image ---- */
  .hero-title {
    top: 26%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-title-img {
    margin-top: 0 !important;
    max-width: min(300px, 78vw);
    max-height: 24vh;
  }

  /* ---- Floating Player Bar: Horizontal Pill Capsule Matching Image 2 ---- */
  .player {
    bottom: 16px;
    /* Shift right by half the sidebar toggle width (36px) so the pill
       doesn't overlap the hamburger tab on the left edge. */
    width: min(420px, calc(92vw - 18px));
    transform: translate(calc(-50% + 18px), 0);
    min-height: 82px;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px 10px 10px;
    border-radius: 999px;
    gap: 10px;
  }

  .player-art-wrap {
    width: 62px;
    height: 62px;
    flex: none;
    margin: 0;
  }

  .player-art-center {
    width: 12px;
    height: 12px;
  }

  .player-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .track-meta {
    width: 100%;
    text-align: left;
  }

  .track-title {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .track-artist {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .progress-row {
    margin-top: 4px;
    width: 100%;
    touch-action: none;
  }

  .progress-track {
    height: 14px;
    touch-action: none;
  }

  .progress-track::after {
    content: "";
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -4px;
    right: -4px;
    z-index: 5;
  }

  .progress-handle {
    width: 10px;
    height: 10px;
  }

  .time-row {
    margin-top: 2px;
    font-size: 10px;
    justify-content: flex-start;
    gap: 3px;
  }

  .time-label {
    font-size: 10px;
  }

  .player-controls {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
  }

  .ctrl-btn {
    width: 34px;
    height: 34px;
    padding: 6px;
    position: relative;
    touch-action: manipulation;
  }

  .ctrl-btn::before {
    content: "";
    position: absolute;
    inset: -6px;
  }

  .ctrl-btn svg {
    width: 18px;
    height: 18px;
  }

  .shuffle-btn,
  .queue-btn {
    display: none;
  }

  .play-btn {
    width: 48px;
    height: 48px;
    touch-action: manipulation;
  }

  .play-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .top-left-pill {
    top: 10px;
    left: 42px;
    padding: 4px 8px;
    gap: 5px;
    max-width: calc(100vw - 150px);
  }

  .clock {
    font-size: 10.5px;
  }

  .weather-chip {
    font-size: 12px;
  }

  .location-chip {
    max-width: 55px;
    font-size: 10px;
  }

  .sidebar-toggle {
    width: 32px;
  }

  .location-search-panel {
    top: 46px;
    left: 40px;
    width: calc(100vw - 48px);
  }

  .service-nav {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .online-pill {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .hero-title-img {
    max-width: min(260px, 84vw);
  }
}

/* ==========================================================================
   RESPONSIVE — SHORT / LANDSCAPE VIEWPORTS
   Width-based breakpoints alone miss rotated phones and short windows,
   where the fixed-top hero title and fixed-bottom player can crowd or
   overlap since neither is aware of total available height.
   ========================================================================== */

@media (max-height: 480px) and (orientation: landscape) {

  .top-left-pill,
  .service-nav {
    top: 10px;
  }

  .hero-title {
    top: 18%;
  }

  .hero-title-img {
    max-width: min(300px, 50vw);
    max-height: 20vh;
  }

  .player {
    bottom: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .player-art-wrap {
    width: 44px;
    height: 44px;
  }

  .waveform-bars {
    height: 22px;
  }

  .scrubber-col {
    gap: 4px;
  }

  .location-search-panel {
    top: 52px;
    max-height: min(70vh, 320px);
    max-height: min(70dvh, 320px);
  }

  .queue-panel {
    max-height: min(76vh, 320px);
    max-height: min(76dvh, 320px);
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .player-art,
  .bg-grain,
  .online-dot,
  .player,
  .raindrop,
  .waveform-bars span,
  .eq-bars span {
    animation: none !important;
  }

  .player {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PLAYLIST SIDEBAR
   ========================================================================== */

/* -- Backdrop ---------------------------------------------------------------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(10, 3, 2, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* -- Sidebar panel ----------------------------------------------------------- */
.playlist-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 40;
  display: flex;
  flex-direction: row;
  pointer-events: auto;
}

/* -- Toggle tab (always visible, left edge) ---------------------------------- */
.sidebar-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 100%;
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-left: none;
  border-top: none;
  border-bottom: none;
  cursor: pointer;
  padding: 0;
  transition: background 220ms ease, width 380ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-toggle:hover {
  background: rgba(50, 20, 17, 0.92);
}

/* Hamburger lines */
.sidebar-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.sidebar-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease, width 300ms ease;
}

/* Animate to X when open */
.playlist-sidebar.is-open .sidebar-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.playlist-sidebar.is-open .sidebar-toggle-lines span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.playlist-sidebar.is-open .sidebar-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-toggle-label {
  /* Rotated vertically for the slim tab */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(248, 241, 228, 0.45);
  margin-top: 10px;
  user-select: none;
  transition: opacity 300ms ease;
}

.playlist-sidebar.is-open .sidebar-toggle-label {
  opacity: 0;
}

/* -- Inner panel (slides in from left) --------------------------------------- */
.sidebar-inner {
  width: 220px;
  height: 100%;
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 4px 0 32px rgba(6, 2, 1, 0.6);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  pointer-events: none;
}

.playlist-sidebar.is-open .sidebar-inner {
  transform: translateX(0);
  pointer-events: auto;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 241, 228, 0.35);
  margin: 0;
  padding: 28px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* -- Sidebar list ------------------------------------------------------------ */
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}

.sidebar-list::-webkit-scrollbar {
  display: none;
}

/* -- Sidebar items ----------------------------------------------------------- */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 150ms ease;
}

.sidebar-item:hover {
  background: rgba(163, 64, 47, 0.18);
  transform: translateX(3px);
}

.sidebar-item.is-active {
  background: rgba(227, 169, 76, 0.10);
  border-left-color: var(--color-gold);
}

.sidebar-item.is-active .sidebar-item-num {
  color: var(--color-gold);
}

.sidebar-item-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 28px;
  line-height: 1;
  transition: color 180ms ease;
}

.sidebar-item-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sidebar-item.is-active .sidebar-item-label {
  color: var(--text-primary);
}

/* -- Background crossfade transition ---------------------------------------- */
.bg-photo {
  transition: opacity 350ms ease !important;
}

/* -- Mobile tweaks ----------------------------------------------------------- */
@media (max-width: 620px) {
  .sidebar-toggle {
    width: 36px;
  }

  .sidebar-inner {
    width: 195px;
  }

  .sidebar-heading {
    padding: 22px 16px 8px;
  }

  .sidebar-item {
    padding: 12px 16px;
  }

  .sidebar-item-num {
    font-size: 1.1rem;
  }
}