/* ==========================================================================
   Davi Almeida — design system (redesign completo)
   ========================================================================== */

:root {
  /* superfícies */
  --bg0: #06070a;
  --bg1: #0a0b10;
  --bg2: #101219;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(255, 255, 255, 0.095);
  --hair: rgba(255, 255, 255, 0.085);
  --hair-strong: rgba(255, 255, 255, 0.16);

  /* texto */
  --txt: #f3f5f9;
  --txt-2: #c3c9d6;
  --mut: #8f97a8;
  --dim: #626a7c;

  /* identidade (reescrita por faixa em runtime) */
  --acc: #8b5cf6;
  --acc-2: #22d3ee;
  --acc-ink: #0a0b10;
  --acc-soft: rgba(139, 92, 246, 0.22);

  /* tipografia */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;

  /* medidas */
  --rail-w: 78px;
  --lib-w: 268px;
  --np-w: 350px;
  --player-h: 98px;
  --topbar-h: 66px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg0);
  color: var(--txt);
  font-family: var(--font-ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
img { display: block; max-width: 100%; }
kbd {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--txt-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hair);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  min-width: 22px;
  text-align: center;
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); background-clip: padding-box; }

.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic.big { width: 26px; height: 26px; }
#i-play, #i-pause, #i-prev, #i-next, #i-note, #i-disc { fill: currentColor; stroke: none; }

/* ============================ fundo ambiente ============================= */

#ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(1000px 600px at 90% 110%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--bg0);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  transition: background 1.4s linear;
  will-change: transform;
}
.blob-a {
  width: 46vw; height: 46vw;
  left: -10vw; top: -14vw;
  background: var(--acc);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw;
  right: -12vw; top: 22vh;
  background: var(--acc-2);
  opacity: 0.4;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.blob-c {
  width: 34vw; height: 34vw;
  left: 38vw; bottom: -16vw;
  background: var(--acc);
  opacity: 0.3;
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(12vw, 8vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-14vw, -6vh, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-8vw, -10vh, 0) scale(1.2); } }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.55;
}

/* ================================= app =================================== */

#app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) var(--player-h);
  column-gap: 12px;
  height: 100dvh;
}

/* ============================== barra lateral ============================ */

.sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 12px;
  min-height: 0;
  padding: 12px 0 12px 12px;
}

.rail {
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
}

.rail-brand {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 26px var(--acc-soft), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
  transition: transform 0.25s var(--ease);
}
.rail-brand:hover { transform: rotate(-6deg) scale(1.05); }

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.rail-item {
  width: 62px;
  padding: 9px 0 7px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--mut);
  background: transparent;
  transition: color 0.16s, background 0.16s, transform 0.16s;
}
.rail-item .ic { width: 21px; height: 21px; stroke-width: 1.8; }
.rail-item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rail-item:hover { color: var(--txt); background: var(--panel); }
.rail-item:active { transform: scale(0.95); }
.rail-item.is-active {
  color: var(--txt);
  background: linear-gradient(180deg, var(--panel-3), var(--panel));
  box-shadow: inset 0 0 0 1px var(--hair), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.rail-item.is-active .ic { color: var(--acc); }

.rail-spacer { flex: 1; }

.rail-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px var(--acc-soft);
  margin-top: 4px;
  transition: transform 0.2s var(--ease);
}
.rail-avatar:hover { transform: scale(1.08); }

/* biblioteca */
.library {
  width: var(--lib-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: width 0.3s var(--ease), opacity 0.22s, transform 0.3s var(--ease);
}
#app.lib-closed .library {
  width: 0;
  opacity: 0;
  transform: translateX(-16px);
  border-width: 0;
  pointer-events: none;
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px 8px 16px;
}
.library-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.library-title .ic { width: 18px; height: 18px; }

