/* ==========================================================================
   Spotidy — Modern Spotify Desktop Web Player Theme
   ========================================================================== */
:root {
  --bg-black: #000000;
  --bg-base: #121212;
  --bg-elevated: #181818;
  --bg-highlight: #242424;
  --bg-press: #2a2a2a;
  --bg-hover-row: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-subdued: #b3b3b3;
  --text-muted: #7a7a7a;
  --spotify-green: #1ed760;
  --spotify-green-dark: #1db954;
  --spotify-green-hover: #3be477;
  --radius-panel: 8px;
  --radius-card: 6px;
  --gap: 8px;
  --topbar-h: 64px;
  --player-h: 84px;
  --left-w: 296px;
  --right-w: 320px;
  --font-sans: 'Circular Std', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img {
  display: block;
}

.hidden {
  display: none !important;
}

/* Custom subtle scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ==================== APP SHELL ==================== */
.app-shell {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--player-h);
  height: 100vh;
  width: 100vw;
  background: var(--bg-black);
  padding: 0 var(--gap);
}

/* ==================== TOP BAR ==================== */
.top-bar {
  display: grid;
  grid-template-columns: auto minmax(200px, 540px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  height: var(--topbar-h);
  padding: 0 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.brand-logo-btn:hover {
  transform: scale(1.03);
}
.brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.nav-history {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f1f1f;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.icon-circle-btn svg {
  width: 16px;
  height: 16px;
}
.icon-circle-btn:hover:not(:disabled) {
  background: #2a2a2a;
  color: #fff;
  transform: scale(1.05);
}
.icon-circle-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.home-pill-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f1f1f;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.home-pill-btn svg {
  width: 22px;
  height: 22px;
}
.home-pill-btn:hover {
  background: #2a2a2a;
  color: #fff;
  transform: scale(1.04);
}
.home-pill-btn.active {
  color: #fff;
}

.global-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  height: 46px;
  background: #1f1f1f;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s;
}
.global-search-wrap:hover {
  background: #282828;
  border-color: rgba(255, 255, 255, 0.12);
}
.global-search-wrap:focus-within {
  background: #282828;
  border-color: #ffffff;
}
.search-prefix-icon {
  width: 20px;
  height: 20px;
  color: var(--text-subdued);
  flex-shrink: 0;
}
.global-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
}
.global-search-input::placeholder {
  color: var(--text-subdued);
}
.search-clear-btn, .search-browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subdued);
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s, transform 0.12s;
}
.search-clear-btn:hover, .search-browse-btn:hover {
  color: #fff;
  transform: scale(1.08);
}
.search-clear-btn svg { width: 15px; height: 15px; }
.search-browse-btn svg { width: 19px; height: 19px; }
.search-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.whats-new-btn {
  position: relative;
}
.whats-new-btn.active {
  background: #2e2e2e;
  color: #fff;
}
.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spotify-green);
  box-shadow: 0 0 0 2px #1f1f1f;
}

.hd-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-subdued);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.hd-pill-btn:hover {
  background: #2a2a2a;
  color: #fff;
  transform: scale(1.03);
}
.hd-pill-btn.active {
  border-color: rgba(30, 215, 96, 0.55);
  color: #1ed760;
  background: rgba(30, 215, 96, 0.1);
}
.hd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.yt-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 45, 70, 0.14);
  border: 1px solid rgba(255, 65, 85, 0.45);
  color: #ff6b7a;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.yt-pill-btn:hover {
  background: rgba(255, 45, 70, 0.24);
  color: #fff;
  transform: scale(1.03);
}
.yt-pill-btn.connected {
  background: rgba(30, 215, 96, 0.14);
  border-color: rgba(30, 215, 96, 0.55);
  color: #1ed760;
}

.source-badge.youtube {
  background: rgba(255, 45, 70, 0.2);
  color: #ff6b7a;
}

.yt-player-dock {
  padding: 12px 14px 4px;
  flex-shrink: 0;
}
.yt-player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.yt-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-modal-card {
  max-width: 500px;
}
.yt-steps-box {
  background: #181818;
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--text-subdued);
}
.yt-steps-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}
.yt-steps-box ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.yt-steps-box a {
  color: var(--spotify-green);
  text-decoration: underline;
}
.yt-key-status {
  font-size: 12.5px;
  min-height: 18px;
  color: var(--text-subdued);
}
.yt-key-status.ok {
  color: #1ed760;
}
.yt-key-status.err {
  color: #ff6b7a;
}

