/* ============================================================
   NOTIBLOG.NET — Hoja de estilos maestra
   Plataforma: KVS (Kernel Video Sharing)
   Motor: Smarty templates (.tpl)
   Tema: Dark mode premium con calidez latinoamericana
   Fuentes: Plus Jakarta Sans (títulos) + DM Sans (cuerpo)
   Última actualización: 2026-03-24
   ============================================================ */

/* ============================================================
   1. IMPORTACIÓN DE FUENTES DE GOOGLE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=DM+Sans:wght@400;500&display=swap');


/* ============================================================
   2. VARIABLES CSS — Sistema de diseño completo
   ============================================================ */
:root {
  /* --- Colores de fondo --- */
  --bg-deep:          #0c0c10;   /* Negro casi puro — cuerpo principal */
  --bg-surface:       #151519;   /* Cards, paneles, contenedores */
  --bg-elevated:      #1e1e24;   /* Hover, activo, input focus */
  --bg-overlay:       rgba(12, 12, 16, 0.85); /* Overlays de modal */

  /* --- Colores de acento --- */
  --accent-primary:   #e11d48;   /* Rose-600 — CTAs principales, logo, botones calientes */
  --accent-creator:   #1d9bf0;   /* Azul Twitter — badges verificados, botón "Subir Video" */
  --accent-gold:      #eab308;   /* Yellow-500 — calificaciones, premium, creadores destacados */
  --accent-success:   #22c55e;   /* Green-500 — éxito, estado activo, indicador online */
  --verified-blue:    #1d9bf0;   /* Alias semántico para el badge verificado */

  /* --- Colores de texto --- */
  --text-bright:      #fafafa;   /* Texto principal, títulos */
  --text-body:        #d4d4d8;   /* Texto de cuerpo estándar */
  --text-dim:         #71717a;   /* Metadatos, texto secundario */
  --text-placeholder: #52525b;   /* Placeholders de inputs */

  /* --- Bordes --- */
  --border-subtle:    #27272a;   /* Bordes de cards, separadores suaves */
  --border-accent:    #3f3f46;   /* Bordes activos, inputs */

  /* --- Tipografía --- */
  --font-heading:     'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:        'DM Sans', system-ui, sans-serif;

  /* --- Espaciado base (escala de 4px) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* --- Radio de bordes --- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* --- Transiciones --- */
  --transition-fast:   150ms ease;
  --transition-base:   220ms ease;
  --transition-slow:   350ms ease;

  /* --- Sombras --- */
  --shadow-card:    0 2px 8px rgba(0,0,0,0.45);
  --shadow-elevated: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-creator: 0 0 20px rgba(29,155,240,0.15);
  --shadow-accent:  0 4px 16px rgba(225,29,72,0.35);

  /* --- Dimensiones de zonas publicitarias --- */
  --ad-banner-w:     728px;
  --ad-banner-h:     90px;
  --ad-banner-mob-w: 320px;
  --ad-banner-mob-h: 50px;
  --ad-sidebar-w:    300px;
  --ad-sidebar-h:    250px;
  --ad-player-h:     250px;

  /* --- Grid de videos --- */
  --grid-cols-mobile:  2;
  --grid-cols-tablet:  3;
  --grid-cols-desktop: 4;
  --grid-gap:          var(--space-3);

  /* --- Ancho máximo del contenedor --- */
  --container-max:  1380px;
  --container-pad:  var(--space-4);
}


/* ============================================================
   3. RESET Y BASE
   ============================================================ */

/* Reset mínimo para comportamiento predecible */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Links sin decoración por defecto */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-bright);
}

/* Imágenes responsivas por defecto */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Lista sin estilos */
ul,
ol {
  list-style: none;
}

/* Botones base */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Inputs base */
input,
textarea,
select {
  font-family: var(--font-body);
  color: var(--text-bright);
  background: transparent;
  border: none;
  outline: none;
}

/* Color de selección de texto */
::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* Scrollbar oscuro con acento (Webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Scrollbar Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-accent) var(--bg-deep);
}


/* ============================================================
   4. TIPOGRAFÍA
   ============================================================ */

/* Encabezado extra grande — logos, heroes */
.heading-xl {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

/* Encabezado grande — títulos de sección */
.heading-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-bright);
  letter-spacing: -0.25px;
}

