/* ═══════════════════════════════════════════════════════════════════════
   TUNIFY — Spotify Encore Design System (Exact Match)
   Based on live Spotify Web Player CSS extraction
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: SpotifyMixUI;
  font-weight: 400;
  font-display: swap;
  src: url(https://encore.scdn.co/fonts/SpotifyMixUI-Regular-cc3b1de388efa4cbca6c75cebc24585e.woff2) format("woff2");
}
@font-face {
  font-family: SpotifyMixUI;
  font-weight: 700;
  font-display: swap;
  src: url(https://encore.scdn.co/fonts/SpotifyMixUI-Bold-4264b799009b1db5c491778b1bc8e5b7.woff2) format("woff2");
}
@font-face {
  font-family: SpotifyMixUITitle;
  font-weight: 800;
  font-display: swap;
  src: url(https://encore.scdn.co/fonts/SpotifyMixUITitleVariable-8769ccfde3379b7ebcadd9529b49d0cc.woff2) format("woff2");
}

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  /* App Frame tokens (sidebar, player, top bar) */
  --background-base: #000;
  --background-highlight: #141414;
  --background-press: #2b2b2b;
  --background-elevated-base: #141414;
  --background-elevated-highlight: #212121;
  --background-elevated-press: #0b0b0b;
  --background-tinted-base: rgba(255,255,255,0.13);
  --background-tinted-highlight: rgba(255,255,255,0.17);
  --background-tinted-press: rgba(255,255,255,0.24);
  --text-base: #fff;
  --text-subdued: #a9a9a9;
  --text-bright-accent: #1ed760;
  --text-negative: #f3727f;
  --essential-base: #fff;
  --essential-subdued: #747474;
  --essential-bright-accent: #1ed760;
  --decorative-subdued: #1f1f1f;

  /* Content area tokens — subtle surface layering */
  --content-bg: #121212;
  --content-highlight: #1a1a1a;
  --content-surface: #242424;
  --content-tinted-base: rgba(255,255,255,0.07);
  --content-tinted-highlight: rgba(255,255,255,0.12);
  --content-text-subdued: #a7a7a7;

  /* Player bar */
  --player-bar-bg: #181818;

  /* Encore sizing tokens */
  --encore-spacing-tighter-5: 2px;
  --encore-spacing-tighter-4: 4px;
  --encore-spacing-tighter-3: 6px;
  --encore-spacing-tighter-2: 8px;
  --encore-spacing-tighter: 12px;
  --encore-spacing-base: 16px;
  --encore-spacing-looser: 24px;
  --encore-spacing-looser-2: 32px;
  --encore-spacing-looser-3: 48px;

  /* Typography */
  --encore-text-size-smaller-3: 0.625rem;
  --encore-text-size-smaller-2: 0.75rem;
  --encore-text-size-smaller: 0.875rem;
  --encore-text-size-base: 1rem;
  --encore-text-size-large: 1.25rem;
  --encore-text-size-larger: 1.5rem;
  --encore-text-size-larger-2: 2rem;
  --encore-text-size-larger-3: 3rem;
  --encore-text-size-larger-4: 4rem;

  /* Radii */
  --encore-border-radius-smaller: 2px;
  --encore-border-radius-base: 4px;
  --encore-border-radius-larger: 6px;
  --encore-border-radius-larger-2: 8px;
  --encore-border-radius-larger-3: 16px;
  --encore-border-radius-rounded: 9999px;

  /* Control sizes */
  --encore-control-size-smaller: 32px;
  --encore-control-size-base: 48px;
  --encore-control-size-larger: 56px;

  /* Animation */
  --encore-shortest-1: 50ms;
  --encore-shortest-2: 100ms;
  --encore-shortest-3: 150ms;
  --encore-shortest-4: 200ms;
  --encore-short-1: 250ms;
  --encore-productive: cubic-bezier(0.3, 0, 0, 1);
  --encore-productive-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --left-sidebar-width: 232px;
  --top-bar-height: 64px;
  --now-playing-bar-height: 72px;
  --content-max-width: 1955px;

  /* Fonts */
  --encore-body-font: SpotifyMixUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --encore-title-font: SpotifyMixUITitle, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100%;
  background: var(--background-base);
  color: var(--text-base);
  font-family: var(--encore-body-font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }
[data-overlayscrollbars-initialize]::-webkit-scrollbar { display: none; }

/* ─── ROOT LAYOUT (CSS Grid matching Spotify) ───────────────────────── */
.root__main-container {
  display: grid;
  grid-template-areas:
    "sidebar main";
  grid-template-columns: var(--left-sidebar-width) 1fr;
  height: 100vh;
  width: 100vw;
  background: var(--background-base);
  gap: 12px;
  padding: 12px 12px 0;
}

/* ─── LEFT SIDEBAR ──────────────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--background-base);
  border-radius: var(--encore-border-radius-larger-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sidebar__nav {
  padding: var(--encore-spacing-tighter) var(--encore-spacing-base);
  display: flex;
  flex-direction: column;
  gap: var(--encore-spacing-tighter-3);
}

.sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
  padding: var(--encore-spacing-tighter-2) var(--encore-spacing-base);
  border-radius: var(--encore-border-radius-larger);
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  color: var(--text-subdued);
  transition: color var(--encore-shortest-3) var(--encore-productive), background var(--encore-shortest-3) var(--encore-productive);
  min-height: 40px;
}
.sidebar__nav-link:hover { color: var(--text-base); background: var(--background-tinted-base); }
.sidebar__nav-link.active { color: var(--text-base); }
.sidebar__nav-link svg { width: 24px; height: 24px; flex-shrink: 0; }

.sidebar__library {
  flex: 1;
  background: var(--background-elevated-base);
  border-radius: var(--encore-border-radius-larger-2);
  margin: var(--encore-spacing-tighter-3) 12px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.sidebar__library-header {
  display: block;
  padding: var(--encore-spacing-base) var(--encore-spacing-base) var(--encore-spacing-tighter);
  text-decoration: none;
  color: inherit;
}

.sidebar__library-title {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
  color: var(--text-subdued);
  font-size: var(--encore-text-size-base);
  font-weight: 700;
  transition: color var(--encore-shortest-3) var(--encore-productive);
  cursor: pointer;
}
.sidebar__library-title:hover { color: var(--text-base); }
.sidebar__library-title svg { width: 24px; height: 24px; }

.sidebar__library-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--encore-spacing-tighter-3) var(--encore-spacing-base);
}

.sidebar__playlist-item {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter);
  padding: var(--encore-spacing-tighter-3) var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-base);
  cursor: pointer;
  transition: background var(--encore-shortest-3) var(--encore-productive);
}
.sidebar__playlist-item:hover { background: var(--background-tinted-base); }
.sidebar__playlist-item.active { background: var(--background-tinted-highlight); }
.sidebar__playlist-art {
  width: 48px;
  height: 48px;
  border-radius: var(--encore-border-radius-base);
  background: var(--background-elevated-highlight);
  flex-shrink: 0;
  object-fit: cover;
}
.sidebar__playlist-art--loves {
  background: linear-gradient(135deg, #e8115b, #ff6b9d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sidebar__playlist-info {
  flex: 1;
  min-width: 0;
}
.sidebar__playlist-name {
  font-size: var(--encore-text-size-smaller);
  font-weight: 600;
  color: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__playlist-meta {
  font-size: var(--encore-text-size-smaller-3);
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: var(--encore-spacing-tighter-5);
}

/* ─── MAIN VIEW ─────────────────────────────────────────────────────── */
.main-view {
  grid-area: main;
  background: var(--content-bg);
  border-radius: var(--encore-border-radius-larger-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

/* ─── TOP BAR (sticky header) ──────────────────────────────────────── */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--encore-spacing-base);
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }

.top-bar__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.6) 60%, transparent 100%);
  z-index: -1;
  transition: background 0.3s;
}

.top-bar__content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__left { flex: 1; }

.top-bar__greeting {
  font-family: var(--encore-title-font);
  font-size: var(--encore-text-size-larger-2);
  font-weight: 700;
  color: var(--text-base);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
}

.top-bar__search {
  flex: 1;
  max-width: 400px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter);
  background: var(--content-surface);
  border-radius: var(--encore-border-radius-rounded);
  padding: 0 var(--encore-spacing-tighter) 0 var(--encore-spacing-base);
  min-height: var(--encore-control-size-smaller);
  transition: background var(--encore-shortest-2) var(--encore-productive), box-shadow var(--encore-shortest-2) var(--encore-productive);
}
.search-field:focus-within { background: var(--content-tinted-highlight); box-shadow: 0 0 0 2px var(--text-base); }
.search-field svg { color: var(--text-subdued); flex-shrink: 0; }
.search-field__input {
  flex: 1;
  font-size: var(--encore-text-size-smaller);
  font-weight: 500;
  color: var(--text-base);
  min-height: var(--encore-control-size-smaller);
  padding: var(--encore-spacing-tighter-2) 0;
}
.search-field__input::placeholder { color: var(--text-subdued); }
.search-field__clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--background-elevated-highlight);
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.search-field__clear:hover { color: var(--text-base); }

