/*
 * Next Gen App - Stylesheet (Visual Direction V2)
 * Inspirado en Apple TV, Apple Vision Pro y UIs de lujo.
 * Elimina la estética corporativa de 'dashboard' y cajas, dando prioridad a elementos flotantes.
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Syncopate:wght@400;700&display=swap');

/* --- SISTEMA DE DISEÑO --- */
:root {
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-disruptive: 'Syncopate', sans-serif;

  /* Paleta Corporativa Oficial Next Gen */
  --brand-slate: #A6BBC8;
  --brand-cyan-light: #71C5E8;
  --brand-cyan-process: #009FDF;
  --brand-navy: #003865;
  
  /* Fondos y Capas */
  --bg-primary: #000914; /* Deep Navy Negro */
  --bg-surface-glass: rgba(0, 56, 101, 0.18);
  --bg-surface-float: rgba(2, 11, 20, 0.45);
  --bg-nav-glass: rgba(2, 11, 20, 0.65);
  --bg-card-solid: #030e1a;
  
  --bg-card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 11, 20, 0.45) 100%);
  --bg-spotlight-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.03) 0%, rgba(2, 11, 20, 0.45) 100%);
  --bg-win-gradient: linear-gradient(135deg, rgba(28, 20, 5, 0.45) 0%, rgba(2, 11, 20, 0.45) 100%);
  --bg-popover: rgba(2, 11, 20, 0.85);
  --bg-nav-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 11, 20, 0.65) 100%);
  
  /* Bordes ultra finos */
  --border-glass: rgba(113, 197, 232, 0.08);
  --border-highlight: rgba(113, 197, 232, 0.25);

  /* Acentos */
  --color-cyan-gradient: linear-gradient(135deg, #71C5E8 0%, #009FDF 100%);
  --color-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --color-heart: #ef4444;

  /* Sombras y Radios */
  --shadow-ambient: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  --shadow-glow-cyan: 0 0 25px rgba(0, 159, 223, 0.4);
  --shadow-glow-navy: 0 0 35px rgba(0, 56, 101, 0.4);
  
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;

  /* Variables de texto por defecto (Modo Oscuro) */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);

  /* Top Numbers variables */
  --top-num-fill: rgba(0, 9, 20, 0.72);
  --top-num-stroke: rgba(113, 197, 232, 0.45);
}

body.light-mode {
  background-color: #f1f5f9; /* Slate 100 base */
  --bg-primary: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.7);
  --bg-surface-float: #ffffff; /* Sólido */
  --bg-card-solid: #ffffff;
  --bg-nav-glass: rgba(255, 255, 255, 0.85);
  
  --border-glass: rgba(0, 56, 101, 0.06);
  --border-highlight: rgba(0, 159, 223, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --brand-slate: #64748b;
  
  --shadow-ambient: 0 10px 30px rgba(0, 56, 101, 0.06);
  --shadow-glow-navy: 0 4px 20px rgba(0, 56, 101, 0.04);

  --top-num-fill: #f1f5f9;
  --top-num-stroke: #003865;

  --bg-card-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --bg-spotlight-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, #ffffff 100%);
  --bg-win-gradient: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, #ffffff 100%) !important;
  --bg-popover: #ffffff;
  --bg-nav-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(241, 245, 249, 0.95) 100%);
}

/* Reset Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: #000104;
  color: var(--text-primary);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
}

/* --- TEXTURA Y PARTÍCULAS DEL ESPACIO DE FONDO --- */
.bg-grain-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

.bg-blobs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: float-blobs 20s ease-in-out infinite alternate;
}

.bg-blob-cyan {
  width: 320px;
  height: 320px;
  background: var(--brand-cyan-process);
  top: 15%;
  left: -80px;
}

.bg-blob-navy {
  width: 400px;
  height: 400px;
  background: var(--brand-navy);
  bottom: 15%;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float-blobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.3); }
}