.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mut);
  transition: color 0.15s, background 0.15s, transform 0.1s;
}
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--txt); background: var(--panel-3); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }
.icon-btn.is-on { color: var(--acc); }
.icon-btn.like.is-on { color: var(--acc); }
.icon-btn.like.is-on .ic { fill: currentColor; }

.chips { display: flex; gap: 7px; padding: 4px 14px 12px; flex-wrap: wrap; }
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid transparent;
  color: var(--txt-2);
  transition: all 0.16s var(--ease);
}
.chip:hover { background: var(--panel-3); color: var(--txt); transform: translateY(-1px); }
.chip.is-on {
  background: var(--acc);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--acc-ink);
  box-shadow: 0 6px 18px var(--acc-soft);
}

.lib-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }

.lib-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
}
.lib-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  transform: translateY(-50%);
  background: var(--acc);
  border-radius: 99px;
  transition: height 0.2s var(--ease);
}
.lib-item:hover { background: var(--panel-2); }
.lib-item.is-active { background: var(--panel-3); }
.lib-item.is-active::before { height: 60%; }

.lib-cover {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: var(--bg2);
  display: grid;
  place-items: center;
  color: var(--mut);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-cover.solid { background: linear-gradient(135deg, var(--c1, #555), var(--c2, #222)); color: #fff; }
.lib-cover .ic { width: 20px; height: 20px; }

.lib-text { min-width: 0; flex: 1; }
.lib-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-sub {
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.lib-item.is-playing .lib-name { color: var(--acc); }

.lib-eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.lib-item.is-playing .lib-eq { display: flex; }
.lib-eq i { width: 3px; background: var(--acc); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.lib-eq i:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.lib-eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.lib-eq i:nth-child(3) { height: 40%; animation-delay: -0.7s; }

@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.is-paused .lib-eq i, .lib-eq.paused i, .t-eq.paused i { animation-play-state: paused; }

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px 14px;
  font-size: 11.5px;
  color: var(--dim);
  border-top: 1px solid var(--hair);
  flex-wrap: wrap;
}
.foot-link:hover { color: var(--txt); }
.foot-dot { opacity: 0.5; }
.foot-muted { color: var(--dim); }

/* ================================ main =================================== */

.main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 12px 0;
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.88), rgba(6, 7, 10, 0.94));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.topbar {
  height: var(--topbar-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(6, 7, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hair);
  z-index: 20;
}

.topbar-nav { display: flex; gap: 7px; }
.round-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  color: var(--txt-2);
  display: grid; place-items: center;
  transition: all 0.15s var(--ease);
}
.round-btn .ic { width: 20px; height: 20px; }
.round-btn:hover { background: var(--panel-3); color: var(--txt); transform: translateY(-1px); }
.round-btn:active { transform: scale(0.94); }
.round-btn[disabled] { opacity: 0.3; pointer-events: none; }
.round-btn.menu { display: none; }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  height: 42px;
  padding: 0 12px 0 15px;
  width: min(440px, 46vw);
  color: var(--mut);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, width 0.25s var(--ease);
}
.topbar-search:hover { background: var(--panel-3); }
.topbar-search:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-soft);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
}
.topbar-search .ic { width: 18px; height: 18px; stroke-width: 2; }
.topbar-search input {
  border: 0; outline: 0; background: transparent;
  font-size: 14px; width: 100%; color: var(--txt);
  font-weight: 500;
}
.topbar-search input::placeholder { color: var(--dim); }
.topbar-search input::-webkit-search-cancel-button { display: none; }
.search-kbd { flex: none; }
.topbar-search.has-text .search-kbd { display: none; }
.topbar-search .clear { display: none; width: 26px; height: 26px; flex: none; }
.topbar-search .clear .ic { width: 15px; height: 15px; }
.topbar-search.has-text .clear { display: inline-flex; }

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 14px;
  transition: all 0.16s var(--ease);
}
.ghost-btn .ic { width: 16px; height: 16px; }
.ghost-btn:hover { background: var(--panel-3); color: var(--txt); border-color: var(--hair-strong); transform: translateY(-1px); }

.avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  display: grid; place-items: center;
}
.avatar-initials {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  font-size: 12px;
  font-weight: 800;
  transition: filter 0.2s;
}
.avatar-btn:hover .avatar-initials { filter: brightness(1.12); }

.scroller {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scroll-behavior: smooth;
}
.view { min-height: calc(100dvh - var(--player-h) - var(--topbar-h) - 24px); }

/* ================================= hero ================================== */

.hero {
  position: relative;
  padding: 46px 34px 30px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 34%, #0a0b10) 0%, rgba(10, 11, 16, 0.72) 52%, var(--bg1) 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 10, 0.85));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-img { background-size: cover; background-position: center 35%; }
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.42) 0%, rgba(6, 7, 10, 0.86) 55%, var(--bg1) 100%),
    linear-gradient(90deg, rgba(4, 5, 8, 0.7), transparent 65%);
  z-index: 0;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.hero-sub { color: var(--txt-2); margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; align-items: center; flex-wrap: wrap; }

.btn-play-big {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  display: grid; place-items: center;
  box-shadow: 0 14px 40px var(--acc-soft), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-play-big .ic { width: 26px; height: 26px; }
.btn-play-big:hover { transform: scale(1.07); box-shadow: 0 18px 50px var(--acc-soft); }
.btn-play-big:active { transform: scale(0.97); }
.btn-play-big::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--acc);
  opacity: 0;
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fff;
  color: #07080b;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.16s var(--ease), box-shadow 0.16s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.pill-btn .ic { width: 18px; height: 18px; }
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.pill-btn.outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
  border: 1px solid var(--hair-strong);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.pill-btn.outline:hover { background: rgba(255, 255, 255, 0.13); }

/* artista */
.artist-hero-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.artist-hero-text { min-width: 0; }
.artist-avatar {
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 8px var(--acc-soft);
  background: var(--bg2);
}
.artist-avatar.xl { width: 184px; height: 184px; }
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--txt);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--hair-strong);
  padding: 6px 14px 6px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}
.verified-badge .ic { width: 17px; height: 17px; color: var(--acc); stroke-width: 2; }

.artist-hero .hero-title { font-size: clamp(38px, 6.6vw, 84px); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-strong);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mut);
  font-weight: 700;
}

/* =============================== seções ================================== */

.section { padding: 30px 34px 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
}
.section-link:hover { color: var(--acc); }

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

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s, box-shadow 0.28s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 140px at 50% -30%, var(--acc-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--hair-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}
.card:hover::before { opacity: 1; }
.card:active { transform: translateY(-2px) scale(0.99); }

.card-art { position: relative; margin-bottom: 14px; }
.card-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease);
}
.card:hover .card-art img { transform: scale(1.03); }
.card-art.round img { border-radius: 50%; }