.profile-button {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-2);
  padding: 2px var(--encore-spacing-tighter-2) 2px 2px;
  border-radius: var(--encore-border-radius-rounded);
  background: var(--background-elevated-base);
  cursor: pointer;
  transition: background var(--encore-shortest-3) var(--encore-productive), transform var(--encore-shortest-3) var(--encore-productive);
}
.profile-button:hover { background: var(--background-elevated-highlight); transform: scale(1.02); }
.profile-button__image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--background-elevated-highlight);
}
.profile-button__text {
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  color: var(--text-base);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── HOME HERO ─────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a3a2a 0%, #0d1f14 45%, #121212 100%);
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, var(--content-bg) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-looser-2);
  padding: var(--encore-spacing-looser-3) var(--encore-spacing-looser);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s cubic-bezier(0, 0, 0.2, 1) 0.15s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.home-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--content-surface);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  object-fit: cover;
  opacity: 0;
  transform: scale(0.85);
  animation: heroAvatarIn 0.5s cubic-bezier(0, 0, 0.2, 1) 0.3s forwards;
}

@keyframes heroAvatarIn {
  to { opacity: 1; transform: scale(1); }
}

.home-hero__text {
  flex: 1;
  min-width: 0;
  opacity: 0;
  transform: translateX(-12px);
  animation: heroTextIn 0.5s cubic-bezier(0, 0, 0.2, 1) 0.45s forwards;
}

@keyframes heroTextIn {
  to { opacity: 1; transform: translateX(0); }
}

.home-hero__greeting {
  font-family: var(--encore-title-font);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-base);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ─── HOME BOTTOM ACTIONS ──────────────────────────────────────────── */
.home-bottom-actions {
  display: flex;
  gap: var(--encore-spacing-base);
  justify-content: center;
  padding: var(--encore-spacing-looser-2) 0 var(--encore-spacing-looser-3);
}

.home-action-btn {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter);
  padding: var(--encore-spacing-tighter) var(--encore-spacing-base);
  border-radius: var(--encore-border-radius-pill);
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--encore-shortest) var(--encore-productive);
  border: 1px solid transparent;
}

.home-action-btn--discord {
  background: #5865F2;
  color: #fff;
}
.home-action-btn--discord:hover {
  background: #4752C4;
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}

.home-action-btn--pro {
  background: var(--content-surface);
  color: var(--text-base);
  border-color: rgba(255,255,255,0.1);
}
.home-action-btn--pro:hover {
  background: var(--content-highlight);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ─── SCROLLABLE CONTENT ────────────────────────────────────────────── */
.main-view__scroll-node {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.main-view__scroll-node-child {
  padding-top: var(--top-bar-height);
  padding-bottom: 100px;
  min-height: 100%;
}

.content-spacing {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--encore-spacing-looser) var(--encore-spacing-looser-3);
}

.content-section {
  margin-bottom: var(--encore-spacing-looser-3);
}

.content-section__title {
  font-family: var(--encore-title-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text-base);
  margin-bottom: var(--encore-spacing-tighter);
}

.page-header {
  padding: var(--encore-spacing-looser-3) 0 var(--encore-spacing-looser);
}

.page-title {
  font-family: var(--encore-title-font);
  font-size: var(--encore-text-size-larger-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-base);
}

/* ─── CARD GRID ─────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--encore-spacing-base);
}

.card {
  background: #181818;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease,
              transform var(--encore-short) var(--encore-productive),
              box-shadow var(--encore-short) var(--encore-productive);
  animation: cardFadeIn 0.4s cubic-bezier(0, 0, 0.2, 1) backwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:hover {
  background: #282828;
  transform: translateY(-2px);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card__art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #282828;
  border-radius: 6px;
  margin-bottom: 16px;
}
.card__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.card:hover .card__art { transform: scale(1.02); }
.card__btns {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.card:hover .card__btns { opacity: 1; transform: translateY(0); }
.card__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1db954 !important;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.card__play:hover { transform: scale(1.06); background: #1ed760 !important; }
.card__shuffle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #282828 !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.card__shuffle:hover { transform: scale(1.06); background: #3e3e3e !important; }
.card__pause {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1db954 !important;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.card__pause:hover { transform: scale(1.06); background: #1ed760 !important; }
.card__title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  color: #ffffff;
  line-height: 1.2;
}
.card__sub {
  font-size: 0.875rem;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.card__source {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.card__source--spotify {
  background: #1db954;
  color: #000;
}
.card__source--apple {
  background: #fc3c44;
  color: #fff;
}
.card__provider {
  display: inline-flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-3);
  margin-top: var(--encore-spacing-tighter-2);
  font-size: var(--encore-text-size-smaller-3);
  color: var(--content-text-subdued);
  font-weight: 500;
}

/* ─── ROW SCROLL (horizontal cards) ─────────────────────────────────── */
.row-scroll {
  display: flex;
  gap: var(--encore-spacing-base);
  overflow-x: auto;
  padding-bottom: var(--encore-spacing-tighter-3);
  padding-top: var(--encore-spacing-tighter-3);
}
.row-scroll::-webkit-scrollbar { height: 0; }

.row-card {
  flex: 0 0 200px;
  background: var(--content-highlight);
  border-radius: var(--encore-border-radius-larger-2);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--encore-shortest-3) var(--encore-productive);
}
.row-card:hover { background: var(--content-surface); }
.row-card__art {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--content-surface);
}
.row-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row-card__play {
  position: absolute;
  bottom: var(--encore-spacing-tighter-2);
  right: var(--encore-spacing-tighter-2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-base);
  color: var(--background-base);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--encore-shortest-3) var(--encore-productive), transform var(--encore-shortest-3) var(--encore-productive);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.row-card:hover .row-card__play { opacity: 1; transform: translateY(0); }
.row-card__body { padding: var(--encore-spacing-tighter); }
.row-card__title {
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--encore-spacing-tighter-5);
  color: var(--text-base);
  line-height: 1.2;
}
.row-card__sub {
  font-size: var(--encore-text-size-smaller-3);
  color: var(--content-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ─── PLAYLIST HERO ─────────────────────────────────────────────────── */
.playlist-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--encore-spacing-looser-3) var(--encore-spacing-looser);
  animation: heroSlideIn 0.5s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.playlist-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #535353, #121212);
  animation: heroBgZoom 8s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes heroBgZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.playlist-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.playlist-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--encore-spacing-looser-2);
  width: 100%;
  opacity: 0;
  animation: heroContentIn 0.6s cubic-bezier(0, 0, 0.2, 1) 0.2s forwards;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.playlist-hero__art {
  width: 232px;
  height: 232px;
  flex-shrink: 0;
  border-radius: var(--encore-border-radius-base);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: var(--content-surface);
}
.playlist-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-hero__info {
  flex: 1;
  min-width: 0;
}

.playlist-hero__label {
  font-size: var(--encore-text-size-smaller-3);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-base);
  margin-bottom: var(--encore-spacing-tighter);
}

.playlist-hero__type {
  font-size: var(--encore-text-size-smaller-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-base);
  margin-bottom: var(--encore-spacing-tighter);
}

.playlist-hero__title {
  font-family: var(--encore-title-font);
  font-size: clamp(2rem, 5vw, var(--encore-text-size-larger-4));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--encore-spacing-tighter-2);
  max-width: 700px;
}

.playlist-hero__meta {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
  margin-bottom: var(--encore-spacing-looser);
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-3);
}

.playlist-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
}

/* ─── TRACK LIST ────────────────────────────────────────────────────── */
.track-list-header {
  display: grid;
  grid-template-columns: 36px 1fr 180px 40px 60px;
  gap: var(--encore-spacing-base);
  padding: 0 var(--encore-spacing-tighter) var(--encore-spacing-tighter-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--encore-text-size-smaller);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--content-text-subdued);
  margin-bottom: var(--encore-spacing-tighter-3);
}

.track-list {
  display: flex;
  flex-direction: column;
}

.track-row {
  display: grid;
  grid-template-columns: 36px 1fr 180px 40px 60px;
  gap: var(--encore-spacing-base);
  padding: var(--encore-spacing-tighter-2) var(--encore-spacing-tighter);
  border-radius: var(--encore-border-radius-base);
  cursor: pointer;
  transition: background var(--encore-shortest-3) var(--encore-productive);
  align-items: center;
  animation: trackRowFadeIn 0.3s cubic-bezier(0, 0, 0.2, 1) backwards;
}
.track-row:nth-child(1) { animation-delay: 0.02s; }
.track-row:nth-child(2) { animation-delay: 0.04s; }
.track-row:nth-child(3) { animation-delay: 0.06s; }
.track-row:nth-child(4) { animation-delay: 0.08s; }
.track-row:nth-child(5) { animation-delay: 0.1s; }
.track-row:nth-child(6) { animation-delay: 0.12s; }
.track-row:nth-child(7) { animation-delay: 0.14s; }
.track-row:nth-child(8) { animation-delay: 0.16s; }
.track-row:nth-child(9) { animation-delay: 0.18s; }
.track-row:nth-child(10) { animation-delay: 0.2s; }

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

