/**
 * GoPass — Home streaming (Netflix / Disney+ style)
 */

:root {
  --nx-bg: #0a0a0c;
  --nx-surface: #141416;
  --nx-elevated: #1c1c20;
  --nx-text: #f4f4f5;
  --nx-muted: #a1a1aa;
  --nx-accent: #f65852;
  --nx-live: #ff2d2d;
  --nx-private: #facc15;
  --nx-success: #4ade80;
  --nx-row-gap: 2rem;
  --nx-card-w: clamp(220px, 52vw, 320px);
  --nx-live-card-w: clamp(261px, 51vw, 331px);
  --nx-cat-w: clamp(150px, 32vw, 220px);
  --nx-hero-h: clamp(340px, 56vh, 420px);
  --nx-hero-rows-gap: clamp(2.25rem, 5.5vw, 3.75rem);
}

@media (min-width: 768px) {
  :root {
    --nx-hero-h: clamp(560px, 80vh, 720px);
    --nx-hero-rows-gap: clamp(3rem, 6.5vw, 5rem);
  }
}

@media (min-width: 1100px) {
  :root {
    --nx-hero-h: clamp(680px, 90vh, 900px);
  }
}

html,
body.gopass-index {
  background: var(--nx-bg) !important;
  color: var(--nx-text);
}

.gopass-index .page-content {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--nx-bg) !important;
  padding: 0 !important;
}

.gopass-index .gp-head-logo {
  cursor: pointer;
}

/* ── Búsqueda (solo index) ── */
.gopass-index .head .gp-head-actions {
  gap: 0.4rem;
}

.gopass-index .head .gp-head-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.gopass-index .head .gp-head-search-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: var(--gp-header-btn-h) !important;
  height: var(--gp-header-btn-h) !important;
  min-height: var(--gp-header-btn-h) !important;
  max-height: var(--gp-header-btn-h) !important;
  padding: 0 0.65rem !important;
  margin: 0;
  border-radius: var(--gp-radius-sm, 6px) !important;
  background: var(--gp-header-ghost-bg, #141416) !important;
  border: 1px solid var(--gp-header-ghost-border, #2e2e32) !important;
  color: var(--gp-header-fg, #f4f4f5) !important;
  flex-shrink: 0;
  box-sizing: border-box !important;
  line-height: 1 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.gopass-index .head .gp-head-search-btn i {
  font-size: 0.875rem;
  line-height: 1;
}

.gopass-index .head .gp-head-search-btn.is-active {
  background: var(--nx-accent) !important;
  border-color: var(--nx-accent) !important;
  color: #fff !important;
}

.gopass-index.nx-search-open .head .gp-head-search-btn {
  background: var(--nx-accent) !important;
  border-color: var(--nx-accent) !important;
  color: #fff !important;
}

.nx-search {
  position: fixed;
  top: var(--gp-header-total-h, 56px);
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.nx-search__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem var(--gp-content-px, 1.25rem);
}

.nx-search__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin: 0;
  padding: 0 0.85rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--nx-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-search__field:focus-within {
  border-color: rgba(246, 88, 82, 0.55);
  box-shadow: 0 0 0 2px rgba(246, 88, 82, 0.15);
}

.nx-search__field > i {
  color: var(--nx-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nx-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--nx-text);
  font-size: 0.9375rem;
  outline: none;
}

.nx-search__input::placeholder {
  color: var(--nx-muted);
}

.nx-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--nx-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.nx-search__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nx-search__results {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 0 var(--gp-content-px, 1.25rem) 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.nx-search__empty,
.nx-search__hint {
  padding: 1rem 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--nx-muted);
  text-align: center;
}

.nx-search-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s;
}

.nx-search-hit:hover,
.nx-search-hit:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nx-search-hit + .nx-search-hit {
  margin-top: 0.15rem;
}

.nx-search-hit__thumb {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-color: var(--nx-elevated);
  background-size: cover;
  background-position: center;
}

.nx-search-hit__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nx-search-hit__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-search-hit__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--nx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-search-hit__thumb--avatar {
  flex: 0 0 52px;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.nx-search-hit__check {
  color: #60a5fa;
  font-size: 0.8125rem;
}

.nx-search-hit__badge--channel {
  color: #cbd5e1;
}

.nx-search__section {
  margin: 0.75rem 0.35rem 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

.nx-search-hit__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nx-search-hit__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.25rem;
}

.nx-search-hit__price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.nx-search-hit__price--promo .nx-search-hit__price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-success);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.nx-search-hit__price--promo .nx-search-hit__price-was {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: line-through;
}

.nx-search-hit__price--promo .nx-search-hit__price-now {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--nx-success);
}

.nx-search-hit__price--free {
  color: var(--nx-success);
}

.nx-search-hit__price--sold {
  color: #ff8a84;
}

.nx-search-hit__badge--live {
  color: var(--nx-live);
}

.nx-search-hit__badge--live i {
  font-size: 0.45rem;
}

.nx-search-hit__badge--sale {
  color: var(--nx-success);
}

.nx-search-hit__badge--private {
  color: var(--nx-private);
}

.nx-search-hit__badge--private i {
  font-size: 0.5rem;
  color: var(--nx-private);
}

.nx-search-hit__badge + .nx-search-hit__badge {
  margin-left: 0.45rem;
}

/* Hero bajo header fijo */
.gopass-index .nx-hero {
  margin-top: calc(-1 * var(--gp-header-total-h, 56px));
  position: relative;
  z-index: 1;
}

.gopass-index .page-content,
.gopass-index .home-page,
.gopass-index #app {
  background: var(--nx-bg) !important;
}