/* Partículas de polvo cósmico flotante */
.star-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 60px 110px, rgba(113, 197, 232, 0.8), rgba(0,0,0,0)),
              radial-gradient(2px 2px at 150px 220px, #fff, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 250px 380px, #71C5E8, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 320px 480px, #fff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 90px 620px, rgba(113, 197, 232, 0.5), rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 210px 750px, #fff, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 380px 820px, #71C5E8, rgba(0,0,0,0));
  background-size: 400px 850px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  animation: bg-drift-stars 60s linear infinite;
}

@keyframes bg-drift-stars {
  from { background-position: 0 0; }
  to { background-position: 0 -850px; }
}

/* --- CONTENEDOR MÓVIL --- */
#app-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  #app-container {
    width: 412px;
    height: 844px;
    border-radius: 44px;
    border: 10px solid #0a0f18;
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 2px rgba(255, 255, 255, 0.05);
  }
}

/* --- 1. PORTAL CINEMÁTICO ENERGY N (Ref. Imagen 5) --- */
#portal-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00050d;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 1.1s cubic-bezier(0.85, 0, 0.15, 1);
  overflow: hidden;
}

.portal-hidden {
  opacity: 0 !important;
  transform: scale(1.15);
  filter: blur(15px);
  pointer-events: none !important;
}

/* Órbitas vectoriales finas rotantes */
.portal-orbits-container {
  position: absolute;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  pointer-events: none;
}

.portal-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(113, 197, 232, 0.08);
}

.portal-orbit-1 {
  width: 170px;
  height: 170px;
  border-color: rgba(113, 197, 232, 0.25);
  border-style: solid;
  animation: spin-clockwise 30s linear infinite;
}

.portal-orbit-2 {
  width: 220px;
  height: 220px;
  border-style: dashed;
  border-color: rgba(113, 197, 232, 0.15);
  animation: spin-counter 20s linear infinite;
}

.portal-orbit-3 {
  width: 270px;
  height: 270px;
  border-color: rgba(0, 159, 223, 0.08);
  border-style: solid;
  animation: spin-clockwise 45s linear infinite;
}

/* Pequeños nodos planetarios en las órbitas */
.portal-orbit-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--brand-cyan-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-cyan-light);
}

.node-1 { top: 12px; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 30px; right: 20%; }

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Destello cian horizontal (Lens Flare) */
.portal-lens-flare {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 159, 223, 0.6) 30%, #fff 50%, rgba(0, 159, 223, 0.6) 70%, transparent 100%);
  box-shadow: 0 0 10px 1px var(--brand-cyan-process);
  z-index: 101;
  pointer-events: none;
  opacity: 0.65;
  animation: flare-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes flare-glow-pulse {
  0% { transform: scaleX(0.9); opacity: 0.55; }
  100% { transform: scaleX(1.15); opacity: 0.85; }
}

.logo-container-real {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0; /* Centrado absoluto vertical y horizontal */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 102;
}

.logo-ring-cyan {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 159, 223, 0.5) 0%, rgba(0, 56, 101, 0) 70%);
  filter: blur(15px);
  animation: logo-pulsate 3s infinite ease-in-out;
}

.logo-n-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(113, 197, 232, 0.7));
  animation: logo-bounce-float 4.5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container-real:hover .logo-n-img {
  transform: scale(1.1);
}

/* --- ANIMACIONES DE LOGO --- */
@keyframes logo-pulsate {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.45;
    filter: blur(12px);
  }
  50% {
    transform: scale(1.22);
    opacity: 0.85;
    filter: blur(24px);
  }
}

@keyframes logo-bounce-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Lema Corporativo */
.portal-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 102;
  margin-top: 10px;
}

.portal-title-ng {
  font-family: var(--font-disruptive);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 159, 223, 0.45);
  margin-bottom: 4px;
}