/* Encabezado mediano — subtítulos, nombres de creadores */
.heading-md {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-bright);
}

/* Texto de cuerpo estándar */
.text-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

/* Título de video — cards y listados */
.text-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-bright);
}

/* Metadatos — duración, vistas, fecha */
.text-meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

/* Responsive: escalar títulos en mobile */
@media (max-width: 639px) {
  .heading-xl { font-size: 24px; }
  .heading-lg { font-size: 20px; }
  .heading-md { font-size: 16px; }
}


/* ============================================================
   5. SISTEMA DE BADGE VERIFICADO (CRÍTICO — usado en toda la UI)
   ============================================================ */

/* Contenedor del badge — envuelve el nombre de usuario */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* El círculo con ✓ — renderizado vía ::after */
.verified-badge::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--verified-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  transition: box-shadow var(--transition-base);
}

/* Variante pequeña — para cards de video */
.verified-badge-sm::after {
  width: 14px;
  height: 14px;
  font-size: 9px;
}

/* Variante grande — para páginas de perfil de creador */
.verified-badge-lg::after {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

/* Efecto shimmer al hacer hover sobre el badge */
.verified-badge:hover::after {
  box-shadow: 0 0 8px rgba(29, 155, 240, 0.55),
              0 0 16px rgba(29, 155, 240, 0.25);
  animation: verified-shimmer 1.2s ease infinite;
}


/* ============================================================
   6. LAYOUT — Contenedor y grillas
   ============================================================ */

/* Contenedor principal centrado */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Layout con sidebar */
.content-with-sidebar {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr var(--ad-sidebar-w);
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Grilla principal de videos — mobile first */
.grid-videos {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols-mobile), 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 640px) {
  .grid-videos {
    grid-template-columns: repeat(var(--grid-cols-tablet), 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-videos {
    grid-template-columns: repeat(var(--grid-cols-desktop), 1fr);
  }
}

/* Fila de sección — encabezado + "Ver más" */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.section-row .section-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.section-row .section-link:hover {
  opacity: 0.8;
}

/* Separador visual de sección */
.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-block: var(--space-6);
}


/* ============================================================
   7. ZONAS PUBLICITARIAS
   ============================================================ */

/* Base de todas las zonas de anuncios */
[class^="ad-zone"] {
  display: none;          /* Ocultas por defecto — se muestran cuando tienen contenido */
  overflow: hidden;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Mostrar cuando el anuncio está cargado */
[class^="ad-zone"].ad-loaded,
[class^="ad-zone"]:not(:empty) {
  display: flex;
}

/* Banner superior — leaderboard desktop / banner mobile */
.ad-zone-banner-top {
  width: var(--ad-banner-w);
  height: var(--ad-banner-h);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .ad-zone-banner-top {
    width: var(--ad-banner-mob-w);
    height: var(--ad-banner-mob-h);
  }
}

/* Sidebar — rectangle 300×250 */
.ad-zone-sidebar {
  width: var(--ad-sidebar-w);
  height: var(--ad-sidebar-h);
}

/* En-grilla — ocupa el lugar de una card (cada 8 posiciones) */
.ad-zone-in-grid {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* Debajo del reproductor — acompañamiento al video */
.ad-zone-below-player {
  width: var(--ad-banner-w);
  height: var(--ad-player-h);
  margin-inline: auto;
  margin-block: var(--space-4);
}

@media (max-width: 767px) {
  .ad-zone-below-player {
    width: var(--ad-sidebar-w);
    height: var(--ad-sidebar-h);
  }
}

/* Banner de pie de página */
.ad-zone-footer {
  width: var(--ad-banner-w);
  height: var(--ad-banner-h);
  margin-inline: auto;
  margin-top: var(--space-4);
}

@media (max-width: 767px) {
  .ad-zone-footer {
    width: var(--ad-banner-mob-w);
    height: var(--ad-banner-mob-h);
  }
}


/* ============================================================
   8. COMPONENTES DE CREADOR
   ============================================================ */

/* --- Card de creador destacado --- */
.creator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.creator-card:hover {
  border-color: var(--verified-blue);
  box-shadow: var(--shadow-creator);
  transform: translateY(-2px);
}

/* Brillo sutil en la esquina superior del card de creador */
.creator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verified-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.creator-card:hover::before {
  opacity: 1;
}

/* Versión destacada — ocupa 2 columnas en desktop */
.creator-card--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

@media (max-width: 639px) {
  .creator-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
}

/* --- Avatar del creador --- */
.creator-avatar {
  position: relative;
  flex-shrink: 0;
}

.creator-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  transition: border-color var(--transition-base);
}

.creator-card:hover .creator-avatar img {
  border-color: var(--verified-blue);
}

/* Indicador de estado online */
.creator-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--accent-success);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* Avatar grande para página de perfil */
.creator-avatar--lg img {
  width: 120px;
  height: 120px;
}

/* --- Nombre de usuario del creador con badge --- */
.creator-username {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-bright);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

/* --- Información del creador --- */
.creator-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.creator-bio {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Estadísticas del creador --- */
.creator-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.creator-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.creator-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-bright);
  line-height: 1;
}

.creator-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Links sociales del creador --- */
.creator-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.creator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 14px;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.creator-link:hover {
  background: var(--verified-blue);
  color: #fff;
  border-color: var(--verified-blue);
}

/* Colores específicos por red social */
.creator-link--onlyfans:hover  { background: #00aff0; border-color: #00aff0; }
.creator-link--telegram:hover  { background: #0088cc; border-color: #0088cc; }
.creator-link--instagram:hover { background: #e1306c; border-color: #e1306c; }
.creator-link--twitter:hover   { background: #1d9bf0; border-color: #1d9bf0; }

/* --- CTA de suscribirse al creador --- */
.creator-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--verified-blue);
  border: 1.5px solid var(--verified-blue);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast);
  white-space: nowrap;
}

.creator-cta:hover,
.creator-cta.subscribed {
  background: var(--verified-blue);
  color: #fff;
}

/* --- CTA "Subir Video" — acento azul con animación pulse --- */
.upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-creator);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  animation: upload-pulse 2.5s ease infinite;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.upload-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(29, 155, 240, 0.5);
  animation-play-state: paused;
  color: #fff;
}