.pill-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.12s, background 0.15s;
}
.pill-action-btn svg {
  width: 15px;
  height: 15px;
}
.pill-action-btn:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760, #169c46);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #282828;
}

/* ==================== WORKSPACE 3-PANEL GRID ==================== */
.workspace {
  display: flex;
  gap: var(--gap);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.panel {
  background: var(--bg-base);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  contain: layout style paint;
}

/* ==================== LEFT SIDEBAR ==================== */
.left-sidebar {
  width: var(--left-w);
  flex-shrink: 0;
  transition: width 0.2s ease;
}
.left-sidebar.collapsed {
  width: 72px;
}
.left-sidebar.collapsed .sidebar-label,
.left-sidebar.collapsed .sidebar-filters,
.left-sidebar.collapsed .lib-item-text,
.left-sidebar.collapsed #createPlaylistBtn {
  display: none;
}
.left-sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 14px 8px;
}
.left-sidebar.collapsed .lib-item {
  justify-content: center;
  padding: 8px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.library-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-subdued);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.15s;
}
.library-toggle-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.library-toggle-btn:hover {
  color: #fff;
}

.icon-ghost-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.icon-ghost-btn svg {
  width: 16px;
  height: 16px;
}
.icon-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-filters {
  display: flex;
  gap: 8px;
  padding: 4px 16px 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.filter-chip:hover {
  background: rgba(255, 255, 255, 0.15);
}
.filter-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.library-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 14px;
}

.lib-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  text-align: left;
  transition: background 0.12s;
}
.lib-item:hover {
  background: rgba(255, 255, 255, 0.07);
}
.lib-item.active {
  background: rgba(255, 255, 255, 0.14);
}
.lib-item-art {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #282828;
}
.lib-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-item-art svg {
  width: 22px;
  height: 22px;
}
.quick-card-art svg {
  width: 26px;
  height: 26px;
}
.lib-item-art.liked-cover {
  background: linear-gradient(135deg, #450af5, #8e8ee5, #c4efd9);
  color: #fff;
}
.lib-item-art.local-cover {
  background: linear-gradient(135deg, #006450, #1db954);
  color: #fff;
}
.lib-item-text {
  min-width: 0;
  flex: 1;
}
.lib-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-item.playing .lib-item-title {
  color: var(--spotify-green);
}
.lib-item-sub {
  font-size: 12.5px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ==================== MAIN CONTENT PANEL ==================== */
.main-panel {
  flex: 1;
  min-width: 0;
  position: relative;
}

.ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(30, 215, 96, 0.25) 0%, rgba(18, 18, 18, 0) 100%);
  pointer-events: none;
  transition: background 0.5s ease;
  z-index: 0;
}

.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px 40px;
}

/* Home View */
.home-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.home-greeting {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 12px;
  margin-bottom: 30px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  padding-right: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.quick-card:hover {
  background: rgba(255, 255, 255, 0.17);
}
.quick-card-art {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quick-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.quick-play-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--spotify-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s;
  flex-shrink: 0;
}
.quick-card:hover .quick-play-fab,
.quick-card.is-playing .quick-play-fab {
  opacity: 1;
  transform: translateY(0);
}
.quick-play-fab:hover {
  background: var(--spotify-green-hover);
  transform: scale(1.06);
}
.quick-play-fab svg {
  width: 17px;
  height: 17px;
}

/* Section Shelf */
.section-block {
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-subdued);
}
.section-link:hover {
  color: #fff;
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
}

.media-card {
  background: transparent;
  border-radius: var(--radius-card);
  padding: 12px;
  cursor: pointer;
  transition: background 0.16s ease;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 170px 236px;
}
.media-card:hover {
  background: #1f1f1f;
}
.media-card-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #282828;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.media-card-art-wrap.round {
  border-radius: 50%;
}
.media-card-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-play-fab {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--spotify-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
}
.media-card:hover .card-play-fab,
.media-card.is-playing .card-play-fab {
  opacity: 1;
  transform: translateY(0);
}
.card-play-fab:hover {
  background: var(--spotify-green-hover);
  transform: scale(1.06);
}
.card-play-fab svg {
  width: 19px;
  height: 19px;
}

