:root {
  --bg: #0b0b10;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --fg: #f3f3f7;
  --fg-dim: #a0a0b0;
  --accent: #ff6b9d;
  --accent-2: #6b9dff;
  --border: #2a2a38;
  --warn: #f0a93b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- topbar ---------- */
.topbar {
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.topbar h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
}
.topbar .subtitle {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
}
.back {
  display: inline-block;
  color: var(--fg-dim);
  font-size: 13px;
  margin-bottom: 8px;
}
.back:hover { color: var(--fg); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-dim);
}
.empty h2 { color: var(--fg); margin-bottom: 16px; }

/* ---------- grid de colecoes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-cover {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
}
.card-cover-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.card-cover-default span {
  font-size: 64px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 6px; font-size: 17px; }
.card-desc {
  margin: 0 0 10px;
  color: var(--fg-dim);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bg-3);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------- lista de musicas ---------- */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.track {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.track:hover {
  background: var(--bg-2);
  border-color: var(--border);
}
.track-info { flex: 1; min-width: 0; }
.track-info h3 { margin: 0; font-size: 17px; }
.track-meta {
  margin: 4px 0 0;
  color: var(--fg-dim);
  font-size: 13px;
}
.track-sub {
  margin: 6px 0 0;
  color: var(--fg-dim);
  font-size: 12px;
  font-style: italic;
}
.track-disabled { opacity: .5; }
.warn { color: var(--warn); }

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #1b0710;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform .15s, background .15s;
}
.play-btn:hover { transform: scale(1.08); background: #ff8db5; }

/* ---------- player stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.title-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a1428, #000 70%);
  z-index: 50;
  transition: opacity .8s, transform .8s;
}
.title-screen.fading {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.title-inner {
  text-align: center;
  max-width: 80%;
  animation: titleEnter 1s ease-out;
}
@keyframes titleEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.title-sub {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 600;
}
.title-main {
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.title-artist {
  margin: 0 0 40px;
  color: var(--fg-dim);
  font-size: 18px;
  letter-spacing: 2px;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--accent);
  color: #1b0710;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.start-btn:hover { transform: scale(1.05); background: #ff8db5; }
.start-btn span { letter-spacing: 1px; }

.back-small {
  display: block;
  margin-top: 28px;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.back-small:hover { color: var(--fg); }

/* ---------- timeline stage ---------- */
.timeline-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1a1428, #050309 80%);
}

.bg-blur {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  /* blur menor + transform.scale = visual igual mas muito mais barato */
  filter: blur(40px) brightness(.35) saturate(1.4);
  transform: scale(1.1) translateZ(0);
  opacity: 0;
  transition: opacity 1.6s ease;
  z-index: 0;
  will-change: opacity;
  pointer-events: none;
}
.bg-blur.show { opacity: 1; }

/* SVG da espinha dorsal (curva ondulada central) */
.timeline-spine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
}
.timeline-spine.show { opacity: 1; }

/* Track que carrega os items - scrolla via transform translate3d */
.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* cada item da timeline (foto ou card) */
.tl-item {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  /* contain: itens nao afetam layout fora de si.
     content-visibility: auto deixa o browser pular paint/layout fora da viewport. */
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
}
.tl-item.left  { justify-content: flex-end;   padding-right: 52%; }
.tl-item.right { justify-content: flex-start; padding-left: 52%; }

.tl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translate3d(var(--enter, 30px), 0, 0) scale(.85);
  /* sem filter transition: muda estado sem repintura cara */
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
  max-width: 38vw;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.tl-item.left  .tl-card { --enter: 30px; flex-direction: row-reverse; }
.tl-item.right .tl-card { --enter: -30px; }

.tl-card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.tl-card.passed {
  opacity: .3;
  transform: translate3d(0, 0, 0) scale(.92);
}
.tl-card.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.1);
}