.portal-subtitle-hl {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.portal-slogan-gld {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--brand-slate);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.portal-slogan-gld::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--brand-cyan-light);
  box-shadow: 0 0 8px var(--brand-cyan-light);
}

.enter-btn-real {
  margin-top: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  z-index: 102;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.enter-btn-real:hover {
  border-color: var(--brand-cyan-light);
  box-shadow: var(--shadow-glow-cyan);
}

/* --- APP BLUR SYSTEM (Desenfoque al 100% de lo de atrás) --- */
.app-blurred {
  filter: blur(15px) brightness(40%);
  pointer-events: none;
  transition: filter 0.45s ease, transform 0.45s ease;
}

/* --- CONTENIDO PRINCIPAL --- */
#app-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 145px 20px;
  position: relative;
  z-index: 2;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

#app-content::-webkit-scrollbar {
  display: none;
}

.app-view {
  display: none;
  animation: view-fade-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-view.active {
  display: block;
}

/* --- ESTILO FLOAT (Reemplaza a Dashboard Cards Corporativos) --- */
/* Los elementos flotan libremente en el espacio sin bordes rígidos */
.float-element {
  background: var(--bg-card-gradient);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 28px 28px 10px 28px; /* Esquina asimétrica */
  padding: 20px;
  border-top: 1px solid rgba(113, 197, 232, 0.2); /* Canto iluminado superior */
  border-left: 1px solid rgba(113, 197, 232, 0.2); /* Canto iluminado izquierdo */
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255,255,255,0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.float-element:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -10px rgba(0, 56, 101, 0.3);
}

/* --- HOME: HERO POSTER EDITORIAL (Apple TV Style) --- */
.hero-poster-view {
  position: relative;
  width: 100%;
  height: 330px; /* Poster vertical alto */
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-glow-navy), 0 30px 50px rgba(0,0,0,0.7);
  cursor: pointer;
  animation: float-drift 6s ease-in-out infinite alternate;
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-poster-view:hover .hero-poster-img {
  transform: scale(1.04);
}

.hero-poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 9, 20, 1) 0%, rgba(0, 9, 20, 0.35) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.hero-poster-badge {
  font-family: var(--font-disruptive);
  background: var(--color-cyan-gradient);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  box-shadow: var(--shadow-glow-cyan);
}

.hero-poster-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-poster-desc {
  font-size: 0.82rem;
  color: var(--brand-slate);
  font-weight: 400;
  line-height: 1.4;
}

/* Loop de flotación suave en el espacio */
@keyframes float-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --- CAROUSEL DE INSTANTES (IG Historias con Loop de Flotación) --- */
.instants-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px 4px;
  margin-bottom: 24px;
}

.instants-container::-webkit-scrollbar {
  display: none;
}

.instant-item {
  flex: 0 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Flotación con delays para dar vida asíncrona */
  animation: float-drift 4s ease-in-out infinite alternate;
}

.instant-item:nth-child(even) {
  animation-delay: -1.5s;
  animation-duration: 4.5s;
}

.instant-item:nth-child(3n) {
  animation-delay: -2.5s;
  animation-duration: 5s;
}

.instant-frame {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--brand-cyan-light) 0%, var(--brand-navy) 100%);
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(0, 159, 223, 0.2);
}

.instant-item.viewed .instant-frame {
  background: rgba(166, 187, 200, 0.2);
  box-shadow: none;
}

.instant-inner {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  background: var(--bg-primary);
  overflow: hidden;
}

.instant-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instant-caption {
  font-size: 0.68rem;
  color: var(--brand-slate);
  font-weight: 500;
}