.gopass-index .nx-shell {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.gopass-index .nx-shell .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Loader ── */
.nx-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--gp-header-total-h, 56px));
  min-height: calc(100dvh - var(--gp-header-total-h, 56px));
  color: var(--nx-muted);
  gap: 1rem;
}

.nx-loader p {
  margin: 0;
  font-size: 0.9375rem;
}

.nx-loader__ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--nx-accent);
  border-radius: 50%;
  animation: nxSpin 0.85s linear infinite;
}

@keyframes nxSpin {
  to { transform: rotate(360deg); }
}

/* ── Home layout ── */
.nx-home {
  position: relative;
  padding-bottom: 3rem;
}

/* ── Hero ── */
.nx-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--nx-hero-h);
  margin-top: calc(-1 * var(--gp-header-total-h, 56px));
  padding-top: calc(var(--gp-header-total-h, 56px) + 1.5rem);
  padding-bottom: 5rem;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .nx-hero {
    padding-bottom: 6rem;
  }
}

@media (min-width: 1100px) {
  .nx-hero {
    padding-bottom: 7.25rem;
  }
}

.nx-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  transform: scale(1.06);
  filter: brightness(0.55);
  z-index: 0;
}

/* Capa saliente del crossfade: misma z que el fondo pero más adelante en el
   DOM, así queda encima del fondo nuevo y se desvanece revelándolo. */
.nx-hero__bg--out {
  opacity: 1;
  transition: opacity 0.9s ease;
  will-change: opacity;
  pointer-events: none;
}

.nx-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--nx-bg) 0%, rgba(10, 10, 12, 0.2) 35%, rgba(10, 10, 12, 0.65) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.35) 55%, rgba(10, 10, 12, 0.75) 100%);
  z-index: 1;
}

.nx-hero__glow {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--nx-bg));
  z-index: 2;
  pointer-events: none;
}

.nx-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(720px, 92vw);
  min-width: 0;
  padding: 0 var(--gp-content-px, 1.25rem);
  margin: 0 auto 0 0;
}

.nx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-accent);
  background: rgba(246, 88, 82, 0.14);
  border: 1px solid rgba(246, 88, 82, 0.28);
}

.nx-hero__eyebrow--live {
  color: #fff;
  background: rgba(255, 45, 45, 0.22);
  border-color: rgba(255, 45, 45, 0.45);
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.2);
}

