/* ==========================================================================
   CLOUDY — Clean Minimalist Apple-Inspired Music Player & Social Jam
   ========================================================================== */

:root {
  --bg-black: #08080a;
  --bg-side: #000000;
  --bg-card: #121216;
  --bg-card-hover: #181820;
  --accent-pink: #f472b6;
  --accent-pink-glow: rgba(244, 114, 182, 0.35);
  --accent-purple: #c084fc;
  --text-main: #ffffff;
  --text-muted: #94949e;
  --text-dim: #5a5a64;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --font-ui: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-logo: "Edu NSW ACT Foundation", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-black);
  color: var(--text-main);
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr 88px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------------------------------------------------
   IMAGE PROTECTION (Disable download / right click / drag)
   --------------------------------------------------------- */
.protected-image, img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Custom Minimal Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #24242c;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a46;
}

/* ---------------------------------------------------------
   DEDICATED FULL-PAGE AUTHENTICATION VIEW & OTP CODE
   --------------------------------------------------------- */
.auth-page-view {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-page-view.hidden {
  display: none !important;
}

.auth-ambient-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.14) 0%, rgba(192, 132, 252, 0.06) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.auth-card-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand-logo {
  font-size: 3.4rem !important;
  text-align: center;
  margin-bottom: 6px;
}

.auth-page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
  margin-bottom: 28px;
}

.auth-pill-toggle {
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-pill-btn {
  flex: 1;
  padding: 9px;
  border-radius: 26px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-pill-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-dedicated-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.input-field-wrap label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clean-text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.clean-text-input:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.07);
}

.auth-status-alert {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-auth-action {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent-pink);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s ease;
}

.btn-auth-action:hover {
  opacity: 0.9;
}

/* 6-Digit OTP Inputs Row */
.otp-inputs-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin: 16px 0;
}

.otp-digit-box {
  width: 46px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.otp-digit-box:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.3);
}

/* ---------------------------------------------------------
   APP CONTAINER & TWO-COLUMN DESKTOP LAYOUT
   --------------------------------------------------------- */
.app-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
}

/* Left Sidebar */
.sidebar {
  background-color: var(--bg-side);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-subtle);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 2.7rem;
  color: #ffffff;
  display: inline-block;
  cursor: pointer;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Navigation Menu (Apple Music Clean Style) */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
  position: relative;
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--text-main);
  font-weight: 700;
}

.nav-item.active i {
  color: var(--accent-pink);
}

.badge-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-pink);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-pink);
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Bottom Profile Avatar Button in Sidebar */
.sidebar-bottom-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-bottom-profile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-glass);
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #24242e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(244, 114, 182, 0.35);
}

.user-pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   MAIN CONTENT AREA
   --------------------------------------------------------- */
.main-view {
  padding: 28px 36px 56px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background-color: var(--bg-black);
}

.view-panel {
  display: none;
}

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

/* Home Greeting Row */
.home-greeting-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.home-greeting-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.home-greeting-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-chip i {
  color: var(--accent-pink);
}

/* Section Titles */
.section-header {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

.btn-text-action {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.liked-count-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   FEATURED PLAYLISTS HORIZONTAL GRID
   --------------------------------------------------------- */
.playlists-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.playlist-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.playlist-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #1a1a22;
}

.playlist-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-hover-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-pink);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.playlist-card:hover .playlist-hover-play {
  opacity: 1;
}

.playlist-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------
   ARTISTS YOU LOVE (Strictly User Favorite Artists)
   --------------------------------------------------------- */
.artists-circular-row {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.artist-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.artist-circle-card:hover {
  opacity: 0.85;
}

.artist-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.artist-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.artist-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* ---------------------------------------------------------
   RECENTLY PLAYED HORIZONTAL GRID
   --------------------------------------------------------- */
.recent-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* ---------------------------------------------------------
   CLEAN TRACK LIST GRID (ML Powered)
   --------------------------------------------------------- */
.track-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px;
}

.track-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.track-list-row.playing {
  background: rgba(244, 114, 182, 0.08);
}

.track-list-row.playing .track-main-title {
  color: var(--accent-pink);
}

.track-left-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.track-list-thumb-wrap {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-color: #181820;
}

.track-list-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-play-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
  font-size: 1.1rem;
}

.track-list-row:hover .track-play-hover-overlay {
  opacity: 1;
}

.track-list-row.playing .track-play-hover-overlay {
  opacity: 1;
  color: var(--accent-pink);
}

.track-meta-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.track-main-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-sub-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-right-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn-icon-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-icon-sm:hover {
  color: var(--text-main);
}

/* ---------------------------------------------------------
   LIVE STAGE (Spotify Jam Synchronized Listening Room)
   --------------------------------------------------------- */