.track-row:hover { background: rgba(255, 255, 255, 0.06); }
.track-row:active { background: rgba(255, 255, 255, 0.1); }
.track-row.active .track-num { color: var(--text-bright-accent); }
.track-row.active .track-title { color: var(--text-bright-accent); }

.track-num-cell {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-num {
  font-size: var(--encore-text-size-base);
  color: var(--content-text-subdued);
  text-align: right;
  font-feature-settings: "tnum";
  line-height: 1;
  transition: opacity var(--encore-shortest) var(--encore-productive);
}
.track-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--encore-shortest) var(--encore-productive);
  color: var(--text-base);
}
.track-row:hover .track-num { opacity: 0; }
.track-row:hover .track-play-icon { opacity: 1; }
.track-row.active .track-num { display: none; }
.track-row.active .track-play-icon { display: none; }
.track-row.active .playing-bars { display: flex; }

.playing-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.playing-bars span {
  display: block;
  width: 3px;
  background: var(--text-bright-accent, #1db954);
  border-radius: 1px;
  animation: barsBounce 0.8s ease-in-out infinite;
}
.playing-bars span:nth-child(1) { animation-delay: 0s; height: 60%; }
.playing-bars span:nth-child(2) { animation-delay: 0.15s; height: 100%; }
.playing-bars span:nth-child(3) { animation-delay: 0.3s; height: 40%; }
.playing-bars span:nth-child(4) { animation-delay: 0.1s; height: 80%; }

@keyframes barsBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.track-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
  min-width: 0;
}

.track-art {
  width: 40px;
  height: 40px;
  border-radius: var(--encore-border-radius-smaller);
  object-fit: cover;
  background: var(--content-surface);
  flex-shrink: 0;
}

.track-title {
  font-size: var(--encore-text-size-base);
  font-weight: 500;
  color: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-channel {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-duration {
  font-size: var(--encore-text-size-smaller-3);
  color: var(--content-text-subdued);
  text-align: right;
  font-feature-settings: "tnum";
}

/* ─── SEARCH PAGE ───────────────────────────────────────────────────── */
.search-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--encore-spacing-looser-3) 0;
  text-align: center;
}

.search-placeholder__title {
  font-family: var(--encore-title-font);
  font-size: var(--encore-text-size-larger-3);
  font-weight: 800;
  color: var(--text-base);
}

/* ─── NOW PLAYING BAR ───────────────────────────────────────────────── */
.now-playing-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  z-index: 1000;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px;
  padding: 0 16px;
  width: 100% !important;
  max-width: none !important;
  height: 90px;
  min-height: 90px;
  background: #000000 !important;
  background-color: #000000 !important;
  border-top: 1px solid #282828;
  border-radius: 0 !important;
  color: #ffffff;
  isolation: isolate;
}

.now-playing-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  max-width: 300px;
}

.now-playing-bar__artwork {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--content-surface);
}

.now-playing-bar__artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-playing-bar__info {
  min-width: 0;
  flex: 1;
}

.now-playing-bar__track-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.now-playing-bar__track-name:hover { text-decoration: underline; }

.now-playing-bar__artist {
  font-size: 0.75rem;
  color: var(--content-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.now-playing-bar__artist:hover { color: var(--text-base); text-decoration: underline; }

.now-playing-bar__like {
  flex-shrink: 0;
  padding: var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-base);
  color: var(--content-text-subdued);
  transition: color var(--encore-shortest-3) var(--encore-productive);
}
.now-playing-bar__like:hover { color: var(--text-base); }
.now-playing-bar__like.liked { color: var(--text-bright-accent); }

/* CENTER: Controls + progress */
.now-playing-bar__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--encore-spacing-tighter-4);
  max-width: 722px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--encore-spacing-base);
}

.now-playing-bar__controls {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-looser);
}

.now-playing-bar__control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--content-text-subdued);
  transition: color var(--encore-shortest-3) var(--encore-productive), transform var(--encore-shortest-3) var(--encore-productive);
}
.now-playing-bar__control-btn:hover { color: var(--text-base); transform: scale(1.06); }
.now-playing-bar__control-btn svg { width: 16px; height: 16px; }

.now-playing-bar__play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-base);
  color: var(--background-base);
  transition: transform var(--encore-shortest-3) var(--encore-productive), background var(--encore-shortest-3) var(--encore-productive);
}
.now-playing-bar__play-btn:hover { transform: scale(1.06); background: #fff; }
.now-playing-bar__play-btn svg { width: 16px; height: 16px; }

.now-playing-bar__play-btn--lg {
  width: var(--encore-control-size-base);
  height: var(--encore-control-size-base);
}
.now-playing-bar__play-btn--lg svg { width: 24px; height: 24px; }

.now-playing-bar__progress {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-2);
  width: 100%;
}

.now-playing-bar__time {
  font-size: 0.75rem;
  color: var(--content-text-subdued);
  font-feature-settings: "tnum";
  min-width: 40px;
  text-align: center;
}

/* RIGHT: Volume + extras */
.now-playing-bar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--encore-spacing-tighter-2);
  flex: 1;
  max-width: 300px;
}

.now-playing-bar__volume {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-2);
}

/* ─── PROGRESS BAR (Spotify-style) ──────────────────────────────────── */
.progress-bar {
  position: relative;
  flex: 1;
  height: var(--encore-spacing-tighter-4);
  cursor: pointer;
  border-radius: var(--encore-border-radius-rounded);
  padding: var(--encore-spacing-tighter-4) 0;
}

.progress-bar__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--encore-spacing-tighter-4);
  transform: translateY(-50%);
  background: var(--content-tinted-base);
  border-radius: inherit;
}

.progress-bar__fill {
  position: absolute;
  left: 0;
  top: 50%;
  bottom: auto;
  height: var(--encore-spacing-tighter-4);
  transform: translateY(-50%);
  background: var(--text-base);
  border-radius: inherit;
  width: 0%;
  transition: background var(--encore-shortest-3) var(--encore-productive);
}

.progress-bar:hover .progress-bar__fill { background: var(--text-bright-accent); }

.progress-bar__knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-base);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--encore-shortest-3) var(--encore-productive);
  z-index: 1;
}

.progress-bar:hover .progress-bar__knob { opacity: 1; }

/* ─── LYRICS PANEL (floating bottom-right) ─────────────────────────── */
.lyrics-panel {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: 380px;
  height: 440px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid #333;
  border-radius: 12px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.lyrics-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lyrics-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #282828;
  flex-shrink: 0;
}

.lyrics-panel__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lyrics-panel__close {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.lyrics-panel__close:hover {
  color: var(--text-base);
  background: rgba(255, 255, 255, 0.07);
}

.lyrics-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.lyrics-panel__body::-webkit-scrollbar { width: 6px; }
.lyrics-panel__body::-webkit-scrollbar-track { background: transparent; }
.lyrics-panel__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

.lyrics-panel__placeholder {
  text-align: center;
  color: var(--text-subdued);
  font-size: 0.875rem;
  padding-top: 80px;
}

.lyrics-panel__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lyrics-line {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
  padding: 2px 0;
  cursor: pointer;
  transform-origin: left center;
}

.lyrics-line:hover {
  color: rgba(255, 255, 255, 0.5);
}

.lyrics-line.past {
  color: rgba(255, 255, 255, 0.55);
}

.lyrics-line.active {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  transform: scale(1.02);
}

.lyrics-line.loading {
  color: var(--text-subdued);
  font-style: italic;
}

/* ─── EXPANDED NOW PLAYING ──────────────────────────────────────────── */
.expanded-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--encore-short-1) var(--encore-productive);
}
.expanded-overlay.open { opacity: 1; pointer-events: all; }

.expanded-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(60px) saturate(1.4);
  -webkit-backdrop-filter: blur(60px) saturate(1.4);
}

.expanded-overlay__scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: var(--encore-spacing-looser-2) var(--encore-spacing-looser-2) var(--encore-spacing-looser-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.expanded-overlay__top-row {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: var(--encore-spacing-looser-2);
}

.expanded-overlay__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.expanded-overlay__right {
  width: 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--content-highlight);
  border-radius: var(--encore-border-radius-larger-2);
  overflow: hidden;
}

.expanded-overlay__queue-header {
  padding: var(--encore-spacing-base) var(--encore-spacing-base) var(--encore-spacing-tighter);
  font-family: var(--encore-title-font);
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  color: var(--text-base);
}