/* --- CTA "Registrarse" --- */
.register-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.register-cta:hover {
  background: #be123c;
  transform: scale(1.03);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

/* --- Barra de progreso de subida de video --- */
.upload-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-creator), var(--accent-success));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  min-width: 0;
}


/* ============================================================
   9. COMPONENTE CARD DE VIDEO (estructura base)
   ============================================================ */

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  animation: fadeInUp 0.4s ease both;
}

.video-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Animación escalonada para las cards en la grilla */
.video-card:nth-child(1)  { animation-delay: 0ms; }
.video-card:nth-child(2)  { animation-delay: 40ms; }
.video-card:nth-child(3)  { animation-delay: 80ms; }
.video-card:nth-child(4)  { animation-delay: 120ms; }
.video-card:nth-child(5)  { animation-delay: 60ms; }
.video-card:nth-child(6)  { animation-delay: 100ms; }
.video-card:nth-child(7)  { animation-delay: 140ms; }
.video-card:nth-child(8)  { animation-delay: 160ms; }

/* Contenedor del thumbnail — aspect ratio 16:9 */
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.07);
}

/* Overlay de badges sobre el thumbnail */
.video-card-badges {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
  pointer-events: none;
}

.video-card-badges-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-1);
}

.video-card-badges-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-1);
}

/* Cuerpo de texto del card */
.video-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

/* Título del video */
.video-card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-bright);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.video-card:hover .video-card-title {
  color: var(--accent-primary);
}

/* Fila de metadatos — canal + vistas + fecha */
.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.video-card-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.video-card-channel:hover {
  color: var(--verified-blue);
}

.video-card-views {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}


/* ============================================================
   10. COMPONENTES DE UI
   ============================================================ */

/* --- Badges sobre thumbnail --- */

/* Duración del video */
.badge-duration {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* Badge HD */
.badge-hd {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  background: var(--accent-gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Badge "Privado" */
.badge-private {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(225, 29, 72, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* Badge "Nuevo" */
.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: var(--accent-success);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* --- Pill genérico — categorías, tags --- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-elevated);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
  cursor: pointer;
}

.pill:hover,
.pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* --- Botones principales --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast),
              transform var(--transition-fast);
}

.btn-primary:hover {
  background: #be123c;
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Botón azul de creador */
.btn-creator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-creator);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast),
              transform var(--transition-fast);
}

