/* ==========================================================================
   RABU - style.css  (base, layout, sidebar, home, catalog, cards)
   ========================================================================== */
/*
:root {
  --bg: #121212;
  --panel: #181818;
  --card: #232323;
  --card-hover: #2a2a2a;
  --green: #1db954;
  --green-2: #32d96b;
  --green-dark: #0f7a37;
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --sidebar-w: 248px;
  --player-h: 92px;
  --topbar-h: 64px;
}
*/

:root {

  --bg: #0b1220;
  --panel: #111b2e;
  --card: #17243a;
  --card-hover: #20324f;

  --primary: #4ea8f0;
  --primary-light: #8fd1ff;
  --primary-dark: #2677c7;

  --accent: #d7f0ff;

  --text: #ffffff;
  --text-dim: #a9bfd3;

  --border: rgba(95, 184, 255, 0.15);

  --green: var(--primary);
  --green-2: var(--primary-light);
  --green-dark: var(--primary-dark);

  --radius: 12px;
  --sidebar-w: 248px;
  --player-h: 92px;
  --topbar-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.brand-mark {
  font-family: "Oswald", "Inter", sans-serif;
  letter-spacing: 0.5px;
}

::selection {
  background: var(--green);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #2c4f75;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b6ea3;
}

/* ============================ Layout ===================================== */
#app {
  display: flex;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.is-loaded #app {
  opacity: 1;
}

body.is-loading {
  overflow: hidden;
}

/* ============================ Skeleton de carga inicial =================== */
.initial-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.is-loaded .initial-loader {
  opacity: 0;
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}

.skeleton-logo {
  width: 120px;
  height: 36px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
}

.skeleton-main {
  flex: 1;
  min-width: 0;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skeleton-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.skeleton-search {
  height: 40px;
  flex: 1;
  max-width: 520px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-hero {
  height: 220px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.skeleton-card {
  height: 160px;
}

@media (max-width: 1024px) {
  .skeleton-sidebar {
    display: none;
  }
}


.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding-bottom: var(--player-h);
}

.view {
  flex: 1;
  padding: 24px 32px 48px;
  max-width: 1400px;
  width: 100%;
}
.view.rabu-player-expanded {
  padding-top: 188px;
}

/* ============================ Sidebar ==================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(
    180deg,
    #16233a 0%,
    var(--panel) 40%,
    #0b1220 100%
  );
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  z-index: 999;
  transition: transform 0.28s ease, bottom 0.2s ease;
}

body.player-visible .sidebar {
  bottom: var(--player-h);
}

.sidebar-brand .brand {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 20px;
}
.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-close {
  flex-shrink: 0;
}
.brand-mark {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.brand-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 18px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s, color 0.18s;
}
.nav-link svg {
  flex-shrink: 0;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: var(--text);
  background: rgba(95, 184, 255, 0.15);
}
.nav-link.active svg {
  color: var(--green);
}

.donate-btn {
  margin: 4px 12px 0;
  justify-content: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================ Topbar ===================================== */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 32px;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text);
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-dim);
}
.topbar-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.topbar-search input::placeholder {
  color: var(--text-dim);
}
.topbar-search:focus-within {
  border-color: var(--green);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.12s, background 0.18s, opacity 0.18s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--green);
  color: #000;
}
.btn--primary:hover {
  background: var(--green-2);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text);
}
.btn--danger {
  background: #e0335a;
  color: #fff;
}
.btn--danger:hover {
  background: #f04668;
}
.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--border);
}
.user-chip .uname {
  font-size: 13px;
  font-weight: 600;
}
.user-chip .uavatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

/* ============================ Overlay ==================================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 45;
}
.overlay.show {
  display: block;
}

/* Popup "Apoyar a RABU": solo visible en mobile, ver responsive.css */
.support-popup {
  display: none;
}