/* Ticker F1 */
.f1-ticker-container {
  background: rgba(0, 159, 223, 0.04);
  border: none;
  margin: 0 -20px 28px -20px;
  padding: 12px 0;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.f1-ticker {
  display: inline-block;
  animation: f1-ticker-animation 32s linear infinite;
  white-space: nowrap;
}

.f1-item {
  display: inline-block;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 55px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.f1-item span {
  color: var(--brand-cyan-light);
  margin-right: 6px;
}

/* Novedades list */
.home-card {
  display: flex;
  align-items: center;
  background: var(--bg-card-gradient);
  backdrop-filter: blur(20px);
  border-radius: 20px 20px 6px 20px; /* Esquina inferior derecha asimétrica */
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(113, 197, 232, 0.12);
  border-left: 1px solid rgba(113, 197, 232, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.home-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 56, 101, 0.15);
}

.home-card-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-right: 16px;
}

.home-card-info {
  flex: 1;
}

.home-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  text-transform: uppercase;
}

.home-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 3px 0;
}

.home-card-time {
  font-size: 0.72rem;
  color: var(--brand-slate);
}

/* --- BENTO GRID NOTICIAS (Borderless float items) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bento-item {
  background: var(--bg-card-gradient);
  backdrop-filter: blur(20px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 155px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.05);
  border-top: 1px solid rgba(113, 197, 232, 0.15); /* Canto iluminado superior */
  border-left: 1px solid rgba(113, 197, 232, 0.15); /* Canto iluminado izquierdo */
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 24px 24px 8px 24px; /* Esquinas asimétricas */
}

.bento-item:nth-child(odd) {
  border-radius: 24px 8px 24px 24px;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan), 0 30px 50px rgba(0,0,0,0.5);
  border-top-color: rgba(113, 197, 232, 0.35);
  border-left-color: rgba(113, 197, 232, 0.35);
}

.bento-item.large {
  grid-column: span 2;
  min-height: 210px;
  border-radius: 28px 28px 28px 10px;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.6s ease;
  z-index: 1;
}

.bento-item:hover .bento-bg {
  transform: scale(1.06);
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-badge {
  background: rgba(113, 197, 232, 0.12);
  color: var(--brand-cyan-light);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

/* --- BIBLIOTECA: NETFLIX STYLE CON LOOPS Y FLOTACIÓN --- */
.shelf-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px;
}

.shelf-scroll::-webkit-scrollbar {
  display: none;
}

.shelf-card {
  flex: 0 0 160px;
  background: var(--bg-surface-float);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  /* Movimiento organico flotante */
  animation: float-drift 4s ease-in-out infinite alternate;
}

.shelf-card:nth-child(even) {
  animation-delay: -1.8s;
  animation-duration: 4.8s;
}

.shelf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(0, 56, 101, 0.35);
}

.shelf-card-thumb {
  position: relative;
  width: 100%;
  height: 105px;
}

.shelf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-card-info {
  padding: 12px;
}

.shelf-card-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shelf-card-meta {
  font-size: 0.7rem;
  color: var(--brand-slate);
  margin-top: 6px;
}

/* --- NETFLIX TOP 3 RECOMMENDED (Bucle y flotación vertical) --- */
.top3-shelf-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 12px 20px 0;
}

.top3-shelf-scroll::-webkit-scrollbar {
  display: none;
}

.top3-card-wrapper {
  flex: 0 0 190px;
  display: flex;
  align-items: flex-end;
  position: relative;
  height: 160px;
  /* Flotación con delays y loops continuos en el espacio */
  animation: float-drift-top3 4.5s ease-in-out infinite alternate;
}

.top3-card-wrapper:nth-child(1) { animation-delay: 0s; }
.top3-card-wrapper:nth-child(2) { animation-delay: -1.5s; animation-duration: 5s; }
.top3-card-wrapper:nth-child(3) { animation-delay: -3s; animation-duration: 5.5s; }
.top3-card-wrapper:nth-child(4) { animation-delay: -0.7s; animation-duration: 4.7s; }
.top3-card-wrapper:nth-child(5) { animation-delay: -2.2s; animation-duration: 5.2s; }

