/* =======================================================
   HOME GLOBAL THEME — colores, fuentes y márgenes base
   ======================================================= */
:root {
  --theme-bg: linear-gradient(135deg, #1a0f00 0%, #994407 60%, #1a0f00 100%);
  --theme-text: #ffffff;
  --secondary-bar-height: 70px;
  --font-primary: 'Poppins', sans-serif;
}

/* =======================================================
   CONTROL GLOBAL DE DESBORDE HORIZONTAL
   ======================================================= */
html,
body {
  overflow-x: hidden;
}

/* =======================================================
   BASE DEL BODY
   ======================================================= */
body {
  background: linear-gradient(135deg, #1a0f00 0%, #471e01 60%, #1a0f00 100%);
  color: var(--theme-text);
  font-family: var(--font-primary);
  margin: 0;
  padding-top: var(--secondary-bar-height);
}

/* =======================================================
   MAIN HEADER
   ======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--secondary-bar-height);
  background: var(--theme-bg);
  color: var(--theme-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

/* LOGO */
.header-logo {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}
.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url('logo.png') center/cover no-repeat;
  border: 2px solid #f8f5f3;
}
.logo-text {
  color: var(--theme-text);
  text-decoration: none;
}
.header-logo:hover .logo-text {
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

/* =======================================================
   ICONO HOME 2D
   ======================================================= */
.home-icon-2d {
  --icon-color: #fff;
  --icon-size: 30px;
  --icon-move-x: -10px;
  --icon-move-y: 5px;
  width: 22px;
  height: 22px;
  position: relative;
  margin-left: 0.6rem;
  top: -10px;
  color: var(--icon-color);
  transform: translate(var(--icon-move-x), var(--icon-move-y)) scale(calc(var(--icon-size) / 22px));
  transform-origin: left top;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.home-icon-2d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid currentColor;
}
.home-icon-2d::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 3px;
  width: 16px;
  height: 11px;
  background: currentColor;
}
.home-icon-2d:hover {
  transform: scale(1.1) rotate(8deg);
  opacity: 0.85;
}

/* =======================================================
   BOTÓN HOME
   ======================================================= */
.language-selector {
  margin-left: 1rem;
}
.lang-btn {
  background: linear-gradient(180deg, #eb4411 0%, #000000 50%, #6b2205 100%);
  border: 2px solid #faf6f6;
  color: var(--theme-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  top: 2px;
}
.lang-btn:hover {
  background: #fffdfc;
  color: #000;
}

/* =======================================================
   HOME CONTROLS
   ======================================================= */
.home-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 970px;
}

/* =======================================================
   BLOQUE DERECHO DE LA BARRA SUPERIOR
   ======================================================= */
.header-right {
  position: absolute;
  top: 0;
  right: 6rem;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
  z-index: 1200;
}

/* AVATARES */
.user-avatar,
.curator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.12);
  flex: 0 0 auto;
  cursor: pointer;
}
.user-avatar img,
.curator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.user-avatar img:hover,
.curator-avatar img:hover {
  transform: scale(1.08);
  opacity: 0.95;
}

/* SELECTOR DE IDIOMA */
.lang-selector {
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-selector:hover {
  background: #fff;
  color: #000;
}

/* BOTONES DEL BLOQUE DERECHO */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-btn i {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}
.nav-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ============================================================
   MENÚ EXPLORAR — NUEVO DISEÑO COMPACTO Y VISTOSO
   ============================================================ */
.explorar-dropdown {
  position: absolute;
  top: 50px;                   /* justo debajo del botón */
  right: 140px;                /* alineado al botón */
  width: 360px;                /* compacto y elegante */

  background: #120700;
  border: 2px solid #ff9a3c;
  border-radius: 14px;

  padding: 15px 0;

  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 0;               /* 🔥 colapsado al inicio */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;

  box-shadow: 0 6px 18px rgba(0,0,0,0.65),
              0 0 10px rgba(255,120,0,0.55);

  z-index: 99999;
}

#user-menu {
  right: 140px !important;   /* alineado al avatar */
  top: 50px !important;
}

.explorar-dropdown.show {
  max-height: 200px;  /* ajusta si quieres más alto */
  opacity: 1;
  transform: translateY(0);
}


