:root {
  --cream: #faf6ec;
  --cream-dark: #efe8d5;
  --ink: #111111;
  --ink-soft: #1b1b20;
  --lime: #c8ff00;
  --coral: #ff4d2d;
  --cobalt: #3b5bff;
  --lavender: #d9b8ff;
  --yellow: #ffd60a;
  --mint: #5effb1;
  --white: #ffffff;
  --border-lg: 3px solid #111111;
  --border-md: 2.5px solid #111111;
  --border-sm: 2px solid #111111;
  --shadow-lg: 5px 5px 0px #111111;
  --shadow-md: 3.5px 3.5px 0px #111111;
  --shadow-sm: 2px 2px 0px #111111;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea {
  user-select: text;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   LONGER KINETIC NEO-BRUTALIST ENTRY SPLASH SCREEN (~4.6s)
   ========================================================= */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--ink);
  background-image:
    radial-gradient(rgba(200, 255, 0, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #141418 0%, #0b0b0e 100%);
  background-size: 18px 18px, 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 26px 42px;
  color: var(--cream);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.splash-screen.hide {
  transform: translateY(-104%);
  pointer-events: none;
}

.splash-top-marquee {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.splash-tag {
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--cream);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 800;
}

.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-logo-stage {
  position: relative;
  width: 156px;
  height: 156px;
  margin-bottom: 24px;
  animation: logoDropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.splash-pulse-ring {
  position: absolute;
  inset: -14px;
  border-radius: 52px;
  border: 3px solid var(--lime);
  opacity: 0;
  animation: splashRing 1.8s ease-out infinite;
}
.splash-pulse-ring.ring-2 {
  border-color: var(--coral);
  animation-delay: 0.9s;
}
@keyframes splashRing {
  0% { transform: scale(0.88); opacity: 0.85; }
  100% { transform: scale(1.26); opacity: 0; }
}

.splash-orbit-sticker {
  position: absolute;
  top: -10px;
  right: -20px;
  background: var(--coral);
  color: var(--white);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--lime);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  transform: rotate(10deg);
  animation: floatBadge 2s ease-in-out infinite alternate;
}

@keyframes logoDropIn {
  0% { transform: scale(0.42) rotate(-14deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes floatBadge {
  0% { transform: rotate(8deg) translateY(0); }
  100% { transform: rotate(14deg) translateY(-6px); }
}

.spin-reel {
  transform-box: fill-box;
  transform-origin: center;
  animation: reelSpin 2s linear infinite;
}

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

.splash-title {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 0.98;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--cobalt);
  margin-bottom: 10px;
}
.splash-title span { color: var(--lime); }

.splash-sub {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.72);
  margin-bottom: 24px;
}

.splash-eq {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}
.splash-eq span {
  width: 8px;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  animation: splashEqBounce 0.6s ease-in-out infinite alternate;
}
.splash-eq span:nth-child(2) { background: var(--coral); animation-delay: 0.12s; }
.splash-eq span:nth-child(3) { background: var(--yellow); animation-delay: 0.24s; }
.splash-eq span:nth-child(4) { background: var(--lavender); animation-delay: 0.36s; }
.splash-eq span:nth-child(5) { background: var(--mint); animation-delay: 0.18s; }

@keyframes splashEqBounce {
  0% { height: 8px; }
  100% { height: 32px; }
}

.splash-loader-wrap {
  width: 100%;
  max-width: 340px;
}
.splash-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  color: var(--lime);
}
.splash-bar-outer {
  width: 100%;
  height: 20px;
  background: #232329;
  border: 2.5px solid var(--cream);
  border-radius: 99px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--coral);
}
.splash-bar-fill {
  height: 100%;
  width: 6%;
  background: linear-gradient(90deg, var(--lime), var(--mint));
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 520px) {
  body {
    background: #141418;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .app-shell {
    height: min(880px, 95dvh);
    border-radius: 36px;
    border: 7px solid #222228;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
  }
}

/* Top Header */
.top-header {
  padding: 13px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border-bottom: var(--border-md);
  z-index: 20;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-logo-mini { width: 36px; height: 36px; }
.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1;
}
.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #444;
  margin-top: 2px;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.bg-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lime);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.icon-square-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.icon-square-btn:active, .bg-status-chip:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Main Scrollable Body */
