/* Homify // Next-Gen Cyber-Glass Dark UI */
:root {
  --bg-space: #070b14;
  --bg-surface: rgba(14, 22, 38, 0.75);
  --bg-glass-card: rgba(22, 33, 56, 0.55);
  --bg-card-hover: rgba(30, 48, 80, 0.65);
  --border-glass: rgba(0, 245, 155, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent-neon: #00f59b;
  --accent-neon-glow: rgba(0, 245, 155, 0.35);
  --accent-violet: #8a2be2;
  --accent-violet-glow: rgba(138, 43, 226, 0.35);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-dim: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow: hidden;
  user-select: none;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* ================= Dynamic Ambient Backdrop Glow ================= */
.ambient-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-neon) 0%, transparent 70%);
  top: -100px;
  left: 20%;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
  bottom: -150px;
  right: 15%;
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.ambient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(7, 11, 20, 0.4) 0%, rgba(7, 11, 20, 0.95) 100%);
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ================= App Shell ================= */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
}

.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 10px 10px 0 10px;
  gap: 10px;
}

/* ================= Left Sidebar ================= */
.sidebar {
  width: 290px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.homify-brand-badge,
.baka-brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-neon), #00c77b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-neon-glow);
}

.homify-symbol {
  font-size: 18px;
  color: #050a12;
}

.baka-symbol {
  font-size: 15px;
  font-weight: 900;
  color: #050a12;
  letter-spacing: -1px;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-neon);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(0, 245, 155, 0.12);
  border-color: rgba(0, 245, 155, 0.3);
}

.nav-item.active i {
  color: var(--accent-neon);
  text-shadow: 0 0 8px var(--accent-neon-glow);
}

/* Sidebar Library */
.sidebar-library {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8, 14, 26, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 12px;
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.lib-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: color 0.2s;
}

.lib-title:hover {
  color: #ffffff;
}

.playlist-quick-scroll {
  flex: 1;
  overflow-y: auto;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playlist-quick-scroll::-webkit-scrollbar {
  width: 4px;
}
.playlist-quick-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.liked-heart-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #450af5, #c4efd9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  flex-shrink: 0;
}

.pl-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pl-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Sidebar Jam Banner */
.sidebar-jam-banner {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 245, 155, 0.15));
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-jam-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 245, 155, 0.25);
}

.jam-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent-neon);
  margin-bottom: 6px;
}

.jam-callout {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jam-pulse {
  font-size: 18px;
  color: var(--accent-neon);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px var(--accent-neon)); }
}

.jam-bold {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.jam-tiny {
  font-size: 10px;
  color: var(--text-sub);
}

/* ================= Center Content Area ================= */
.content-area {
  flex: 1;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Sticky Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 16, 28, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  gap: 16px;
}

.topbar-nav {
  display: flex;
  gap: 8px;
}

.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.circle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-lens {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.topbar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 10px 18px 10px 40px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.25s;
}

.topbar-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-neon);
  box-shadow: 0 0 12px var(--accent-neon-glow);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jam-badge-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.jam-badge-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.jam-badge-btn.glow-jam {
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.15), rgba(138, 43, 226, 0.2));
  border-color: rgba(0, 245, 155, 0.4);
  color: var(--accent-neon);
}

.jam-badge-btn.glow-jam:hover {
  box-shadow: 0 0 14px var(--accent-neon-glow);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 13px;
  border: 1px solid var(--border-subtle);
}

/* ================= 3-Platform Native App Hub ================= */
.platforms-deck {
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.7), rgba(8, 14, 26, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.platforms-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.card-win:hover {
  border-color: rgba(0, 245, 155, 0.5);
  box-shadow: 0 12px 28px var(--accent-neon-glow);
}

.card-android:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.25);
}

.card-ios:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.25);
}

.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.win-icon {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-neon);
  box-shadow: 0 0 14px var(--accent-neon-glow);
}

.android-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.ios-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.p-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
}

.win-badge {
  background: rgba(0, 245, 155, 0.12);
  color: var(--accent-neon);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.android-badge {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.ios-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.p-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.p-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  flex: 1;
}

.p-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-meta-tags .tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

.p-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}

.p-action-btn:hover {
  transform: scale(1.02);
}

.btn-win-action {
  background: var(--accent-neon);
  color: #070b14;
  box-shadow: 0 4px 14px var(--accent-neon-glow);
}

.btn-android-action {
  background: #06b6d4;
  color: #070b14;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.ios-install-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  color: #ffffff;
}

.ios-install-pill i {
  color: #a855f7;
}

/* ================= View Panels ================= */
.view-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.view-panel.active {
  display: block;
}

.view-panel::-webkit-scrollbar {
  width: 6px;
}
.view-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.hero-greeting-row {
  margin-bottom: 24px;
}