.media-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.media-card-sub {
  font-size: 12.5px;
  color: var(--text-subdued);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Local Music Banner */
.local-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(29, 185, 84, 0.22), rgba(30, 50, 100, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.local-cta-banner h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}
.local-cta-banner p {
  font-size: 13px;
  color: var(--text-subdued);
}

/* ==================== DETAIL HEADER (PLAYLIST / LIKED / LOCAL / ARTIST) ==================== */
.detail-hero {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 16px 0 24px;
}
.detail-cover {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-cover.round {
  border-radius: 50%;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mosaic-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}
.mosaic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  min-width: 0;
  flex: 1;
}
.detail-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.detail-title {
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.detail-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
  max-width: 680px;
}
.detail-stats {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.big-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--spotify-green);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, background 0.15s;
}
.big-play-btn:hover {
  transform: scale(1.05);
  background: var(--spotify-green-hover);
}
.big-play-btn svg {
  width: 22px;
  height: 22px;
}
.outline-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
}
.outline-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}
.outline-btn.danger:hover {
  border-color: #f15e6c;
  color: #f15e6c;
}

.inline-filter-input {
  margin-left: auto;
  height: 34px;
  width: 210px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #fff;
  outline: none;
}
.inline-filter-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.inline-filter-input::placeholder {
  color: var(--text-subdued);
}

/* ==================== TRACK TABLE ==================== */
.track-table-head {
  display: grid;
  grid-template-columns: 36px 4.5fr 2.6fr 96px;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.track-row {
  display: grid;
  grid-template-columns: 36px 4.5fr 2.6fr 96px;
  gap: 12px;
  align-items: center;
  padding: 7px 14px;
  border-radius: 5px;
  transition: background 0.12s;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 54px;
}
.track-row:hover {
  background: var(--bg-hover-row);
}
.track-row.active-track {
  background: rgba(255, 255, 255, 0.09);
}

.track-idx-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subdued);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.track-row .row-play-icon {
  display: none;
  color: #fff;
}
.track-row:hover .row-idx-num,
.track-row:hover .eq-bars {
  display: none;
}
.track-row:hover .row-play-icon {
  display: inline-flex;
}

/* Animated playing equalizer bars */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.eq-bars span {
  width: 3px;
  background: var(--spotify-green);
  border-radius: 1px;
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}
.eq-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 13px; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.eq-bars.paused span {
  animation: none;
  height: 4px;
}
@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.track-main-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.track-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #282828;
}
.track-info {
  min-width: 0;
  flex: 1;
}
.track-name {
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row.active-track .track-name {
  color: var(--spotify-green);
}
.track-artist-line {
  font-size: 12.5px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.track-artist-link {
  color: var(--text-subdued);
  font-size: 12.5px;
  text-align: left;
}
.track-artist-link:hover {
  color: #fff;
  text-decoration: underline;
}
.explicit-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  color: #121212;
  font-size: 9.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.track-album-cell {
  font-size: 13px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}
.source-badge.studio {
  background: rgba(30, 215, 96, 0.16);
  color: #1ed760;
}
.source-badge.hd {
  background: rgba(0, 212, 255, 0.18);
  color: #5ce1ff;
}
.source-badge.radio {
  background: rgba(255, 77, 109, 0.2);
  color: #ff6b81;
}
.source-badge.local {
  background: rgba(132, 169, 255, 0.2);
  color: #9ec0ff;
}
.source-badge.preview {
  background: rgba(255, 255, 255, 0.1);
  color: #d4d4d4;
}

.radio-live-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ff6b81;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.radio-live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d6d;
}

.chart-rank-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #1ed760;
  font-size: 11px;
  font-weight: 800;
}

.hd-corner-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #5ce1ff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.14);
  color: #1ed760;
  font-size: 11.5px;
  font-weight: 700;
}
.live-pulse-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ed760;
}