.btn-creator:hover {
  background: #0d8de0;
  transform: translateY(-1px);
  color: #fff;
}

/* Botón con borde */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition-fast),
              color var(--transition-fast),
              background var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--text-body);
  color: var(--text-bright);
}

/* Tamaño pequeño para todos los botones */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* --- Barra de calificación --- */
.rating-bar {
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-primary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* --- Migas de pan (breadcrumb) --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumb-item {
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumb-item a {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--accent-primary);
}

.breadcrumb-sep {
  color: var(--border-accent);
  font-size: 12px;
  user-select: none;
}

.breadcrumb-item:last-child {
  color: var(--text-body);
}

/* --- Campo de búsqueda --- */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: 44px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition-fast),
              background var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-placeholder);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

.search-icon {
  position: absolute;
  right: var(--space-4);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 16px;
}

/* --- Paginación --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast);
}

.pagination-item:hover {
  background: var(--bg-elevated);
  color: var(--text-bright);
}

.pagination-item.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.pagination-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* --- Pestañas de ordenamiento (Nuevos, Populares, etc.) --- */
.sort-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sort-tabs::-webkit-scrollbar {
  display: none;
}

.sort-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.sort-tab:hover {
  color: var(--text-bright);
  border-color: var(--border-accent);
}

.sort-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* --- Estado vacío --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  opacity: 0.3;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-body);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 320px;
}

/* --- Botón "Cargar Más" --- */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color var(--transition-fast),
              color var(--transition-fast),
              background var(--transition-fast);
}

.load-more-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-elevated);
}


/* ============================================================
   11. ANIMACIONES
   ============================================================ */

/* Entrada desde abajo con fade */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pulse para el botón "Subir Video" */
@keyframes upload-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(29, 155, 240, 0);
  }
}

/* Shimmer para el badge verificado al hacer hover */
@keyframes verified-shimmer {
  0%   { box-shadow: 0 0 6px rgba(29,155,240,0.4); }
  50%  { box-shadow: 0 0 14px rgba(29,155,240,0.75); }
  100% { box-shadow: 0 0 6px rgba(29,155,240,0.4); }
}

/* Rotación para loaders */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading shimmer */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Clase para skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease infinite;
  border-radius: var(--radius-sm);
}


/* ============================================================
   12. DISEÑO RESPONSIVO (mobile-first)
   ============================================================ */

/* --- Mobile: < 640px (base por defecto) --- */

/* En mobile, las pestañas de sort se hacen scroll horizontal */
@media (max-width: 639px) {
  .sort-tabs {
    gap: var(--space-1);
  }
  .sort-tab {
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
  }
  .creator-card {
    padding: var(--space-4);
  }
  .creator-avatar img {
    width: 56px;
    height: 56px;
  }
  .upload-cta,
  .register-cta {
    padding: var(--space-2) var(--space-4);
    font-size: 13px;
  }
  .pagination-item {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* --- Tablet: 640px – 1023px --- */
@media (min-width: 640px) {
  :root {
    --container-pad: var(--space-5);
  }
  .creator-card--featured {
    padding: var(--space-6);
  }
}

/* --- Desktop: 1024px+ --- */
@media (min-width: 1024px) {
  :root {
    --container-pad: var(--space-6);
  }
  .creator-avatar img {
    width: 80px;
    height: 80px;
  }
}

/* --- Pantallas anchas: 1320px+ --- */
@media (min-width: 1320px) {
  :root {
    --grid-gap: var(--space-4);
  }
}


/* ============================================================
   13. UTILIDADES
   ============================================================ */

/* Accesibilidad — sólo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Texto truncado a 2 líneas */
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Texto truncado a 1 línea */
.truncate-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ocultar en mobile */
.hide-mobile {
  display: none !important;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: revert !important;
  }
}

/* Ocultar en desktop */
.hide-desktop {
  display: revert !important;
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Helpers de flex */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Gaps */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Espaciado de secciones */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Colores de texto utilitarios */
.text-bright   { color: var(--text-bright) !important; }
.text-dim      { color: var(--text-dim) !important; }
.text-accent   { color: var(--accent-primary) !important; }
.text-creator  { color: var(--accent-creator) !important; }
.text-gold     { color: var(--accent-gold) !important; }
.text-success  { color: var(--accent-success) !important; }

/* Ancho completo */
.w-full { width: 100%; }

/* Overflow oculto */
.overflow-hidden { overflow: hidden; }

/* Posición relativa (útil para overlays) */
.relative { position: relative; }

/* Loader giratorio */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-accent);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}