.main-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding: 14px 16px 156px;
  scrollbar-width: none;
}
.main-scroll::-webkit-scrollbar { display: none; }

.tab-page { display: none; animation: fadeIn 0.18s ease; }
.tab-page.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   EMPTY FIRST-TIME HOME ONBOARDING + SPOTIFY PERSONAL HOME
   ========================================================= */
.empty-home-hero {
  background: var(--lime);
  border: var(--border-lg);
  box-shadow: var(--shadow-lg);
  border-radius: 24px;
  padding: 26px 20px;
  text-align: center;
  margin-top: 8px;
}
.empty-home-hero h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 14px 0 10px;
}
.empty-home-hero p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #222;
  margin-bottom: 18px;
}

/* Spotify-style Home Greeting & Daily Mix Cards */
.home-greeting-bar {
  margin-bottom: 12px;
}
.home-greeting-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.mix-card {
  width: 146px;
  flex-shrink: 0;
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 9px;
  cursor: pointer;
  position: relative;
}
.mix-card:active { transform: translate(1.5px, 1.5px); }
.mix-card-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: var(--border-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.mix-card-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mix-tag-ribbon {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--lime);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}
@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 45, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(255, 77, 45, 0); }
}
.radar-badge.listening {
  animation: radarPulse 1s ease-out infinite;
  background: var(--coral);
}

/* Spotify 2-Column Compact "Jump Back In" Grid */
.jump-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.jump-card {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  cursor: pointer;
}
.jump-card:active { transform: translate(1.5px, 1.5px); }
.jump-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-right: var(--border-sm);
  flex-shrink: 0;
}
.jump-card-title {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section Headings */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 10px;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Horizontal Spotify Album Cards Shelf */
.albums-shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.albums-shelf::-webkit-scrollbar { display: none; }

.album-card {
  width: 146px;
  flex-shrink: 0;
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 9px;
  cursor: pointer;
  transition: transform 0.1s;
}
.album-card:active { transform: translate(2px, 2px); }
.album-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: var(--border-sm);
  object-fit: cover;
  margin-bottom: 8px;
  background: #222;
}
.album-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.album-card-sub {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Albums 2-Column Grid (when filtering by Albums) */
.albums-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.albums-grid .album-card {
  width: 100%;
}

/* Track Rows */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.crate-row {
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.crate-row.playing {
  background: #ebffd1;
}
.crate-thumb {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  border: var(--border-sm);
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.crate-info { flex: 1; min-width: 0; }
.crate-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.crate-row.playing .crate-title {
  color: var(--cobalt);
  font-weight: 800;
}
.crate-sub {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}
.explicit-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 3px;
}
.row-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: var(--border-sm);
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.row-icon-btn.offline-saved {
  background: var(--mint);
}
.offline-pill {
  display: inline-block;
  background: var(--mint);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
}
.offline-pct-pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
}

/* =========================================================
   SPOTIFY-STYLE VAULT / LIBRARY TAB
   ========================================================= */
.vault-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vault-offline-badge {
  background: var(--mint);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
}
.vault-pinned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.vault-pinned-card {
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s;
}
.vault-pinned-card:active { transform: translate(1.5px, 1.5px); }
.vault-pinned-card.liked-card { background: var(--lavender); }
.vault-pinned-card.offline-card { background: var(--mint); }
.vault-pinned-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
}
.vault-pinned-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.vault-pinned-sub {
  font-size: 11px;
  font-weight: 700;
  color: #222;
}

/* =========================================================
   SEARCH AUTOCOMPLETE SUGGESTIONS & FILTER CHIPS
   ========================================================= */
.search-bar-brut {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 0 12px;
}
.search-input-wrap input {
  flex: 1;
  height: 44px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}
.brut-submit-btn {
  background: var(--cobalt);
  color: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 0 15px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Live Autocomplete Dropdown List */
.suggest-box {
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: none;
}
.suggest-box.visible { display: block; }
.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1.5px solid rgba(17,17,17,0.08);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:active { background: var(--lime); }
.suggest-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-pills {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-pill {
  background: var(--white);
  border: var(--border-sm);
  box-shadow: var(--shadow-sm);
  border-radius: 99px;
  padding: 5px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--lime);
}

/* =========================================================
   SPOTIFY-STYLE SEARCH: BROWSE ALL GRID & TOP RESULT HERO
   ========================================================= */
.browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.browse-tile {
  height: 82px;
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s;
}
.browse-tile:active { transform: translate(1.5px, 1.5px); }
.browse-tile-title {
  font-family: 'Syne', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  z-index: 2;
}
.browse-tile-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(17, 17, 17, 0.72);
  z-index: 2;
}