.explorar-item {
  width: 90%;
  padding: 3px 0;
  text-align: center;

  font-weight: 800;
  font-size: 0.95rem;
  color: #ffd79e;

  border-bottom: 2px solid rgba(255,150,50,0.35);

  background: linear-gradient(180deg, #4a1a00, #2a0c00);
  cursor: pointer;
  transition: all .2s ease;

  border-radius: 10px;   /* 🔥 ESQUINAS REDONDEADAS */
  margin: 3px auto;       /* 🔥 SEPARA DEL BORDE PARA CALZAR CON EL MENÚ */
}


.explorar-item:last-child {
  border-bottom: none;
}

.explorar-item:hover {
  background: linear-gradient(180deg, #ff7c11, #b93f00);
  color: #fff;
  transform: scale(1.03);
}




/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 880px) {
  .header-right {
    max-width: calc(100% - 120px);
    right: 0.6rem;
    gap: 0.6rem;
  }
  .user-avatar,
  .curator-avatar {
    width: 36px;
    height: 36px;
  }
  .nav-btn i {
    font-size: 1.1rem;
  }
  .nav-btn .nav-label {
    font-size: 0.72rem;
  }
}

/* === Barra Secundaria Ajustada (importada de Landing Page) === */
.secondary-bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(97, 13, 2, 0.9) 0%, rgba(11,11,11,0.8) 100%);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 9;
  border-bottom: 0px solid rgb(41, 19, 1);
  backdrop-filter: blur(6px);
  overflow-x: hidden;
}

/* Contenedor interno */
.secondary-bar .container {
  width: 100%;
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Grupo de elementos */
.sb-group {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(70px);
}

/* Título */
.language-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  background: rgba(207, 94, 14, 0.678);
  box-shadow: 0 3px 8px rgba(255,107,0,0.28);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  margin-left: -35px;
}
.language-selector:hover {
  background: rgba(255, 106, 0, 0.959);
  transform: translateY(-1px);
}

/* =======================================================
   BOTÓN DE DIRECCIÓN
   ======================================================= */