.expanded-overlay__queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--encore-spacing-tighter);
}
.expanded-overlay__queue-list .track-row {
  grid-template-columns: 36px 1fr 40px;
}
.expanded-overlay__queue-list .track-channel {
  display: none;
}
.expanded-overlay__queue-list .track-num-cell {
  width: 36px;
  height: 36px;
}

.expanded-overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--encore-control-size-smaller);
  height: var(--encore-control-size-smaller);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subdued);
  transition: color var(--encore-shortest-3) var(--encore-productive);
}
.expanded-overlay__close:hover { color: var(--text-base); }

.expanded-overlay__artwork {
  width: 100%;
  max-width: 340px;
  margin-bottom: var(--encore-spacing-looser-2);
  border-radius: var(--encore-border-radius-larger-2);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 12px 32px rgba(0,0,0,0.4);
}

.expanded-overlay__artwork-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.expanded-overlay__info {
  text-align: center;
  margin-bottom: var(--encore-spacing-base);
  width: 100%;
}

.expanded-overlay__title {
  font-family: var(--encore-title-font);
  font-size: var(--encore-text-size-larger);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--encore-spacing-tighter-5);
  color: var(--text-base);
}

.expanded-overlay__artist {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--encore-spacing-tighter-4);
}

.expanded-overlay__meta {
  font-size: var(--encore-text-size-smaller-3);
  color: var(--content-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expanded-overlay__progress { width: 100%; margin-bottom: var(--encore-spacing-base); }
.expanded-overlay__progress-bar { height: 4px; }
.expanded-overlay__times {
  display: flex;
  justify-content: space-between;
  margin-top: var(--encore-spacing-tighter-2);
}
.expanded-overlay__controls {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-looser);
  margin-bottom: var(--encore-spacing-base);
}

/* ─── CREDITS SECTION ───────────────────────────────────────────────── */
.expanded-overlay__credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--encore-spacing-looser-2);
  width: 100%;
  max-width: 900px;
  margin: var(--encore-spacing-looser-3) auto 0;
  padding-top: var(--encore-spacing-looser-2);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.expanded-overlay__section-title {
  font-family: var(--encore-title-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-base);
  margin-bottom: var(--encore-spacing-base);
}

.expanded-overlay__artist-card {
  display: flex;
  gap: var(--encore-spacing-base);
  align-items: flex-start;
}

.expanded-overlay__artist-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--content-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.expanded-overlay__artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expanded-overlay__artist-avatar svg {
  color: var(--content-text-subdued);
}

.expanded-overlay__artist-text {
  flex: 1;
  min-width: 0;
}

.expanded-overlay__artist-name {
  font-weight: 700;
  font-size: var(--encore-text-size-base);
  color: var(--text-base);
  margin-bottom: var(--encore-spacing-tighter-4);
}

.expanded-overlay__artist-followers {
  font-size: var(--encore-text-size-smaller-3);
  color: var(--content-text-subdued);
  margin-bottom: var(--encore-spacing-tighter-3);
}

.expanded-overlay__artist-bio {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expanded-overlay__credits-list {
  display: flex;
  flex-direction: column;
  gap: var(--encore-spacing-base);
}

.expanded-overlay__credit-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.expanded-overlay__credit-role {
  font-size: var(--encore-text-size-smaller);
  font-weight: 700;
  color: var(--text-base);
}

.expanded-overlay__credit-name {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
}

.expanded-overlay__label {
  font-size: var(--encore-text-size-smaller);
  color: var(--content-text-subdued);
  margin-bottom: var(--encore-spacing-base);
}

/* ─── ACTIVE BUTTON STATES ─────────────────────────────────────────── */
.now-playing-bar__control-btn.active {
  color: var(--text-bright-accent);
}

.now-playing-bar__like.liked {
  color: #e91e8a;
}

@keyframes heartJump {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.35); }
  30%  { transform: scale(0.9); }
  45%  { transform: scale(1.15); }
  60%  { transform: scale(0.95); }
  75%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.now-playing-bar__like.jump {
  animation: heartJump 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes barPulse {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-4px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
#now-playing-bar.bar-pulse {
  animation: barPulse 0.4s ease;
}

/* ─── DROPDOWN ──────────────────────────────────────────────────────── */
.dropdown {
  position: fixed;
  top: calc(var(--top-bar-height) + 44px);
  right: var(--encore-spacing-base);
  z-index: 200;
  width: 280px;
  background: var(--background-elevated-base);
  border-radius: var(--encore-border-radius-larger-2);
  box-shadow: 0 16px 24px rgba(0,0,0,0.4), 0 6px 8px rgba(0,0,0,0.3);
  padding: var(--encore-spacing-tighter-4);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--encore-shortest-2) var(--encore-productive), transform var(--encore-shortest-2) var(--encore-productive);
}
.dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }

.dropdown__user {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter);
  padding: var(--encore-spacing-tighter) var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-base);
}
.dropdown__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background-elevated-highlight);
  flex-shrink: 0;
}
.dropdown__name { font-size: var(--encore-text-size-smaller); font-weight: 700; }
.dropdown__id { font-size: var(--encore-text-size-smaller-3); color: var(--text-subdued); margin-top: 1px; }

.dropdown__section {
  padding: var(--encore-spacing-tighter-2) var(--encore-spacing-tighter-2) var(--encore-spacing-tighter-5);
}
.dropdown__label {
  font-size: var(--encore-text-size-smaller-3);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subdued);
  margin-bottom: var(--encore-spacing-tighter-2);
}
.dropdown__service {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-tighter-2);
  padding: var(--encore-spacing-tighter-3) 0;
  font-size: var(--encore-text-size-smaller-2);
}
.dropdown__service--disabled { opacity: 0.4; }
.dropdown__service-name { font-weight: 500; flex: 1; }
.dropdown__service-status { color: var(--text-subdued); font-size: var(--encore-text-size-smaller-3); }

.dropdown__divider {
  height: 1px;
  background: var(--background-elevated-highlight);
  margin: var(--encore-spacing-tighter-5) var(--encore-spacing-tighter-2);
}

.dropdown__item {
  display: block;
  padding: var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-base);
  font-size: var(--encore-text-size-smaller);
  font-weight: 500;
  color: var(--text-subdued);
  transition: background var(--encore-shortest-2) var(--encore-productive), color var(--encore-shortest-2) var(--encore-productive);
}
.dropdown__item:hover { background: var(--background-elevated-highlight); color: var(--text-base); }
.dropdown__item--danger { color: var(--text-negative); }
.dropdown__item--danger:hover { background: rgba(243,114,127,0.1); }

/* ─── SERVICE DOTS ──────────────────────────────────────────────────── */
.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.service-dot--youtube { background: #ff0033; }
.service-dot--apple { background: #fc3c44; }

/* ─── BUTTONS (Encore system) ───────────────────────────────────────── */
.e-10860-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-rounded);
  font-family: var(--encore-body-font);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--encore-shortest-3) var(--encore-productive), background-color var(--encore-shortest-3) var(--encore-productive);
  white-space: nowrap;
}
.e-10860-button:hover { transform: scale(1.04); }
.e-10860-button:active { transform: scale(1); }