.top-result-card {
  background: var(--white);
  border: var(--border-lg);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}
.top-result-card img {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  border: var(--border-md);
  object-fit: cover;
  flex-shrink: 0;
}
.top-result-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 5px;
}
.top-result-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-result-sub {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}
.top-result-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  border: var(--border-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

/* =========================================================
   SPOTIFY-STYLE FLOATING MINI-PLAYER BAR (ABOVE BOTTOM NAV)
   ========================================================= */
.spotify-mini-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 80px;
  background: var(--ink-soft);
  color: var(--white);
  border: 2.5px solid var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  border-radius: 14px;
  z-index: 45;
  overflow: hidden;
  display: none;
  cursor: pointer;
}
.spotify-mini-bar.visible {
  display: block;
}
.mini-bar-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}
.mini-bar-art {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  object-fit: cover;
  flex-shrink: 0;
}
.mini-bar-meta {
  flex: 1;
  min-width: 0;
}
.mini-bar-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}
.mini-bar-artist {
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mini-ctrl-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mini-ctrl-btn.liked { color: var(--coral); }
.mini-thin-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.mini-thin-fill {
  height: 100%;
  width: 0%;
  background: var(--lime);
  transition: width 0.2s linear;
}

/* =========================================================
   SPOTIFY-STYLE FULL-SCREEN ALBUM OVERLAY PAGE
   ========================================================= */
.album-overlay-page {
  position: absolute;
  inset: 0;
  background: var(--cream);
  z-index: 55;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.album-overlay-page.open {
  transform: translateX(0);
}
.album-top-nav {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: var(--border-md);
  background: var(--cream);
}
.album-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 156px;
  scrollbar-width: none;
}
.album-scroll::-webkit-scrollbar { display: none; }

.album-hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}
.album-hero-cover {
  width: 204px;
  height: 204px;
  border-radius: 18px;
  border: var(--border-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  margin-bottom: 14px;
  background: #222;
}
.album-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 5px;
}
.album-hero-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: #444;
}
.album-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  padding-bottom: 12px;
  border-bottom: var(--border-sm);
}
.spotify-big-play-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  border: var(--border-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.album-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1.5px solid rgba(17,17,17,0.09);
  cursor: pointer;
}
.album-track-item.playing {
  background: #ebffd1;
  border-radius: 10px;
}
.album-track-num {
  width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #666;
}

/* =========================================================
   SPOTIFY-STYLE FULL-SCREEN "NOW PLAYING" PLAYER SHEET
   ========================================================= */
.spotify-full-player {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1e2229 0%, #111115 55%, #0b0b0e 100%);
  color: var(--white);
  z-index: 70;
  overflow-y: auto;
  padding: 16px 20px 44px;
  transform: translateY(104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
}
.spotify-full-player::-webkit-scrollbar { display: none; }
.spotify-full-player.open {
  transform: translateY(0);
}

.sp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.sp-down-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sp-context-col {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.sp-context-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.sp-context-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-mode-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 2px;
}
.sp-mode-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 99px;
  cursor: pointer;
}
.sp-mode-btn.active {
  background: var(--lime);
  color: var(--ink);
}

/* Big Spotify Square Cover Art Stage */
.sp-art-stage {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1 / 1;
  margin: 4px auto 24px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--lime);
  overflow: hidden;
  background: #000;
  position: relative;
}
.sp-art-stage.video-mode {
  aspect-ratio: 16 / 9;
  margin: 34px auto 44px;
}
.sp-art-stage img,
.sp-art-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-art-stage video { display: none; }
.sp-art-stage.video-mode video { display: block; }
.sp-art-stage.video-mode img { display: none; }

.sp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.sp-song-title {
  font-family: 'Syne', sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 4px;
}
.sp-song-artist {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
}
.sp-circle-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sp-circle-action.liked {
  background: var(--coral);
  border-color: var(--coral);
}
.sp-circle-action.offline {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

/* Spotify Seekbar */
.sp-seek-wrap {
  margin-bottom: 16px;
}
.sp-seek-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.22);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
}
.sp-seek-fill {
  height: 100%;
  width: 0%;
  background: var(--lime);
  border-radius: 99px;
  position: relative;
}
.sp-seek-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
}
.sp-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.68);
  margin-top: 7px;
}