@keyframes float-drift-top3 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.top3-number {
  position: absolute;
  left: -8px;
  bottom: -26px;
  font-family: var(--font-disruptive);
  font-size: 11rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--top-num-fill);
  -webkit-text-stroke: 2px var(--top-num-stroke);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.9)) drop-shadow(0 0 10px rgba(0, 159, 223, 0.25));
  transition: all 0.3s ease;
}

.top3-card-wrapper:hover .top3-number {
  transform: scale(1.05) translate(-4px, -2px);
  -webkit-text-stroke: 1.5px var(--brand-cyan-light);
}

.top3-shelf-card {
  width: 142px;
  height: 100%;
  margin-left: auto;
  z-index: 2;
  position: relative;
  background: var(--bg-card-solid);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.top3-shelf-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-cyan);
}

.top3-shelf-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.top3-card-info {
  padding: 10px;
}

.top3-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

/* --- MUSIC: SPOTIFY / YT MUSIC STYLE --- */
.music-album-card {
  background: var(--bg-surface-float);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.music-album-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.music-album-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.music-album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-album-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.music-album-artist {
  font-size: 0.7rem;
  color: var(--brand-slate);
}

/* Pistas de audio individuales */
.track-item {
  display: flex;
  align-items: center;
  background: var(--bg-surface-float);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.track-item:hover {
  background: rgba(0, 56, 101, 0.2);
  transform: translateX(3px);
}

.track-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 14px;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.7rem;
  color: var(--brand-slate);
}

.track-icon {
  color: var(--brand-cyan-light);
  font-size: 1rem;
  margin-left: 10px;
}

/* --- REPRODUCTOR DE MÚSICA PERSISTENTE GLOBAL (Vision Pro Style) --- */
#global-music-player {
  position: absolute;
  bottom: 96px; /* Ajuste para flotar sobre el Dock */
  left: 5%;
  width: 90%;
  height: 64px;
  background: var(--bg-nav-gradient);
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  backdrop-filter: blur(30px) saturate(190%); /* Efecto Vision Pro */
  box-shadow: 0 20px 45px rgba(0,0,0,0.65), var(--shadow-glow-cyan), inset 0 1px 1px rgba(255,255,255,0.15);
  display: none;
  align-items: center;
  padding: 0 16px;
  z-index: 75;
  animation: player-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gplayer-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
}

.gplayer-info {
  flex: 1;
  min-width: 0;
}

.gplayer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gplayer-artist {
  font-size: 0.68rem;
  color: var(--brand-slate);
}

.gplayer-controls {
  display: flex;
  align-items: center;
}

.gplayer-btn.btn-play-pause {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-cyan-gradient);
  font-size: 0.8rem;
  box-shadow: var(--shadow-glow-cyan);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gplayer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.25s ease;
}

.gplayer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fff;
}

.gplayer-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.gplayer-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--brand-cyan-light);
  box-shadow: 0 0 10px var(--brand-cyan-light);
}

/* --- COMMUNITY: POSTS & WINS FLOATING --- */
.post-card {
  background: var(--bg-surface-float);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  border: none; /* Borderless */
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.win-card {
  box-shadow: var(--shadow-glow-gold), 0 20px 45px rgba(0,0,0,0.5) !important;
  background: var(--bg-win-gradient) !important;
  position: relative;
}

.win-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 1px solid var(--border-highlight);
}

.post-user-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.win-badge {
  font-family: var(--font-disruptive);
  background: var(--color-gold-gradient);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.post-time {
  font-size: 0.7rem;
  color: var(--brand-slate);
  margin-top: 2px;
}

.post-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  gap: 12px;
  position: relative;
}

.react-trigger-btn, .comment-trigger-btn {
  background: rgba(166, 187, 200, 0.08);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  color: var(--brand-slate);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.react-trigger-btn:hover, .comment-trigger-btn:hover {
  background: rgba(166, 187, 200, 0.15);
  color: #fff;
  border-color: var(--border-highlight);
}

.active-reactions-display {
  display: flex;
  gap: 6px;
  align-items: center;
}

.reaction-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-pill.reacted-heart {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-heart);
}