/* ============================================================
   14. CARD DE VIDEO — Componente completo con atribución
       Variables KVS confirmadas:
       {$item.view_page_url}, {$item.title}, {$item.screen_url}
       {$item.duration_array.text}, {$item.is_hd}, {$item.is_private}
       {$item.video_viewed}, {$item.rating}, {$item.post_date}
       {$item.user.user_id}, {$item.user.username}
       {$item.user.display_name}, {$item.user.avatar_url}
       {$item.user.custom1} — campo verificado ("verified" o "1")
   ============================================================ */

/* ── Cuadrícula de videos (override del .thumbs de KVS) ── */
.nb-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

.nb-video-grid-ul {
  display: contents; /* <ul> transparente para que el grid fluya */
  list-style: none;
}

.nb-video-grid-ul > li {
  display: contents; /* cada <li> también transparente */
}

@media (min-width: 640px) {
  .nb-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nb-video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Card principal ── */
.nb-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  animation: fadeInUp 0.35s ease both;
}

/* Hover — elevar la card */
.nb-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* Entrada escalonada para las primeras 8 cards */
.nb-card:nth-child(1)  { animation-delay: 0ms; }
.nb-card:nth-child(2)  { animation-delay: 35ms; }
.nb-card:nth-child(3)  { animation-delay: 70ms; }
.nb-card:nth-child(4)  { animation-delay: 105ms; }
.nb-card:nth-child(5)  { animation-delay: 50ms; }
.nb-card:nth-child(6)  { animation-delay: 85ms; }
.nb-card:nth-child(7)  { animation-delay: 120ms; }
.nb-card:nth-child(8)  { animation-delay: 155ms; }

/* Modificadores de estado */
.nb-card--private  { --card-accent: var(--accent-primary); }
.nb-card--premium  { --card-accent: var(--accent-gold); }
.nb-card--disabled { opacity: 0.55; }
.nb-card--error    { border-color: #ef4444; }
.nb-card--processing { border-color: var(--border-accent); }
.nb-card--manage   { user-select: none; }

/* ── Controles de gestión (checkbox + editar) ── */
.nb-card-manage-controls {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 20;
}

.nb-manage-ctrl-inner {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nb-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nb-edit-link:hover {
  color: var(--text-bright);
  background: rgba(0,0,0,0.9);
}

.nb-edit-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Enlace del thumbnail ── */
.nb-card-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  /* Forzar aspect ratio 16:9 */
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

/* Imagen del thumbnail */
.nb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Zoom del thumbnail al hacer hover en la card */
.nb-card:hover .nb-card-img {
  transform: scale(1.06);
}

/* ── Overlays sobre el thumbnail ── */
.nb-card-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  z-index: 5;
  pointer-events: none; /* el click pasa al enlace debajo */
}

/* Esquina superior izquierda — badges de calidad (HD) */
.nb-card-overlay--tl {
  top: var(--space-2);
  left: var(--space-2);
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3px;
}

/* Esquina superior derecha — acciones (favorito, más tarde) */
.nb-card-overlay--tr {
  top: var(--space-2);
  right: var(--space-2);
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  pointer-events: all; /* los botones de acción sí reciben clicks */
}

/* Borde inferior — privacidad + duración */
.nb-card-overlay--b {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px var(--space-2) var(--space-2);
  justify-content: space-between;
  align-items: flex-end;
  /* Gradiente oscuro para legibilidad */
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

/* ── Botones de favorito / ver más tarde ── */
.nb-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  /* Oculto hasta hover en la card */
  opacity: 0;
  transform: translateY(-4px);
}

.nb-card:hover .nb-fav-btn {
  opacity: 1;
  transform: translateY(0);
}

.nb-fav-btn:hover,
.nb-fav-btn.fixed {
  background: var(--accent-primary);
  color: #fff;
}

.nb-fav-btn--later:hover,
.nb-fav-btn--later.fixed {
  background: var(--accent-creator);
  color: #fff;
}

/* Retraso escalonado en la aparición de los botones */
.nb-fav-btn:nth-child(2) {
  transition-delay: 30ms;
}

/* ── Badge de estado del video ── */
.nb-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.nb-status-badge--disabled  { background: rgba(0,0,0,0.7); color: var(--text-dim); }
.nb-status-badge--error     { background: rgba(239,68,68,0.85); color: #fff; }
.nb-status-badge--processing { background: rgba(234,179,8,0.85); color: #000; }

/* Badge "Privado / Premium" — variante premium dorada */
.badge-private--premium {
  background: rgba(234, 179, 8, 0.85);
  color: #000;
}

/* ── Cuerpo de información de la card ── */
.nb-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  flex: 1;
}

/* ── Título del video ── */
.nb-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-bright);
  transition: color var(--transition-fast);
}