.stage-hero-banner {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(192, 132, 252, 0.08));
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.badge-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(244, 114, 182, 0.2);
  color: var(--accent-pink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.stage-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stage-hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 580px;
}

.stage-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-primary-stage {
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent-pink);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-join-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
}

.stage-join-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.92rem;
  width: 200px;
}

.btn-join-stage {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-join-stage:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Active Live Room View */
.stage-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.stage-room-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-pink);
  letter-spacing: 0.08em;
}

.stage-room-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.stage-room-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-code-pill {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-leave-stage {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-room-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.stage-current-playback-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stage-art-wrap {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.stage-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-equalizer-bars {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}

.stage-equalizer-bars span {
  width: 3px;
  background: var(--accent-pink);
  border-radius: 2px;
  animation: eqAnim 1s ease-in-out infinite alternate;
}
.stage-equalizer-bars span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.stage-equalizer-bars span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.stage-equalizer-bars span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.stage-equalizer-bars span:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes eqAnim {
  0% { height: 20%; }
  100% { height: 100%; }
}

.stage-title-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.stage-artist-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.stage-reactions-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  z-index: 2;
}

.stage-reaction-btn {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.stage-reaction-btn:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.14);
}

.stage-floating-reactions-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-emoji {
  position: absolute;
  bottom: 20px;
  font-size: 1.8rem;
  animation: floatUp 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-300px) scale(1.4); opacity: 0; }
}

/* Stage Sidebar (Participants & Shared Queue) */
.stage-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-panel-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stage-participants-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-participant-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

.stage-queue-box {
  background: rgba(18, 18, 22, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}

/* ---------------------------------------------------------
   USER SOCIAL PROFILE PAGE (Instagram Style @handle)
   --------------------------------------------------------- */
.profile-header-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #24242e;
  border: 2px solid var(--accent-pink);
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-big-pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.profile-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-display-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.profile-handle-pill {
  font-size: 0.85rem;
  color: var(--accent-pink);
  background: rgba(244, 114, 182, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.profile-bio-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.profile-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.profile-stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.friend-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  gap: 12px;
}

.friend-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
}

.btn-primary-sm {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent-pink);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

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

.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
}

/* ---------------------------------------------------------
   SETTINGS PAGE
   --------------------------------------------------------- */