.e-10860-button--primary {
  background: var(--text-base);
  color: var(--background-base);
}
.e-10860-button--primary:hover { background: #fff; }

.e-10860-button--secondary {
  background: transparent;
  color: var(--text-base);
  border: 1px solid var(--content-text-subdued);
}
.e-10860-button--secondary:hover {
  background: var(--content-tinted-base);
  border-color: var(--text-base);
}

.e-10860-button--large {
  padding: var(--encore-spacing-tighter-2) var(--encore-spacing-looser);
  font-size: var(--encore-text-size-smaller);
  min-height: var(--encore-control-size-base);
}

.e-10860-button--medium {
  padding: var(--encore-spacing-tighter-3) var(--encore-spacing-tighter);
  font-size: var(--encore-text-size-smaller-2);
  min-height: var(--encore-control-size-smaller);
}

/* ─── EMPTY STATES ──────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--encore-spacing-looser-3) 0;
  text-align: center;
}
.empty-state svg { color: var(--text-subdued); margin-bottom: var(--encore-spacing-base); opacity: 0.4; }
.empty-state h3 { font-family: var(--encore-title-font); font-size: var(--encore-text-size-larger); font-weight: 700; margin-bottom: var(--encore-spacing-tighter-2); color: var(--text-base); }
.empty-state p { font-size: var(--encore-text-size-smaller); color: var(--content-text-subdued); margin-bottom: var(--encore-spacing-looser); max-width: 360px; line-height: 1.5; }

/* ─── SKELETONS ─────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--content-highlight) 25%, var(--content-surface) 50%, var(--content-highlight) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--encore-border-radius-base);
}
.skeleton-title { width: 140px; height: 12px; margin-bottom: var(--encore-spacing-base); }
.skeleton-thumb { width: 100%; padding-top: 100%; border-radius: var(--encore-border-radius-base); }
.skeleton-thumb-sm { width: 40px; height: 40px; border-radius: var(--encore-border-radius-smaller); flex-shrink: 0; }
.skeleton-text { width: 70%; height: 14px; margin-top: var(--encore-spacing-tighter-2); }
.skeleton-text-sm { width: 45%; height: 11px; margin-top: var(--encore-spacing-tighter-3); }
.skeleton-card {
  background: var(--content-highlight);
  border-radius: var(--encore-border-radius-larger-2);
  padding: var(--encore-spacing-tighter);
}
.skeleton-card .skeleton-thumb { border-radius: var(--encore-border-radius-base); margin-bottom: var(--encore-spacing-tighter-2); }
.skeleton-card .skeleton-text { margin: var(--encore-spacing-tighter-3) 0 0; }
.skeleton-card .skeleton-text-sm { margin: var(--encore-spacing-tighter-3) 0 0; }
.skeleton-track-row {
  display: flex;
  align-items: center;
  gap: var(--encore-spacing-base);
  padding: var(--encore-spacing-tighter-2) var(--encore-spacing-tighter);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── SETTINGS ──────────────────────────────────────────────────────── */
.settings-group { margin-bottom: var(--encore-spacing-looser-2); }
.settings-label {
  font-size: var(--encore-text-size-smaller-3);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subdued);
  margin-bottom: var(--encore-spacing-tighter);
}
.settings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--encore-spacing-base);
  background: var(--content-highlight);
  border-radius: var(--encore-border-radius-larger-2);
  margin-bottom: var(--encore-spacing-tighter-2);
  transition: background var(--encore-shortest-3) var(--encore-productive);
}
.settings-card:hover { background: var(--content-surface); }
.settings-card--disabled { opacity: 0.4; }
.settings-card__left { display: flex; align-items: center; gap: var(--encore-spacing-base); }
.settings-card__title { font-size: var(--encore-text-size-smaller); font-weight: 700; }
.settings-card__sub { font-size: var(--encore-text-size-smaller-3); color: var(--content-text-subdued); margin-top: 2px; }
.settings-badge {
  font-size: var(--encore-text-size-smaller-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: var(--encore-spacing-tighter-4) var(--encore-spacing-tighter-2);
  border-radius: var(--encore-border-radius-smaller);
  background: var(--content-tinted-base);
  color: var(--content-text-subdued);
}

/* ─── SETTINGS TOGGLE ─────────────────────────────────────────────── */
.settings-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
}

.settings-toggle input { opacity: 0; width: 0; height: 0; }

