/* ==========================================================================
   Negrotropico — Reproductor + Catalogo + Mosaico de blog          (v17.2)
   ==========================================================================
   ES: NOTA DE COLOR (importante). Las paginas del sitio NO comparten fondo:
       el home es oscuro, pero /catalogo usa .bg-gray (fondo claro). En v17.0
       se asumio fondo oscuro y el texto blanco quedo invisible sobre claro.
       Desde v17.1 todo componente de este archivo declara SU PROPIO fondo y
       nunca hereda del contexto. Si agregas un componente aca, hace lo mismo.

   EN: COLOR NOTE (important). Site pages do NOT share a background: home is
       dark, but /catalogo uses .bg-gray (light background). v17.0 assumed a
       dark background and white text became invisible on light. Since v17.1
       every component here declares ITS OWN background and never inherits
       from context. If you add a component here, do the same.

   Paleta / palette: fondo #2a2b2f · superficie #1e1f22 · acento (gris claro) #d6d7db
   ========================================================================== */

/* ==========================================================================
   1. BARRA PERSISTENTE
   ========================================================================== */

#ng-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1900000;           /* debajo del banner de cookies (2000000) */
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e1f22;
  border-top: 1px solid #3a3b3f;
  color: #e5e5e5;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  padding: 10px 18px;
  box-shadow: 0 -3px 18px rgba(0, 0, 0, .45);
}

/* ES: los iconos son SVG inline, NO Font Awesome. Motivo: la barra tiene que
       poder dibujarse aunque la hoja de FA falle o tarde -- es el unico
       control de reproduccion del sitio.
   EN: icons are inline SVG, NOT Font Awesome, so the bar still renders if
       the FA stylesheet fails or lags -- it is the site's only transport. */
#ng-player .ng-player__btn {
  background: transparent;
  border: none;
  color: #e5e5e5;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: color .15s ease, background-color .15s ease;
}
#ng-player .ng-player__btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
#ng-player .ng-player__playpause { width: 42px; height: 42px; }
#ng-player .ng-player__playpause svg { width: 22px; height: 22px; }
#ng-player .ng-player__btn:hover { color: #d6d7db; background: rgba(214, 215, 219, .12); }
#ng-player .ng-player__btn:focus-visible { outline: 2px solid #d6d7db; outline-offset: 2px; }

#ng-player .ng-player__cover {
  width: 40px; height: 40px;
  border-radius: 5px;
  object-fit: cover;
  background: #2a2b2f;
  flex: 0 0 auto;
}

#ng-player .ng-player__meta { min-width: 0; flex: 0 1 240px; line-height: 1.3; }
#ng-player .ng-player__title {
  font-size: 13px; font-weight: 600; color: #fff; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#ng-player .ng-player__artist {
  font-size: 11px; color: #9a9a9a; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#ng-player .ng-player__btn:disabled { color: #55565a; cursor: default; }
#ng-player .ng-player__btn:disabled:hover { background: transparent; color: #55565a; }