.match-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.84);
  border: 1px solid rgba(30, 215, 96, 0.5);
  color: #1ed760;
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.mood-radar-card {
  background: linear-gradient(145deg, rgba(30, 215, 96, 0.12), rgba(26, 26, 26, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 14px;
}
.mood-radar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.mood-reason {
  font-size: 12px;
  color: var(--text-subdued);
  margin-bottom: 10px;
}
.mood-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mood-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-subdued);
  margin-bottom: 4px;
}
.mood-meter-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.mood-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--spotify-green);
}
.mood-meter-fill.valence {
  background: #5ce1ff;
}

.suggest-match-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--spotify-green);
  flex-shrink: 0;
}
.suggest-dismiss-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.suggest-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ff6b81;
}

.dsp-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.dsp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #1a1a1a;
  cursor: pointer;
}
.dsp-toggle-row strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
}
.dsp-toggle-row span {
  display: block;
  font-size: 11.5px;
  color: var(--text-subdued);
  margin-top: 2px;
}
.toggle-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #444;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.toggle-switch:checked {
  background: var(--spotify-green);
}
.toggle-switch:checked::after {
  transform: translateX(18px);
}

.track-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.track-dur {
  font-size: 13px;
  color: var(--text-subdued);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}
.row-like-btn, .row-more-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subdued);
  opacity: 0;
  transition: opacity 0.12s, color 0.12s, transform 0.12s;
}
.track-row:hover .row-like-btn,
.track-row:hover .row-more-btn,
.row-like-btn.liked {
  opacity: 1;
}
.row-like-btn.liked {
  color: var(--spotify-green);
}
.row-like-btn:hover, .row-more-btn:hover {
  color: #fff;
  transform: scale(1.1);
}
.row-like-btn.liked:hover {
  color: var(--spotify-green-hover);
}
.row-like-btn svg, .row-more-btn svg {
  width: 15px;
  height: 15px;
}

/* Compact Track Table (used in Search "Songs" beside Top Result) */
.compact-track-table .track-table-head,
.compact-track-table .track-album-cell,
.compact-track-table .track-source-cell {
  display: none;
}
.compact-track-table .track-row {
  grid-template-columns: 28px minmax(0, 1fr) 86px;
  padding: 6px 10px;
}