/* o "glow" da active vai no thumb apenas (uma sombra ao inves de filter no card todo) */
.tl-card.active .tl-thumb {
  box-shadow: 0 18px 60px rgba(255,107,157,.5),
              0 0 0 2px rgba(255,107,157,.4),
              0 12px 44px rgba(0,0,0,.75);
}

/* foto removida temporariamente da timeline (esta no spotlight) */
.tl-item.in-spotlight .tl-card {
  opacity: 0;
  transform: scale(.5);
  transition: opacity .4s ease, transform .4s ease;
}

/* track dimmed durante spotlight - opacity only (sem blur, que e caro) */
.timeline-track {
  transition: opacity .5s ease;
}
.timeline-track.dimmed {
  opacity: .25;
}

/* foto thumbnail no card - aspect ratio definido pelo JS via --ratio */
.tl-thumb {
  width: var(--thumb-w, clamp(240px, 28vw, 440px));
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #0a0610;  /* fallback enquanto imagem carrega */
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 44px rgba(0,0,0,.75);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.tl-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* texto do card */
.tl-text {
  min-width: 0;
  max-width: 240px;
  color: #fff;
}
.tl-text .tl-data {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #a96bff);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.tl-text .tl-legenda {
  margin: 0;
  font-size: 14px;
  color: var(--fg-dim);
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

/* item especial: card de texto puro (sem foto) - ocupa centro */
.tl-item.center {
  justify-content: center;
  padding: 0 8vw;
}
.tl-item.center .tl-card {
  flex-direction: column;
  text-align: center;
  max-width: 600px;
}
.tl-item.center .tl-text {
  max-width: none;
}
.tl-item.center .tl-text h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.tl-item.center .tl-text p {
  margin: 0;
  color: var(--fg-dim);
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 1px;
}

/* ---------- spotlight (foto destacada no centro) ---------- */
.spotlight {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s;
  background: radial-gradient(circle at center, rgba(10,5,18,.4), rgba(0,0,0,.75) 80%);
}
.spotlight.show { opacity: 1; }
.spotlight.show .spotlight-inner {
  animation: spotEnter 1.4s cubic-bezier(.18,.85,.25,1) both;
}
.spotlight-inner {
  position: relative;
  max-width: 70vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
@keyframes spotEnter {
  0%   { opacity: 0; transform: scale(.18) rotate(-4deg); filter: blur(18px) saturate(.6); }
  50%  { opacity: 1; filter: blur(2px) saturate(1); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0) saturate(1); }
}
.spotlight-img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 18px;
  box-shadow: 0 24px 100px rgba(0,0,0,.9),
              0 0 0 1px rgba(255,255,255,.08),
              0 0 80px rgba(255,107,157,.25);
  object-fit: contain;
}
.spotlight-caption {
  color: #fff;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0,0,0,.95);
  max-width: 80%;
  opacity: 0;
  transform: translateY(8px);
  animation: capEnter .8s .4s ease-out forwards;
}
@keyframes capEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- text card (cards_texto do manifest) ---------- */
.text-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20,10,30,.85), rgba(0,0,0,.95));
  opacity: 0;
  transition: opacity .8s;
  pointer-events: none;
  z-index: 25;
}
.text-card.show { opacity: 1; }
.text-card .text-card-inner {
  max-width: 80%;
  text-align: center;
  animation: cardEnter 1.2s ease-out;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.text-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.text-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 1px;
}

/* ---------- tela de encerramento ---------- */
.encerramento {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
  background: radial-gradient(circle at 50% 45%, rgb(40,20,50), rgb(0,0,0) 70%);
  overflow: hidden;
}
.encerramento.show {
  opacity: 1;
  pointer-events: auto;
}
.encerramento-inner {
  position: relative;
  text-align: center;
  max-width: 80vw;
  padding: 0 24px;
  z-index: 2;
  animation: encEnter 2.2s cubic-bezier(.18,.85,.25,1) both;
  animation-play-state: paused;
}
.encerramento.show .encerramento-inner { animation-play-state: running; }