#ng-player .ng-player__wave {
  flex: 1 1 auto;
  height: 28px;
  min-width: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.ng-player__wave-bar {
  flex: 1 1 0;
  min-width: 2px;
  height: 15%;
  background: #3a3b3f;
  border-radius: 1px;
  transition: height .12s ease;
}
.ng-player__wave.is-ready .ng-player__wave-bar { background: #45464b; }
.ng-player__wave-bar.is-played { background: #d6d7db; }

#ng-player .ng-player__time {
  font-size: 11px; color: #9a9a9a; flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

#ng-player .ng-player__sc-link { color: #9a9a9a; flex: 0 0 auto; display: inline-flex; }
#ng-player .ng-player__sc-link svg { width: 20px; height: 20px; fill: currentColor; }
#ng-player .ng-player__sc-link:hover { color: #ff7700; }

/* ES: solo se muestra si la pista tambien esta en Spotify (data-spotify en
       la fila de origen) -- oculto por defecto en el HTML.
   EN: only shown if the track is also on Spotify (data-spotify on the
       source row) -- hidden by default in the HTML.                     */
#ng-player .ng-player__spotify-link { color: #9a9a9a; flex: 0 0 auto; display: inline-flex; }
#ng-player .ng-player__spotify-link svg { width: 20px; height: 20px; fill: currentColor; }
#ng-player .ng-player__spotify-link:hover { color: #1db954; } /* verde Spotify, solo aca */

/* ES: el iframe motor existe pero no se ve (1x1 fuera de pantalla, NO
       display:none -- algunos navegadores no reproducen audio de un iframe
       con display:none).
   EN: engine iframe exists but is not visible (1x1 offscreen, NOT
       display:none -- some browsers refuse to play audio from a
       display:none iframe).                                             */
#ng-player-engine {
  position: fixed;
  width: 1px; height: 1px;
  left: -9999px; bottom: 0;
  border: 0; opacity: 0; pointer-events: none;
}

body.ng-player-open { padding-bottom: 62px; }

@media (max-width: 780px) {
  #ng-player { gap: 9px; padding: 8px 12px; }
  #ng-player .ng-player__meta { flex-basis: 110px; }
  #ng-player .ng-player__cover,
  #ng-player .ng-player__time,
  #ng-player .ng-player__sc-link,
  #ng-player .ng-player__spotify-link { display: none; }
}

/* ==========================================================================
   2. CATALOGO — pagina completa oscura
   ==========================================================================
   ES: /catalogo usaba .bg-gray (#eee, casi blanco) heredado de un patron que
       en otras paginas (producciones, fichas de artista) queda tapado por
       una foto de fondo -- ahi si funciona. Catalogo nunca tuvo esa foto, asi
       que se veia con el fondo #eee a la vista y el body en blanco (#fff, el
       fondo por defecto del sitio) detras de todo lo demas. Estas reglas
       pintan la pagina entera oscura sin tocar .bg-gray global (que otras 8
       paginas siguen usando tal cual).
   EN: /catalogo used .bg-gray (#eee, near white) inherited from a pattern
       that on other pages (producciones, artist pages) gets covered by a
       background photo -- that is where it works. Catalog never had that
       photo, so it showed the #eee background plainly, with body's default
       white (#fff) behind everything else. These rules paint the whole page
       dark without touching the global .bg-gray rule (which 8 other pages
       still use as-is).
   ========================================================================== */
body.ng-pagina-oscura { background-color: #1a1b1e; }
.ng-title-oscura { background-color: #1e1f22; }
.ng-pagina-oscura .a-inv { color: #9a9a9a; }
.ng-pagina-oscura .a-inv:hover { color: #fff; }
.ng-pagina-oscura .bread-current { color: #e5e5e5; }

/* ==========================================================================
   3. CATALOGO — barra de herramientas (filtros + cambio de vista)
   ========================================================================== */

.ng-catalogo { background: #23242a; padding: 26px 22px 30px; border-radius: 12px; margin: 34px 0 20px; }

.ng-cat-toolbar {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 6px;
  border-bottom: 1px solid #34353b;
}

.ng-cat-filters { display: flex; flex-wrap: wrap; gap: 22px; flex: 1 1 auto; }
.ng-cat-filtergroup { min-width: 0; }
.ng-cat-filtergroup__label {
  display: block; margin: 0 0 8px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #8a8b8f;
}
.ng-cat-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.ng-chip {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  color: #c8c8c8;
  background: #2c2d33;
  border: 1px solid #3d3e45;
  border-radius: 40px;
  padding: 6px 15px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.ng-chip:hover { border-color: #6d6e75; color: #fff; }
.ng-chip[aria-pressed="true"] { background: #d6d7db; border-color: #d6d7db; color: #1a1a1a; font-weight: 600; }
.ng-chip:focus-visible { outline: 2px solid #d6d7db; outline-offset: 2px; }

.ng-cat-views { display: flex; gap: 6px; flex: 0 0 auto; }
.ng-viewbtn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2c2d33; border: 1px solid #3d3e45; border-radius: 6px;
  color: #a8a9ad; cursor: pointer; padding: 0;
  transition: all .15s ease;
}
.ng-viewbtn svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.ng-viewbtn:hover { color: #fff; border-color: #6d6e75; }
.ng-viewbtn[aria-pressed="true"] { background: #d6d7db; border-color: #d6d7db; color: #1a1a1a; }
.ng-viewbtn:focus-visible { outline: 2px solid #d6d7db; outline-offset: 2px; }

.ng-cat-count {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px; color: #8a8b8f;
  padding: 14px 2px 0;
}
.ng-cat-empty {
  display: none;
  font-family: 'Poppins', Arial, sans-serif;
  color: #b5b5b5; text-align: center; padding: 46px 20px;
}
.ng-catalogo.is-empty .ng-cat-empty { display: block; }

/* ==========================================================================
   4. CATALOGO — las pistas (vista lista / vista grilla)
   ========================================================================== */

.ng-track { transition: background-color .15s ease; }
.ng-track[hidden] { display: none !important; }

.ng-track__cover { background: #2a2b2f; display: block; object-fit: cover; }
.ng-track__title { font-family: 'Poppins', Arial, sans-serif; font-weight: 600; color: #fff; }
.ng-track__artist { color: #9a9a9a; margin: 0; }
.ng-track__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-track__badge {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: #a9aab0; background: #303138;
  border-radius: 3px; padding: 3px 8px;
}

.ng-track__play {
  border-radius: 50%;
  border: 1px solid #5c5d64;
  background: #2c2d33;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: all .15s ease;
}
.ng-track__play svg { fill: currentColor; display: block; }
.ng-track__play:hover { border-color: #d6d7db; color: #d6d7db; background: #34353b; }
.ng-track__play:focus-visible { outline: 2px solid #d6d7db; outline-offset: 2px; }
.ng-track.is-playing .ng-track__play { background: #d6d7db; border-color: #d6d7db; color: #1a1a1a; }
.ng-track.is-playing .ng-track__title { color: #d6d7db; }

.ng-track__sc-link { color: #8a8b8f; flex: 0 0 auto; display: inline-flex; transition: color .15s ease; }
.ng-track__sc-link svg { width: 19px; height: 19px; fill: currentColor; }
.ng-track__sc-link:hover { color: #ff7700; }

.ng-track__spotify-link { color: #8a8b8f; flex: 0 0 auto; display: inline-flex; transition: color .15s ease; }
.ng-track__spotify-link svg { width: 19px; height: 19px; fill: currentColor; }
.ng-track__spotify-link:hover { color: #1db954; } /* verde Spotify, solo aca */

/* ---- Vista LISTA (por defecto) ---- */
.ng-tracklist { display: block; }

/* ES: usado en fichas de artista para un embed suelto de SoundCloud (no
       dentro de /catalogo) -- fondo propio, igual criterio que .ng-catalogo:
       nunca depender de lo que haya alrededor.
   EN: used on artist pages for a single loose SoundCloud embed (outside
       /catalogo) -- own background, same rule as .ng-catalogo: never rely
       on whatever is behind it.                                          */
.ng-tracklist--single {
  background: #23242a;
  border-radius: 10px;
  padding: 4px 16px;
  margin: 18px 0;
}


.ng-tracklist .ng-track {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 13px 10px;
  border-bottom: 1px solid #303138;
  border-radius: 6px;
}
.ng-tracklist .ng-track:last-child { border-bottom: none; }
.ng-tracklist .ng-track:hover { background: #2a2b31; }
.ng-tracklist .ng-track__cover { width: 52px; height: 52px; border-radius: 5px; }
.ng-tracklist .ng-track__play { width: 42px; height: 42px; }
.ng-tracklist .ng-track__play svg { width: 15px; height: 15px; }
.ng-tracklist .ng-track__meta { min-width: 0; flex: 1 1 auto; }
.ng-tracklist .ng-track__title { font-size: 15px; margin: 0 0 3px; }
.ng-tracklist .ng-track__artist { font-size: 12.5px; margin: 0 0 6px; }

/* ---- Separadores de año ---- */
.ng-year-heading {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: #7d7e83;
  margin: 22px 0 4px;
  padding: 0 10px;
}
.ng-year-heading:first-child { margin-top: 4px; }
.ng-year-heading--unknown { color: #5f6065; font-style: italic; font-weight: 400; letter-spacing: 0; }
.ng-tracklist--grid .ng-year-heading { grid-column: 1 / -1; margin: 10px 0 -6px; }

/* ---- Vista GRILLA ---- */
.ng-tracklist--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
  padding-top: 20px;
}
.ng-tracklist--grid .ng-track {
  display: block; position: relative;
  background: #2a2b31;
  border: 1px solid #34353b;
  border-radius: 9px;
  overflow: hidden;
  padding: 0;
}
.ng-tracklist--grid .ng-track:hover { border-color: #55565e; }
.ng-tracklist--grid .ng-track__cover { width: 100%; height: 190px; border-radius: 0; }
.ng-tracklist--grid .ng-track__play {
  position: absolute; top: 152px; right: 15px;
  width: 48px; height: 48px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}
.ng-tracklist--grid .ng-track__play svg { width: 17px; height: 17px; }
.ng-tracklist--grid .ng-track__meta { padding: 16px 15px 14px; }
.ng-tracklist--grid .ng-track__title { font-size: 14.5px; margin: 0 0 4px; line-height: 1.35; }
.ng-tracklist--grid .ng-track__artist { font-size: 12px; margin: 0 0 9px; }
.ng-tracklist--grid .ng-track__sc-link { position: absolute; top: 13px; right: 13px; color: #fff; opacity: .85; }
.ng-tracklist--grid .ng-track__sc-link:hover { opacity: 1; color: #ff7700; }
.ng-tracklist--grid .ng-track__spotify-link { position: absolute; top: 13px; right: 38px; color: #fff; opacity: .85; }
.ng-tracklist--grid .ng-track__spotify-link:hover { opacity: 1; color: #1db954; }

@media (max-width: 600px) {
  .ng-catalogo { padding: 20px 14px 24px; }
  .ng-cat-toolbar { gap: 16px; }
  .ng-tracklist .ng-track__cover { width: 44px; height: 44px; }
  .ng-tracklist--grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .ng-tracklist--grid .ng-track__cover { height: 145px; }
  .ng-tracklist--grid .ng-track__play { top: 110px; right: 11px; width: 42px; height: 42px; }
}

/* ES: fallback si la Widget API no arranca (bloqueador, CSP, red).
   EN: fallback if the Widget API cannot start (blocker, CSP, network). */
.ng-track__fallback-note { font-size: 11px; color: #d8a13c; margin: 0 0 8px; padding: 10px 10px 0; }

/* ---- EP: expandir para ver cada pista ---- */
.ng-track__expand {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8a8b8f;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.ng-track__expand svg { width: 13px; height: 13px; fill: currentColor; transition: transform .2s ease; }
.ng-track__expand:hover { color: #fff; background: #34353b; }
.ng-track__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.ng-tracklist--grid .ng-track__expand { position: absolute; bottom: 10px; right: 13px; background: rgba(0,0,0,.4); }

.ng-track__eptracks {
  flex-basis: 100%;
  padding: 4px 0 2px 68px;
}
.ng-tracklist--grid .ng-track__eptracks { padding: 0 15px 14px; }

.ng-ep-track {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #2c2d33;
}
.ng-ep-track:first-child { border-top: none; }
.ng-ep-track__play {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #4a4b51;
  background: transparent;
  color: #c8c9cd;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ng-ep-track__play svg { width: 9px; height: 9px; fill: currentColor; }
.ng-ep-track__play:hover { border-color: #d6d7db; color: #d6d7db; }
.ng-ep-track__play:disabled { opacity: .35; cursor: default; }
.ng-ep-track__title {
  font-family: 'Poppins', Arial, sans-serif; font-size: 12.5px;
  color: #c8c9cd; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ng-ep-track__duration { font-size: 11px; color: #7d7e83; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ng-ep-track__loading { font-size: 12px; color: #8a8b8f; margin: 6px 0; }
.ng-ep-track__loading a { color: #d6d7db; }


/* ==========================================================================
   5. HOME — mosaico de ultimos posts del blog
   ========================================================================== */

.ng-blog { padding: 0 0 10px; }
.ng-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.ng-blog__card {
  display: block;
  background: #23242a;
  border: 1px solid #303138;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.ng-blog__card:hover { border-color: #6a6b73; transform: translateY(-3px); text-decoration: none; }
.ng-blog__thumb {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  background: #2a2b31;
}
.ng-blog__body { padding: 18px 19px 20px; }
.ng-blog__date {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #8a8b8f; margin: 0 0 8px;
}
.ng-blog__title {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1.4;
  color: #fff; margin: 0 0 9px;
}
.ng-blog__card:hover .ng-blog__title { color: #d6d7db; }
.ng-blog__excerpt { font-size: 13px; line-height: 1.6; color: #a5a6ab; margin: 0; }

@media (max-width: 900px) {
  .ng-blog__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ng-blog__grid > :nth-child(3) { display: none; } /* 2 columnas = 2 posts, sin fila huerfana */
}
@media (max-width: 600px) {
  .ng-blog__grid { grid-template-columns: 1fr; gap: 16px; }
  .ng-blog__grid > :nth-child(3) { display: block; }
  .ng-blog__thumb { height: 175px; }
}