.settings-card {
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  max-width: 680px;
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.settings-avatar-edit-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-danger-action {
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------
   YOUTUBE MUSIC STYLE DRAGGABLE QUEUE DRAWER
   --------------------------------------------------------- */
.queue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 88px;
  width: 400px;
  background: rgba(14, 14, 18, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.queue-drawer.active {
  transform: translateX(0);
}

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

.queue-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.queue-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.now-playing-banner {
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-draggable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

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

.queue-item.dragging {
  opacity: 0.4;
  background: rgba(244, 114, 182, 0.15);
}

.queue-item.drag-over {
  border-top: 2px solid var(--accent-pink);
}

.queue-drag-handle {
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: grab;
  padding: 4px;
  display: flex;
  align-items: center;
}

.queue-drag-handle:active {
  cursor: grabbing;
}

/* ---------------------------------------------------------
   LIBRARY TABLE & SUBVIEW
   --------------------------------------------------------- */
.library-filter-pills {
  display: flex;
  gap: 10px;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.tracklist-container {
  background: rgba(255, 255, 255, 0.015);
  border-radius: 12px;
  overflow: hidden;
}

.tracklist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tracklist-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tracklist-table tr {
  cursor: pointer;
  transition: background 0.15s;
}

.tracklist-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tracklist-table tr.playing {
  background: rgba(244, 114, 182, 0.08);
}

.tracklist-table tr.playing .track-title-cell {
  color: var(--accent-pink);
}

.tracklist-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.track-thumb-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-thumb-cell img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

/* ---------------------------------------------------------
   BOTTOM PLAYER BAR (88px)
   --------------------------------------------------------- */
.player-bar {
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 24px;
  height: 88px;
  z-index: 100;
  position: relative;
}

.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}

.track-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #1a1a20;
  flex-shrink: 0;
}

.track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s;
}

.btn-icon:hover {
  color: var(--text-main);
}

.btn-icon.active {
  color: var(--accent-pink);
}

.btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.btn-play:hover {
  background: var(--accent-pink);
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

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

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

.progress-bar:hover .progress-fill {
  background: var(--accent-pink);
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
}

.volume-slider-fill {
  height: 100%;
  background: var(--text-main);
  border-radius: 4px;
  width: 80%;
}

.mobile-progress-strip {
  display: none;
}

/* ---------------------------------------------------------
   FULLSCREEN DYNAMIC AMBIENT NOW PLAYING (Floating Lyrics)
   --------------------------------------------------------- */
.fullscreen-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #050508;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
}

.fullscreen-player-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ambient-mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(60px);
  transform: scale(1.1);
  opacity: 0.75;
}

.ambient-mesh-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.fs-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-icon-circle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.fs-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fs-playing-from {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.fs-playing-album {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.fs-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.fs-body.lyrics-hidden {
  grid-template-columns: 1fr;
  max-width: 500px;
}

.fs-body.lyrics-hidden .fs-lyrics-pane {
  display: none !important;
}

.fs-art-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.fs-art-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.fs-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fs-titles {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fs-track-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.fs-track-artist {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.fs-lyrics-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 520px;
  padding: 0 16px;
}

.fs-lyrics-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: right;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent 100%);
  padding: 48px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.fs-lyrics-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.lyric-line {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lyric-line.active {
  color: #ffffff;
  font-size: 1.85rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.fs-controls-panel {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.fs-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.fs-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 6px;
  width: 0%;
}

.fs-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.fs-btn-step {
  font-size: 1.4rem;
}

.fs-btn-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.fs-btn-play:hover {
  background: var(--accent-pink);
}

/* ---------------------------------------------------------
   MODALS (NEW PLAYLIST & ONBOARDING)
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111116;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.artist-modal-card {
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-secondary-sm {
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-create-submit {
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--accent-pink);
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}

.btn-create-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Artist Picker Grid */
.artist-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding: 20px 4px;
  max-height: 440px;
}

.artist-picker-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.artist-picker-chip:hover {
  background: rgba(255, 255, 255, 0.07);
}

.artist-picker-chip.selected {
  border-color: var(--accent-pink);
  background: rgba(244, 114, 182, 0.12);
}

.artist-picker-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.artist-picker-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.artist-check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-pink);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

.artist-picker-chip.selected .artist-check-badge {
  opacity: 1;
  transform: scale(1);
}

.artist-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.selection-count-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   SEARCH & INPUTS
   --------------------------------------------------------- */
.search-box-wrap {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 18px;
  gap: 14px;
}

.search-box-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
}

#search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVENESS
   --------------------------------------------------------- */
.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    grid-template-rows: 1fr 64px;
    height: 100dvh;
  }

  .app-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-view {
    padding: 20px 18px 90px;
    gap: 28px;
  }

  .home-greeting-title {
    font-size: 1.7rem;
  }

  .track-list-grid {
    grid-template-columns: 1fr;
  }

  .stage-room-layout {
    grid-template-columns: 1fr;
  }

  .profile-header-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile-stats-row {
    justify-content: center;
  }

  .player-bar {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
    height: 64px;
  }

  .player-center, .player-right .volume-box {
    display: none;
  }

  .mobile-progress-strip {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-progress-fill {
    height: 100%;
    background: var(--accent-pink);
    width: 0%;
  }

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

  .mobile-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    cursor: pointer;
  }

  .mobile-nav-btn i {
    font-size: 1.25rem;
  }

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

  .fullscreen-player-modal {
    padding: 20px 20px 30px;
  }

  .fs-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fs-lyrics-pane {
    max-height: 260px;
  }

  .lyric-line {
    font-size: 1.3rem;
  }

  .lyric-line.active {
    font-size: 1.5rem;
  }
}

/* ============================================================
   UNIFIED LIBRARY VIEW — All-in-One Layout
   ============================================================ */

/* Top shelf: Liked Songs Hero + Playlists side by side */
.library-top-shelf {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

/* Liked Songs hero card */
.library-liked-hero-card {
  background: linear-gradient(135deg, hsl(330, 75%, 28%) 0%, hsl(280, 55%, 22%) 100%);
  border: 1px solid rgba(244, 114, 182, 0.22);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.library-liked-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(244, 114, 182, 0.15), transparent 60%);
}

.liked-hero-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.liked-hero-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #f472b6;
  flex-shrink: 0;
}

.liked-hero-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f472b6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  position: relative;
  align-self: flex-end;
  margin-left: auto;
  transition: transform 0.2s, background 0.2s;
}

.liked-hero-play-btn:hover {
  background: #ec4899;
  transform: scale(1.08);
}

/* Playlists grid inside top shelf */
.library-shelf-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* Empty state playlist create button */
.library-create-playlist-card {
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.14);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.library-create-playlist-card:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.library-create-playlist-card i {
  font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .library-top-shelf {
    grid-template-columns: 1fr;
  }

  .library-liked-hero-card {
    min-height: auto;
  }

  .library-shelf-playlists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