.reaction-pill.reacted-mitt {
  background: rgba(0, 159, 223, 0.1);
  color: var(--brand-cyan-light);
  font-weight: 700;
}

.reaction-pill.reacted-fire {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

/* Comentarios Cajón */
.post-comments-drawer {
  margin-top: 18px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: drawer-slide-down 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.comment-item {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.comment-user {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--brand-cyan-light);
  margin-bottom: 2px;
}

.comment-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Input comentario */
.comment-input-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.comment-textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  resize: none;
  outline: none;
  height: 36px;
}

.comment-submit-btn {
  background: var(--color-cyan-gradient);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  color: #fff;
  cursor: pointer;
}

/* --- DOCK DE NAVEGACIÓN FLOTANTE (Vision Pro Style - V2.6) --- */
#bottom-nav {
  position: absolute;
  bottom: 18px;
  left: 5%;
  width: 90%;
  height: 56px;
  background: var(--bg-nav-gradient);
  border-top: 1px solid rgba(113, 197, 232, 0.2); /* Canto iluminado superior */
  border-left: 1px solid rgba(113, 197, 232, 0.2); /* Canto iluminado izquierdo */
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 24px 24px 8px 24px; /* Esquina inferior derecha recortada (asimetría) */
  backdrop-filter: blur(30px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  z-index: 80;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.95), var(--shadow-glow-navy), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.35s ease;
}

.nav-pill-indicator {
  position: absolute;
  height: 40px;
  background: rgba(113, 197, 232, 0.08);
  border: 1px solid rgba(113, 197, 232, 0.2);
  border-radius: 16px;
  z-index: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 1;
  height: 100%;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.nav-emoji {
  font-size: 1.25rem;
  opacity: 0.45;
  filter: grayscale(80%) blur(0.2px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.nav-item.active .nav-emoji {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 10px rgba(113, 197, 232, 0.7));
  transform: scale(1.2) translateY(-2px);
}

/* Indicador de punto elástico el cual va debajo del emoji */
.nav-active-dot {
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  background-color: var(--brand-cyan-light);
  border-radius: 50%;
  box-shadow: 0 0 8px 1px var(--brand-cyan-light);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-item.active .nav-active-dot {
  opacity: 1;
  transform: scale(1);
}

/* Modales emergencia */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 5, 12, 0.95);
  z-index: 95;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  animation: modal-slide-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2,11,20,0.7);
  border: 1px solid var(--border-highlight);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.25rem;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.modal-body {
  padding: 26px 20px;
}

.modal-tag {
  color: var(--brand-cyan-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.25;
}

.modal-meta {
  font-size: 0.75rem;
  color: var(--brand-slate);
  margin-top: 4px;
  margin-bottom: 22px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- ADICIONES VISUAL DIRECTION V2.6 --- */

/* 1. ENERGÍA DE FONDO CONTINUA */
.bg-ambient-orbit-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-ambient-orbit {
  position: absolute;
  top: 15%;
  left: -20%;
  width: 140%;
  height: 80%;
  border-radius: 50%;
  border: 1px solid rgba(113, 197, 232, 0.03);
  pointer-events: none;
  animation: spin-clockwise 120s linear infinite;
}

.bg-ambient-orbit-2 {
  position: absolute;
  bottom: 15%;
  right: -20%;
  width: 120%;
  height: 70%;
  border-radius: 50%;
  border: 1px dashed rgba(113, 197, 232, 0.02);
  pointer-events: none;
  animation: spin-counter 160s linear infinite;
}

.bg-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 159, 223, 0.06) 0%, rgba(0, 56, 101, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: energy-pulse-glow 12s ease-in-out infinite alternate;
}

@keyframes energy-pulse-glow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* 2. NETFLIX STYLE HERO SPOTLIGHT IN LIBRARY */
.library-hero-spotlight {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), var(--shadow-glow-navy);
  border-top: 1px solid rgba(113, 197, 232, 0.2);
  border-left: 1px solid rgba(113, 197, 232, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.library-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.library-hero-spotlight:hover .library-hero-img {
  transform: scale(1.03);
}

.library-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 9, 20, 1) 0%, rgba(0, 9, 20, 0.25) 75%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.library-hero-badge {
  font-family: var(--font-disruptive);
  background: var(--color-cyan-gradient);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  box-shadow: var(--shadow-glow-cyan);
}

.library-hero-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #fff;
}

.library-hero-desc {
  font-size: 0.72rem;
  color: var(--brand-slate);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 12px;
}

.library-hero-buttons {
  display: flex;
  gap: 10px;
}

.library-hero-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.library-hero-btn.btn-play {
  background: #fff;
  color: #000;
  font-weight: 700;
  border: none;
}

.library-hero-btn.btn-play:hover {
  background: var(--brand-cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(113, 197, 232, 0.4);
}

.library-hero-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 3. CATEGORÍAS EN BIBLIOTECA */
.library-categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px 4px;
}

.library-categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--brand-slate);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.category-pill.active {
  background: var(--color-cyan-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

/* 4. REPRODUCTOR DE VIDEO A PANTALLA COMPLETA CINEMÁTICO */
.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 4, 8, 0.96);
  backdrop-filter: blur(25px);
  z-index: 110;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: modal-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-modal-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.video-modal-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(2, 11, 20, 0.65);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.video-modal-control-btn:hover {
  background: rgba(113, 197, 232, 0.15);
  border-color: var(--brand-cyan-light);
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.3);
}