/* ==================== SEARCH VIEW ==================== */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.browse-card {
  height: 132px;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s;
}
.browse-card:hover {
  transform: scale(1.025);
  filter: brightness(1.08);
}
.browse-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.browse-card-decor {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 84px;
  height: 84px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  transform: rotate(24deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.search-top-grid {
  display: grid;
  grid-template-columns: minmax(260px, 370px) 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
.top-result-card {
  background: #181818;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.top-result-card:hover {
  background: #262626;
}
.top-result-card img {
  width: 92px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.top-result-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-result-sub {
  font-size: 13.5px;
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-result-card .card-play-fab {
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
}
.top-result-card:hover .card-play-fab {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RIGHT SIDEBAR ==================== */
.right-sidebar {
  width: var(--right-w);
  flex-shrink: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
}
.right-sidebar.closed {
  display: none;
}

.right-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.right-tabs {
  display: flex;
  gap: 6px;
}
.right-tab {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-subdued);
  transition: background 0.15s, color 0.15s;
}
.right-tab:hover {
  color: #fff;
}
.right-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.right-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.np-art-card {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #242424;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.np-art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.np-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.np-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.np-artist {
  font-size: 14px;
  color: var(--text-subdued);
  margin-top: 3px;
}
.np-artist:hover {
  color: #fff;
  text-decoration: underline;
}

.np-visualizer-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.np-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.np-visualizer-canvas {
  width: 100%;
  height: 70px;
  display: block;
}

.np-next-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 14px;
}
.queue-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-subdued);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.queue-section-title:first-child {
  margin-top: 0;
}
.queue-clear-btn {
  font-size: 12px;
  color: var(--text-subdued);
  font-weight: 600;
}
.queue-clear-btn:hover {
  color: #fff;
  text-decoration: underline;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.queue-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.queue-item-info {
  min-width: 0;
  flex: 1;
}
.queue-item-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item.current .queue-item-title {
  color: var(--spotify-green);
}
.queue-item-sub {
  font-size: 12px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== BOTTOM PLAYER BAR ==================== */
.player-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.55fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--player-h);
  padding: 0 8px;
  background: var(--bg-black);
  contain: layout style paint;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player-art-wrap {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
  background: #242424;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s;
}
.player-art-wrap:hover {
  transform: scale(1.04);
}
.player-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-track-meta {
  min-width: 0;
  flex: 0 1 auto;
  max-width: 240px;
}
.player-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.player-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist {
  font-size: 12px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: left;
}
.player-artist:hover {
  color: #fff;
  text-decoration: underline;
}
.like-btn.liked {
  color: var(--spotify-green);
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, transform 0.12s;
}
.ctrl-btn svg {
  width: 16px;
  height: 16px;
}
.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.06);
}
.ctrl-btn.active {
  color: var(--spotify-green);
}
.ctrl-btn.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--spotify-green);
}
.repeat-one-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 9px;
  font-weight: 800;
  background: var(--spotify-green);
  color: #000;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, background 0.12s;
}
.play-pause-btn:hover {
  transform: scale(1.07);
}
.play-pause-btn svg {
  width: 16px;
  height: 16px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.time-label {
  font-size: 11.5px;
  color: var(--text-subdued);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.time-label:first-child {
  text-align: right;
}

/* Spotify-style interactive slider */
.slider-track {
  position: relative;
  flex: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.slider-bg {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.slider-fill {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: left center;
  will-change: transform;
  transition: background 0.12s;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s;
  pointer-events: none;
}
.slider-track:hover .slider-fill,
.slider-track.dragging .slider-fill {
  background: var(--spotify-green);
}
.slider-track:hover .slider-thumb,
.slider-track.dragging .slider-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 126px;
}
.volume-slider {
  flex: 1;
}

/* ==================== MODALS, CONTEXT MENU, EQ, CINEMA ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #242424;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
}
.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-subdued);
  margin-top: 3px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-subdued);
}
.form-field input,
.form-field textarea {
  background: #333333;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: #3a3a3a;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.btn-primary {
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--spotify-green);
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform 0.12s, background 0.15s;
}
.btn-primary:hover {
  background: var(--spotify-green-hover);
  transform: scale(1.03);
}
.btn-secondary {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Equalizer Modal */
.eq-modal-card {
  max-width: 500px;
}
.eq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.eq-sliders {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 12px 14px;
  background: #181818;
  border-radius: 8px;
}
.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.eq-db-val {
  font-size: 11.5px;
  color: var(--spotify-green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.eq-range-wrap {
  position: relative;
  width: 36px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eq-range {
  position: absolute;
  width: 120px;
  height: 20px;
  transform: rotate(-90deg);
  accent-color: var(--spotify-green);
  cursor: pointer;
}
.eq-freq-label {
  font-size: 11.5px;
  color: var(--text-subdued);
  font-weight: 600;
}

/* Context Menu */
.context-menu {
  position: fixed;
  min-width: 210px;
  background: #282828;
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  z-index: 150;
}
.ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}
.ctx-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ctx-item.danger {
  color: #ff7a85;
}
.ctx-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 6px;
}
.ctx-sub-label {
  padding: 6px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Cinema Fullscreen Mode */
.cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.cinema-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(0.32) saturate(1.4);
  transform: scale(1.15);
}
.cinema-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinema-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.cinema-close-btn svg {
  width: 18px;
  height: 18px;
}
.cinema-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 44px;
  max-width: 980px;
  width: 100%;
}
.cinema-art {
  width: 310px;
  height: 310px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}
.cinema-meta {
  min-width: 0;
  flex: 1;
}
.cinema-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cinema-artist {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
}
.cinema-visualizer {
  width: 100%;
  max-width: 560px;
  height: 110px;
  display: block;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-box {
  padding: 46px 56px;
  border-radius: 16px;
  border: 2.5px dashed var(--spotify-green);
  background: rgba(24, 24, 24, 0.92);
  text-align: center;
  color: #fff;
}
.drop-box svg {
  color: var(--spotify-green);
  margin-bottom: 12px;
}
.drop-box h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.drop-box p {
  color: var(--text-subdued);
  font-size: 13.5px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #2e77d0;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 250;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Empty & Loading States */
.empty-state {
  text-align: center;
  padding: 54px 20px;
  color: var(--text-subdued);
}
.empty-state h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13.5px;
  margin-bottom: 18px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--spotify-green);
  border-radius: 50%;
  margin: 24px auto;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1120px) {
  .right-sidebar {
    position: fixed;
    top: var(--topbar-h);
    right: var(--gap);
    bottom: var(--player-h);
    z-index: 40;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.65);
  }
}
@media (max-width: 860px) {
  .left-sidebar {
    width: 72px;
  }
  .left-sidebar .sidebar-label,
  .left-sidebar .sidebar-filters,
  .left-sidebar .lib-item-text,
  .left-sidebar #createPlaylistBtn {
    display: none;
  }
  .top-bar {
    grid-template-columns: auto 1fr auto;
  }
  .brand-name, .pill-action-btn span {
    display: none;
  }
  .track-table-head, .track-row {
    grid-template-columns: 30px 1fr 78px;
  }
  .track-album-cell, .col-album, .col-source, .track-source-cell {
    display: none;
  }
  .search-top-grid {
    grid-template-columns: 1fr;
  }
  .cinema-stage {
    flex-direction: column;
    text-align: center;
  }
  .cinema-art {
    width: 220px;
    height: 220px;
  }
}

/* ==================== NOUTUBE INTEGRATION STYLES ==================== */
.sleep-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(141, 103, 171, 0.3);
  color: #e6d4ff;
}