.view-greeting {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.view-subgreeting {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Quick Cards Grid */
.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.quick-card {
  display: flex;
  align-items: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.quick-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 155, 0.3);
  transform: translateY(-2px);
}

.quick-card-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.quick-card-title {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Tracks Grid / Trending Shelf */
.shelf-section {
  margin-bottom: 36px;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.shelf-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-icon {
  color: var(--accent-neon);
}

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

.track-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.track-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 155, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.card-art-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #0b111e;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-play-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-neon);
  color: #070b14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 16px var(--accent-neon-glow);
}

.track-card:hover .hover-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search Categories */
.search-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cat-card {
  height: 110px;
  border-radius: 12px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cat-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 60px;
  transform: rotate(20deg);
  opacity: 0.25;
}

.cat-pop { background: linear-gradient(135deg, #ec4899, #be185d); }
.cat-hiphop { background: linear-gradient(135deg, #f97316, #ea580c); }
.cat-phonk { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cat-rock { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cat-edm { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* Track Rows List (Search Results & Library) */
.track-rows-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-row {
  display: grid;
  grid-template-columns: 40px 52px 1fr 100px 80px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.track-row.playing {
  background: rgba(0, 245, 155, 0.1);
}

.track-row.playing .tr-title {
  color: var(--accent-neon);
}

.tr-num {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.tr-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.tr-title-artist {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  overflow: hidden;
}

.tr-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-duration {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  padding-right: 12px;
}

.tr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-row-action {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.btn-row-action:hover {
  color: var(--accent-neon);
}

/* ================= Studio Karaoke Lyrics View ================= */
#view-lyrics {
  display: none;
  flex-direction: column;
  padding: 24px 40px;
  background: radial-gradient(circle at 50% 20%, rgba(138, 43, 226, 0.2), transparent 70%);
}

#view-lyrics.active {
  display: flex;
}

.lyrics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.lyrics-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent-neon);
  background: rgba(0, 245, 155, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.lyrics-canvas {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 120px;
}

.lyrics-canvas::-webkit-scrollbar {
  width: 0;
}

.lyrics-line {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

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

.lyrics-line.active {
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(0, 245, 155, 0.45);
}

.lyrics-empty {
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 80px;
}

/* ================= Right Drawer: BAKA Jam ================= */
.jam-drawer {
  width: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jam-drawer.open {
  width: 320px;
  opacity: 1;
  pointer-events: auto;
  padding: 20px;
}

.jam-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.jam-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.jam-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 18px;
}

.jam-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-green-pill {
  background: var(--accent-neon);
  border: none;
  color: #070b14;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-neon-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s;
}

.btn-green-pill:hover {
  transform: scale(1.02);
}

.jam-or {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
}

.jam-join-row {
  display: flex;
  gap: 8px;
}

.jam-join-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 8px 14px;
  color: #ffffff;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.btn-white-pill {
  background: #ffffff;
  border: none;
  color: #070b14;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
}

.jam-code-badge {
  background: rgba(0, 245, 155, 0.12);
  border: 1px dashed rgba(0, 245, 155, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.code-val {
  font-family: monospace;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-neon);
  letter-spacing: 1px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.jam-members-list {
  margin-bottom: 16px;
}

.jam-members-list h4, .jam-queue-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.btn-leave-jam {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= Bottom Player Bar ================= */
.player-bar {
  height: 92px;
  background: rgba(9, 14, 25, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

/* Left: Now Playing */
.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 30%;
  min-width: 220px;
}

.art-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.player-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-track-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.15s;
}

.btn-icon:hover {
  color: #ffffff;
}

.like-btn.liked i {
  color: var(--accent-neon);
  font-weight: 900;
}

.jam-sync-indicator {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-neon);
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Center: Controls */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 40%;
  max-width: 600px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.15s;
}

.btn-ctrl:hover {
  color: #ffffff;
}

.btn-ctrl.active {
  color: var(--accent-neon);
  text-shadow: 0 0 8px var(--accent-neon-glow);
}

.btn-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #070b14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.btn-play-circle:hover {
  transform: scale(1.08);
  background: var(--accent-neon);
}

.player-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-lbl {
  font-size: 11px;
  color: var(--text-dim);
  font-family: monospace;
  width: 35px;
}

.progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}

.progress-bar-bg:hover {
  height: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f59b, #38ef7d);
  border-radius: 4px;
  position: relative;
}

.progress-glow-dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px var(--accent-neon);
  opacity: 0;
  transition: opacity 0.15s;
}

.progress-bar-bg:hover .progress-glow-dot {
  opacity: 1;
}

/* Right: Visualizer & Tools */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 30%;
  min-width: 200px;
}

.player-viz-canvas {
  width: 56px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
}

.volume-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
}

.volume-bar-fill {
  height: 100%;
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
}

/* ================= Mobile PWA Navigation & Responsive ================= */
.mobile-bottom-nav {
  display: none;
}

.mobile-modal-overlay,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(16px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-modal-overlay.open,
.modal-overlay.open {
  display: flex;
}

.mobile-modal-card,
.modal-card {
  width: 440px;
  max-width: 90vw;
  background: #0e1626;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.mobile-url-box {
  background: #080d17;
  border: 1px solid rgba(0, 245, 155, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-neon);
}

.url-copy-row {
  display: flex;
  gap: 8px;
}

.url-copy-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 13px;
  outline: none;
}

.mobile-guide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--text-sub);
}

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

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 245, 155, 0.2);
  color: var(--accent-neon);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile viewport adjustments */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-layout {
    padding: 0;
  }

  .content-area {
    border-radius: 0;
    border: none;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar-nav {
    display: none;
  }

  #phone-connect-btn {
    display: none;
  }

  .view-panel {
    padding: 14px;
    padding-bottom: 120px;
  }

  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracks-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .player-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    width: 100vw;
    height: 64px;
    padding: 0 12px;
  }

  .player-left {
    width: 65%;
    min-width: 0;
  }

  .art-wrapper {
    width: 44px;
    height: 44px;
  }

  .player-center {
    width: auto;
    max-width: none;
  }

  .player-scrubber-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
  }

  .player-scrubber-row .time-lbl {
    display: none;
  }

  .progress-bar-bg {
    height: 3px;
    border-radius: 0;
  }

  .player-controls .btn-ctrl {
    display: none;
  }

  .player-right {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    background: #090e19;
    border-top: 1px solid var(--border-subtle);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-nav-btn i {
    font-size: 18px;
  }

  .mobile-nav-btn.active {
    color: var(--accent-neon);
  }
}