/* Spotify 5-Control Transport Row */
.sp-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.sp-sec-ctrl {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.78);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sp-sec-ctrl.active { color: var(--lime); }
.sp-main-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sp-device-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 22px;
}

/* Spotify Below-the-Fold Lyrics & Queue Cards */
.sp-sub-card {
  background: #1c1f26;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}
.sp-sub-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.lyrics-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-height: 260px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}
.lyrics-text::-webkit-scrollbar { display: none; }
.lyric-line {
  padding: 6px 0;
  color: rgba(255,255,255,0.35);
  transition: color 0.25s, transform 0.25s;
  transform-origin: left center;
  cursor: pointer;
}
.lyric-line.past { color: rgba(255,255,255,0.55); }
.lyric-line.active {
  color: var(--lime);
  transform: scale(1.06);
  text-shadow: 0 0 14px rgba(200,255,0,0.35);
}

/* Studio Cards */
/* In-Player Equalizer & FX Bottom Sheet */
.eq-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 82;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.eq-sheet-backdrop.open {
  display: flex;
}
.eq-sheet-card {
  width: 100%;
  background: var(--ink-soft);
  border-top: 3px solid var(--lime);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px 28px;
  color: var(--white);
  animation: fadeIn 0.2s ease;
}
.studio-dark-card {
  background: var(--ink-soft);
  color: var(--white);
  border: var(--border-lg);
  box-shadow: 5px 5px 0 var(--lime);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}
.studio-clean-card {
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-md);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 14px;
}
.eq-sliders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px 6px;
}
.eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.eq-band-col input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 74px;
  width: 24px;
  accent-color: var(--lime);
}
.eq-band-col span {
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
}
.fx-row-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}
.fx-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.fx-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 5px 9px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.fx-pill.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

/* Full-Screen Spotify Lyrics Overlay */
.full-lyrics-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1b2218 0%, #111115 100%);
  color: var(--white);
  z-index: 75;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 26px;
  transform: translateY(104%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.full-lyrics-overlay.open {
  transform: translateY(0);
}
.full-lyrics-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px;
  scrollbar-width: none;
}
.full-lyrics-scroll::-webkit-scrollbar { display: none; }
.full-lyrics-scroll .lyric-line {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  line-height: 1.38;
  padding: 10px 0;
}
.studio-card {
  background: var(--lavender);
  border: var(--border-lg);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
}
.studio-card.shazam-theme { background: #bde0fe; }
.studio-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.brand-circle-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--white); border: var(--border-sm); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.studio-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 800; }
.studio-desc { font-size: 12px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.studio-result-box {
  margin-top: 12px; background: var(--white); border: var(--border-sm);
  border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 700; display: none;
}
.studio-result-box.visible { display: block; }

/* Bottom Nav */
.bottom-nav-brut {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: var(--ink);
  border-top: var(--border-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 8px 6px;
  z-index: 58;
}
.nav-tab-btn {
  background: transparent;
  border: none;
  color: rgba(250, 246, 236, 0.65);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 13px;
  cursor: pointer;
}
.nav-tab-btn.active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

/* Modals & Toast */
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(17, 17, 17, 0.82);
  z-index: 85; display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: 100%; max-width: 380px; background: var(--cream);
  border: var(--border-lg); box-shadow: 6px 6px 0 var(--lime);
  border-radius: 22px; padding: 18px;
}
.mini-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); border: var(--border-sm); box-shadow: 2px 2px 0 var(--ink);
  border-radius: 9px; padding: 5px 10px; font-family: inherit; font-size: 11px; font-weight: 800; color: var(--ink); cursor: pointer;
}
.server-choice-btn {
  height: 52px;
  background: var(--white);
  border: var(--border-md);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.server-choice-btn.active {
  background: var(--lime);
}
.toast-banner {
  position: absolute; bottom: 142px; left: 16px; right: 16px;
  background: var(--ink); color: var(--lime); border: 2px solid var(--lime);
  border-radius: 12px; padding: 10px 14px; font-size: 12px; font-weight: 700;
  z-index: 90; display: none;
}
.toast-banner.show { display: block; }
.spin-loader { animation: reelSpin 0.85s linear infinite; }