.source-badge.youtube {
  background: rgba(255, 46, 76, 0.18);
  color: #ff6b81;
  border: 1px solid rgba(255, 46, 76, 0.35);
}

.yt-dock-btn {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subdued);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.yt-dock-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Hidden Audio-Only YouTube Player Host (keeps YouTube playback reliable without showing video) */
.yt-audio-engine-host {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 240px;
  height: 135px;
  opacity: 0.001;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* SponsorBlock segments overlay on Seek Bar */
.slider-bg {
  position: relative;
}
.sb-segments-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
}
.sb-seg-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.85;
  border-radius: 2px;
}

/* Footer Speed & Sleep Controls */
.speed-footer-btn {
  height: 26px;
  min-width: 30px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-subdued);
  background: transparent;
  transition: color 0.15s, transform 0.12s;
}
.speed-footer-btn:hover {
  color: #fff;
  transform: scale(1.06);
}
.speed-footer-btn.active {
  color: var(--spotify-green);
}

/* Spotify-minimal Top Bar & Sidebar Additions */
.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.left-sidebar.collapsed .sidebar-header-actions {
  display: none;
}
.nt-icon-btn {
  position: relative;
}
.nt-status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.nt-icon-btn.connected .nt-status-dot {
  background: var(--spotify-green);
  box-shadow: 0 0 0 2px #1f1f1f;
}
.player-bar .source-badge {
  display: none !important;
}
.quick-grid {
  margin-top: 12px;
}

/* NouTube Modal & Hub */
.nt-modal-card {
  width: min(640px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
}
.nt-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.nt-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nt-tool-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nt-tool-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.nt-sleep-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--spotify-green);
}
.nt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.nt-sb-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-subdued);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.nt-sb-cat-chip.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.nt-sb-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.nt-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nt-inline-form input {
  flex: 1;
  min-width: 0;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
}
.nt-inline-form input:focus {
  outline: none;
  border-color: var(--spotify-green);
}
.nt-helper-text {
  font-size: 13px;
  color: var(--text-subdued);
  line-height: 1.5;
}
.nt-blocklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.nt-blocklist-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.nt-blocklist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}
.nt-blocklist-row.disabled span {
  opacity: 0.45;
  text-decoration: line-through;
}
.nt-proxy-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.45;
}
.nt-proxy-card.ok {
  background: rgba(29, 185, 84, 0.14);
  border-color: rgba(30, 215, 96, 0.4);
  color: #d8ffe6;
}
.yt-key-status {
  font-size: 12.5px;
  color: var(--text-subdued);
  min-height: 18px;
}
.yt-key-status.ok {
  color: var(--spotify-green);
}
.yt-key-status.err {
  color: #ff6b81;
}

