/* Streamers — índice en filas (rediseño sep-2026). Requiere site2.css. */
.sr-page { padding-bottom: clamp(48px, 8vw, 96px); }
.sr-stats { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: 4px; color: var(--h2-mute); font: 500 1rem var(--h2-body); font-variant-numeric: tabular-nums; }
.sr-stats[hidden] { display: none; }
.sr-stats strong { color: var(--h2-bone); font-weight: 700; }
.sr-stats .is-on strong { color: var(--h2-live); }

/* en vivo ahora */
.sr-live-wrap { display: none; margin-bottom: clamp(28px, 4vw, 48px); }
.sr-live-wrap.show { display: block; }
.sr-live-title { margin: 0 0 16px; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--h2-display); letter-spacing: -.03em; }
.sr-live-rail { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 6px 6px 8px; margin: -6px; }
.sr-live-rail::-webkit-scrollbar { display: none; }
.sr-live { flex: 0 0 min(320px, 78vw); color: inherit; text-decoration: none; }
.sr-live-thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--h2-panel); box-shadow: 0 0 0 2px var(--h2-ink), 0 0 0 4px var(--h2-live); }
.sr-live-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-chip { position: absolute; top: 10px; padding: 6px 11px; border-radius: 999px; font: 700 .78rem/1 var(--h2-body); font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); }
.sr-chip.live { left: 10px; background: var(--h2-live); color: #fff; }
.sr-chip.n { right: 10px; background: rgba(6,20,63,.65); color: var(--h2-bone); }
.sr-live strong { display: block; margin-top: 12px; font: 700 1.1rem/1.1 var(--h2-display); letter-spacing: -.02em; }

/* filtros + búsqueda */
.sr-tools { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; margin-bottom: clamp(20px, 3vw, 32px); }
.sr-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--h2-line); background: transparent; color: var(--h2-bone); font: 600 .92rem/1 var(--h2-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sr-filters button:hover { border-color: rgba(245,248,255,.35); }
.sr-filters button.active { background: var(--h2-bone); color: var(--h2-ink); border-color: var(--h2-bone); }
.sr-search { position: relative; margin-left: auto; flex: 0 1 320px; }
.sr-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--h2-mute); font-size: .85rem; pointer-events: none; }
.sr-search input { width: 100%; padding: 12px 16px 12px 40px; border-radius: 999px; border: 1px solid transparent; background: rgba(245,248,255,.07); color: var(--h2-bone); font: 500 .95rem var(--h2-body); }
.sr-search input:focus { outline: none; border-color: var(--h2-cyan); background: rgba(245,248,255,.1); }

/* filas */
.sr-list { border-top: 1px solid var(--h2-line); }
.sr { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 32px); align-items: center; padding: clamp(18px, 2.4vw, 28px) clamp(8px, 1.5vw, 20px); margin: 0 calc(-1 * clamp(8px, 1.5vw, 20px)); cursor: pointer; border-radius: 20px; transition: background .18s; }
.sr:hover, .sr:focus-visible { background: rgba(245,248,255,.045); }
.sr-face { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font: 800 2rem var(--h2-display); color: rgba(255,255,255,.92); background-clip: padding-box; flex: none; }
.sr-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.sr:not(.is-live) .sr-face { filter: grayscale(1) brightness(.8); transition: filter .25s; }
.sr:hover .sr-face, .sr:focus-visible .sr-face { filter: none; }
.sr.is-live .sr-face::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, var(--h2-cyan), var(--h2-mag), var(--h2-cyan)); animation: sr-spin 6s linear infinite; }
@keyframes sr-spin { to { transform: rotate(360deg); } }
.sr-name { margin: 0; font: 800 clamp(1.7rem, 3.4vw, 2.8rem)/.95 var(--h2-display); letter-spacing: -.04em; text-transform: none; overflow-wrap: anywhere; }
.sr-sub { margin: 8px 0 0; font: 600 1rem/1.3 var(--h2-body); color: var(--h2-bone); opacity: .85; }
.sr-bio { margin: 6px 0 0; max-width: 62ch; font: 400 .95rem/1.5 var(--h2-body); color: var(--h2-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-meta { margin: 10px 0 0; font: 500 .9rem/1.3 var(--h2-body); color: var(--h2-mute); }
.sr.is-live .sr-meta { color: var(--h2-live); font-weight: 700; }
.sr.is-live .sr-meta span { color: var(--h2-bone); font-weight: 500; }
.sr-side { display: flex; align-items: center; gap: 12px; }
.sr-social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,248,255,.07); color: var(--h2-bone); text-decoration: none; transition: background .15s; }
.sr-social:hover { background: rgba(245,248,255,.16); }
.sr-go { padding: 12px 22px; border-radius: 999px; background: var(--h2-bone); color: var(--h2-ink); font: 700 .95rem/1 var(--h2-body); white-space: nowrap; }
.sr:not(:hover):not(:focus-visible) .sr-go { background: transparent; color: var(--h2-bone); box-shadow: inset 0 0 0 1px var(--h2-line); }
.sr-empty { padding: 56px 0; color: var(--h2-mute); font: 500 1.05rem var(--h2-body); }

