/* ============================================================
   Spotify Web Player — clone de interface
   ============================================================ */

:root {
  --bg: #000;
  --panel: #121212;
  --panel-2: #181818;
  --panel-3: #1f1f1f;
  --elev: #242424;
  --elev-2: #2a2a2a;
  --text: #fff;
  --sub: #b3b3b3;
  --sub-2: #a7a7a7;
  --green: #1ed760;
  --green-h: #1fdf64;
  --green-d: #1db954;
  --sidebar-w: 280px;
  --npv-w: 340px;
  --player-h: 72px;
  --r: 8px;
  --font: "Figtree", "CircularSp", "Circular", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.3, 0, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body { overflow: hidden; }

button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
input { font-family: inherit; }
::selection { background: var(--green); color: #000; }

/* ---------- scrollbars ---------- */
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.scroll::-webkit-scrollbar-thumb { background: transparent; border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
.scroll:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); background-clip: padding-box; }
.scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.45); background-clip: padding-box; }

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: minmax(0, 1fr) var(--player-h);
  gap: 8px;
  height: 100vh;
  height: 100dvh;
  padding: 8px 8px 0;
  background: var(--bg);
}
.shell.has-npv { grid-template-columns: var(--sidebar-w) 1fr var(--npv-w); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
}

.panel {
  background: var(--panel);
  border-radius: var(--r);
  position: relative;
}

.side-nav { padding: 12px 12px 8px; flex: none; }