.nx-hero__eyebrow--ended {
  color: #fff;
  background: rgba(8, 8, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.nx-hero__eyebrow--live i {
  font-size: 0.45rem;
  animation: nxPulse 1.4s ease-in-out infinite;
}

.nx-hero__live-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.nx-hero__live-schedule .nx-card__live-schedule-item {
  flex: 0 0 auto;
  justify-content: flex-start;
  padding: 0.35rem 0.6rem;
}

@keyframes nxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nx-hero__pretitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.nx-hero__pretitle .nx-hero__private {
  margin: 0;
}

.nx-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(0, 0, 0, 0.4);
  max-width: 18ch;
}

.nx-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nx-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.2;
}

.nx-hero__chip--cat {
  color: rgba(244, 244, 245, 0.95);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  font-size: clamp(0.6875rem, 1.8vw, 0.75rem);
  letter-spacing: 0.06em;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-hero__price {
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.nx-hero__price--promo .nx-hero__price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: clamp(0.6875rem, 1.8vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-success);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.nx-hero__price--promo .nx-hero__price-was {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: line-through;
}

.nx-hero__price--promo .nx-hero__price-now {
  font-size: clamp(1.125rem, 2.8vw, 1.4rem);
  font-weight: 800;
  color: var(--nx-success);
}

.nx-hero__price--free {
  color: var(--nx-success);
}

.nx-hero__price--sold {
  color: #ff8a84;
}

.nx-hero__chip--muted {
  color: rgba(244, 244, 245, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
}

.nx-hero__chip--muted i {
  font-size: 0.75rem;
  color: var(--nx-muted);
}

.nx-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.nx-hero__creator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: #fff !important;
  max-width: 100%;
}

.nx-hero__creator:hover {
  color: var(--nx-accent) !important;
}

.nx-hero__creator img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.nx-hero__creator-name {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nx-hero__inner {
    max-width: min(780px, 88vw);
  }

  .nx-hero__title {
    max-width: 22ch;
    margin-bottom: 1rem;
  }

  .nx-hero__chips {
    margin-bottom: 1.15rem;
  }

  .nx-hero__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
  }

  .nx-hero__creator img {
    width: 40px;
    height: 40px;
  }
}

.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 1.35rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.nx-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.nx-btn--primary {
  background: #fff;
  color: #111 !important;
}

.nx-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nx-btn--accent {
  background: var(--nx-accent);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(246, 88, 82, 0.35);
}

/* ── Rows ── */
.nx-rows {
  display: flex;
  flex-direction: column;
  gap: var(--nx-row-gap);
  margin-top: 0;
  padding-top: var(--nx-hero-rows-gap);
  position: relative;
  z-index: 4;
}

.nx-row {
  position: relative;
}

.nx-row + .nx-row::before {
  content: '';
  position: absolute;
  top: calc(var(--nx-row-gap) * -0.5);
  left: var(--gp-content-px, 1.25rem);
  right: var(--gp-content-px, 1.25rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 14%,
    rgba(255, 255, 255, 0.07) 86%,
    transparent 100%
  );
  pointer-events: none;
}

.nx-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gp-content-px, 1.25rem);
  margin-bottom: 0.75rem;
}

.nx-row__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.nx-row__title i {
  margin-right: 0.35rem;
  color: var(--nx-accent);
}

.nx-row__title--live i {
  color: var(--nx-live);
}