.card-play {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  transition: opacity 0.24s, transform 0.32s var(--ease);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}
.card-play .ic { width: 21px; height: 21px; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: translateY(0) scale(1); }
.card-play:hover { filter: brightness(1.1); }

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub {
  font-size: 13px;
  color: var(--mut);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artist-card .card-art img { border-radius: 50%; }

.row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
.row-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.row-tile:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--hair-strong);
  transform: translateX(4px);
}
.row-tile img { width: 66px; height: 66px; object-fit: cover; flex: none; }
.row-tile .rt-text { padding-right: 8px; min-width: 0; flex: 1; }
.row-tile .rt-title {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-tile .rt-sub { font-size: 12px; color: var(--mut); margin-top: 4px; }
.row-tile .card-play {
  position: static;
  opacity: 0;
  width: 40px; height: 40px;
  margin: 0 12px 0 auto;
  flex: none;
}
.row-tile:hover .card-play { opacity: 1; transform: none; }

/* ============================ gênero / cards ============================= */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
  padding: 6px 34px 34px;
}
.genre-card {
  position: relative;
  height: 158px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--hair);
  transition: transform 0.26s var(--ease), box-shadow 0.26s;
}
.genre-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 24px 46px rgba(0, 0, 0, 0.5); }
.genre-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  position: relative;
  z-index: 2;
  max-width: 76%;
}
.genre-card .g-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 2;
  font-weight: 600;
}
.genre-card .g-art {
  position: absolute;
  right: -18px; bottom: -14px;
  width: 104px; height: 104px;
  transform: rotate(26deg);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* ============================= lista de faixas =========================== */

.list-wrap { padding: 8px 34px 34px; }

.list-head, .track-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 0 14px;
}
.list-head {
  height: 42px;
  font-size: 10.5px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.list-head .num { text-align: center; }
.list-head .dur { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.list-head .dur .ic { width: 15px; height: 15px; }

.track-row {
  height: 60px;
  border-radius: 13px;
  position: relative;
  transition: background 0.16s, transform 0.16s;
}
.track-row::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.2s;
}
.track-row:hover { background: rgba(255, 255, 255, 0.055); }
.track-row:hover::after { border-color: var(--hair); }
.track-row.is-playing { background: linear-gradient(90deg, var(--acc-soft), rgba(255, 255, 255, 0.03)); }
.track-row.is-playing .t-title { color: var(--acc); font-weight: 600; }
.track-row.is-selected { background: var(--panel-3); }

.t-num {
  font-size: 13px;
  color: var(--dim);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.track-row:hover .t-num .num-text,
.track-row.is-playing .t-num .num-text { display: none; }
.t-num .row-play { display: none; justify-content: center; width: 100%; color: var(--txt); }
.track-row:hover .t-num .row-play,
.track-row.is-playing .t-num .row-play { display: flex; }

.t-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.t-main img {
  width: 42px; height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.t-text { min-width: 0; }
.t-title {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-artist {
  font-size: 12.5px;
  color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
  transition: color 0.15s;
  cursor: pointer;
}
.track-row:hover .t-artist { color: var(--txt-2); }
.t-artist:hover, .t-album:hover { color: var(--acc) !important; text-decoration: underline; }
.t-album, .t-added {
  font-size: 13px;
  color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.t-added { cursor: default; }

.t-tail { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.t-tail .icon-btn { opacity: 0; width: 30px; height: 30px; transform: translateX(6px); transition: opacity 0.18s, transform 0.22s var(--ease), color 0.15s, background 0.15s; }
.track-row:hover .t-tail .icon-btn,
.t-tail .icon-btn.is-on { opacity: 1; transform: none; }
.t-tail .icon-btn .ic { width: 16px; height: 16px; }

.t-dur {
  font-size: 12.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
  font-weight: 500;
}
.t-eq { display: none; gap: 2px; align-items: flex-end; height: 15px; width: 15px; margin-left: auto; }
.track-row.is-playing .t-eq { display: flex; }
.track-row.is-playing .t-dur { display: none; }
.t-eq i { width: 3.5px; background: var(--acc); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.t-eq i:nth-child(1) { height: 55%; animation-delay: -0.2s; }
.t-eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.t-eq i:nth-child(3) { height: 45%; animation-delay: -0.75s; }

/* =============================== estados ================================= */

.empty {
  padding: 80px 30px;
  text-align: center;
  color: var(--mut);
}
.empty .ic { width: 60px; height: 60px; stroke-width: 1.1; color: var(--acc); opacity: 0.7; }
.empty h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}
.empty p { max-width: 440px; margin: 0 auto; line-height: 1.6; }
.empty .pill-btn { margin-top: 22px; }

.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-hero { height: 260px; border-radius: 0; }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; padding: 30px 34px; }
.skel-card { height: 230px; border-radius: var(--r-md); }

/* ================================ footer ================================= */

.page-footer {
  border-top: 1px solid var(--hair);
  padding: 44px 34px 34px;
  margin-top: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 16px;
}
.footer-grid a { display: block; font-size: 14px; color: var(--mut); margin-bottom: 11px; transition: color 0.15s, transform 0.15s; }
.footer-grid a:hover { color: var(--txt); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}

/* ============================ tocando agora ============================== */

.now-playing {
  grid-column: 3;
  grid-row: 1;
  width: var(--np-w);
  margin: 12px 12px 12px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  animation: np-in 0.32s var(--ease);
}
@keyframes np-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.now-playing[hidden] { display: none; }

.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 12px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  border-bottom: 1px solid var(--hair);
}
.np-body { padding: 18px 18px 24px; overflow-y: auto; flex: 1; min-height: 0; }

.np-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--hair);
  animation: art-breathe 6s ease-in-out infinite;
}
@keyframes art-breathe {
  0%, 100% { box-shadow: 0 22px 54px rgba(0,0,0,.7), 0 0 0 1px var(--hair); }
  50% { box-shadow: 0 22px 60px rgba(0,0,0,.7), 0 0 0 1px var(--acc), 0 0 44px var(--acc-soft); }
}
.is-paused .np-art { animation-play-state: paused; }

.np-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 20px 0 5px;
  line-height: 1.15;
}
.np-artist { color: var(--mut); font-size: 14px; cursor: pointer; }
.np-artist:hover { color: var(--acc); text-decoration: underline; }

.np-viz {
  width: 100%;
  height: 96px;
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hair);
  border-radius: 13px;
  display: block;
}
.np-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.np-actions { margin-top: 14px; display: flex; gap: 10px; }
.np-actions .pill-btn { font-size: 13px; padding: 9px 16px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  color: var(--txt-2);
  padding: 5px 11px;
  border-radius: 999px;
}
.np-about { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.np-about h4 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.np-about p { margin: 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.65; }
.np-about code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hair);
  padding: 1px 6px;
  border-radius: 5px;
}
.np-queue-title {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}