.video-modal-title-display {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  flex: 1;
  margin: 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-canvas-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 15px 0;
}

#fullscreen-video-canvas {
  width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 159, 223, 0.1);
  background: #000;
  display: block;
}

.video-play-pause-center-btn {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(2, 11, 20, 0.75);
  border: 1px solid var(--border-highlight);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: var(--shadow-glow-cyan);
}

.video-canvas-container:hover .video-play-pause-center-btn,
.video-canvas-container.paused .video-play-pause-center-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.video-modal-controls {
  background: linear-gradient(to top, rgba(0,5,12,0.95) 0%, rgba(0,5,12,0.2) 80%, transparent 100%);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(15px);
  z-index: 10;
}

.video-timeline-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.video-time-label {
  font-size: 0.72rem;
  color: var(--brand-slate);
  font-weight: 500;
  min-width: 32px;
}

.video-timeline-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.video-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-cyan-light);
  box-shadow: 0 0 8px var(--brand-cyan-light);
  transition: transform 0.2s ease;
}

.video-timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.35);
}

.video-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-control-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-cyan-gradient);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow-cyan);
  transition: all 0.25s ease;
}

.video-control-action-btn:hover {
  transform: scale(1.08);
}

.video-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.video-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  width: 60px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.video-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.video-quality-badge {
  font-family: var(--font-disruptive);
  font-size: 0.55rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 3px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* 5. REACCIONES ESTILO FACEBOOK & COMENTARIOS SKOOL */
.post-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  position: relative;
}

.comment-count-badge {
  font-size: 0.75rem;
  color: var(--brand-slate);
  font-weight: 600;
}

.react-trigger-btn, .comment-trigger-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--brand-slate);
  font-size: 1rem;
  transition: all 0.25s ease;
  padding: 0;
}

.react-trigger-btn:hover, .comment-trigger-btn:hover {
  background: rgba(113, 197, 232, 0.15);
  border-color: var(--brand-cyan-light);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.35);
}