.nx-row__more {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.nx-row__more:hover {
  color: #fff !important;
}

.nx-row__wrap {
  position: relative;
}

.nx-row__track {
  display: flex;
  gap: 0.65rem;
  padding: 0.35rem var(--gp-content-px, 1.25rem) 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nx-row__track::-webkit-scrollbar {
  display: none;
}

.nx-row__track--infinite {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

@media (min-width: 768px) {
  .gopass-index .nx-row__track--infinite {
    cursor: grab;
  }

  .gopass-index .nx-row__track--infinite.nx-row__track--dragging {
    cursor: grabbing;
    user-select: none;
  }

  .gopass-index .nx-row__track--infinite.nx-row__track--dragging .nx-card__link {
    pointer-events: none;
  }
}

.nx-row__track--infinite .nx-card {
  scroll-snap-align: unset;
}

/* Carrusel infinito: siempre permitir deslizar en ambas direcciones */
@media (max-width: 767px) {
  .gopass-index .nx-row__wrap--infinite.nx-row__wrap--scrollable .nx-row__hint--next,
  .gopass-index .nx-row__wrap--infinite.nx-row__wrap--scrollable .nx-row__hint--prev {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Mobile: card más ancho + asomo lateral para invitar al scroll horizontal */
@media (max-width: 767px) {
  :root {
    --nx-card-peek: 2.5rem;
    --nx-card-w: min(19.75rem, calc(100vw - (var(--gp-content-px, 1.25rem) * 2) - var(--nx-card-peek)));
    --nx-live-card-peek: 2.35rem;
    --nx-live-card-w: min(20.75rem, calc(100vw - (var(--gp-content-px, 1.25rem) * 2) - var(--nx-live-card-peek)));
  }

  .gopass-index .nx-row:not(.nx-row--categories):not(.nx-row--ended) .nx-row__track {
    gap: 0.6rem;
    scroll-padding-inline: var(--gp-content-px, 1.25rem);
    padding-right: calc(var(--gp-content-px, 1.25rem) + var(--nx-card-peek));
  }

  .gopass-index .nx-row--live .nx-row__track {
    padding-right: calc(var(--gp-content-px, 1.25rem) + var(--nx-live-card-peek));
  }
}

.nx-row__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(246, 88, 82, 0.72);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(246, 88, 82, 0.28);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.nx-row__nav:hover {
  background: rgba(246, 88, 82, 0.88);
  box-shadow: 0 10px 28px rgba(246, 88, 82, 0.38);
  transform: translateY(calc(-50% - 6px)) scale(1.05);
}

.nx-row__nav--prev { left: 0.35rem; }
.nx-row__nav--next { right: 0.35rem; }

/* Indicadores de scroll horizontal (móvil) — mismo estilo que .nx-row__nav */
.nx-row__hint {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  z-index: 6;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(246, 88, 82, 0.72);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(246, 88, 82, 0.28);
  opacity: 0;
  transition: opacity 0.35s ease, background 0.15s ease, transform 0.15s ease;
}

.nx-row__hint:active {
  background: rgba(246, 88, 82, 0.88);
  transform: translateY(calc(-50% - 6px)) scale(0.96);
}

.nx-row__hint--prev { left: 0.35rem; }
.nx-row__hint--next { right: 0.35rem; }

.nx-row__hint i {
  display: block;
  color: #fff;
}

.nx-row__hint--next {
  animation: nx-hint-bg-pulse 1.7s ease-in-out infinite;
}

.nx-row__hint--prev {
  animation: nx-hint-bg-pulse 1.7s ease-in-out infinite;
}

.nx-row__hint--next i {
  animation: nx-hint-nudge-right 1.7s ease-in-out infinite;
}

.nx-row__hint--prev i {
  animation: nx-hint-nudge-left 1.7s ease-in-out infinite;
}

@keyframes nx-hint-bg-pulse {
  0%, 100% {
    background: rgba(246, 88, 82, 0.58);
    box-shadow: 0 8px 24px rgba(246, 88, 82, 0.2);
  }
  50% {
    background: rgba(246, 88, 82, 0.82);
    box-shadow: 0 10px 28px rgba(246, 88, 82, 0.34);
  }
}

@keyframes nx-hint-nudge-right {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

@keyframes nx-hint-nudge-left {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3px);
  }
}

@media (max-width: 767px) {
  .gopass-index .nx-row:not(.nx-row--ended) .nx-row__wrap--scrollable:not(.has-scrolled) .nx-row__hint--next {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .gopass-index .nx-row:not(.nx-row--ended) .nx-row__wrap--scrollable:not(.has-scrolled):not(.is-at-start) .nx-row__hint--prev {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .gopass-index .nx-row:not(.nx-row--ended) .nx-row__wrap--scrollable.is-at-end .nx-row__hint--next {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-row__hint--prev,
  .nx-row__hint--next {
    animation: none !important;
    background: rgba(246, 88, 82, 0.72);
  }

  .nx-row__hint i {
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .nx-row__wrap:hover .nx-row__nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Cards ── */
.nx-card {
  flex: 0 0 var(--nx-card-w);
  width: var(--nx-card-w);
  scroll-snap-align: start;
  position: relative;
}

.nx-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  outline: none;
}

.nx-card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: var(--nx-elevated);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .nx-card:hover .nx-card__poster {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 2;
  }

  .nx-card:hover {
    z-index: 3;
  }
}

.nx-card__shade {
  display: none;
}

.nx-card__badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nx-badge--live {
  background: var(--nx-live);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.55);
}

.nx-badge--live i {
  font-size: 0.45rem;
  animation: nxPulse 1.4s ease-in-out infinite;
}

.nx-badge--promo {
  background: rgba(74, 222, 128, 0.2);
  color: var(--nx-success);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.nx-badge--free {
  background: rgba(74, 222, 128, 0.18);
  color: var(--nx-success);
}

.nx-badge--sold {
  background: rgba(246, 88, 82, 0.22);
  color: #ff8a84;
}

.nx-badge--sale {
  background: rgba(12, 46, 28, 0.94);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.nx-badge--soon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
}

.nx-badge--ended {
  background: rgba(8, 8, 10, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.nx-badge--ended-when {
  background: rgba(66, 52, 8, 0.92);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.nx-badge--when {
  background: rgba(10, 10, 12, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nx-badge--private {
  background: rgba(250, 204, 21, 0.18);
  color: var(--nx-private);
  border: 1px solid rgba(250, 204, 21, 0.45);
  backdrop-filter: blur(4px);
}

.nx-badge--private i {
  font-size: 0.55rem;
  color: var(--nx-private);
}

.nx-hero__private {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-private);
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.38);
}

.nx-hero__private i {
  font-size: 0.55rem;
  color: var(--nx-private);
}

.nx-card__body {
  position: static;
  padding: 0 0.1rem;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.nx-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nx-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.nx-card__sub {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--nx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card__sub--meta {
  margin-top: 0.15rem;
}

.nx-card__shell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.nx-card__link--poster {
  display: block;
}

.nx-card__link--title {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.nx-card__cat-line {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nx-card__cat-line .nx-card__meta-link,
.nx-card__cat-line .nx-card__meta-text {
  display: block;
  width: 100%;
  max-width: 100%;
}

.nx-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--nx-muted);
  min-width: 0;
}

.nx-card__meta--schedule {
  margin-top: 0.2rem;
}

.nx-card__meta-link--timing {
  font-weight: 700;
  color: #fff;
}

.nx-card__meta-sep {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  user-select: none;
}

.nx-card__meta-link {
  color: var(--nx-muted);
  text-decoration: none !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.nx-card__meta-link:hover {
  color: #fff;
}

.nx-card__meta-link--cat {
  font-weight: 600;
}

.nx-card__meta-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card__price-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0.25rem 0 0;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nx-card__price-chip:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

.nx-card__price-chip--promo {
  color: var(--nx-success);
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.32);
}

.nx-card__price-chip--promo:hover {
  background: rgba(74, 222, 128, 0.22);
  border-color: rgba(74, 222, 128, 0.45);
  color: #fff;
}

.nx-card__price-chip--free {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.32);
}

.nx-card__price-chip--free:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

.nx-card__price-chip--sold {
  color: #ff8a84;
  background: rgba(246, 88, 82, 0.18);
  border-color: rgba(246, 88, 82, 0.35);
}

.nx-card__price-chip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(74, 222, 128, 0.18);
}

.nx-card__price-chip-was {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: line-through;
}

.nx-card__price-chip-now {
  font-weight: 800;
}

.nx-card__creator-avatar-link {
  display: flex;
  flex-shrink: 0;
  text-decoration: none !important;
}

a.nx-card__creator-name {
  color: var(--nx-muted);
  text-decoration: none !important;
  transition: color 0.15s;
}

a.nx-card__creator-name:hover {
  color: #fff;
}

.nx-card__creator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
}

.nx-card__creator-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.nx-card__creator-name {
  font-size: 0.6875rem;
  color: var(--nx-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card__creator-check {
  color: #93c5fd;
  font-size: 10px;
}

.nx-card__creator--live .nx-card__creator-avatar {
  width: 26px;
  height: 26px;
}

.nx-card__creator--live .nx-card__creator-name {
  font-size: 0.875rem;
}

.nx-card__timing {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.nx-card__timing i {
  margin-right: 0.25rem;
  color: var(--nx-accent);
  font-size: 0.7rem;
}

.nx-card__price {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-accent);
  line-height: 1.2;
}

.nx-card__price--promo {
  color: var(--nx-success);
}

.nx-card__price--promo .nx-card__price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-success);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.nx-card__price--promo .nx-card__price-was {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: line-through;
}

.nx-card__price--promo .nx-card__price-now {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--nx-success);
}

.nx-card__price--free {
  color: var(--nx-success);
}

.nx-card__price--sold {
  color: #ff8a84;
}

.nx-card__tools {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 4;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.nx-card:hover .nx-card__tools,
.nx-card:focus-within .nx-card__tools {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .nx-card__tools {
    opacity: 1;
    transform: none;
  }
}

.nx-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s, color 0.15s;
}

.nx-icon-btn:hover {
  background: rgba(30, 30, 34, 0.92);
}

.nx-icon-btn.is-fav {
  color: var(--nx-accent);
}

/* ── En vivo: card horizontal con info completa ── */
.nx-row--live {
  margin-bottom: 0.5rem;
}

.nx-row--live .nx-row__track {
  gap: 0.85rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .nx-row--live .nx-row__track {
    padding-top: 1.35rem;
  }
}

.nx-row--live .nx-card {
  flex: 0 0 var(--nx-live-card-w);
  width: var(--nx-live-card-w);
}

.nx-card__link--live {
  gap: 0;
  text-decoration: none !important;
  color: inherit;
}

.nx-card__link--poster {
  display: block;
  flex-shrink: 0;
}

.nx-card__link--body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.nx-card--live .nx-card__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-surface);
  border: 2px solid rgba(255, 45, 45, 0.4);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(255, 45, 45, 0.12);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s ease, border-color 0.28s ease;
}

.nx-card--live .nx-card__poster--live {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  box-shadow: none;
  background-position: center center;
  background-size: cover;
  flex-shrink: 0;
  width: 100%;
}

.nx-card__live-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem 0.75rem;
  background: var(--nx-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-card__live-badges {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}

.nx-card__live-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.nx-card__live-actions .nx-icon-btn {
  width: auto;
  height: auto;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.2rem;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  color: var(--nx-muted);
  font-size: 1.05rem;
}

.nx-card__live-actions .nx-icon-btn:hover {
  background: transparent;
  color: #fff;
}

.nx-card__live-actions .nx-icon-btn.is-fav {
  color: var(--nx-accent);
}

.nx-card__live-actions .nx-icon-btn.is-fav:hover {
  color: var(--nx-accent);
  filter: brightness(1.08);
}

.nx-card--live .nx-card__body--live {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 1.05rem;
  min-height: 14rem;
  width: 100%;
  padding: 1.25rem 1.1rem 1.75rem;
  background: linear-gradient(180deg, var(--nx-elevated) 0%, var(--nx-surface) 100%);
  border-top: none;
}

.nx-card--live .nx-card__cat-line {
  margin: 0;
  font-size: 0.8125rem;
  text-align: left;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.nx-card--live .nx-card__creator {
  width: 100%;
  justify-content: flex-start;
}

.nx-card--live .nx-card__price-chip {
  align-self: center;
  margin-top: auto;
  font-size: 0.875rem;
  padding: 0.32rem 0.7rem;
}

.nx-card--live .nx-card__price-chip--promo .nx-card__price-chip-now {
  font-size: 0.9375rem;
}

.nx-card__body--live .nx-card__title {
  font-size: 1.05rem;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0;
  text-align: left;
  width: 100%;
}

.nx-card__sub--live {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card__live-schedule {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  width: 100%;
}

.nx-card__live-schedule-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(244, 244, 245, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-card__live-schedule .nx-card__live-schedule-item {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0.5rem 0.55rem;
}

.nx-card__live-schedule-item i {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--nx-muted);
}

.nx-live-check {
  color: #93c5fd;
  font-size: 10px;
}

.nx-live-price {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-live-price > span,
.nx-live-price__now {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
  line-height: 1.2;
}

.nx-live-price--promo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nx-live-price--promo .nx-live-price__was {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: line-through;
  line-height: 1.2;
}

.nx-live-price--promo .nx-live-price__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.nx-live-price--promo .nx-live-price__now {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nx-success);
}

.nx-live-price__off {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-success);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.nx-live-price--free > span {
  color: var(--nx-success);
}

.nx-live-price--sold > span {
  color: #ff8a84;
}

@media (hover: hover) and (pointer: fine) {
  .nx-card--live:hover .nx-card__shell {
    transform: scale(1.04);
    border-color: rgba(255, 45, 45, 0.75);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.58),
      0 0 32px rgba(255, 45, 45, 0.28);
  }

  .nx-card--live:hover {
    z-index: 3;
  }
}

/* ── Fila de categorías (chips 16:9) ── */
.nx-row--categories .nx-row__track {
  gap: 0.75rem;
}

.nx-cat-card {
  flex: 0 0 var(--nx-cat-w);
  width: var(--nx-cat-w);
  scroll-snap-align: start;
}

.nx-cat-card__link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  outline: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nx-cat-card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(135deg, #f65852 0%, #d9443f 38%, #9e2e2a 72%, #3d1210 100%) !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.42),
    0 2px 8px rgba(246, 88, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-cat-card__poster::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 100% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 48%);
  pointer-events: none;
}

.nx-cat-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 42%, transparent 100%);
  pointer-events: none;
}

.nx-cat-card__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  text-align: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nx-cat-card__name {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.nx-cat-card__count {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .nx-cat-card__link:hover {
    transform: scale(1.05);
  }

  .nx-cat-card__link:hover .nx-cat-card__poster {
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.5),
      0 4px 14px rgba(246, 88, 82, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

/* ── Recién finalizados: grilla + carga progresiva ── */
.nx-row--ended {
  margin-top: 0.25rem;
}

.nx-ended__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0 var(--gp-content-px, 1.25rem) 0.35rem;
}

@media (min-width: 768px) {
  .nx-ended__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }
}

@media (min-width: 1100px) {
  .nx-ended__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nx-row--ended .nx-card {
  flex: none;
  width: 100%;
  scroll-snap-align: unset;
}

.nx-row--ended .nx-card__creator-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.nx-row--ended .nx-card__creator-avatar {
  width: 26px;
  height: 26px;
}

.nx-row--ended .nx-card__cat-line,
.nx-row--ended .nx-card__meta {
  font-size: 0.8125rem;
}

/* Destacados en venta / Próximos eventos */
.nx-card--venta .nx-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.nx-card--venta .nx-card__cat-line,
.nx-card--venta .nx-card__meta {
  font-size: 0.8125rem;
}

.nx-card--venta .nx-card__meta--schedule {
  font-size: 0.875rem;
}

.nx-card--venta .nx-card__creator-name {
  font-size: 0.8125rem;
}

.nx-card--venta .nx-card__creator-avatar {
  width: 24px;
  height: 24px;
}

.nx-card--venta .nx-card__price-chip {
  font-size: 0.8125rem;
}

.nx-ended__sentinel {
  height: 2px;
  width: 100%;
  pointer-events: none;
}

.nx-ended__status {
  margin: 0;
  padding: 0.85rem var(--gp-content-px, 1.25rem) 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--nx-muted);
}

.nx-ended__status.is-loading {
  color: rgba(244, 244, 245, 0.72);
}

.nx-ended__status.is-loading::before {
  content: '';
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--nx-accent);
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: nxSpin 0.75s linear infinite;
}

/* ── Empty state ── */
.nx-empty {
  padding: 3rem var(--gp-content-px, 1.25rem);
  text-align: center;
  color: var(--nx-muted);
}

.nx-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #fff;
}

/* Fade in */
.nx-fade {
  animation: nxFadeIn 0.45s ease forwards;
}

@keyframes nxFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Modal nuevo ticket (buyHash) ── */
.nt-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nt-popup--hidden {
  display: none !important;
}

.nt-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.nt-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92vh, 44rem);
  overflow-y: auto;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(246, 88, 82, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #1a1a1e 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  animation: ntPopupIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ntPopupIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nt-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nt-popup__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nt-popup__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-right: 2rem;
}

.nt-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #ff7369 0%, var(--nx-accent) 100%);
  box-shadow: 0 8px 24px rgba(246, 88, 82, 0.35);
}

.nt-popup__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}

.nt-popup__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.nt-popup__ticket {
  display: grid;
  grid-template-columns: minmax(0, 33%) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.65rem;
}

.nt-popup__flyer {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.nt-popup__ticket-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nt-popup__id {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nt-popup__id i {
  font-size: 0.6rem;
  color: var(--nx-accent);
}

.nt-popup__event {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nt-popup__event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.nt-popup__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted);
}

.nt-popup__channel img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nt-popup__when {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.nt-popup__when i {
  font-size: 0.7rem;
  opacity: 0.85;
}

.nt-popup__tear {
  position: relative;
  height: 1px;
  margin: 0.85rem 0 1rem;
}

.nt-popup__tear::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.14);
}

.nt-popup__tear span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #121214;
  box-shadow: -1.35rem 0 0 #121214, 1.35rem 0 0 #121214;
}

.nt-popup__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.15rem;
}

.nt-popup__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.nt-popup__detail-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.nt-popup__detail-val {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.nt-popup__detail-val--pay .nt-pay-free {
  color: #4ade80;
  font-weight: 800;
}

.nt-popup__detail-val--pay .nt-pay-promo {
  margin-left: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

.nt-popup__detail-val--pay s {
  opacity: 0.55;
}

.nt-popup__activation {
  grid-column: 1 / -1;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(246, 88, 82, 0.08);
  border: 1px solid rgba(246, 88, 82, 0.28);
}

.nt-popup__activation .nt-popup__detail-label {
  color: #fca5a5;
}

.nt-popup__activation-code {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.nt-popup__activation-hint {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--nx-muted);
}

.nt-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.15rem;
}

.nt-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nt-popup__btn--primary {
  color: #0b1a10 !important;
  background: #4ade80;
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.32);
}

.nt-popup__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(74, 222, 128, 0.42);
  color: #0b1a10 !important;
}

.nt-popup__btn--ghost {
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nt-popup__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.nt-popup__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(246, 88, 82, 0.1);
  border: 1px solid rgba(246, 88, 82, 0.28);
}

.nt-popup__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(246, 88, 82, 0.55);
  border-radius: 10px;
  background: linear-gradient(145deg, #f65852 0%, #d63f39 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(246, 88, 82, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nt-popup__nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(246, 88, 82, 0.45);
  color: #fff;
}

.nt-popup__nav-btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.nt-popup__nav-count {
  min-width: 4.25rem;
  padding: 0.35rem 0.65rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(246, 88, 82, 0.22);
  border: 1px solid rgba(246, 88, 82, 0.45);
  border-radius: 999px;
}

.nt-popup__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.nt-popup__live-badge i {
  font-size: 0.45rem;
  color: #ef4444;
  animation: ntLivePulse 1.2s ease-in-out infinite;
}

.nt-popup__sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.nt-popup__sale-badge i {
  font-size: 0.58rem;
  color: #60a5fa;
}

@keyframes ntLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nt-pay-refund {
  color: #f87171;
}