@keyframes encEnter {
  0%   { opacity: 0; transform: scale(.85) translateY(20px); filter: blur(12px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.encerramento-sub {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  opacity: 0;
  animation: fadeUp .8s 1.2s ease-out forwards;
}

.encerramento-titulo {
  margin: 0 0 18px;
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #a96bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 1s 1.6s ease-out forwards;
}

.encerramento-msg {
  margin: 0 0 32px;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.8vw, 20px);
  font-style: italic;
  letter-spacing: 1px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 1s 2.2s ease-out forwards;
}

.encerramento-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0 0 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 2.8s ease-out forwards;
}
.enc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.enc-stat strong {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
}
.enc-stat span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.encerramento-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 3.4s ease-out forwards;
}
.enc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s, background .15s;
  text-decoration: none;
}
.enc-btn-primary {
  background: var(--accent);
  color: #1b0710;
}
.enc-btn-primary:hover { background: #ff8db5; transform: scale(1.04); }
.enc-btn-ghost {
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--border);
}
.enc-btn-ghost:hover { color: var(--fg); border-color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* particulas/coracoes flutuando no fundo do encerramento */
.encerramento-particles {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
}
.enc-particle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  filter: blur(.5px);
  animation: floatUp linear forwards;
}
.enc-particle.heart {
  width: 18px;
  height: 18px;
  background: none;
  filter: drop-shadow(0 0 8px rgba(255,107,157,.5));
}
.enc-particle.heart::before {
  content: '♥';
  position: absolute;
  inset: 0;
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
  10%  { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--dx, 30px), -110vh, 0) scale(1.1); }
}

/* ---------- letra sincronizada (bilingue) ---------- */
.lyric-display {
  position: absolute;
  left: 0; right: 0;
  bottom: 100px;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  padding: 0 6vw;
}
.lyric-line {
  transition: opacity .5s, transform .5s;
  text-shadow: 0 4px 20px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,1);
}
.lyric-line .lyric-pt {
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
}
.lyric-line .lyric-en {
  font-style: italic;
  letter-spacing: .5px;
  opacity: .65;
  margin-top: 2px;
  line-height: 1.2;
}
.lyric-line .lyric-pt:empty,
.lyric-line .lyric-en:empty { display: none; }

.lyric-prev {
  margin-bottom: 10px;
  opacity: .35;
}
.lyric-prev .lyric-pt { font-size: clamp(12px, 1.4vw, 15px); color: rgba(255,255,255,.55); }
.lyric-prev .lyric-en { font-size: clamp(10px, 1.1vw, 13px); color: rgba(255,255,255,.4); }

.lyric-curr {
  margin: 8px 0;
}
.lyric-curr .lyric-pt {
  font-size: clamp(20px, 3.2vw, 34px);
  color: #fff;
}
.lyric-curr .lyric-en {
  font-size: clamp(13px, 1.8vw, 18px);
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

.lyric-next {
  margin-top: 10px;
  opacity: .35;
}
.lyric-next .lyric-pt { font-size: clamp(12px, 1.4vw, 15px); color: rgba(255,255,255,.55); }
.lyric-next .lyric-en { font-size: clamp(10px, 1.1vw, 13px); color: rgba(255,255,255,.4); }

.lyric-curr.pulse {
  animation: lyricPulse .4s ease-out;
}
@keyframes lyricPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* tracinhos da linha que "fluem" junto com a track */
.timeline-spine path {
  stroke-dasharray: 18 10;
}

/* beat pulse na espinha */
.timeline-spine.beat-pulse path {
  animation: spinePulse .4s ease-out;
}
@keyframes spinePulse {
  0%   { stroke-width: 2; opacity: 1; }
  40%  { stroke-width: 4; opacity: 1; filter: drop-shadow(0 0 12px var(--accent)); }
  100% { stroke-width: 2; opacity: 1; }
}

/* marcador na linha que acompanha a foto ativa (no centro vertical) */
.spine-marker {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 12px rgba(255,107,157,.6));
  opacity: 0;
  transition: opacity .8s;
}
.timeline-spine.show .spine-marker { opacity: 1; }
.spine-marker.beat { animation: markerBeat .3s ease-out; }
@keyframes markerBeat {
  0%   { r: 4; }
  40%  { r: 7; }
  100% { r: 4; }
}