.direction-btn {
  --scale: 1;
  --arrow-ratio: 0.50;

  background-color: #220b01;
  border: 2px solid #ffffff;
  border-radius: 10px;
  width: calc(35px * var(--scale));
  height: calc(35px * var(--scale));
  position: absolute;
  top: 21.8px;
  left: 400px;
  margin-left: 13px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.direction-btn .arrow-icon {
  position: absolute;
  top: calc(50% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  width: 0;
  height: 0;
  border-left: calc(12px * var(--scale, 1)) solid transparent;
  border-right: calc(12px * var(--scale, 1)) solid transparent;
  border-bottom: calc(15px * var(--scale, 1)) solid var(--arrow-color, #fff);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}

.direction-btn.down .arrow-icon {
  transform: translateX(-50%) rotate(180deg);
}

.direction-btn:hover {
  background-color: #f70b0b;
  transform: scale(1.05);
}

.direction-btn:active {
  transform: scale(0.80);
  opacity: 0.85;
}

.direction-btn {
  transform: scale(var(--btn-scale, 1));
  transform-origin: center center;
}

/* ============================================================
   GALERIA PLAYLISTS - MENÚ MOBILE BASE OCULTA PC (REAL-LIVE)
   ============================================================ */
.mobile-dashboard-menu-shell,
.mobile-dashboard-menu-btn,
#mobile-dashboard-menu {
  display: none;
}

/* ============================================================
   GALERIA PLAYLISTS - BARRA PRINCIPAL MOBILE REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .main-header,
  .main-header * {
    box-sizing: border-box;
  }

  .main-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: var(--secondary-bar-height);
    min-height: var(--secondary-bar-height);
    padding: 10px;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    overflow: visible;
  }

  .header-logo {
    gap: 0.6rem;
    min-width: 0;
    max-width: calc(100vw - 238px);
    margin-right: 0;
    font-size: clamp(0.84rem, 3.4vw, 0.9rem);
    font-weight: 900;
    flex: 0 1 auto;
    transform: none;
  }

  .header-logo:hover {
    transform: none;
    opacity: 0.88;
  }

  .logo-circle {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
  }

  .logo-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-icon-2d,
  .header-right > :not(.lang-selector):not(.mobile-dashboard-menu-shell) {
    display: none !important;
  }

  .home-controls {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1202;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: 6px;
    margin-right: 0;
    transform: none;
  }

  .language-selector-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .lang-btn {
    top: 0;
    min-width: 54px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 25px;
    font-size: 0.84rem;
    line-height: 1;
    text-transform: uppercase;
  }

  .direction-btn {
    --scale: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 0;
  }

  .direction-btn .arrow-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 13px solid #fff;
  }

  .direction-btn.down .arrow-icon {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .header-right {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    max-width: none;
    z-index: 1201;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    transform: none;
    gap: 6px;
  }

  .header-right .lang-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 25px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-dashboard-menu-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .mobile-dashboard-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 6px 10px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: linear-gradient(180deg, #4a1a00, #120700);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
  }

  .mobile-dashboard-menu-btn::-webkit-details-marker {
    display: none;
  }

  .mobile-dashboard-menu-btn:hover,
  .mobile-dashboard-menu-btn:focus-visible {
    background: linear-gradient(180deg, #ff7c11, #7a2600);
    opacity: 0.95;
    outline: none;
    transform: scale(1.03);
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown {
    position: fixed;
    top: calc(var(--secondary-bar-height) + 8px);
    left: 50%;
    right: auto;
    width: min(310px, calc(100vw - 32px));
    max-height: 0;
    display: flex;
    padding: 12px 0;
    transform: translate(-50%, -10px);
    z-index: 99999;
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown .explorar-item {
    min-height: 36px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .mobile-dashboard-menu-shell[open] #mobile-dashboard-menu.mobile-dashboard-dropdown,
  #mobile-dashboard-menu.mobile-dashboard-dropdown.show {
    max-height: min(520px, calc(100vh - var(--secondary-bar-height) - 24px));
    overflow-y: auto;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============================================================
   GALERIA PLAYLISTS - BARRA PRINCIPAL MOBILE COMPACTA REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 360px) {
  .header-logo {
    max-width: calc(100vw - 238px);
  }

  .lang-btn {
    min-width: 50px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .mobile-dashboard-menu-btn {
    min-width: 56px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* ============================================================
   GALERIA PLAYLISTS - BARRA SECUNDARIA MOBILE REAL-LIVE
   Conserva el primer botón dinámico con total real de playlists
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .secondary-bar {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .secondary-bar .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .secondary-bar .sb-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: none;
  }

  .secondary-bar .sb-group > .language-selector:not(:first-child),
  .secondary-bar .tokens-container {
    display: none !important;
  }

  .secondary-bar .sb-group > .language-selector:first-child {
    max-width: 100%;
    box-sizing: border-box;
    min-height: 36px;
    margin-left: 0;
    padding: 8px 18px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.1;
  }
}

/* ============================================================
   GALERIA PLAYLISTS - CONTENCIÓN MOBILE SIN OVERFLOW REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .main-header,
  .secondary-bar,
  #playlist-gallery-section,
  .playlists-sample,
  .playlists-sample .container,
  .playlists-grid {
    max-width: 100%;
    overflow-x: hidden;
  }

  @supports (overflow: clip) {
    html,
    body,
    .secondary-bar,
    #playlist-gallery-section,
    .playlists-sample,
    .playlists-sample .container,
    .playlists-grid {
      overflow-x: clip !important;
    }
  }

  .playlists-sample {
    display: block !important;
    margin-top: 0;
    padding: 14px 0 0;
  }

  .playlists-sample .container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0 6px;
    margin: 0;
    box-sizing: border-box;
  }
}

/* ============================================================
   GALERIA PLAYLISTS - MENÚ MOBILE VISIBLE SOBRE HEADER REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .main-header {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
}

/* ============================================================
   GALERIA PLAYLISTS - GRID MOBILE 3 COLUMNAS REAL-LIVE
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .playlists-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
    justify-content: stretch;
    align-items: start;
    box-sizing: border-box;
  }

  .playlist-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border-radius: 10px;
    padding: 0 0 8px 0;
  }

  .playlist-info {
    min-width: 0;
    padding: 7px 5px;
  }

  .playlist-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.66rem;
    line-height: 1.18;
    margin-bottom: 4px;
  }

  .playlist-likes {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 1000;
    line-height: 1.15;
    margin-bottom: 5px;
  }

  .playlist-desc {
    display: none;
  }

  .spotify-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 4px;
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .playlists-sample .curator {
    display: none;
  }

  .playlist-skeleton-description,
  .playlist-skeleton-curator {
    display: none;
  }
}

/* =======================================================
   TOKENS EN BARRA SECUNDARIA — VERSIÓN CORREGIDA Y UNIFICADA
   ======================================================= */
.tokens-container {
  display: flex;                     /* Alinea los tokens en fila */
  align-items: center;               /* Centra verticalmente */
  gap: 0px;                         /* Espacio entre tokens */
  margin-left: 0px;                 /* Separación respecto al botón “Galería de Tokens” */
  cursor: pointer;
}


.token-item {
  display: flex;                     /* Ícono + bloque de texto */
  align-items: center;               /* Centrado vertical */
  gap: 10px;                         /* Espaciado entre ícono y texto */
  background: rgba(165, 73, 11, 0);   /* Fondo semitransparente */
  border-radius: 50px;               /* Bordes redondeados */
  padding: 6px 12px;                 /* Espaciado interno */
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.token-item:hover {
  transform: scale(1.05);            /* Efecto al pasar el cursor */
}

/* ÍCONO */
.token-icon {
  width: 36px;                       /* Tamaño del ícono */
  height: 36px;
  border-radius: 50%;                /* Forma circular */
  object-fit: cover;
  border: 2px solid #fff;            /* Borde blanco definido */
}

/* BLOQUE DE TEXTO (nombre + contador debajo) */
.token-text {
  display: flex;                     /* Permite apilar texto */
  flex-direction: column;            /* NOMBRE arriba / x0 abajo */
  align-items: center;               /* Centra ambos horizontalmente */
  justify-content: center;           /* Centrado vertical */
  line-height: 1.1;
}

/* NOMBRE */
.token-name {
  font-size: 0.8rem;                 /* Más pequeño */
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 2px;                /* Separación mínima con el x0 */
}

/* CONTADOR (x0 debajo del nombre, centrado) */
.token-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffae42;
}

/* COLORES DIFERENCIADOS */
.token-item:nth-child(1) .token-icon { box-shadow: 0 0 10px rgba(0,145,255,0.8); }  /* DAILY */
.token-item:nth-child(2) .token-icon { box-shadow: 0 0 10px rgba(0,255,120,0.8); }  /* REGALO */
.token-item:nth-child(3) .token-icon { box-shadow: 0 0 10px rgba(255,0,200,0.8); }  /* INDIE */

/* =======================================================
   🔧 BLOQUE DE MODIFICACIÓN RÁPIDA
   =======================================================
   - Tamaño del ícono: ajustar width / height en .token-icon
   - Forma: modificar border-radius (100% = círculo)
   - Tamaño texto: cambiar font-size en .token-name / .token-count
   - Espaciado general: modificar gap y padding en .token-item
   - Colores de borde o sombra: editar box-shadow por token
   - Añadir más tokens: duplicar bloque HTML manteniendo estructura
   - Todos los tokens comparten este mismo estilo de base
   ======================================================= */



/* ==== SECCIÓN: GALERÍA DE PLAYLISTS ==== */
.playlists-sample {
  margin-top: 20px;
  width: 100%;
  padding-top: 0;
  background: #000;
  border-top: 10px solid rgba(255,255,255,0.05);
}

.playlists-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 40px 38px;
  justify-content: center;
  align-items: start;
}

.playlist-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  max-width: 260px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 420px;

  /* 🔹 estructura correcta */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 0 0 20px 0;
}


.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.playlist-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.playlist-info {
  padding: 16px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Nombre de la playlist */
.playlist-name {
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 5px;
  color: #fff;
}

/* Likes con número visible */
.playlist-likes {
  font-weight: 800;
  font-size: 0.4rem;
  color: var(--accent-light);
  margin-bottom: 5px;
}

/* Descripción visible debajo de los likes */
.playlist-desc {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 0px;
  text-align: left;
  max-height: 60px;
  overflow: hidden;
}


.spotify-btn {
  display: inline-block;
  text-align: center;
  background: linear-gradient(90deg, #1a0905, #813408);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.spotify-btn:hover {
  opacity: 0.85;
}

.curator {
  display: flex;
  align-items: center;
  gap: 20px;
}

.curator-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.curator-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 16px;
  border: 2px solid #020202;
  border-radius: 20px;
  background: linear-gradient(90deg, #09411d, #0b5826);
  transition: all 0.25s ease;
}

.curator-link:hover {
  text-decoration: underline;
  background: rgba(255,107,0,0.32);
  transform: translateY(-1px);
}

.playlist-name {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.playlist-likes {
  font-size: 1rem;
  font-weight: 1000;
  color: #f78a24;
  margin-bottom: 10px;
}

.playlist-desc {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ddd;
  line-height: 1.4;
  margin-bottom: 0px;
}

.playlist-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding-bottom: 0;
}
 
.hidden-initial { display: none !important; } /* Oculta solo las tarjetas iniciales del modelo */

/* =======================================================
   GALERIA DE PLAYLISTS - ESTADOS REALES DE CARGA Y ERROR
   ======================================================= */
.playlist-card-live {
  background: #111;
  border: 1px solid #ff6b00;
}

.playlist-card-loading {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,107,0,0.18);
  pointer-events: none;
}

.playlist-skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 220% 100%;
  animation: playlist-skeleton-pulse 1.4s ease-in-out infinite;
}

.playlist-skeleton-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.playlist-skeleton-title {
  width: 78%;
  height: 18px;
  margin-bottom: 12px;
}

.playlist-skeleton-likes {
  width: 48%;
  height: 14px;
  margin-bottom: 12px;
}

.playlist-skeleton-description {
  width: 100%;
  height: 56px;
  margin-bottom: 18px;
}

.playlist-skeleton-button {
  width: 72%;
  height: 38px;
  margin-bottom: 12px;
}

.playlist-skeleton-curator {
  width: 88%;
  height: 36px;
}

.playlist-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: 18px;
  border: 1px dashed rgba(255,107,0,0.45);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

@keyframes playlist-skeleton-pulse {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}




/* =======================================================
   BOTÓN DE DIRECCIÓN CON FLECHA ESCALABLE UNIFORMEMENTE
   ======================================================= */
.direction-btn {
  --scale: 1;                          /* Escala base del botón y flecha */
  --arrow-ratio: 0.50;                 /* Proporción entre botón y flecha */

  background-color: #220b01;           /* Fondo principal */
  border: 2px solid #ffffff;           /* Borde blanco */
  border-radius: 10px;                 /* Bordes redondeados */
  width: calc(35px * var(--scale));    /* Escalable */
  height: calc(35px * var(--scale));   /* Escalable */
  position: absolute;                  /* Posición fija */
  top: 21.8px;                           /* Posición vertical */
  left: 400px;                         /* Posición horizontal */
  margin-left: 13px;                   /* Separación */
  box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Sombra */
  cursor: pointer;                     /* Mano */
  display: flex;                       /* Centra contenido */
  align-items: center;                 /* Centrado vertical */
  justify-content: center;             /* Centrado horizontal */
  transition: all 0.25s ease;          /* Animación suave */
}

/* =======================================================
   ÍCONO ESCALABLE — FLECHA UNIFORME
   ======================================================= */
.direction-btn .arrow-icon {
  position: absolute;
  top: calc(50% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  width: 0;
  height: 0;
  border-left: calc(12px * var(--scale, 1)) solid transparent;
  border-right: calc(12px * var(--scale, 1)) solid transparent;
  border-bottom: calc(15px * var(--scale, 1)) solid var(--arrow-color, #fff);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}

/* Cuerpo rectangular de la flecha */
.direction-btn .arrow-icon::after {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--arrow-body-width) / 2));
  top: var(--arrow-size);
  width: var(--arrow-body-width);
  height: var(--arrow-body-height);
  background-color: var(--arrow-color);
  border-radius: 2px;
}

/* Flecha invertida (hacia abajo) */
.direction-btn.down .arrow-icon {
  transform: translateX(-50%) rotate(180deg);
}

/* Hover */
.direction-btn:hover {
  background-color: #f70b0b;
  transform: scale(1.05);
}

/* Click */
.direction-btn:active {
  transform: scale(0.80);
  opacity: 0.85;
}

/* Escalado uniforme del botón y la flecha */
.direction-btn {
  transform: scale(var(--btn-scale, 1));
  transform-origin: center center;
}

/* ============================================================
   GALERIA PLAYLISTS - CIERRE CASCADA MOBILE SIN OVERFLOW REAL-LIVE
   Mantiene PC intacto y garantiza que las reglas mobile sean finales
   ============================================================ */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .direction-btn {
    --scale: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 0;
    transform: scale(var(--btn-scale, 1));
  }

  .direction-btn .arrow-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 13px solid #fff;
  }

  .direction-btn.down .arrow-icon {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .playlists-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
    justify-content: stretch;
    align-items: start;
    box-sizing: border-box;
  }

  .playlist-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border-radius: 10px;
    padding: 0 0 8px 0;
  }

  .playlist-info {
    min-width: 0;
    padding: 7px 5px;
  }

  .playlist-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.66rem;
    line-height: 1.18;
    margin-bottom: 4px;
  }

  .playlist-likes {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 1000;
    line-height: 1.15;
    margin-bottom: 5px;
  }

  .playlist-desc {
    display: none;
  }

  .spotify-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 4px;
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .playlists-sample .curator {
    display: none;
  }

  .playlist-skeleton-description,
  .playlist-skeleton-curator {
    display: none;
  }
}