.q-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.15s;
}
.q-item:hover { background: var(--panel-2); }
.q-item.is-playing { background: var(--panel-3); box-shadow: inset 2px 0 0 var(--acc); }
.q-item.is-playing .q-title { color: var(--acc); }
.q-item img { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.q-text { min-width: 0; }
.q-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ================================= player ================================= */

.player {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  background: rgba(6, 7, 10, 0.9);
  border-top: 1px solid var(--hair);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(360px, 1.7fr) minmax(200px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 40;
}
.player::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 14px var(--acc);
  transition: width 0.2s linear;
  z-index: 2;
}

.pl-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pl-cover {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--bg2);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--mut);
  flex: none;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--hair);
  transition: box-shadow 0.4s;
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.is-playing .pl-cover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--acc), 0 0 30px var(--acc-soft); }

.pl-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-title:hover { color: var(--acc); }
.pl-artist {
  font-size: 12px;
  color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.pl-artist:hover { color: var(--txt-2); text-decoration: underline; }
.pl-left .like { flex: none; }

.pl-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pl-controls { display: flex; align-items: center; gap: 16px; }
.pl-controls .icon-btn { width: 34px; height: 34px; }
.pl-controls .icon-btn .ic { width: 18px; height: 18px; }
.pl-controls .mode { position: relative; }
.pl-controls .mode.is-on { color: var(--acc); }
.pl-controls .mode.is-on::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.play-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, #fff, #e8eaf0);
  color: #07080b;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 0 var(--acc-soft);
  transition: transform 0.16s var(--ease), box-shadow 0.24s;
}
.play-btn .ic { width: 20px; height: 20px; }
.play-btn:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 6px var(--acc-soft); }
.play-btn:active { transform: scale(0.95); }
.play-btn .pause-ic { display: none; }
.play-btn.is-playing .pause-ic { display: block; }
.play-btn.is-playing .play-ic { display: none; }
.play-btn.small { width: 48px; height: 48px; }
.play-btn.small .ic { width: 22px; height: 22px; }

