/* ==========================================================================
   Documento sobre negro (descarga de Android y página de privacidad/docs),
   sin tarjetas ni degradados. Se carga como #page-extra en android.html y docs.html.
   ========================================================================== */

body.android-page #principal,
body.docs-page #principal,
body.android-page #feed,
body.docs-page #feed,
body.android-page #main,
body.docs-page #main {
  background: #000 !important;
}

/* El buscador del header no tiene sentido aquí. */
body.android-page #arrowMenu .div--hun,
body.docs-page #arrowMenu .div--hun {
  display: none !important;
}

/* docs.html trae el documento en los dos idiomas; i18n.js escribe el idioma activo
   en <html>, así que basta el CSS. Se oculta todo lo que no sea ese idioma. */
html:not([lang="en"]) .doc[lang="en"],
html[lang="en"] .doc[lang="es"] {
  display: none;
}

/* Entrada de la barra lateral que corresponde a estas páginas. */
#getAppLink.is-current {
  color: #fff;
  font-weight: 700;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 4px 0 56px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.doc h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.doc h3 {
  margin: 30px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.doc p {
  max-width: 64ch;
  margin: 0 0 16px;
  color: #b3b3b3;
}

.doc__lead {
  color: #d6d6d6 !important;
}

.doc a {
  color: #1ed760;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc a:hover {
  color: #3be477;
}

.doc__meta {
  margin: 0 0 22px;
  color: #8a8a8a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.doc__meta [data-release] {
  color: #1ed760;
  font-weight: 700;
}

.doc__more {
  margin: 24px 0 0;
  font-size: 0.95rem;
}

/* Fila de enlaces secundarios (versiones, reproductor). */
.doc__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  font-size: 0.95rem;
}

/* La descarga es una sola cosa: CTA grande y el resto, letra pequeña. */
.doc--app .doc__actions {
  margin: 26px 0 18px;
}

.doc--app .doc__foot {
  margin-top: 48px;
}

.doc__fine {
  color: #8a8a8a !important;
  font-size: 0.8rem !important;
}

.doc__list {
  max-width: 64ch;
  margin: 0 0 16px;
  padding-left: 18px;
  color: #b3b3b3;
}

.doc__list li {
  margin: 0 0 8px;
}

.doc__list b {
  color: #fff;
  font-weight: 700;
}

.doc pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  color: #e8e8e8;
  font-family: ui-monospace, "SFMono-Regular", "SpotifyMixMono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  background: #121212;
  border: 1px solid #262626;
  border-radius: 8px;
}

.doc pre code {
  font: inherit;
  color: inherit;
}

/* --- Acciones ------------------------------------------------------------ */

.doc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 24px;
}

.doc-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  color: #000 !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none !important;
  background: #1ed760;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.doc-cta:hover {
  background: #3be477;
  transform: scale(1.02);
}

.doc-cta:active {
  transform: scale(0.98);
}

/* --- Pie ----------------------------------------------------------------- */

.doc__foot {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid #262626;
  color: #7a7a7a;
  font-size: 0.78rem;
  line-height: 1.6;
}

.doc__foot p {
  margin: 0 0 6px;
  color: inherit;
  font-size: inherit;
}

.doc__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
}

.doc__sign b {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.doc__sign a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1ed760;
  font-weight: 600;
}

.doc__sign svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.doc__sign-dot {
  color: #535353;
}

/* --- Animación de entrada (una sola vez, sin dejar nada oculto) ---------- */

@keyframes doc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.doc > * {
  animation: doc-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.doc > :nth-child(2) {
  animation-delay: 40ms;
}

.doc > :nth-child(3) {
  animation-delay: 80ms;
}

.doc > :nth-child(4) {
  animation-delay: 120ms;
}

.doc > :nth-child(5) {
  animation-delay: 160ms;
}

.doc > :nth-child(6) {
  animation-delay: 200ms;
}

.doc > :nth-child(7) {
  animation-delay: 240ms;
}

.doc > :nth-child(8) {
  animation-delay: 280ms;
}

.doc > :nth-child(9) {
  animation-delay: 320ms;
}

.doc > :nth-child(n + 10) {
  animation-delay: 360ms;
}

/* --- Móvil --------------------------------------------------------------- */

@media (max-width: 767px) {
  /* La cabecera ya trae marca, idioma y perfil. */
  body.android-page #topNav,
  body.docs-page #topNav {
    display: none !important;
  }

  .doc {
    padding-bottom: 32px;
  }

  .doc h2 {
    margin-top: 34px;
  }

  .doc pre {
    padding: 12px 14px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc > * {
    animation: none !important;
  }

  .doc-cta {
    transition: none !important;
  }
}