/* NouTube Hub View */
.nt-hero-banner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(18, 18, 18, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nt-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nt-hero-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nt-hero-sub {
  font-size: 13.5px;
  color: var(--text-subdued);
  margin-top: 4px;
}
.nt-url-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nt-url-bar input {
  flex: 1;
  min-width: 220px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13.5px;
}
.nt-url-bar input:focus {
  outline: none;
  border-color: var(--spotify-green);
}
.nt-channel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.nt-ch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s;
}
.nt-ch-chip:hover {
  background: rgba(255, 255, 255, 0.16);
}
.nt-ch-chip.active {
  background: #fff;
  color: #000;
}
.nt-ch-remove {
  font-size: 14px;
  line-height: 1;
  opacity: 0.65;
  padding: 0 2px;
}
.nt-ch-remove:hover {
  opacity: 1;
  color: #ff4d6d;
}

/* ==================== SPOTIFY MOBILE (iOS & ANDROID APP) ==================== */
.mobile-bottom-nav,
.mob-mini-progress {
  display: none;
}

/* Fullscreen Mobile Now Playing Sheet */
.mob-np-sheet {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: #121212;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mobSheetUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes mobSheetUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.mob-np-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.35) saturate(1.4);
  transform: scale(1.2);
  pointer-events: none;
}
.mob-np-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 24px calc(22px + env(safe-area-inset-bottom, 0px));
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.mob-np-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mob-np-header-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}
.mob-np-art-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  flex: 1;
  min-height: 0;
}
.mob-np-art {
  width: min(84vw, 340px);
  height: min(84vw, 340px);
  max-height: 40vh;
  max-width: 40vh;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.mob-np-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.mob-np-meta-text {
  min-width: 0;
  flex: 1;
}
.mob-np-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-np-artist {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mob-np-seek-wrap {
  margin-bottom: 16px;
}
.mob-np-seek-wrap .slider-track {
  height: 22px;
}
.mob-np-times {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.mob-np-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mob-ctrl-lg svg {
  width: 24px !important;
  height: 24px !important;
}
.mob-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s;
}
.mob-play-btn:active {
  transform: scale(0.94);
}
.mob-play-btn svg {
  width: 26px;
  height: 26px;
}
.mob-np-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.mob-util-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 700;
}
.mob-util-btn.active {
  background: rgba(30, 215, 96, 0.22);
  color: var(--spotify-green);
}

@media (max-width: 768px) {
  html, body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }

  .app-shell {
    height: 100dvh;
    padding: 0;
    grid-template-rows: auto 1fr auto auto;
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Compact Spotify Mobile Header */
  .top-bar {
    height: 54px;
    padding: 0 12px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }
  .nav-history,
  .home-pill-btn,
  .user-avatar,
  #eqTopBtn,
  .brand-name {
    display: none !important;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
  }
  .global-search-wrap {
    height: 38px;
    padding: 0 12px;
  }
  .search-divider,
  .search-browse-btn {
    display: none;
  }

  /* Full-width mobile workspace */
  .workspace {
    gap: 0;
    position: relative;
    overflow: hidden;
  }
  .panel {
    border-radius: 0;
  }
  .main-content {
    padding: 12px 14px 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile Library View (toggled via Bottom Tab Bar) */
  .left-sidebar {
    display: none;
    position: absolute;
    inset: 0;
    width: 100% !important;
    z-index: 30;
    background: var(--bg-base);
    border-radius: 0;
  }
  body.mob-library-open .left-sidebar {
    display: flex;
  }
  .left-sidebar .sidebar-label,
  .left-sidebar .sidebar-filters,
  .left-sidebar .lib-item-text,
  .left-sidebar .sidebar-header-actions {
    display: flex !important;
  }
  .left-sidebar .lib-item-text {
    display: block !important;
  }

  /* Right Sidebar (Queue / YouTube video drawer) on mobile */
  .right-sidebar {
    position: fixed;
    top: calc(54px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
    width: 100% !important;
    z-index: 45;
    border-radius: 12px 12px 0 0;
  }

  /* Spotify Mobile 2-col Quick Picks + Horizontal Swipe Shelves */
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-card {
    height: 52px;
  }
  .quick-card-art {
    width: 52px;
    height: 52px;
  }
  .quick-card-title {
    font-size: 12.5px;
    padding: 0 8px;
  }
  .quick-play-fab {
    display: none;
  }
  .card-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .card-grid::-webkit-scrollbar {
    display: none;
  }
  .media-card {
    flex: 0 0 144px;
    padding: 8px;
    scroll-snap-align: start;
  }
  .media-card-title {
    font-size: 13.5px;
  }
  .card-play-fab {
    display: none;
  }
  .section-title {
    font-size: 18px;
  }

  /* Detail Hero stacked nicely on phone */
  .detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 8px;
  }
  .detail-cover {
    width: 190px;
    height: 190px;
  }
  .detail-title {
    font-size: 26px;
  }

  /* Floating Spotify Mobile Mini-Player */
  .player-bar {
    position: relative;
    height: 58px;
    margin: 0 8px 4px;
    padding: 0 10px;
    border-radius: 8px;
    background: #242424;
    grid-template-columns: 1fr auto;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    overflow: hidden;
  }
  .player-left {
    min-width: 0;
    cursor: pointer;
  }
  .player-art-wrap {
    width: 42px;
    height: 42px;
  }
  .player-title {
    font-size: 13.5px;
  }
  .player-artist {
    font-size: 12px;
  }
  .player-center {
    flex-direction: row;
    gap: 0;
  }
  .progress-row,
  #shuffleBtn,
  #prevBtn,
  #nextBtn,
  #repeatBtn,
  .player-right {
    display: none !important;
  }
  .play-pause-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    color: #fff;
  }
  .play-pause-btn svg {
    width: 20px;
    height: 20px;
  }
  .mob-mini-progress {
    display: block;
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    overflow: hidden;
  }
  .mob-mini-progress-fill {
    width: 100%;
    height: 100%;
    background: #fff;
    transform-origin: left center;
  }

  /* Spotify Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
  }
  .mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-subdued);
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.15s;
  }
  .mob-nav-btn svg {
    width: 22px;
    height: 22px;
  }
  .mob-nav-btn.active {
    color: #fff;
  }

  .toast {
    bottom: calc(134px + env(safe-area-inset-bottom, 0px));
    max-width: 90vw;
    text-align: center;
  }
}



/* ==========================================================================
   SEARCH SUGGESTIONS DROPDOWN
   ========================================================================== */
.global-search-wrap { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 300;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 8px;
}
.search-suggest.hidden { display: none; }
.suggest-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subdued);
}
.suggest-clear-recent {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-subdued);
}
.suggest-clear-recent:hover { color: #fff; text-decoration: underline; }
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  text-align: left;
  color: #fff;
  cursor: pointer;
}
.suggest-item:hover, .suggest-item.active { background: rgba(255, 255, 255, 0.1); }
.suggest-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  background: #333;
}
.suggest-thumb.round { border-radius: 50%; }
.suggest-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subdued);
}
.suggest-icon svg { width: 18px; height: 18px; }
.suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.suggest-title, .suggest-sub { display: block; }
.suggest-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-item mark { background: none; color: var(--spotify-green); }
.suggest-sub {
  font-size: 12px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-verified { color: #3d91f4; margin-left: 4px; font-size: 12px; }
.suggest-remove {
  padding: 4px 6px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
}
.suggest-remove:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.suggest-status { padding: 10px; font-size: 13px; color: var(--text-subdued); }
.suggest-footer {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
}
@media (max-width: 768px) {
  .search-suggest {
    position: fixed;
    top: calc(var(--topbar-h) + 4px);
    left: 8px;
    right: 8px;
    max-height: 65vh;
  }
}

/* Spotify-style search tabs & recent searches */
.search-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -4px 0 18px;
  padding: 6px 0;
  background: inherit;
}
.filter-chip.small { font-size: 12px; padding: 5px 12px; }
.search-loading-dot { font-size: 13px; font-weight: 500; color: var(--text-subdued); }
.recent-search-pills { flex-wrap: wrap; }
@media (max-width: 768px) {
  .search-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tabs .filter-chip { flex-shrink: 0; }
}
