/* =========================================================
   Listening Room — dark theme
   ========================================================= */

:root {
  --bg: #0d0d0f;
  --bg-2: #141416;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --card: #202024;
  --ink: #f2f2f4;
  --ink-soft: #a1a1aa;
  --ink-dim: #71717a;
  --line: #2a2a2f;
  --line-soft: #232327;
  --accent: #e0523f;
  --accent-soft: rgba(224, 82, 63, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --sidebar: 244px;
  --now-panel: 330px;
  --player-h: 88px;
}
@font-face {
  font-family: 'SpotifyMix';
  src: url('../assets/fonts/SpotifyMixUI-Regular-76c92fb1a35c462f73429fa8865163eb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

html[data-mood="chill"]  { --accent: #6f9bd1; --accent-soft: rgba(111,155,209,0.16); }
html[data-mood="motivated"] { --accent: #e8792f; --accent-soft: rgba(232,121,47,0.16); }
html[data-mood="sad"]    { --accent: #7c8ba1; --accent-soft: rgba(124,139,161,0.16); }
html[data-mood="happy"]  { --accent: #e0523f; --accent-soft: rgba(224,82,63,0.16); }
html[data-mood="bollywood"] { --accent: #b05ad6; --accent-soft: rgba(176,90,214,0.16); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input { font-family: inherit; }
button { cursor: pointer; color: inherit; }
img { display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2e2e34; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--now-panel);
  min-height: 100vh;
  padding-bottom: var(--player-h);
}

/* ---------- Sidebar ---------- */

.sidebar {
  background: #050506;
  border-right: 1px solid var(--line-soft);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: calc(100vh - var(--player-h));
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 2px 12px 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  border: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.brand-tag {
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 16px;
  color: #d2d2d7;
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;
  transition: background 0.14s ease, color 0.14s ease;
}

.nav-item .nav-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  color: #f0f0f2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-item .nav-icon svg { width: 24px; height: 24px; fill: currentColor; }
.nav-item .nav-icon svg[fill="none"] { fill: none; }

.nav-item:hover { color: #fff; background: #18181a; }

.nav-item.is-active {
  background: #202022;
  color: #fff;
  font-weight: 600;
}

.nav-item.is-active .nav-icon { color: #fff; }

.sidebar-moods,
.sidebar-playlists {
  border-top: 1px solid #28282b;
  padding-top: 22px;
}

.sidebar-label,
.eyebrow,
.drawer-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 10px;
  padding-left: 12px;
}

.sidebar-label--row {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 8px 14px;
}

.side-add {
  width: 100%;
  min-height: 50px;
  background: #202022;
  border: none;
  color: #f4f4f5;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
}

.side-add > span:first-child { font-size: 31px; font-weight: 400; line-height: 0; }
.side-add:hover { background: #2a2a2d; color: #fff; }

.mood-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mood-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.14s ease, color 0.14s ease;
}

.mood-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-dim);
  flex-shrink: 0;
}

.mood-chip:hover { color: var(--ink); background: #16161a; }

.mood-chip.is-active {
  background: #202024;
  color: #fff;
  font-weight: 600;
}

.mood-chip.is-active::before { background: var(--accent); }

.sidebar-playlists {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 9px 12px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
}

.side-link .nav-icon { font-size: 15px; font-weight: 700; width: 18px; color: var(--ink-dim); }
.side-link:hover { color: var(--ink); background: #16161a; }

.sidebar-foot { margin-top: auto; }

.side-clock {
  font-size: 12.5px;
  color: var(--ink-dim);
  padding-left: 12px;
}

.clock-place {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clock-colon { animation: blinkColon 1s steps(1) infinite; }
@keyframes blinkColon { 50% { opacity: 0; } }

/* ---------- Shell / topbar ---------- */

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

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}

.search-bar {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1e;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 10px 18px;
}

.search-bar svg { color: var(--ink-dim); flex-shrink: 0; }

.search-bar input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 14.5px;
  color: var(--ink);
}

.search-bar input::placeholder { color: var(--ink-dim); }

.icon-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #1a1a1e;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-round:hover { color: #fff; border-color: #3a3a42; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ---------- Main ---------- */

.main {
  padding: 0 28px 40px;
  min-width: 0;
}

.view { display: none; }
.view.is-visible { display: block; }

/* ----- Hero ----- */

.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 24px;
  padding: 40px 44px;
  margin-bottom: 40px;
  background-color: #17171b;
  background-image:
    linear-gradient(90deg, rgba(13,13,15,0.92) 0%, rgba(13,13,15,0.6) 48%, rgba(13,13,15,0.25) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 560px; }

.hero .eyebrow {
  padding-left: 0;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero h1,
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}

.lede {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #111;
  border: none;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

.btn-play:hover { transform: scale(1.03); }
.btn-play:disabled,
.btn-ghost:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 12px 22px;
  font-size: 15px;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

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

.hero-quote {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  max-width: 300px;
  text-align: right;
}

.hero-quote p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  margin: 0 0 8px;
}

.hero-quote span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ----- Blocks ----- */

.block { padding: 8px 0 26px; }

.block-head { margin-bottom: 20px; }

.block-head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.block-head h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.see-all {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 13.5px;
  white-space: nowrap;
}

.see-all:hover { color: #fff; }

.page-head {
  padding: 20px 0 26px;
}

.page-head .eyebrow { padding-left: 0; margin-bottom: 10px; }

.page-head code {
  font-size: 12.5px;
  background: #1a1a1e;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
}

.empty-note {
  color: var(--ink-dim);
  font-size: 14.5px;
  padding: 8px 0 20px;
}

/* ----- Music cards ----- */

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

.music-card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
}

.music-card-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #26262b;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--radius);
}

.music-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.music-card:hover .music-card-art img { transform: scale(1.05); }

.card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.music-card:hover .card-play,
.music-card:focus-within .card-play { opacity: 1; transform: none; }

.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.music-card:hover .card-fav,
.card-fav.is-on { opacity: 1; }
.card-fav.is-on { color: var(--accent); }

.music-card-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-card-artist,
.music-card-album {
  display: block;
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-card.is-playing .music-card-title { color: var(--accent); }

/* ----- Mood posters ----- */

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

.explore-grid--tall { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.mood-poster {
  position: relative;
  min-height: 180px;
  border: none;
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #202024;
  background-size: cover;
  background-position: center;
  transition: transform 0.18s ease;
}

.mood-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
}

.mood-poster:hover { transform: translateY(-3px); }

.mood-poster-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 70%;
}

.mood-poster-count {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.mood-poster-play {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* ----- Playlist page cards ----- */

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

.playlist-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}

.playlist-card:hover { background: var(--panel-2); }

.playlist-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.playlist-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #fff;
}

.playlist-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---------- Right now-playing panel ---------- */

.now-panel {
  background: #0a0a0c;
  border-left: 1px solid var(--line-soft);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: calc(100vh - var(--player-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.now-resize-handle {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -6px;
  width: 12px;
  cursor: col-resize;
}

.now-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 2px;
  height: 44px;
  border-radius: 99px;
  background: transparent;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.now-resize-handle:hover::after,
html.is-resizing-panel .now-resize-handle::after { background: var(--accent); }

html.is-resizing-panel,
html.is-resizing-panel * { cursor: col-resize !important; user-select: none; }

.now-tabs {
  display: flex;
  gap: 6px;
  background: #16161a;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.now-tab {
  flex: 1;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 0;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.now-tab.is-active {
  background: #2a2a30;
  color: #fff;
  font-weight: 600;
}

.now-scroll {
  overflow-y: auto;
  flex: 1;
  margin: 0 -6px;
  padding: 0 6px;
}

.now-section { display: block; }
.now-section[hidden] { display: none; }

.now-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.now-heading--sub { margin-top: 26px; }

.now-current {
  display: flex;
  gap: 12px;
  align-items: center;
}

.now-current img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.now-current-meta { min-width: 0; flex: 1; }

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

.now-current-artist {
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.now-list { display: flex; flex-direction: column; gap: 2px; }

.now-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  padding: 7px 4px;
  border-radius: 8px;
  text-align: left;
  color: inherit;
  width: 100%;
}

.now-row:hover { background: #16161a; }

.now-row img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.now-row-meta { min-width: 0; flex: 1; }

.now-row-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-row.is-current .now-row-title { color: var(--accent); font-weight: 600; }

.now-row-artist {
  display: block;
  font-size: 12px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.now-row-more {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ----- Lyrics (inside now panel) ----- */

.lyrics-track-info { margin-bottom: 14px; }

.lyrics-track-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.lyrics-track-artist { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }

.lyrics-content { overflow-y: auto; }

.lyrics-line {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  padding: 5px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lyrics-line:hover { color: var(--ink-soft); }

.lyrics-line.active {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.lyrics-line-spacer { height: 12px; }

.lyrics-empty,
.search-status {
  color: var(--ink-dim);
  text-align: center;
  padding: 30px 8px;
  font-size: 14px;
}

/* ---------- Player bar ---------- */

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-h);
  background: #0a0a0c;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  z-index: 50;
}

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

.bar-art {
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c20;
  flex-shrink: 0;
}

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

.bar-meta { min-width: 0; display: flex; flex-direction: column; }

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

.track-artist {
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.heart-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 19px;
  padding: 4px;
  flex-shrink: 0;
}

.heart-btn:hover { color: #fff; }
.heart-btn.is-on { color: var(--accent); }

.bar-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.bar-transport {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.transport-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 4px;
  display: grid;
  place-items: center;
}

.transport-btn:hover { color: #fff; }
.transport-btn.is-on { color: var(--accent); }

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
}

.play-btn svg { grid-area: 1 / 1; }
.play-btn .icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.play-btn:hover { transform: scale(1.05); }

.bar-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.time-elapsed, .time-total {
  font-size: 11.5px;
  color: var(--ink-dim);
  min-width: 34px;
  text-align: center;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: #2a2a30;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

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

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

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.volume-wrap input {
  width: 90px;
  accent-color: #fff;
}

.text-btn.ghost {
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.text-btn.ghost:hover { color: #fff; background: #16161a; }
.text-btn.ghost.active { color: var(--accent); }

.now-playing-label { display: none; }

/* ---------- Online search panel ---------- */

.search-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--player-h);
  width: min(380px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line-soft);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.24s ease, visibility 0.24s;
}

.search-panel.open { transform: none; visibility: visible; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-kicker { padding-left: 0; }

.icon-close {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.icon-close:hover { color: #fff; border-color: #3a3a42; }

.search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #1a1a1e;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 14px;
  outline: none;
}

.search-input::placeholder { color: var(--ink-dim); }

.search-results { overflow-y: auto; flex: 1; }

.search-result-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
}

.search-result-card:hover { background: #1f1f23; }

.search-card-cover {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
}

.search-card-cover--placeholder {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #26262b;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
}

.search-card-info { min-width: 0; flex: 1; }
.search-card-title { display: block; font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-card-artist { font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-card-play {
  margin-left: auto;
  border: none;
  background: var(--accent);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Fullscreen Player ---------- */

/* ---------- Fullscreen Player ---------- */

.fs-player {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg);
}

.fs-player.open { opacity: 1; visibility: visible; }

.fs-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.4) brightness(0.45);
  transform: scale(1.15);
  z-index: 0;
}

.fs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* -- Top bars -- */

.fs-top-left,
.fs-top-right,
.fs-bottom-right {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-top-left  { top: 18px; left: 18px; }
.fs-top-right { top: 18px; right: 18px; }
.fs-bottom-right { bottom: 18px; right: 18px; }

.fs-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, color 0.15s ease;
}

.fs-icon-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.fs-icon-btn.active { color: var(--accent); }

.fs-vol-icon { color: rgba(255,255,255,0.7); flex-shrink: 0; }

.fs-vol-slider {
  width: 100px;
  accent-color: #fff;
  opacity: 0.85;
}

/* -- Body layout -- */

.fs-body {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;   /* centers cover + lyrics as one group */
  padding: 0 6%;
  gap: 80px;
  overflow: hidden;
}

/* -- Left column (cover + controls) -- */

.fs-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(440px, 38vw, calc(100vh - 300px));
  flex-shrink: 0;
  align-self: center;
}

.fs-cover-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  margin-bottom: 22px;
}

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

/* -- Meta row (title/artist + star/more) -- */

.fs-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.fs-meta-text { min-width: 0; flex: 1; }

.fs-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.fs-artist {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.fs-meta-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.fs-star-btn,
.fs-more-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.fs-star-btn:hover,
.fs-more-btn:hover { color: #fff; }
.fs-star-btn.is-on { color: var(--accent); }

/* -- Progress bar -- */

.fs-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fs-time {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fs-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.fs-progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: width 0.05s linear;
}

/* -- Transport controls -- */

.fs-transport {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.fs-transport-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  padding: 4px;
  display: grid;
  place-items: center;
  transition: color 0.15s ease;
}

.fs-transport-btn:hover { color: #fff; }
.fs-transport-btn.is-on { color: var(--accent); }

.fs-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.fs-play-btn svg { grid-area: 1 / 1; }
.fs-play-btn .fs-icon-pause { display: none; }
.fs-play-btn.is-playing .fs-icon-play { display: none; }
.fs-play-btn.is-playing .fs-icon-pause { display: block; }

.fs-play-btn:hover { background: rgba(255,255,255,0.28); transform: scale(1.06); }

/* -- Right column (lyrics), full height -- */

.fs-right {
  position: relative;
  flex: 0 1 640px;
  min-width: 0;
  height: 100vh;
  align-self: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

/* keep its space reserved even when "hidden" so the cover doesn't jump */
.fs-right[hidden] { display: block; }

.fs-right.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fs-lyrics-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 45vh 90px 45vh 0;   /* lets first/last line reach the center */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;
}

.fs-lyrics-scroll::-webkit-scrollbar { display: none; }

.fs-lyrics-line {
  font-family: 'SpotifyMix', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,255,255,0.35);
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

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

.fs-lyrics-line.active { color: #fff; }

.fs-lyrics-spacer { height: 18px; }

.fs-lyrics-empty {
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 60px 20px;
  font-style: italic;
}

/* -- Sync button -- */

.fs-sync-btn {
  position: absolute;
  left: 0;
  bottom: 36px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 6;
}

.fs-sync-btn:hover { background: rgba(255,255,255,0.3); }
.fs-sync-btn[hidden] { display: none; }
/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  :root { --now-panel: 300px; }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .now-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: var(--player-h);
    width: min(340px, 100vw);
    z-index: 55;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    visibility: hidden;
  }
  .now-panel.open { transform: none; visibility: visible; }
}

@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px 26px; min-height: 260px; }
  .hero-quote { display: none; }
  .main, .topbar { padding-left: 18px; padding-right: 18px; }
  .player-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 14px;
  }
  .bar-center { flex-direction: row; justify-content: flex-end; }
  .bar-progress { display: none; }
  .volume-wrap { display: none; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .hero h1, .page-head h1 { font-size: 30px; }
  .bar-left .heart-btn { display: none; }
}