.pl-progress { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 660px; }
.time {
  font-size: 11px;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ------------------------------- barras ---------------------------------- */

.bar {
  --pct: 0%;
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* forma de onda */
.bar-wave .bar-track { gap: 2px; }
.wave { display: flex; align-items: center; gap: 2px; width: 100%; height: 100%; }
.wave i {
  flex: 1;
  min-width: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 0.2s;
}
.bar-fill.wave {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pct)) 0 0);
}
.bar-fill.wave i { background: linear-gradient(180deg, var(--acc-2), var(--acc)); box-shadow: 0 0 8px var(--acc-soft); }
.bar:hover .bar-fill.wave i { background: linear-gradient(180deg, #fff, var(--acc)); }
.bar-fill.wave .bar-knob { display: none; }
.bar-wave:hover .wave i { background: rgba(255, 255, 255, 0.4); }

/* volume */
.bar-vol .bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill.solid {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  border-radius: 99px;
  position: relative;
  transition: background 0.2s;
}
.bar-vol .bar-knob {
  position: absolute;
  right: -6px; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%) scale(0);
  transition: transform 0.14s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.bar-vol:hover .bar-knob, .bar-vol:focus-visible .bar-knob { transform: translateY(-50%) scale(1); }
.bar-vol:hover .bar-track { background: rgba(255, 255, 255, 0.26); }

.bar:focus-visible { outline: none; }
.bar:focus-visible .bar-track { box-shadow: 0 0 0 3px var(--acc-soft); border-radius: 99px; }

.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pl-right .icon-btn .ic { width: 18px; height: 18px; }
.pl-right .bar { width: 104px; flex: none; }
.vol-readout {
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  text-align: right;
  font-weight: 600;
}

.mobile-controls { display: none; }

/* ================================ toast ================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 26px);
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 13, 18, 0.92);
  border: 1px solid var(--hair-strong);
  border-left: 3px solid var(--acc);
  color: var(--txt);
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity 0.22s, transform 0.3s var(--ease);
}
.toast::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================== pop menu ================================= */

.pop-menu {
  position: fixed;
  z-index: 320;
  min-width: 224px;
  max-height: 62vh;
  overflow-y: auto;
  background: rgba(18, 19, 26, 0.96);
  border: 1px solid var(--hair-strong);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.16s, transform 0.16s var(--ease);
}
.pop-menu.open { opacity: 1; transform: none; }
.pop-head {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  padding: 7px 11px 9px;
}
.pop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--txt-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.13s, color 0.13s;
}
.pop-item:hover { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.pop-item .ic { width: 15px; height: 15px; flex: none; }

/* ================================ modal ================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
  animation: fadein 0.18s ease;
}
.overlay[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.cmdk {
  width: min(620px, 100%);
  background: rgba(15, 16, 23, 0.97);
  border: 1px solid var(--hair-strong);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: cmdk-in 0.24s var(--ease);
}
@keyframes cmdk-in { from { transform: translateY(-18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.cmdk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--hair);
  color: var(--mut);
}
.cmdk-head .ic { color: var(--acc); }
.cmdk-head input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--txt);
  font-size: 17px;
  font-weight: 500;
}
.cmdk-head input::placeholder { color: var(--dim); }
.cmdk-head strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; color: var(--txt); flex: 1; }

.cmdk-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.cmdk-group {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  padding: 12px 12px 7px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.cmdk-item img { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.cmdk-item .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  display: grid; place-items: center;
  flex: none;
  color: var(--acc);
}
.cmdk-item .ico .ic { width: 18px; height: 18px; }
.cmdk-item .meta { min-width: 0; flex: 1; }
.cmdk-item .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .s { font-size: 12px; color: var(--mut); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .hint { font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cmdk-item.is-active { background: linear-gradient(90deg, var(--acc-soft), transparent); box-shadow: inset 0 0 0 1px var(--hair); }
.cmdk-item.is-active .ico { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.cmdk-empty { padding: 34px 20px; text-align: center; color: var(--dim); font-size: 14px; }

.cmdk-foot {
  display: flex;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--hair);
  font-size: 11.5px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.25);
}
.cmdk-foot span { display: flex; align-items: center; gap: 6px; }

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 18px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--txt-2);
}
.shortcut span { flex: 1; }
.modal-shortcuts { max-width: 720px; }

/* ------------------------------- modal criar ----------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  background: rgba(3, 4, 7, 0.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadein 0.16s ease;
}
.modal {
  width: min(460px, 100%);
  background: rgba(17, 18, 26, 0.98);
  border: 1px solid var(--hair-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.75);
  animation: cmdk-in 0.22s var(--ease);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.modal-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mut);
  margin-bottom: 16px;
}
.modal-label input {
  display: block;
  width: 100%;
  margin-top: 9px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  color: var(--txt);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.modal-label input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.modal-actions .ghost-btn { background: transparent; }
.modal-actions .ghost-btn:hover { background: var(--panel-3); }

/* =============================== artigo ================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--hair);
}
.about-copy p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: var(--txt-2); }
.about-copy .np-meta { margin-top: 0; }

/* ============================= responsivo ================================ */

@media (max-width: 1280px) {
  :root { --np-w: 316px; }
}

@media (max-width: 1140px) {
  .now-playing { display: none !important; }
  #btn-np { display: none; }
}

@media (max-width: 1000px) {
  .list-head, .track-row { grid-template-columns: 30px minmax(0, 1fr) 84px; }
}

@media (max-width: 860px) {
  :root { --lib-w: 240px; --rail-w: 72px; }
  .list-head, .track-row { grid-template-columns: 26px minmax(0, 1fr) 76px; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}

@media (max-width: 780px) {
  #app { grid-template-columns: minmax(0, 1fr); column-gap: 0; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: var(--player-h);
    z-index: 90;
    background: rgba(6, 7, 10, 0.96);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--hair);
    padding: 14px;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    box-shadow: 30px 0 70px rgba(0, 0, 0, 0.7);
  }
  .sidebar.open { transform: none; }
  #app.lib-closed .library { width: var(--lib-w); opacity: 1; transform: none; pointer-events: auto; }

  .main { grid-column: 1; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  .round-btn.menu { display: grid; }
  .topbar { padding: 0 12px; gap: 9px; }
  .topbar-search { width: auto; flex: 1; }
  .search-kbd { display: none; }
  .ghost-btn span, .ghost-btn kbd { display: none; }
  .ghost-btn { padding: 9px 11px; }

  .hero { padding: 32px 20px 26px; }
  .section, .genre-grid, .list-wrap, .page-footer { padding-left: 20px; padding-right: 20px; }
  .stat-row { gap: 20px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .artist-avatar, .artist-avatar.xl { width: 104px; height: 104px; }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
    gap: 8px;
    height: auto;
    min-height: var(--player-h);
  }
  :root { --player-h: 80px; }
  .pl-center, .pl-right { display: none; }
  .mobile-controls { display: flex; align-items: center; gap: 6px; }
  .pl-cover { width: 48px; height: 48px; border-radius: 10px; }
  .pl-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    max-width: none;
    padding: 0;
    height: 4px;
  }
  .pl-progress .time { display: none; }
  .pl-progress .bar-track { height: 4px; }
  .pl-progress .wave { gap: 1px; }
  .toast { bottom: calc(var(--player-h) + 20px); max-width: calc(100vw - 32px); }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.05em; }
  .card { padding: 12px; }
  .row-grid { grid-template-columns: 1fr; }
  .topbar-search { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