@media (max-width: 760px) {
  .sr { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .sr-face { width: 64px; height: 64px; font-size: 1.4rem; }
  .sr-side { grid-column: 1 / -1; justify-content: space-between; }
  .sr-search { margin-left: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .sr.is-live .sr-face::after { animation: none; } }

.sr::after { content: ''; position: absolute; left: clamp(8px, 1.5vw, 20px); right: clamp(8px, 1.5vw, 20px); bottom: 0; height: 1px; background: var(--h2-line); }

/* ═════════ Distribución: 2 columnas (por defecto) o 1 ═════════ */
.sr-view { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--h2-bone) 8%, transparent); flex: none; }
.sr-view-btn { width: 40px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--h2-mute); font-size: .95rem; cursor: pointer; transition: background .15s, color .15s; }
.sr-view-btn:hover { color: var(--h2-bone); }
.sr-view-btn[aria-pressed="true"] { background: var(--h2-bone); color: var(--h2-ink); }
.sr-search + .sr-view { margin-left: 0; }

.sr-list[data-cols="2"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 0; }
.sr-list[data-cols="2"] .sr {
  grid-template-columns: 76px minmax(0, 1fr); gap: 12px 16px; align-items: center; margin: 0; padding: 18px; border-radius: 26px;
  background: color-mix(in srgb, var(--h2-bone) 6%, transparent); box-shadow: inset 0 0 0 1px var(--h2-line); transition: background .18s, box-shadow .18s, transform .18s;
}
.sr-list[data-cols="2"] .sr::after { display: none; }
.sr-list[data-cols="2"] .sr:hover, .sr-list[data-cols="2"] .sr:focus-visible { background: color-mix(in srgb, var(--h2-bone) 10%, transparent); transform: translateY(-2px); }
.sr-list[data-cols="2"] .sr.is-live { box-shadow: inset 0 0 0 1.5px var(--h2-live); }
.sr-list[data-cols="2"] .sr-face { width: 76px; height: 76px; font-size: 1.6rem; }
.sr-list[data-cols="2"] .sr-name { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.sr-list[data-cols="2"] .sr-bio { -webkit-line-clamp: 2; }
.sr-list[data-cols="2"] .sr-side { grid-column: 1 / -1; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--h2-line); }
.sr-list[data-cols="2"] .sk-sr { border: 0; border-radius: 26px; padding: 18px; background: color-mix(in srgb, var(--h2-bone) 5%, transparent); grid-template-columns: 76px minmax(0, 1fr); }
.sr-list[data-cols="2"] .sk-sr .sk-face { width: 76px; height: 76px; }
.sr-list[data-cols="2"] .sk-sr .sk-pill { display: none; }
@media (max-width: 759px) {
  .sr-search { margin-left: 0; flex: 1 1 0; min-width: 0; }
  .sr-list[data-cols="2"] { gap: 10px; }
  .sr-list[data-cols="2"] .sr { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 16px 10px 14px; gap: 8px; border-radius: 22px; }
  .sr-list[data-cols="2"] .sr-face { width: 68px; height: 68px; font-size: 1.4rem; }
  .sr-list[data-cols="2"] .sr-name { font-size: 1.15rem; line-height: 1.05; }
  .sr-list[data-cols="2"] .sr-sub { margin-top: 4px; font-size: .82rem; }
  .sr-list[data-cols="2"] .sr-bio { display: none; }
  .sr-list[data-cols="2"] .sr-meta { margin-top: 6px; font-size: .76rem; }
  .sr-list[data-cols="2"] .sr-side { grid-column: auto; justify-content: center; border: 0; padding: 0; }
  .sr-list[data-cols="2"] .sr-social { display: none; }
  .sr-list[data-cols="2"] .sr-go { padding: 9px 16px; font-size: .82rem; }
  .sr-list[data-cols="2"] .sk-sr { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