.reactions-popover {
  position: absolute;
  bottom: 46px;
  left: 0;
  background: var(--bg-popover);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-highlight);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.65), var(--shadow-glow-cyan);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  z-index: 90;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reactions-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popover-emoji {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.popover-emoji:hover {
  transform: scale(1.3) translateY(-4px);
}

/* 6. WIDGET DE SPOTLIGHT MÚSICA & CONECTOR DE HOME */
.home-music-spotlight {
  display: flex;
  align-items: center;
  background: var(--bg-spotlight-gradient);
  border-top: 1px solid rgba(251, 191, 36, 0.2); /* Reborde dorado */
  border-left: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 24px 24px 8px 24px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  animation: float-drift 5s ease-in-out infinite alternate;
}

.music-spotlight-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  width: 24px;
  margin-right: 14px;
}

.music-spotlight-bar {
  flex: 1;
  background: #fbbf24;
  border-radius: 1px;
  height: 4px;
  animation: visualizer-bounce 1s ease-in-out infinite alternate;
}

.music-spotlight-bar:nth-child(2) { height: 6px; animation-delay: -0.3s; animation-duration: 0.8s; }
.music-spotlight-bar:nth-child(3) { height: 3px; animation-delay: -0.6s; animation-duration: 1.2s; }

@keyframes visualizer-bounce {
  0% { height: 4px; }
  100% { height: 20px; }
}

.music-spotlight-btn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold-gradient);
  color: #fff;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* --- PROFILE SCREEN STYLES (V3.0) --- */
.profile-card {
  margin-bottom: 20px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-cyan-light);
  box-shadow: var(--shadow-glow-cyan);
  transition: all 0.3s ease;
}

.profile-preview-info {
  display: flex;
  flex-direction: column;
}

.profile-preview-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-preview-role {
  font-size: 0.75rem;
  color: var(--brand-cyan-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.profile-settings-form {
  padding: 20px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.72rem;
  color: var(--brand-slate);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: var(--form-input-bg, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
  border-color: var(--brand-cyan-light);
  box-shadow: 0 0 10px rgba(113, 197, 232, 0.25);
}

select.form-input option {
  background: var(--bg-primary, #000914);
  color: var(--text-primary, #fff);
}

.select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371c5e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-option:hover {
  transform: scale(1.1);
}

.avatar-option.active {
  border-color: var(--brand-cyan-light);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.1);
}

.profile-save-btn {
  background: var(--color-cyan-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  box-shadow: var(--shadow-glow-cyan);
  transition: all 0.25s ease;
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 159, 223, 0.45);
}

.theme-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-segmented-control {
  display: flex;
  background: var(--form-input-bg, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--brand-slate);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-btn.active {
  background: var(--color-cyan-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

/* --- LIBRARY SHORTS (Vertical cards 9:16 loop previews) --- */
.shorts-shelf-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 6px;
}

.shorts-shelf-scroll::-webkit-scrollbar {
  display: none;
}

.short-card {
  flex: 0 0 135px;
  height: 240px;
  background: var(--bg-card-solid);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float-drift-top3 4.5s ease-in-out infinite alternate;
}

.short-card:nth-child(even) {
  animation-delay: -1.2s;
  animation-duration: 5.2s;
}

.short-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-glow-cyan), 0 20px 35px rgba(0, 56, 101, 0.25);
  border-color: var(--brand-cyan-light);
}

.short-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* Let clicks pass to the card */
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.short-card:hover .short-preview-video {
  filter: brightness(1.05);
}

.short-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 9, 20, 0.95) 0%, rgba(0, 9, 20, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

body.light-mode .short-card-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
}

.short-card-tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--brand-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

body.light-mode .short-card-tag {
  color: var(--brand-navy);
}

.short-card-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.light-mode .short-card-title {
  color: var(--text-primary);
}

.short-play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 9, 20, 0.6);
  backdrop-filter: blur(5px);
  color: #fbbf24;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  z-index: 3;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

body.light-mode .short-play-badge {
  background: rgba(255, 255, 255, 0.7);
}