@media (max-width: 800px) {
  .tl-item.left, .tl-item.right { padding: 0 4vw; justify-content: center; }
  .tl-card { max-width: 90vw; }
  .lyric-display { bottom: 90px; }
}

/* ---------- mini player ---------- */
.mini-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 16px;
  background: rgba(20, 20, 28, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  z-index: 100;
  max-width: 420px;
  transition: opacity .6s, transform .6s;
  transform: translateY(80px);
  opacity: 0;
}
.mini-player.show {
  opacity: 1;
  transform: translateY(0);
}
.mini-player.hidden { display: none; }

.mini-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mini-info strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.mini-info span {
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
}
.mini-btn {
  background: var(--accent);
  color: #1b0710;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mini-btn:hover { background: #ff8db5; }

.mini-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}
#mini-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .15s linear;
}
#mini-time {
  font-size: 11px;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.mini-back {
  color: var(--fg-dim);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  margin-left: 4px;
}
.mini-back:hover { color: var(--fg); }

@media (max-width: 600px) {
  .mini-player {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
  .mini-info strong, .mini-info span { max-width: 110px; }
}

/* ---------- ações por musica (collection.html) ---------- */
.track-actions { display: flex; align-items: center; gap: 10px; }
.edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #cfc; text-decoration: none;
  transition: background .2s;
}
.edit-btn:hover { background: rgba(255,255,255,.18); }

/* ---------- admin.html ---------- */
.admin-main { max-width: 1300px; }
.dropzone {
  border: 2px dashed rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin-bottom: 24px;
  transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.02);
}
.dropzone.drag { border-color: var(--accent); background: rgba(255,107,157,.08); }
.dropzone p { margin: 4px 0; color: #ccc; }
.dropzone-hint { font-size: 12px; color: rgba(255,255,255,.5) !important; }
.link-btn {
  background: none; border: 0; color: var(--accent);
  cursor: pointer; font: inherit; text-decoration: underline; padding: 0;
}
#upload-status { margin-top: 8px; color: var(--accent); font-size: 13px; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.admin-card {
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, opacity .2s;
  cursor: grab;
}
.admin-card:active { cursor: grabbing; }
.admin-card:hover { transform: translateY(-2px); }
.admin-card.is-destaque { border-color: var(--accent); box-shadow: 0 0 18px rgba(255,107,157,.35); }
.admin-card.dragging { opacity: .35; transform: scale(.96); }
.admin-card .admin-btn { cursor: pointer; }
.admin-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0610;
  display: flex; align-items: center; justify-content: center;
}
.admin-media img, .admin-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.admin-tag {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 7px; border-radius: 4px;
}
.admin-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; background: rgba(0,0,0,.4);
}
.admin-nome {
  flex: 1; min-width: 0;
  font-size: 11px; color: rgba(255,255,255,.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-btn {
  background: rgba(255,255,255,.08); border: 0; cursor: pointer;
  color: #fff; width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.admin-btn:hover { background: rgba(255,255,255,.2); }
.admin-btn.star { color: rgba(255,255,255,.55); }
.is-destaque .admin-btn.star { color: var(--accent); }
.admin-btn.delete:hover { background: rgba(220,60,60,.4); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 10px 18px; border-radius: 8px;
  background: rgba(20,160,80,.95); color: #fff; font-size: 14px;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(200,50,50,.95); }