.settings-toggle__slider {
  position: absolute;
  inset: 0;
  background: #535353;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}

.settings-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.settings-toggle input:checked + .settings-toggle__slider {
  background: #1db954;
}

.settings-toggle input:checked + .settings-toggle__slider::before {
  transform: translateX(16px);
}

/* ─── LIQUID GLASS LYRICS MODE ────────────────────────────────────── */
.lyrics-panel.glass-mode {
  background: rgba(18, 18, 18, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lyrics-panel.glass-mode .lyrics-panel__header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lyrics-panel.glass-mode .lyrics-line {
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.lyrics-panel.glass-mode .lyrics-line.past {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lyrics-panel.glass-mode .lyrics-line.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(29, 185, 84, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ─── GLASS MODE PER-THEME ──────────────────────────────────────── */
body.theme-apple .lyrics-panel.glass-mode {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body.theme-apple .lyrics-panel.glass-mode .lyrics-panel__header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.theme-apple .lyrics-panel.glass-mode .lyrics-line {
  color: rgba(29, 29, 31, 0.35);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}
body.theme-apple .lyrics-panel.glass-mode .lyrics-line.past {
  color: rgba(29, 29, 31, 0.5);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}
body.theme-apple .lyrics-panel.glass-mode .lyrics-line.active {
  color: #fc3c44;
  text-shadow: 0 0 12px rgba(252, 60, 68, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.theme-aqua .lyrics-panel.glass-mode {
  background: rgba(10, 22, 40, 0.45);
  border-color: rgba(0, 180, 216, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 229, 255, 0.08);
}
body.theme-aqua .lyrics-panel.glass-mode .lyrics-panel__header {
  background: rgba(0, 180, 216, 0.05);
  border-bottom-color: rgba(0, 180, 216, 0.1);
}
body.theme-aqua .lyrics-panel.glass-mode .lyrics-line {
  color: rgba(224, 247, 250, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
body.theme-aqua .lyrics-panel.glass-mode .lyrics-line.past {
  color: rgba(224, 247, 250, 0.5);
}
body.theme-aqua .lyrics-panel.glass-mode .lyrics-line.active {
  color: #00e5ff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

body.theme-blurple .lyrics-panel.glass-mode {
  background: rgba(13, 13, 26, 0.45);
  border-color: rgba(114, 137, 218, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(114, 137, 218, 0.08);
}
body.theme-blurple .lyrics-panel.glass-mode .lyrics-panel__header {
  background: rgba(114, 137, 218, 0.05);
  border-bottom-color: rgba(114, 137, 218, 0.1);
}
body.theme-blurple .lyrics-panel.glass-mode .lyrics-line {
  color: rgba(232, 232, 255, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
body.theme-blurple .lyrics-panel.glass-mode .lyrics-line.past {
  color: rgba(232, 232, 255, 0.5);
}
body.theme-blurple .lyrics-panel.glass-mode .lyrics-line.active {
  color: #7289da;
  text-shadow: 0 0 16px rgba(114, 137, 218, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

body.theme-blackhole .lyrics-panel.glass-mode {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.theme-blackhole .lyrics-panel.glass-mode .lyrics-panel__header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}
body.theme-blackhole .lyrics-panel.glass-mode .lyrics-line {
  color: rgba(224, 224, 224, 0.3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
body.theme-blackhole .lyrics-panel.glass-mode .lyrics-line.past {
  color: rgba(224, 224, 224, 0.45);
}
body.theme-blackhole .lyrics-panel.glass-mode .lyrics-line.active {
  color: #888;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ─── MODAL ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: #282828;
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.2s ease;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.modal__close {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal__close:hover { color: #fff; }
.modal__body {
  padding: 16px 24px;
}
.modal__desc {
  font-size: 0.875rem;
  color: #b3b3b3;
  margin: 0 0 12px;
}
.modal__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #727272;
  background: #3e3e3e;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  box-sizing: border-box;
}
.modal__input:focus {
  border-color: #1db954;
}
.modal__input::placeholder {
  color: #727272;
}
.modal__error {
  font-size: 0.8125rem;
  color: #e91429;
  margin-top: 8px;
}
.modal__progress {
  margin-top: 12px;
}
.modal__progress-text {
  font-size: 0.8125rem;
  color: #b3b3b3;
  margin-bottom: 8px;
}
.settings-progress-bar {
  width: 100%;
  height: 4px;
  background: #3e3e3e;
  border-radius: 2px;
  overflow: hidden;
}
.settings-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 24px 20px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .root__main-container {
    grid-template-columns: var(--left-sidebar-width) 1fr;
  }
}

@media (max-width: 992px) {
  .root__main-container {
    grid-template-areas:
      "main"
      "player";
    grid-template-columns: 1fr;
    padding: 0 8px 0 0;
    gap: 0;
  }
  .sidebar { display: none; }
  .main-view { border-radius: 0; }
}

@media (max-width: 768px) {
  .now-playing-bar {
    padding: 0 8px;
  }
  .now-playing-bar__center { display: none; }
  .now-playing-bar__right { display: none; }
  .now-playing-bar__left { max-width: none; }
  .playlist-hero__title { font-size: var(--encore-text-size-larger-2); }
  .track-list-header { grid-template-columns: 36px 1fr 60px; }
  .track-list-header .track-list-header__channel { display: none; }
  .track-row { grid-template-columns: 36px 1fr 40px 60px; }
  .track-channel { display: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .expanded-overlay__top-row { flex-direction: column; padding: var(--encore-spacing-base); align-items: center; }
  .expanded-overlay__right { width: 100%; max-height: 40vh; min-width: unset; }
  .expanded-overlay__artwork { max-width: 200px; }
  .expanded-overlay__credits { grid-template-columns: 1fr; }
  .lyrics-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 100px;
    height: 50vh;
  }
}

/* ─── PAGE TRANSITIONS ──────────────────────────────────────────────── */
.page-enter {
  animation: pageSlideIn 0.35s cubic-bezier(0, 0, 0.2, 1);
}

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

/* ─── LOVES GLOW ────────────────────────────────────────────────────── */
#page-loves {
  position: relative;
}
#page-loves::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--loves-glow, rgba(232, 17, 91, 0.25)), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: lovesGlowPulse 4s ease-in-out infinite alternate;
}

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

#page-loves .content-spacing {
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR CREATE BUTTON ───────────────────────────────────────── */
.sidebar__library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar__create-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ─── CREATE PLAYLIST MODAL ───────────────────────────────────────── */
.create-pl-upload {
  width: 192px;
  height: 192px;
  margin: 0 auto 20px;
  border: 2px dashed #727272;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.create-pl-upload:hover { border-color: #fff; }
.create-pl-upload__preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #282828;
  color: #b3b3b3;
  font-size: 0.75rem;
}
.create-pl-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__input[type="text"],
textarea.modal__input {
  width: 100%;
  padding: 10px 12px;
  background: #3e3e3e;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-family: inherit;
}
.modal__input:focus { border-color: #1db954; outline: none; }

/* ─── ADD TO PLAYLIST DROPDOWN ────────────────────────────────────── */
.add-to-pl-dropdown {
  position: fixed;
  z-index: 400;
  background: #282828;
  border-radius: 8px;
  box-shadow: 0 16px 24px rgba(0,0,0,0.5), 0 6px 8px rgba(0,0,0,0.3);
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}
.add-to-pl-dropdown__header {
  padding: 8px 12px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.add-to-pl-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #fff;
  transition: background 0.15s;
}
.add-to-pl-dropdown__item:hover { background: rgba(255,255,255,0.1); }
.add-to-pl-dropdown__item--new { color: #1db954; }
.add-to-pl-dropdown__item--new:hover { background: rgba(29,185,84,0.1); }
.add-to-pl-dropdown__item--checked { color: #1db954; }
.add-to-pl-dropdown__check { margin-left: auto; display: flex; align-items: center; }
.add-to-pl-dropdown__item-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #3e3e3e;
  object-fit: cover;
  flex-shrink: 0;
}
.add-to-pl-dropdown__item-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #3e3e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.add-to-pl-dropdown__divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 4px 0;
}
.add-to-pl-dropdown__empty {
  padding: 12px;
  text-align: center;
  color: #b3b3b3;
  font-size: 0.8125rem;
}

/* ─── TRACK ROW MORE BUTTON ───────────────────────────────────────── */
.track-more-btn {
  opacity: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.track-row:hover .track-more-btn { opacity: 1; }
.track-more-btn:hover { transform: scale(1.15); filter: brightness(1.3); }

/* ─── TOAST ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: #2e77d0;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── CUSTOM PLAYLIST CARD ────────────────────────────────────────── */
.card__delete-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 3;
}
.card:hover .card__delete-btn { display: flex; }
.card__delete-btn:hover { background: rgba(0,0,0,0.9); }

/* ─── CREDITS TOGGLE ─────────────────────────────────────────────── */
.settings-credits-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.settings-credits-toggle:hover { background: rgba(255,255,255,0.08); }
.settings-credits-arrow {
  transition: transform 0.25s ease;
  color: #b3b3b3;
}
.settings-credits-toggle.open .settings-credits-arrow {
  transform: rotate(180deg);
}
.settings-credits-panel {
  margin-top: 10px;
}
.settings-credits-subheading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b3b3b3;
  margin: 16px 0 8px;
}
.settings-credits-subheading:first-child {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   THEMES
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── THEME: APPLE MUSIC ──────────────────────────────────────────── */
body.theme-apple {
  --background-base: #fff;
  --background-highlight: #f5f5f7;
  --background-press: #e5e5e5;
  --background-elevated-base: #fff;
  --background-elevated-highlight: #f0f0f0;
  --background-elevated-press: #ddd;
  --background-tinted-base: rgba(0,0,0,0.05);
  --background-tinted-highlight: rgba(0,0,0,0.08);
  --background-tinted-press: rgba(0,0,0,0.12);
  --text-base: #1d1d1f;
  --text-subdued: #6e6e73;
  --text-bright-accent: #fc3c44;
  --text-negative: #fc3c44;
  --essential-base: #1d1d1f;
  --essential-subdued: #86868b;
  --essential-bright-accent: #fc3c44;
  --decorative-subdued: #e5e5e5;
  --content-bg: #fff;
  --content-highlight: #f5f5f7;
  --content-surface: #f0f0f0;
  --content-tinted-base: rgba(0,0,0,0.04);
  --content-tinted-highlight: rgba(0,0,0,0.06);
  --content-text-subdued: #6e6e73;
  --player-bar-bg: #fff;
}
body.theme-apple .sidebar,
body.theme-apple .sidebar__library { background: #f5f5f7; }
body.theme-apple .sidebar__nav-item:hover,
body.theme-apple .sidebar__nav-item.active { color: #fc3c44; }
body.theme-apple .top-bar__bg { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); }
body.theme-apple .card { background: #f5f5f7; }
body.theme-apple .card:hover { background: #ececec; }
body.theme-apple .track-row:hover { background: rgba(0,0,0,0.04); }
body.theme-apple .track-row.active .track-num { color: #fc3c44; }
body.theme-apple .playing-bars span { background: #fc3c44; }
body.theme-apple .card__play { background: #fc3c44 !important; }
body.theme-apple .card__play svg { fill: #fff !important; }
body.theme-apple .card__pause { background: #fc3c44 !important; }
body.theme-apple .card__pause svg { fill: #fff !important; }
body.theme-apple .track-more-btn { color: #86868b; }
body.theme-apple .now-playing-bar { background: #fff !important; border-top: 1px solid #e5e5e5 !important; }
body.theme-apple .now-playing-bar__track-name,
body.theme-apple .now-playing-bar__artist { color: #1d1d1f; }
body.theme-apple .now-playing-bar__like { color: #86868b; }
body.theme-apple .now-playing-bar__like.liked { color: #fc3c44; }
body.theme-apple .search-field { background: #f0f0f0; color: #1d1d1f; }
body.theme-apple .search-field::placeholder { color: #86868b; }
body.theme-apple .modal { background: #fff; }
body.theme-apple .modal__header { color: #1d1d1f; }
body.theme-apple .modal__close { color: #1d1d1f; }
body.theme-apple .modal__input { background: #f0f0f0; color: #1d1d1f; border-color: #e5e5e5; }
body.theme-apple .toast { background: #fc3c44; }
body.theme-apple .hero-greeting { color: #1d1d1f; }
body.theme-apple h1, body.theme-apple h2, body.theme-apple h3 { color: #1d1d1f; }
body.theme-apple .page-title { color: #1d1d1f; }
body.theme-apple .settings-label { color: #6e6e73; }
body.theme-apple .settings-card { background: #f5f5f7; border-color: #e5e5e5; }
body.theme-apple .settings-card__title { color: #1d1d1f; }
body.theme-apple .settings-card__sub { color: #6e6e73; }
body.theme-apple .add-to-pl-dropdown { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
body.theme-apple .add-to-pl-dropdown__item { color: #1d1d1f; }
body.theme-apple .add-to-pl-dropdown__item:hover { background: rgba(0,0,0,0.04); }
body.theme-apple .add-to-pl-dropdown__header { color: #6e6e73; }
body.theme-apple .settings-credits-toggle { background: #f0f0f0; border-color: #e5e5e5; color: #1d1d1f; }
body.theme-apple .settings-toggle__slider { background: #e5e5e5; }
body.theme-apple .settings-toggle__slider::before { background: #fff; }
body.theme-apple .playlist-hero__overlay { background: linear-gradient(transparent 40%, rgba(255,255,255,0.85) 100%); }
body.theme-apple .playlist-hero__type,
body.theme-apple .playlist-hero__meta,
body.theme-apple .playlist-hero__label { color: #6e6e73; }
body.theme-apple .playlist-hero__title { color: #1d1d1f; }
body.theme-apple .lyrics-panel { background: #fff; border-color: #e5e5e5; }
body.theme-apple .lyrics-panel__label { color: #1d1d1f; }
body.theme-apple .lyrics-panel__placeholder { color: #86868b; }
body.theme-apple .lyrics-line { color: #6e6e73; }
body.theme-apple .lyrics-line.active { color: #fc3c44; }
body.theme-apple .track-list-header { color: #6e6e73; border-bottom-color: #e5e5e5; }
body.theme-apple .card__title { color: #1d1d1f; }
body.theme-apple .card__sub { color: #6e6e73; }
body.theme-apple .card__provider { color: #86868b; }
body.theme-apple .card__delete-btn { background: rgba(0,0,0,0.6); }
body.theme-apple .expanded-overlay { background: #fff; }
body.theme-apple .expanded-overlay__title { color: #1d1d1f; }
body.theme-apple .expanded-overlay__subtitle { color: #6e6e73; }
body.theme-apple .now-playing-bar__progress-fill { background: #fc3c44; }
body.theme-apple .now-playing-bar__progress-bg { background: #e5e5e5; }
body.theme-apple .progress-bar__fill { background: #fc3c44; }
body.theme-apple .progress-bar__bg { background: #e5e5e5; }

/* ─── THEME: AQUA ─────────────────────────────────────────────────── */
body.theme-aqua {
  --background-base: #0a1628;
  --background-highlight: #0e1f3a;
  --background-press: #162d50;
  --background-elevated-base: #0e1f3a;
  --background-elevated-highlight: #162d50;
  --background-elevated-press: #0a1628;
  --background-tinted-base: rgba(0,180,216,0.12);
  --background-tinted-highlight: rgba(0,180,216,0.18);
  --background-tinted-press: rgba(0,180,216,0.24);
  --text-base: #e0f7fa;
  --text-subdued: #80deea;
  --text-bright-accent: #00e5ff;
  --text-negative: #ff6e6e;
  --essential-base: #e0f7fa;
  --essential-subdued: #4dd0e1;
  --essential-bright-accent: #00e5ff;
  --decorative-subdued: #0e1f3a;
  --content-bg: #0a1628;
  --content-highlight: #0e1f3a;
  --content-surface: #162d50;
  --content-tinted-base: rgba(0,180,216,0.08);
  --content-tinted-highlight: rgba(0,180,216,0.14);
  --content-text-subdued: #80deea;
  --player-bar-bg: #0e1f3a;
}
body.theme-aqua .sidebar,
body.theme-aqua .sidebar__library { background: #0a1628; border-color: rgba(0,180,216,0.15); }
body.theme-aqua .sidebar__nav-item:hover,
body.theme-aqua .sidebar__nav-item.active { color: #00e5ff; }
body.theme-aqua .top-bar__bg { background: rgba(10,22,40,0.92); backdrop-filter: blur(20px); }
body.theme-aqua .card { background: #0e1f3a; }
body.theme-aqua .card:hover { background: #162d50; }
body.theme-aqua .track-row:hover { background: rgba(0,180,216,0.06); }
body.theme-aqua .track-row.active .track-num { color: #00e5ff; }
body.theme-aqua .playing-bars span { background: #00e5ff; }
body.theme-aqua .card__play { background: #00b4d8 !important; }
body.theme-aqua .card__play svg { fill: #fff !important; }
body.theme-aqua .card__pause { background: #00b4d8 !important; }
body.theme-aqua .card__pause svg { fill: #fff !important; }
body.theme-aqua .track-more-btn { color: #4dd0e1; }
body.theme-aqua .now-playing-bar { background: #0e1f3a !important; border-top: 1px solid rgba(0,180,216,0.15) !important; }
body.theme-aqua .search-field { background: #162d50; color: #e0f7fa; }
body.theme-aqua .search-field::placeholder { color: #80deea; }
body.theme-aqua .modal { background: #0e1f3a; border-color: rgba(0,180,216,0.2); }
body.theme-aqua .modal__header { color: #e0f7fa; }
body.theme-aqua .modal__close { color: #e0f7fa; }
body.theme-aqua .modal__input { background: #162d50; color: #e0f7fa; border-color: rgba(0,180,216,0.2); }
body.theme-aqua .toast { background: #00b4d8; }
body.theme-aqua .settings-card { background: #0e1f3a; border-color: rgba(0,180,216,0.15); }
body.theme-aqua .settings-card__title { color: #e0f7fa; }
body.theme-aqua .settings-credits-toggle { background: #162d50; border-color: rgba(0,180,216,0.2); color: #e0f7fa; }
body.theme-aqua .add-to-pl-dropdown { background: #0e1f3a; border-color: rgba(0,180,216,0.2); }
body.theme-aqua .add-to-pl-dropdown__item { color: #e0f7fa; }
body.theme-aqua .add-to-pl-dropdown__item:hover { background: rgba(0,180,216,0.08); }
body.theme-aqua .add-to-pl-dropdown__header { color: #80deea; }
body.theme-aqua .playlist-hero__overlay { background: linear-gradient(transparent 40%, rgba(10,22,40,0.95) 100%); }
body.theme-aqua .playlist-hero__type,
body.theme-aqua .playlist-hero__meta,
body.theme-aqua .playlist-hero__label { color: #80deea; }
body.theme-aqua .playlist-hero__title { color: #e0f7fa; }
body.theme-aqua .lyrics-panel { background: #0e1f3a; border-color: rgba(0,180,216,0.2); }
body.theme-aqua .lyrics-panel__label { color: #e0f7fa; }
body.theme-aqua .lyrics-line { color: #4dd0e1; }
body.theme-aqua .lyrics-line.active { color: #00e5ff; text-shadow: 0 0 12px rgba(0,229,255,0.4); }
body.theme-aqua .track-list-header { color: #80deea; border-bottom-color: rgba(0,180,216,0.15); }
body.theme-aqua .card__title { color: #e0f7fa; }
body.theme-aqua .card__sub { color: #80deea; }
body.theme-aqua .card__provider { color: #4dd0e1; }
body.theme-aqua .now-playing-bar__progress-fill { background: #00b4d8; }
body.theme-aqua .now-playing-bar__progress-bg { background: rgba(0,180,216,0.2); }
body.theme-aqua .progress-bar__fill { background: #00b4d8; }
body.theme-aqua .progress-bar__bg { background: rgba(0,180,216,0.2); }
body.theme-aqua .expanded-overlay { background: #0a1628; }
body.theme-aqua .expanded-overlay__title { color: #e0f7fa; }
body.theme-aqua .expanded-overlay__subtitle { color: #80deea; }
body.theme-aqua .hero-greeting { color: #e0f7fa; }
body.theme-aqua h1, body.theme-aqua h2, body.theme-aqua h3 { color: #e0f7fa; }
body.theme-aqua .page-title { color: #e0f7fa; }

/* ─── THEME: BLURPLE ──────────────────────────────────────────────── */
body.theme-blurple {
  --background-base: #0d0d1a;
  --background-highlight: #14142b;
  --background-press: #1e1e3f;
  --background-elevated-base: #14142b;
  --background-elevated-highlight: #1e1e3f;
  --background-elevated-press: #0d0d1a;
  --background-tinted-base: rgba(114,137,218,0.15);
  --background-tinted-highlight: rgba(114,137,218,0.22);
  --background-tinted-press: rgba(114,137,218,0.3);
  --text-base: #e8e8ff;
  --text-subdued: #a0a0cc;
  --text-bright-accent: #7289da;
  --text-negative: #ff6b6b;
  --essential-base: #e8e8ff;
  --essential-subdued: #7289da;
  --essential-bright-accent: #7289da;
  --decorative-subdued: #14142b;
  --content-bg: #0d0d1a;
  --content-highlight: #14142b;
  --content-surface: #1e1e3f;
  --content-tinted-base: rgba(114,137,218,0.08);
  --content-tinted-highlight: rgba(114,137,218,0.14);
  --content-text-subdued: #a0a0cc;
  --player-bar-bg: #14142b;
}
body.theme-blurple .sidebar,
body.theme-blurple .sidebar__library { background: #0d0d1a; border-color: rgba(114,137,218,0.15); }
body.theme-blurple .sidebar__nav-item:hover,
body.theme-blurple .sidebar__nav-item.active { color: #7289da; }
body.theme-blurple .top-bar__bg { background: rgba(13,13,26,0.92); backdrop-filter: blur(20px); }
body.theme-blurple .card { background: #14142b; }
body.theme-blurple .card:hover { background: #1e1e3f; }
body.theme-blurple .track-row:hover { background: rgba(114,137,218,0.06); }
body.theme-blurple .track-row.active .track-num { color: #7289da; }
body.theme-blurple .playing-bars span { background: #7289da; }
body.theme-blurple .card__play { background: #7289da !important; }
body.theme-blurple .card__play svg { fill: #fff !important; }
body.theme-blurple .card__pause { background: #7289da !important; }
body.theme-blurple .card__pause svg { fill: #fff !important; }
body.theme-blurple .track-more-btn { color: #a0a0cc; }
body.theme-blurple .now-playing-bar { background: #14142b !important; border-top: 1px solid rgba(114,137,218,0.15) !important; }
body.theme-blurple .search-field { background: #1e1e3f; color: #e8e8ff; }
body.theme-blurple .search-field::placeholder { color: #a0a0cc; }
body.theme-blurple .modal { background: #14142b; border-color: rgba(114,137,218,0.2); }
body.theme-blurple .modal__header { color: #e8e8ff; }
body.theme-blurple .modal__close { color: #e8e8ff; }
body.theme-blurple .modal__input { background: #1e1e3f; color: #e8e8ff; border-color: rgba(114,137,218,0.2); }
body.theme-blurple .toast { background: #5865f2; }
body.theme-blurple .settings-card { background: #14142b; border-color: rgba(114,137,218,0.15); }
body.theme-blurple .settings-card__title { color: #e8e8ff; }
body.theme-blurple .settings-credits-toggle { background: #1e1e3f; border-color: rgba(114,137,218,0.2); color: #e8e8ff; }
body.theme-blurple .add-to-pl-dropdown { background: #14142b; border-color: rgba(114,137,218,0.2); }
body.theme-blurple .add-to-pl-dropdown__item { color: #e8e8ff; }
body.theme-blurple .add-to-pl-dropdown__item:hover { background: rgba(114,137,218,0.08); }
body.theme-blurple .add-to-pl-dropdown__header { color: #a0a0cc; }
body.theme-blurple .playlist-hero__overlay { background: linear-gradient(transparent 40%, rgba(13,13,26,0.95) 100%); }
body.theme-blurple .playlist-hero__type,
body.theme-blurple .playlist-hero__meta,
body.theme-blurple .playlist-hero__label { color: #a0a0cc; }
body.theme-blurple .playlist-hero__title { color: #e8e8ff; }
body.theme-blurple .lyrics-panel { background: #14142b; border-color: rgba(114,137,218,0.2); }
body.theme-blurple .lyrics-panel__label { color: #e8e8ff; }
body.theme-blurple .lyrics-line { color: #a0a0cc; }
body.theme-blurple .lyrics-line.active { color: #7289da; text-shadow: 0 0 12px rgba(114,137,218,0.4); }
body.theme-blurple .track-list-header { color: #a0a0cc; border-bottom-color: rgba(114,137,218,0.15); }
body.theme-blurple .card__title { color: #e8e8ff; }
body.theme-blurple .card__sub { color: #a0a0cc; }
body.theme-blurple .card__provider { color: #a0a0cc; }
body.theme-blurple .now-playing-bar__progress-fill { background: #7289da; }
body.theme-blurple .now-playing-bar__progress-bg { background: rgba(114,137,218,0.2); }
body.theme-blurple .progress-bar__fill { background: #7289da; }
body.theme-blurple .progress-bar__bg { background: rgba(114,137,218,0.2); }
body.theme-blurple .expanded-overlay { background: #0d0d1a; }
body.theme-blurple .expanded-overlay__title { color: #e8e8ff; }
body.theme-blurple .expanded-overlay__subtitle { color: #a0a0cc; }
body.theme-blurple .hero-greeting { color: #e8e8ff; }
body.theme-blurple h1, body.theme-blurple h2, body.theme-blurple h3 { color: #e8e8ff; }
body.theme-blurple .page-title { color: #e8e8ff; }

/* ─── THEME: BLACK HOLE ───────────────────────────────────────────── */
body.theme-blackhole {
  --background-base: #000;
  --background-highlight: #050505;
  --background-press: #0a0a0a;
  --background-elevated-base: #050505;
  --background-elevated-highlight: #0a0a0a;
  --background-elevated-press: #000;
  --background-tinted-base: rgba(255,255,255,0.04);
  --background-tinted-highlight: rgba(255,255,255,0.06);
  --background-tinted-press: rgba(255,255,255,0.1);
  --text-base: #e0e0e0;
  --text-subdued: #666;
  --text-bright-accent: #888;
  --text-negative: #999;
  --essential-base: #e0e0e0;
  --essential-subdued: #444;
  --essential-bright-accent: #888;
  --decorative-subdued: #050505;
  --content-bg: #000;
  --content-highlight: #050505;
  --content-surface: #0a0a0a;
  --content-tinted-base: rgba(255,255,255,0.03);
  --content-tinted-highlight: rgba(255,255,255,0.05);
  --content-text-subdued: #555;
  --player-bar-bg: #050505;
}
body.theme-blackhole .sidebar,
body.theme-blackhole .sidebar__library { background: #000; border-color: rgba(255,255,255,0.06); }
body.theme-blackhole .sidebar__nav-item:hover,
body.theme-blackhole .sidebar__nav-item.active { color: #888; }
body.theme-blackhole .top-bar__bg { background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); }
body.theme-blackhole .card { background: #050505; }
body.theme-blackhole .card:hover { background: #0a0a0a; }
body.theme-blackhole .track-row:hover { background: rgba(255,255,255,0.03); }
body.theme-blackhole .track-row.active .track-num { color: #888; }
body.theme-blackhole .playing-bars span { background: #888; }
body.theme-blackhole .card__play { background: #333 !important; }
body.theme-blackhole .card__play svg { fill: #000 !important; }
body.theme-blackhole .card__pause { background: #333 !important; }
body.theme-blackhole .card__pause svg { fill: #000 !important; }
body.theme-blackhole .track-more-btn { color: #444; }
body.theme-blackhole .now-playing-bar { background: #050505 !important; border-top: 1px solid rgba(255,255,255,0.06) !important; }
body.theme-blackhole .search-field { background: #0a0a0a; color: #e0e0e0; }
body.theme-blackhole .search-field::placeholder { color: #555; }
body.theme-blackhole .modal { background: #050505; border-color: rgba(255,255,255,0.08); }
body.theme-blackhole .modal__header { color: #e0e0e0; }
body.theme-blackhole .modal__close { color: #e0e0e0; }
body.theme-blackhole .modal__input { background: #0a0a0a; color: #e0e0e0; border-color: rgba(255,255,255,0.08); }
body.theme-blackhole .toast { background: #333; color: #e0e0e0; }
body.theme-blackhole .settings-card { background: #050505; border-color: rgba(255,255,255,0.06); }
body.theme-blackhole .settings-card__title { color: #e0e0e0; }
body.theme-blackhole .settings-credits-toggle { background: #0a0a0a; border-color: rgba(255,255,255,0.08); color: #e0e0e0; }
body.theme-blackhole .add-to-pl-dropdown { background: #050505; border-color: rgba(255,255,255,0.08); }
body.theme-blackhole .add-to-pl-dropdown__item { color: #e0e0e0; }
body.theme-blackhole .add-to-pl-dropdown__item:hover { background: rgba(255,255,255,0.03); }
body.theme-blackhole .add-to-pl-dropdown__header { color: #555; }
body.theme-blackhole .playlist-hero__overlay { background: linear-gradient(transparent 40%, rgba(0,0,0,0.95) 100%); }
body.theme-blackhole .playlist-hero__type,
body.theme-blackhole .playlist-hero__meta,
body.theme-blackhole .playlist-hero__label { color: #555; }
body.theme-blackhole .playlist-hero__title { color: #e0e0e0; }
body.theme-blackhole .lyrics-panel { background: #050505; border-color: rgba(255,255,255,0.06); }
body.theme-blackhole .lyrics-panel__label { color: #e0e0e0; }
body.theme-blackhole .lyrics-line { color: #444; }
body.theme-blackhole .lyrics-line.active { color: #888; text-shadow: 0 0 8px rgba(255,255,255,0.1); }
body.theme-blackhole .track-list-header { color: #555; border-bottom-color: rgba(255,255,255,0.06); }
body.theme-blackhole .card__title { color: #e0e0e0; }
body.theme-blackhole .card__sub { color: #555; }
body.theme-blackhole .card__provider { color: #444; }
body.theme-blackhole .now-playing-bar__progress-fill { background: #666; }
body.theme-blackhole .now-playing-bar__progress-bg { background: rgba(255,255,255,0.08); }
body.theme-blackhole .progress-bar__fill { background: #666; }
body.theme-blackhole .progress-bar__bg { background: rgba(255,255,255,0.08); }
body.theme-blackhole .expanded-overlay { background: #000; }
body.theme-blackhole .expanded-overlay__title { color: #e0e0e0; }
body.theme-blackhole .expanded-overlay__subtitle { color: #555; }
body.theme-blackhole .hero-greeting { color: #e0e0e0; }
body.theme-blackhole h1, body.theme-blackhole h2, body.theme-blackhole h3 { color: #e0e0e0; }
body.theme-blackhole .page-title { color: #e0e0e0; }

/* ─── THEME SELECTOR ──────────────────────────────────────────────── */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.theme-option:hover { background: rgba(255,255,255,0.08); }
.theme-option.active { border-color: var(--text-bright-accent, #1db954); }
.theme-option__swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  border: 2px solid rgba(255,255,255,0.1);
}
.theme-option__swatch-half {
  flex: 1;
}
.theme-option__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #b3b3b3;
  text-align: center;
  line-height: 1.2;
}
.theme-option.active .theme-option__label { color: #fff; }
body.theme-apple .theme-option.active { border-color: #fc3c44; }
body.theme-aqua .theme-option.active { border-color: #00e5ff; }
body.theme-blurple .theme-option.active { border-color: #7289da; }
body.theme-blackhole .theme-option.active { border-color: #888; }
body.theme-apple .theme-option { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.theme-apple .theme-option:hover { background: rgba(0,0,0,0.06); }
body.theme-apple .theme-option__label { color: #6e6e73; }
body.theme-apple .theme-option.active .theme-option__label { color: #1d1d1f; }

/* ─── Beta badge ─────────────────────────────────────────────────────── */
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.sidebar__brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.sidebar__brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text-bright-accent, #1db954);
  text-transform: uppercase;
}
.sidebar__brand-beta {
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* ─── Greyed out import buttons ──────────────────────────────────────── */
.import-btn.is-disabled {
  opacity: 0.4;
  filter: saturate(0.3);
  cursor: not-allowed;
}
.import-btn.is-disabled:hover {
  opacity: 0.4;
  background: var(--background-base, #2a2a2a);
}