/* ============================ Hero ======================================= */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(
    120deg,
    #2c8fd6 0%,
    #0b1220 75%
  );
  padding: 48px 40px;
  min-height: 240px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(143, 209, 255, 0.35),
    transparent 55%
  );
  pointer-events: none;
}
.hero-tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-2);
  font-weight: 700;
}
.hero-main {
  flex: 1;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  margin: 10px 0 12px;
  text-wrap: balance;
}
.hero-logo {
  width: min(320px, 62vw);
  height: auto;
  margin: 8px 0 14px;
  object-fit: contain;
}
.hero p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.hero-side {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-sponsors {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-sponsors-title {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-weight: 600;
}
.hero-sponsors-viewport {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 28, 0.32);
}
.hero-sponsors-viewport::before,
.hero-sponsors-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 2;
  pointer-events: none;
}
.hero-sponsors-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
}
.hero-sponsors-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
}
.hero-sponsors-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  animation: hero-sponsor-scroll 26s linear infinite;
}
@keyframes hero-sponsor-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.hero-sponsor-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.hero-sponsor-item img {
  width: 96px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.86;
}
.hero-instagram {
  width: 100%;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 17, 28, 0.22);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.hero-instagram:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}
.hero-instagram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-sponsor-item span {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.1;
}
.hero-sponsor-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.hero-sponsor-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ============================ Sections =================================== */
.section {
  margin-bottom: 40px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
}
.section-head a {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.section-head a:hover {
  color: var(--text);
}

/* Grid de cards */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  background: var(--card-hover);
  transform: translateY(-3px);
}
.card-art {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: #1a1a1a;
}
.card-art.round {
  border-radius: 50%;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}
.card-play:hover {
  background: var(--green-2);
  transform: scale(1.06);
}
.reco-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f1f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}
.reco-fav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}
.reco-fav-btn.active {
  color: #ffd45a;
}

/* Genre pills row */
.genre-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.genre-card {
  border-radius: var(--radius);
  padding: 18px;
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.genre-card span {
  position: relative;
  z-index: 1;
}

/* Track list rows */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-row {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto auto 34px;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.track-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.track-row.playing {
  background: rgba(95, 184, 255, 0.12);
}
.track-row.playing .tr-title {
  color: var(--green);
}
.admin-list-row {
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.admin-list-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(113, 223, 194, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.admin-list-row .tr-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-list-row .tr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
  white-space: normal;
}
.admin-list-row .tr-artist {
  margin-top: 2px;
}
.admin-list-row .tr-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 92px;
}
.admin-list-row .icon-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.admin-subsection {
  margin-top: 34px;
}
.admin-subsection .section-head {
  margin-bottom: 12px;
}
.tr-index {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}
.tr-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.tr-main {
  min-width: 0;
}
.tr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
}
.tr-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-play-count {
  font-size: 12px;
  color: var(--text-dim);
}
.tr-album {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.tr-dur {
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.admin-list-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 10px;
  min-height: 64px;
  border: 1px solid transparent;
}
.admin-list-row .tr-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.admin-list-row .tr-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-list-row .tr-title {
  font-size: 15px;
  line-height: 1.35;
}
.admin-list-row .tr-artist {
  margin-top: 2px;
}
.admin-list-row .tr-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 92px;
}
.admin-list-row .icon-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.admin-subsection {
  margin-top: 34px;
}
.admin-subsection .section-head {
  margin-bottom: 12px;
}
.tr-fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tr-fav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.tr-fav-btn.active {
  color: #ffd45a;
}

.my-list-note {
  margin: 6px 0 20px;
  color: var(--text-dim);
  max-width: 760px;
}

/* ============================ Artist / Album detail ====================== */
.detail-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  height: 250px;
}
.detail-banner {
  height: 260px;
  width: 100%;
  object-fit: cover;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 18, 18, 0.2) 60%, rgba(18, 18, 18, 0.5) 100%);
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 28px;
}
.detail-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.detail-info .eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-2);
  font-weight: 700;
}
.detail-info h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 6px 0;
  text-wrap: balance;
}
.detail-info .meta {
  color: var(--text-dim);
  font-size: 14px;
}
.detail-bio {
  max-width: 720px;
  color: var(--text-dim);
  margin: 4px 0 18px;
}
.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.social-link:hover {
  border-color: var(--green);
  color: var(--green-2);
}

.album-detail-head {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.album-cover-lg {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* ============================ Filters ==================================== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.15s;
}
.chip:hover {
  color: var(--text);
}
.chip.active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-right: 16px;
}
.tab.active {
  color: var(--text);
  border-color: var(--green);
}

/* ============================ Page title ================================= */
.page-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
}

/* ============================ Toast ====================================== */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #000;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  font-size: 14px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  background: #e0335a;
  color: #fff;
}

/* skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    #17243a 25%,
    #20324f 50%,
    #17243a 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* fade-in for views */
.view > * {
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