.nb-card-title:hover {
  color: var(--accent-primary);
}

/* ── Fila de creador — DIFERENCIADOR CLAVE ── */
/* Enlaza al perfil del creador con avatar + nombre + badge */
.nb-card-creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-top: 1px;
  transition: opacity var(--transition-fast);
}

.nb-card-creator:hover {
  opacity: 0.85;
}

/* Variante "fuente de contenido" (content source, no usuario) */
.nb-card-creator--source .creator-name {
  color: var(--text-dim);
}

/* Avatar circular del creador — 24px */
.creator-avatar-xs {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
}

.creator-avatar-xs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Fallback con inicial del nombre */
.creator-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  color: var(--text-bright);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-creator));
  border-radius: 50%;
  text-transform: uppercase;
}

/* Fallback para content source (sin imagen) */
.creator-avatar-source {
  background: var(--bg-elevated);
}

.creator-avatar-source::after {
  content: "◈";
  font-size: 10px;
  color: var(--text-dim);
}

/* Nombre del creador */
.creator-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* .verified-badge-sm se hereda del sistema de badges global */
  transition: color var(--transition-fast);
}

.nb-card-creator:hover .creator-name {
  color: var(--text-body);
}

/* ── Fila de metadatos: vistas · fecha ── */
.nb-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nb-card-views,
.nb-card-date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.nb-card-dot {
  color: var(--border-accent);
  font-size: 10px;
  line-height: 1;
}

/* ── Slot publicitario en cuadrícula (cada 8 videos) ── */
.nb-ad-grid-item {
  display: contents; /* el <li> es transparente para el grid */
}

.nb-ad-grid-item .ad-zone-in-grid {
  /* Dentro del grid, ocupa 1 celda */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* ── Estado vacío ── */
.nb-empty-state {
  grid-column: 1 / -1;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}


/* ============================================================
   15. CARD DE VIDEO — Vista de lista (toggle de layout)
       Activado por clase .nb-video-grid--list en el wrapper
   ============================================================ */

.nb-video-grid--list {
  grid-template-columns: 1fr !important;
  gap: var(--space-2) !important;
}

.nb-video-grid--list .nb-card {
  flex-direction: row;
  height: 88px;
}

.nb-video-grid--list .nb-card-thumb-link {
  aspect-ratio: unset;
  width: 148px;
  height: 88px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  flex-shrink: 0;
}

.nb-video-grid--list .nb-card-body {
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  justify-content: center;
}

.nb-video-grid--list .nb-card-title {
  -webkit-line-clamp: 1;
  font-size: 13px;
}

.nb-video-grid--list .nb-card-creator {
  margin-top: 0;
}

.nb-video-grid--list .rating-bar {
  display: none; /* sin espacio para la barra en vista lista */
}

@media (max-width: 639px) {
  .nb-video-grid--list .nb-card {
    height: 72px;
  }
  .nb-video-grid--list .nb-card-thumb-link {
    width: 120px;
    height: 72px;
  }
  .nb-video-grid--list .nb-card-creator {
    display: none; /* ocultar en mobile lista para ahorrar espacio */
  }
}