.navitem {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 40px;
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--sub);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.15s linear;
  width: 100%;
  text-align: left;
}
.navitem svg { width: 24px; height: 24px; flex: none; }
.navitem:hover { color: #fff; }
.navitem.active { color: #fff; }
.navitem.active svg { color: #fff; }

/* library */
.lib {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 0 0;
}
.lib-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 4px 16px;
  height: 56px;
  flex: none;
}
.lib-head .libbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: -0.01em;
  transition: color 0.15s linear;
  padding: 4px 0;
}
.lib-head .libbtn:hover { color: #fff; }
.lib-head .libbtn svg { width: 24px; height: 24px; }
.lib-head .grow { flex: 1; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--sub);
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn:hover { color: #fff; background: var(--panel-3); }

.chips {
  display: flex;
  gap: 8px;
  padding: 4px 16px 8px;
  flex: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 500px;
  background: var(--elev);
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--elev-2); }
.chip.on { background: #fff; color: #000; font-weight: 600; }

.lib-scroll { flex: 1; min-height: 0; padding: 0 8px; }

.lib-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.lib-item:hover { background: var(--panel-3); }
.lib-item.active { background: var(--panel-3); }
.lib-item .thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  background: var(--elev);
}
.lib-item .thumb.round { border-radius: 50%; }
.lib-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-item .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lib-item .t {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.lib-item .s {
  display: block;
  font-size: 13.5px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-top: 2px;
}
.lib-item .pin { opacity: 0; transition: opacity 0.15s; }
.lib-item:hover .pin { opacity: 1; }

.lib-foot {
  padding: 8px 16px 12px;
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.lib-foot a {
  font-size: 11px;
  color: #6a6a6a;
  line-height: 1.6;
}
.lib-foot a:hover { color: var(--sub); text-decoration: underline; }

.lib-empty {
  padding: 8px 8px 0;
}
.lib-empty h3 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.lib-empty p { font-size: 13px; color: var(--sub); margin: 0 0 16px; line-height: 1.5; }
.lib-empty .pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 500px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
}
.lib-empty .pill:hover { transform: scale(1.03); }

/* ============================================================
   MAIN
   ============================================================ */
.mainpane {
  container-type: inline-size;
  grid-column: 2;
  grid-row: 1;
  background: var(--panel);
  border-radius: var(--r);
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.mainpane::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 340px;
  background: linear-gradient(to bottom, var(--hero, #1f1f1f) 0%, rgba(18, 18, 18, 0) 100%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s;
}
.mainpane.scrolled::before { opacity: 1; }

/* topbar */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  z-index: 20;
  background: transparent;
  transition: background 0.25s;
}
.topbar.solid { background: var(--panel); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }

.navbtns { display: flex; gap: 8px; }
.circ {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.1s, background 0.15s, color 0.15s;
}
.circ svg { width: 16px; height: 16px; }
.circ:hover { background: rgba(0, 0, 0, 0.85); }
.circ:active { transform: scale(0.96); }
.circ[disabled] { color: #7a7a7a; cursor: default; }
.circ[disabled]:hover { background: rgba(0, 0, 0, 0.7); }

.searchwrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  transition: width 0.25s var(--ease);
  width: 364px;
  flex: 0 0 364px;
  min-width: 0;
}
.searchwrap .si {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 24px;
  color: var(--sub);
  pointer-events: none;
  transition: color 0.15s;
}
.searchwrap input {
  width: 100%;
  height: 48px;
  border-radius: 500px;
  border: 1px solid transparent;
  background: var(--elev);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 0 96px 0 44px;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
}
.searchwrap input::placeholder { color: var(--sub); }
.searchwrap input:hover { background: var(--elev-2); border-color: rgba(255, 255, 255, 0.2); }
.searchwrap input:focus { background: var(--elev-2); border-color: #fff; }
.searchwrap:focus-within .si { color: #fff; }
.searchwrap .sclear {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sub);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, color 0.15s;
}
.searchwrap .sclear svg { width: 16px; height: 16px; }
.searchwrap.has-value .sclear { opacity: 1; pointer-events: auto; }
.searchwrap .sclear:hover { color: #fff; }

.topright {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toplink {
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  padding: 8px 12px;
  transition: color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.toplink:hover { color: #fff; transform: scale(1.04); }
.divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.25); margin: 0 8px; }
.btn-install {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  padding: 8px 12px;
  white-space: nowrap;
}
.btn-install svg { width: 16px; height: 16px; }
.btn-install:hover { color: #fff; transform: scale(1.04); }
.btn-white {
  background: #fff;
  color: #000;
  border-radius: 500px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 32px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, background 0.15s;
  white-space: nowrap;
}
.btn-white:hover { transform: scale(1.04); background: #f0f0f0; }
.btn-white.sm { height: 32px; padding: 4px 16px; font-size: 13px; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  border: 4px solid rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.1s;
}
.avatar:hover { transform: scale(1.06); }

/* view */
.view {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}
.view-inner { padding: 0 24px; }

/* ============================================================
   HOME
   ============================================================ */
.greeting {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 16px;
}
.view-inner > .greeting:first-child { margin-top: 72px; }

.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 0;
  height: 64px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  text-align: left;
}
.shortcut:hover { background: rgba(255, 255, 255, 0.2); }
.shortcut .sc-img {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
.shortcut .sc-mosaic { width: 64px; height: 64px; flex: none; overflow: hidden; }
.shortcut .sc-t {
  min-width: 0;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.shortcut .sc-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  position: absolute;
  right: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
}
.shortcut .sc-play svg { width: 20px; height: 20px; }
.shortcut:hover .sc-play { opacity: 1; transform: translateY(0); }
.shortcut .sc-play:hover { background: var(--green-h); transform: scale(1.04); }

/* sections */
.section { margin-top: 32px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head h2:hover { text-decoration: underline; cursor: pointer; }
.section-head .more {
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  padding: 4px 0;
  white-space: nowrap;
}
.section-head .more:hover { color: #fff; text-decoration: underline; }

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row.wide { grid-auto-columns: 200px; }

/* card */
.card {
  padding: 12px;
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
  text-align: left;
  width: 100%;
}
.card:hover { background: var(--panel-3); }
.card .cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--elev);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover.round { border-radius: 50%; box-shadow: none; }
.card .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .desc {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 20px;
}
.card .fab {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.card .fab svg { width: 20px; height: 20px; }
.card:hover .fab { opacity: 1; transform: translateY(0); }
.card .fab:hover { background: var(--green-h); transform: scale(1.04); }
.card:hover .name { text-decoration: none; }

/* mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 100%; height: 100%; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* genre tiles */
.genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
.genre {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s;
}
.genre:hover { transform: scale(1.02); }
.genre h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  z-index: 1;
  word-break: break-word;
  line-height: 1.15;
}
.genre img {
  position: absolute;
  right: -16px;
  bottom: -8px;
  width: 100px;
  height: 100px;
  transform: rotate(25deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* ============================================================
   ENTITY PAGE (album / playlist / artist)
   ============================================================ */
.entity {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 88px 24px 24px;
  min-height: 340px;
}
.entity .art {
  width: 232px;
  height: 232px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: var(--elev);
}
.entity .art.round { border-radius: 50%; }
.entity .art img { width: 100%; height: 100%; object-fit: cover; }
.entity .info { min-width: 0; padding-bottom: 4px; }
.entity .kind {
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.entity h1 {
  font-size: clamp(32px, 9cqi, 96px);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  word-break: break-word;
}
.entity h1.long { font-size: clamp(26px, 6.4cqi, 72px); }
.entity .sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--sub);
}
.entity .sub .who {
  color: #fff;
  font-weight: 700;
}
.entity .sub .who:hover { text-decoration: underline; }
.entity .sub .dot { margin: 0 2px; }
.entity .sub img.av { width: 24px; height: 24px; border-radius: 50%; margin-right: 4px; }

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
}
.actions .playbig {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  transition: transform 0.1s, background 0.15s;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
}
.actions .playbig svg { width: 24px; height: 24px; }
.actions .playbig:hover { transform: scale(1.05); background: var(--green-h); }
.actions .iconbtn.lg { width: 40px; height: 40px; }
.actions .iconbtn.lg svg { width: 24px; height: 24px; }
.actions .grow { flex: 1; }
.actions .iconbtn.on { color: var(--green); }

/* tracklist */
.tracks { padding: 0 24px 8px; }
.track-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.track-head .num { text-align: right; font-size: 16px; }
.track-head .clock { display: flex; justify-content: flex-end; }
.track-head .clock svg { width: 16px; height: 16px; }

.track {
  display: grid;
  grid-template-columns: 32px minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: default;
  height: 56px;
}
.track:hover { background: rgba(255, 255, 255, 0.1); }
.track .idx {
  color: var(--sub);
  font-size: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.track .idx .num { display: block; }
.track .idx .pl { display: none; }
.track:hover .idx .num { display: none; }
.track:hover .idx .pl { display: block; }
.track .idx .pl svg { width: 16px; height: 16px; color: #fff; }
.track .idx .pl:hover svg { transform: scale(1.06); }
.track .main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track .main img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex: none;
  display: none;
}
.track .tinfo { min-width: 0; }
.track .tt {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.track .ta {
  font-size: 14px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.track .ta:hover, .track .tt:hover { text-decoration: underline; cursor: pointer; }
.track .alb {
  font-size: 14px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track .alb:hover { text-decoration: underline; cursor: pointer; }
.track .added { font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.track .dur { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.track .like {
  opacity: 0;
  color: var(--sub);
  transition: opacity 0.15s, color 0.15s, transform 0.1s;
}
.track .like svg { width: 16px; height: 16px; }
.track:hover .like { opacity: 1; }
.track .like:hover { color: #fff; transform: scale(1.06); }
.track .like.on { opacity: 1; color: var(--green); }
.track .like.on svg { fill: currentColor; }
.track .more {
  opacity: 0;
  color: var(--sub);
  transition: opacity 0.15s, color 0.15s;
}
.track .more svg { width: 16px; height: 16px; }
.track:hover .more { opacity: 1; }
.track .more:hover { color: #fff; }

.track.playing .tt, .track.playing .ta { color: var(--green); }
.track.playing .idx .num { color: var(--green); }
.track.playing .eq { display: flex; }
.track .eq { display: none; }
.track.playing:hover .idx .num { display: none; }
.track.playing .idx .num { display: none; }
.track.playing .eq { display: flex; }
.track.playing:hover .eq { display: flex; }
.track.playing .idx .pl { display: none !important; }

.eq { align-items: flex-end; justify-content: center; gap: 2px; height: 14px; width: 16px; }
.eq i {
  width: 2px;
  background: var(--green);
  border-radius: 1px;
  transform-origin: bottom center;
  animation: eqbar 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.eq i:nth-child(3) { height: 65%; animation-delay: -0.1s; }
.eq i:nth-child(4) { height: 85%; animation-delay: -0.35s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eqbar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.artist-list .track { grid-template-columns: 32px minmax(0, 1fr) 60px; }
.artist-list .track .main img { display: block; }
.artist-list .track .alb, .artist-list .track .added { display: none; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-page { padding-top: 72px; }
.search-page h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.results .block h2 { font-size: 24px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.02em; }
.top-result {
  background: var(--panel-3);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
  height: 100%;
}
.top-result:hover { background: #282828; }
.top-result img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.top-result .tr-name { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.top-result .tr-kind {
  font-size: 14px;
  color: var(--sub);
  background: #000;
  padding: 4px 12px;
  border-radius: 500px;
  align-self: flex-start;
  font-weight: 600;
}
.top-result .fab {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  box-shadow: 0 8px 8px rgba(0,0,0,.3);
}
.top-result:hover .fab { opacity: 1; transform: none; }
.top-result .fab svg { width: 20px; height: 20px; }

.compact-list { display: flex; flex-direction: column; }
.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  height: 56px;
}
.compact:hover { background: rgba(255, 255, 255, 0.1); }
.compact img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; }
.compact img.round { border-radius: 50%; }
.compact .cm { min-width: 0; flex: 1; }
.compact .ct { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact .cs { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.compact .cadd { opacity: 0; color: var(--sub); }
.compact:hover .cadd { opacity: 1; }
.compact .cadd svg { width: 16px; height: 16px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 12px;
}
.empty-state .big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.empty-state p { color: var(--sub); font-size: 14px; margin: 0; max-width: 420px; line-height: 1.5; }

/* ============================================================
   PLAYER BAR
   ============================================================ */
.player {
  grid-column: 1 / -1;
  grid-row: 2;
  height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(0, 1fr) minmax(180px, 30%);
  align-items: center;
  gap: 16px;
  padding: 0 8px;
  background: var(--bg);
  z-index: 40;
}

.np {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.np .art {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  background: var(--elev);
  cursor: pointer;
  position: relative;
}
.np .art img { width: 100%; height: 100%; object-fit: cover; }
.np .art .expand {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.np .art:hover .expand { opacity: 1; }
.np .art .expand svg { width: 16px; height: 16px; }
.np .meta { min-width: 0; flex: 1; }
.np .t {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np .t:hover { text-decoration: underline; cursor: pointer; }
.np .a {
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.np .a:hover { text-decoration: underline; color: #fff; cursor: pointer; }
.np .npbtn { color: var(--sub); width: 32px; height: 32px; display: grid; place-items: center; transition: color 0.15s, transform 0.1s; }
.np .npbtn svg { width: 16px; height: 16px; }
.np .npbtn:hover { color: #fff; transform: scale(1.06); }
.np .npbtn.on { color: var(--green); }
.np .npbtn.on svg { fill: currentColor; }

.pcenter { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 722px; width: 100%; margin: 0 auto; }
.pbuttons { display: flex; align-items: center; gap: 16px; }
.pbuttons .pb { color: var(--sub); width: 32px; height: 32px; display: grid; place-items: center; transition: color 0.15s, transform 0.1s; position: relative; }
.pbuttons .pb svg { width: 16px; height: 16px; }
.pbuttons .pb:hover { color: #fff; }
.pbuttons .pb.on { color: var(--green); }
.pbuttons .pb.on::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.pbuttons .pplay {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  transition: transform 0.1s;
}
.pbuttons .pplay svg { width: 16px; height: 16px; }
.pbuttons .pplay:hover { transform: scale(1.06); }
.pbuttons .pplay.loading svg { opacity: 0.5; }

.pbar { display: flex; align-items: center; gap: 8px; width: 100%; }
.pbar .tm { font-size: 11px; color: var(--sub); min-width: 40px; font-variant-numeric: tabular-nums; }
.pbar .tm.right { text-align: right; }

.slider {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
  touch-action: none;
}
.slider .rail {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.slider .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #fff;
  border-radius: 2px;
}
.slider .knob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%) scale(0);
  transition: transform 0.1s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.slider:hover .rail { background: rgba(255, 255, 255, 0.3); }
.slider:hover .fill { background: var(--green); }
.slider:hover .knob { transform: translateY(-50%) scale(1); }
.slider.dragging .fill { background: var(--green); }
.slider.dragging .knob { transform: translateY(-50%) scale(1); }

.pright { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pright .pb { color: var(--sub); width: 32px; height: 32px; display: grid; place-items: center; transition: color 0.15s, transform 0.1s; }
.pright .pb svg { width: 16px; height: 16px; }
.pright .pb:hover { color: #fff; transform: scale(1.06); }
.pright .pb.on { color: var(--green); }
.pright .vol { width: 93px; }
.pright .vol .slider { height: 12px; }

/* ============================================================
   NOW PLAYING VIEW + QUEUE
   ============================================================ */
.npv {
  grid-column: 3;
  grid-row: 1;
  background: var(--panel);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.npv[hidden] { display: none; }
.npv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  flex: none;
}
.npv-head .t { font-size: 16px; font-weight: 700; }
.npv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; }
.npv-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  background: var(--elev);
}
.npv-art img { width: 100%; height: 100%; object-fit: cover; }
.npv-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.npv-artist { font-size: 14px; color: var(--sub); margin-top: 6px; }
.npv-credits {
  margin-top: 24px;
  background: var(--panel-3);
  border-radius: 8px;
  padding: 16px;
}
.npv-credits h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.npv-credits .row2 { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.npv-credits .row2 span:first-child { color: var(--sub); }

.queue { padding: 8px 16px; }
.queue h3 { font-size: 16px; font-weight: 700; margin: 8px 0 12px; }
.queue h3.sec { margin-top: 24px; color: var(--sub); }
.qitem { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; cursor: pointer; }
.qitem:hover { background: var(--panel-3); }
.qitem img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.qitem .qm { min-width: 0; flex: 1; }
.qitem .qt { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem .qs { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem.now .qt { color: var(--green); }

/* ============================================================
   CONTEXT MENU / MODAL / TOAST
   ============================================================ */
.ctx {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  background: #282828;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3), 0 6px 8px rgba(0, 0, 0, 0.2);
  animation: pop 0.12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.ctx button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 14px;
  color: #fff;
  text-align: left;
}
.ctx button:hover { background: rgba(255, 255, 255, 0.1); }
.ctx .sep { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 4px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  display: grid;
  place-items: center;
  animation: fade 0.15s;
  padding: 24px;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 734px;
  background: #121212;
  border-radius: 8px;
  padding: 32px 48px 40px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.modal .close { position: absolute; right: 16px; top: 16px; }
.modal .logo { width: 36px; height: 36px; margin: 8px auto 24px; }
.modal h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 32px; }
.modal form { display: flex; flex-direction: column; gap: 16px; max-width: 324px; margin: 0 auto; }
.modal label { text-align: left; font-size: 14px; font-weight: 700; display: block; }
.modal input {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  border: 1px solid #727272;
  background: #121212;
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  margin-top: 8px;
}
.modal input:focus { border-color: #fff; }
.modal .green {
  height: 48px;
  border-radius: 500px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}
.modal .green:hover { background: var(--green-h); transform: scale(1.02); }
.modal .hint { font-size: 13px; color: var(--sub); margin-top: 24px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 16px);
  transform: translate(-50%, 20px);
  background: #2e77d0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.sk { background: linear-gradient(90deg, #1a1a1a 25%, #222 37%, #1a1a1a 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .searchwrap { width: 300px; }
  .shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  :root { --sidebar-w: 240px; }
  .toplink.opt { display: none; }
  .searchwrap { width: 240px; }
}
@media (max-width: 900px) {
  .shell.has-npv { grid-template-columns: var(--sidebar-w) 1fr; }
  .npv { display: none; }
  .results { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .np .npbtn:last-child { display: none; }
  .shell { grid-template-columns: 1fr; padding: 0 0 0; gap: 0; grid-template-rows: minmax(0, 1fr) 64px 56px; }
  .sidebar { display: none; }
  .mainpane { grid-column: 1; border-radius: 0; }
  .player { grid-row: 2; height: 64px; grid-template-columns: 1fr auto; padding: 0 12px; }
  .pcenter { display: none; }
  .pright { display: none; }
  .topbar { padding: 12px 16px; }
  .searchwrap { width: 100%; margin-left: 0; }
  .topright { display: none; }
  .entity { flex-direction: column; align-items: flex-start; gap: 16px; padding: 72px 16px 16px; min-height: 0; }
  .entity .art { width: 160px; height: 160px; }
  .entity h1 { font-size: 32px; }
  .view-inner, .tracks, .actions { padding-left: 16px; padding-right: 16px; }
  .shortcuts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .shortcut { height: 56px; }
  .shortcut .sc-img, .shortcut .sc-mosaic { width: 56px; height: 56px; }
  .shortcut .sc-t { font-size: 13.5px; padding: 0 10px; }
  .greeting { font-size: 26px; }
  .section-head h2 { font-size: 20px; }
  .track-head { grid-template-columns: 24px minmax(0, 1fr) 50px; }
  .track { grid-template-columns: 24px minmax(0, 1fr) 50px; }
  .track .alb, .track .added { display: none; }
  .mobile-nav { display: flex !important; }
}
.mobile-nav {
  display: none;
  grid-row: 3;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(to top, #000 60%, rgba(0, 0, 0, 0.9));
  padding-bottom: env(safe-area-inset-bottom);
  height: 56px;
}
.mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sub); font-size: 10px; font-weight: 600; }
.mobile-nav button svg { width: 24px; height: 24px; }
.mobile-nav button.on { color: #fff; }

/* ---------- ajustes finos ---------- */
.exp {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  color: #121212;
  font-size: 9px;
  font-weight: 700;
  flex: none;
}
.sc-liked {
  background: linear-gradient(135deg, #450af5, #c4efd9);
  display: grid;
  place-items: center;
  color: #fff;
}
.sc-liked svg { width: 24px; height: 24px; }
.npv-credits .row2 span:last-child { color: #fff; text-align: right; }
.npv-credits .row2 span:first-child { color: #b3b3b3; }
.section-head h2 { cursor: pointer; }
.compact { cursor: pointer; }
.track .idx .pl { display: none; }
.track:hover .idx .pl { display: grid; place-items: center; }
.entity .art > .mosaic { border-radius: 4px; overflow: hidden; height: 100%; }
.section h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.genre h3 { text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.track .main img { display: none; }
@media (max-width: 780px) { .track .main img { display: block; } }


/* ============================================================
   CONTAINER QUERIES (adaptacao ao tamanho do painel principal)
   ============================================================ */
@container (max-width: 1020px) {
  .searchwrap { flex: 0 0 260px; width: 260px; }
  .btn-install { display: none; }
}
@container (max-width: 880px) {
  .searchwrap { flex: 0 0 210px; width: 210px; }
  .toplink.opt { display: none; }
  .shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 900px) {
  .track-head { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 3fr) 120px; }
  .track-head > div:nth-child(4) { display: none; }
  .track { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 3fr) 120px; }
  .track .added { display: none; }
}
@container (max-width: 760px) {
  .searchwrap { flex: 1 1 auto; width: auto; }
  .toplink { display: none; }
  .btn-white { height: 40px; padding: 4px 20px; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity .art { width: 180px; height: 180px; }
  .entity { padding-top: 76px; }
}
@container (max-width: 620px) {
  .track-head { grid-template-columns: 32px minmax(0, 1fr) 90px; }
  .track-head > div:nth-child(3) { display: none; }
  .track { grid-template-columns: 32px minmax(0, 1fr) 90px; }
  .track .alb { display: none; }
  .results { grid-template-columns: 1fr; }
}


/* ---------- host invisivel do player do YouTube ---------- */
#yt-wrap {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}
#yt-wrap iframe { width: 200px; height: 200px; border: 0; }

/* ============================================================
   PAGINA DA MUSICA
   ============================================================ */
.track-hero .art { border-radius: 4px; }
.lyrics-section h2, .about-artist h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.lyrics-section { padding: 8px 24px 0; max-width: 760px; }
.lyrics-text p {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 2px;
}
.lyrics-text.clamp { max-height: 330px; overflow: hidden; position: relative; }
.lyrics-text.clamp::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0), #121212 85%);
}
.show-more {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 4px 0;
}
.show-more:hover { text-decoration: underline; }
.lyrics-empty { color: var(--sub); font-size: 15px; margin: 0; }

.about-artist { padding: 32px 24px 0; }
.artist-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.artist-card:hover { background: var(--panel-3); }
.artist-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ac-kind { font-size: 13px; color: var(--sub); }
.ac-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }

.rec-list { display: flex; flex-direction: column; }
.rec {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) 110px 60px;
  gap: 16px;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  height: 56px;
}
.rec:hover { background: rgba(255, 255, 255, 0.1); }
.rec img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.rec-idx { color: var(--sub); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.rec-t { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-a { font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-plays { font-size: 14px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.rec-dur { font-size: 14px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.rec.playing .rec-t, .rec.playing .rec-a { color: var(--green); }

/* ============================================================
   PAGINA DO ARTISTA
   ============================================================ */
.artist-hero { position: relative; height: 340px; overflow: hidden; }
.artist-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.06);
}
.artist-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(18, 18, 18, 0.25) 45%, #121212 100%);
}
.artist-name {
  position: absolute;
  left: 24px;
  bottom: 16px;
  right: 24px;
  font-size: clamp(40px, 8cqi, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
  word-break: break-word;
}
.artist-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 0;
  font-size: 14px;
  color: var(--sub);
}
.artist-meta .verified {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #3d91f4;
}
.artist-meta .verified svg { width: 22px; height: 22px; }
.artist-meta .dot { margin: 0 2px; }
.follow-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 500px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}
.follow-btn:hover { border-color: #fff; transform: scale(1.04); }
.follow-btn.on { border-color: var(--green); color: var(--green); }
.artist-list .track { grid-template-columns: 32px minmax(0, 1fr) 100px 60px; }
.artist-list .track .main img { display: block; }
.track .plays { font-size: 14px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.about-box {
  background: var(--panel-3);
  border-radius: 8px;
  padding: 20px;
  max-width: 720px;
}
.about-box p { color: var(--sub); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.about-stat { display: flex; flex-direction: column; gap: 2px; }
.about-stat strong { font-size: 20px; }
.about-stat span { font-size: 13px; color: var(--sub); }
.disc-chips { padding: 0 0 16px; }

/* ============================================================
   DISCOGRAFIA
   ============================================================ */
.disc-page { padding: 88px 24px 40px; }
.disc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.disc-head h1 { font-size: clamp(32px, 5cqi, 64px); font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.disc-tools { display: flex; gap: 12px; }
.disc-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
}
.disc-sort svg { width: 16px; height: 16px; }
.disc-sort:hover { color: #fff; }
.disc-table { width: 100%; }
.disc-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 100px 80px;
  gap: 16px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  height: 64px;
}
.disc-row:hover { background: rgba(255, 255, 255, 0.1); }
.disc-row-head {
  height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sub);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: default;
}
.disc-row-head:hover { background: transparent; }
.dnum { color: var(--sub); font-size: 15px; font-variant-numeric: tabular-nums; }
.dname { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dname img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.dn { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dyear, .dtracks { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ============================================================
   MENU DE CONTEXTO / SALVAR / NPV
   ============================================================ */
.ctx button { gap: 12px; }
.ctx .ci { display: grid; place-items: center; width: 18px; height: 18px; flex: none; opacity: 0.9; }
.ctx .ci svg { width: 16px; height: 16px; }
.ctx .cl { flex: 1; text-align: left; }
.ctx .cs { font-size: 11px; color: var(--sub); letter-spacing: 0.04em; }
.ctx .car { display: grid; place-items: center; width: 14px; height: 14px; color: var(--sub); }
.ctx .car svg { width: 14px; height: 14px; }
.ctx button:hover .cs, .ctx button:hover .car { color: #fff; }

.iconbtn.on { color: var(--green); }
.iconbtn.pop { animation: popIcon 0.34s var(--ease); }
@keyframes popIcon {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.actions .iconbtn.lg.on { color: var(--green); }

.npv-block { margin-top: 24px; background: var(--panel-3); border-radius: 8px; padding: 16px; }
.npv-block h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.npv-lyr p { font-size: 15px; font-weight: 700; line-height: 1.5; color: #fff; margin: 0 0 4px; }
.npv-lyr .muted { color: var(--sub); font-weight: 400; font-size: 13px; }

@media (max-width: 780px) {
  .rec { grid-template-columns: 24px 40px minmax(0, 1fr) 60px; }
  .rec-plays { display: none; }
  .artist-list .track { grid-template-columns: 24px minmax(0, 1fr) 50px; }
  .track .plays { display: none; }
  .disc-row { grid-template-columns: 32px minmax(0, 1fr) 60px; }
  .dyear { display: none; }
  .lyrics-text p { font-size: 18px; }
}

/* ---------- capa de "Musicas curtidas" ---------- */
.liked-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #450af5, #c4efd9);
  display: grid;
  place-items: center;
  color: #fff;
}
.liked-cover svg { width: 38%; height: 38%; max-width: 72px; max-height: 72px; }

/* ---------- biblioteca vazia (pagina) ---------- */
.lib-blank {
  max-width: 520px;
  padding: 40px 0;
}
.lib-blank h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.lib-blank p { font-size: 14px; color: var(--sub); line-height: 1.6; margin: 0 0 22px; }
.lib-blank .btn-white { padding: 10px 22px; font-size: 14px; }

/* ---------- titulos clicaveis levam para a pagina da musica ---------- */
.track .tt[data-nav], .rec .rec-t[data-nav] { cursor: pointer; }
.track:hover .tt[data-nav], .rec:hover .rec-t[data-nav] { text-decoration: underline; color: #fff; }

/* ---------- discografia: chips de filtro ---------- */
.disc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; overflow: visible; }
.disc-chips .chip { padding: 6px 14px; font-size: 13px; }
.entity .sub .av.liked-av {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 6px;
  background: linear-gradient(135deg, #450af5, #c4efd9);
  color: #fff;
  vertical-align: middle;
}
.entity .sub .av.liked-av svg { width: 14px; height: 14px; }

/* ---------- playlist vazia ---------- */
.tracks-empty { padding: 48px 24px 64px; }
.tracks-empty h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.tracks-empty p { font-size: 14px; color: var(--sub); margin: 0 0 20px; }
.tracks-empty .btn-white { padding: 10px 22px; font-size: 14px; }

/* ---------- aviso de projeto pessoal ---------- */
.lib-foot .disclaimer {
  flex: 0 0 100%;
  font-size: 10px;
  line-height: 1.5;
  color: #5a5a5a;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
