:root {
  --panel: #161616;
  --panel-2: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #b3b3b3;
  --ok: #1db954;
}

.main-area {
  background: radial-gradient(circle at top right, #252525 0%, #151515 42%, #101010 100%);
}

.page-content {
  padding: 26px 24px calc(var(--player-h) + 24px);
  overflow-y: auto;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.16), rgba(17, 17, 17, 0.92) 55%, rgba(17, 17, 17, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.page-hero-library {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(17, 17, 17, 0.94) 55%, rgba(17, 17, 17, 0.98));
}

.page-hero-playlists {
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.18), rgba(17, 17, 17, 0.92) 55%, rgba(17, 17, 17, 0.98));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 68ch;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--txt-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.hero-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-btn.primary {
  background: var(--accent);
  color: #000;
  border-color: transparent;
}

.hero-btn.primary:hover {
  background: var(--accent-hover);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  min-width: 280px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 2px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
}

.panel {
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

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

.card, .rec-card, .album-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.card:hover, .rec-card:hover, .album-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(29, 185, 84, 0.24);
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card .name {
  font-weight: 700;
}

.card .meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.empty {
  background: rgba(29, 185, 84, 0.08);
  border: 1px dashed rgba(29, 185, 84, 0.4);
  color: #d6f8df;
  border-radius: 12px;
  padding: 14px;
}

.empty-inline {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--txt-secondary);
}

.player {
  grid-area: player;
}

@media (max-width: 900px) {
  .page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    min-width: 0;
  }

  .page-title {
    font-size: 28px;
  }
}
