/* ==========================================================================
   StreamFlix-AI • Consumer Streaming Experience & Dynamic Animation Engine
   ========================================================================== */

:root {
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-surface: #232323;
  --bg-card: #181818;
  --bg-card-hover: #222533;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(229, 9, 20, 0.45);

  --accent-red: #e50914;
  --accent-red-hover: #b20710;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #46d369;
  --accent-gold: #f59e0b;

  --text-main: #ffffff;
  --text-muted: #e5e5e5;
  --text-dim: #808080;

  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(229, 9, 20, 0.4);
  --transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #272a38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Header & Barra de Navegación */
.sf-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 3.5rem;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.9) 0%, rgba(10, 11, 14, 0.4) 70%, transparent 100%);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.sf-navbar.scrolled {
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.sf-nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.sf-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.sf-brand span {
  color: var(--accent-red);
}

.sf-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.sf-nav-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  padding: 0.3rem 0;
}

.sf-nav-menu a:hover,
.sf-nav-menu a.active {
  color: #fff;
  font-weight: 700;
}

.sf-nav-menu .nav-icon {
  font-size: 1.05rem;
}

.sf-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Buscador Rápido */
.search-widget-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  color: #fff;
  font-size: 0.85rem;
  width: 180px;
  outline: none;
  transition: width 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.search-input-pill:focus {
  width: 280px;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
}

.search-icon-btn {
  position: absolute;
  left: 0.8rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

/* User Profile Menu */
.user-menu-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.user-menu-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

.user-dropdown-card {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  padding: 0.6rem 0;
  z-index: 1100;
  animation: fadeInDown 0.2s ease forwards;
}

.user-menu-pill:hover .user-dropdown-card,
.user-dropdown-card:hover {
  display: block;
}

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

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.2rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: var(--transition);
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0;
}

/* Hero Banner */
.sf-hero-consumer {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 4rem 4.5rem;
  background-size: cover;
  background-position: center top;
  margin-bottom: -1rem;
}

.sf-hero-consumer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(10, 11, 14, 0.5) 45%, rgba(10, 11, 14, 0.85) 100%),
              linear-gradient(90deg, var(--bg-primary) 0%, rgba(10, 11, 14, 0.6) 40%, transparent 100%);
  pointer-events: none;
}

.sf-hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fca5a5;
  margin-bottom: 0.8rem;
}

.sf-hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.sf-badges-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.badge-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.badge-match {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-weight: 800;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sf-hero-synopsis {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Filas de Carruseles */
.carousel-row-container {
  padding: 1rem 3.5rem;
  margin-bottom: 2.2rem;
  position: relative;
}

.carousel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.carousel-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f1f5f9;
}

.carousel-title .row-icon {
  color: var(--accent-red);
}

.carousel-viewport-wrapper {
  position: relative;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.5rem 0.5rem 2rem;
  margin: -1.5rem -0.5rem -2rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Flechas de Desplazamiento */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 44px;
  height: 90px;
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.carousel-row-container:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(229, 9, 20, 0.85);
}

.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

/* ==========================================================================
   ANIMACIONES AL PASAR EL VISOR (CARD HOVER EXPANSION)
   ========================================================================== */

.movie-card-animated {
  flex: 0 0 215px;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease, z-index 0.32s;
  cursor: pointer;
  z-index: 10;
}

.card-poster-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #161822;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.card-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-match-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* Panel flotante de información expandida al pasar el mouse */
.card-hover-flyout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #141722;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  z-index: 100;
}

.movie-card-animated:hover {
  z-index: 120;
}

.movie-card-animated:hover .card-hover-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.15) translateY(-14px);
}

.flyout-backdrop {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.flyout-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

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

.flyout-action-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(40, 44, 60, 0.7);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.circle-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.circle-btn.play-circle {
  background: #fff;
  color: #000;
  border: none;
}
.circle-btn.play-circle:hover {
  background: var(--accent-red);
  color: #fff;
}

.flyout-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
}

.flyout-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flyout-genres {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   TOP 10 NÚMEROS ESTILO STREAMING
   ========================================================================== */

.top10-card-wrap {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.top10-rank-number {
  font-size: 9rem;
  font-weight: 900;
  line-height: 0.8;
  color: #000;
  -webkit-text-stroke: 3.5px #555c6d;
  position: relative;
  z-index: 5;
  margin-right: -30px;
  user-select: none;
  font-family: 'Impact', 'Arial Black', sans-serif;
}

.top10-card-wrap:hover .top10-rank-number {
  -webkit-text-stroke-color: var(--accent-red);
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.top10-poster-card {
  width: 170px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.top10-card-wrap:hover .top10-poster-card {
  transform: scale(1.06);
}

.top10-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   MODAL DE VISTA PREVIA RÁPIDA (NETFLIX PREVIEW DRAWER)
   ========================================================================== */

.preview-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9990;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.preview-modal-backdrop.active {
  display: flex;
}

.preview-modal-dialog {
  width: 100%;
  max-width: 820px;
  background: #14161f;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  animation: zoomIn 0.25s ease forwards;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.preview-hero-banner {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.preview-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #14161f 0%, rgba(20, 22, 31, 0.4) 60%, rgba(20, 22, 31, 0.8) 100%);
}

.preview-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* Grilla Catálogo */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Filtros */
.sf-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.8rem;
}

.filter-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.filter-search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.filter-search-box input:focus {
  border-color: var(--accent-red);
}

.filter-search-box .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-selects {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-selects select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: #1f2233;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
  .sf-navbar { padding: 0.8rem 1.5rem; }
  .carousel-row-container { padding: 1rem 1.5rem; }
  .sf-hero-consumer { padding: 3rem 1.5rem; }
  .sf-hero-title { font-size: 2.2rem; }
}

/* ==========================================================================
   NETFLIX EXPERIENCIA CINEMATOGRÁFICA IDÉNTICA (AUTHENTIC NETFLIX UI)
   ========================================================================== */

/* Brand & Logo */
.netflix-brand {
  font-family: 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #E50914 !important;
  text-decoration: none;
  letter-spacing: 0.8px;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(229, 9, 20, 0.5);
}

.netflix-brand span {
  color: #E50914;
}

/* Navbar Links */
.netflix-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.netflix-nav-menu li a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.netflix-nav-menu li a:hover {
  color: #b3b3b3;
}

.netflix-nav-menu li a.active {
  color: #ffffff;
  font-weight: 700;
}

/* Nav Derecha Secundaria */
.netflix-nav-secondary {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.search-widget-netflix {
  display: flex;
  align-items: center;
  position: relative;
}

.search-btn-netflix {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input-netflix {
  width: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  transition: width 0.35s ease, opacity 0.35s ease;
}

.search-widget-netflix.active .search-input-netflix,
.search-input-netflix:focus {
  width: 240px;
  opacity: 1;
  margin-left: 0.5rem;
}

.kids-link {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.kids-link:hover {
  color: #fff;
}

.notifications-btn {
  position: relative;
  cursor: pointer;
  font-size: 1.1rem;
  color: #e5e5e5;
  transition: color 0.2s ease;
}

.notifications-btn:hover {
  color: #fff;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #E50914;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Profile Square & Caret */
.profile-menu-container {
  position: relative;
  cursor: pointer;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar-square {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.caret-down {
  font-size: 0.65rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.profile-menu-container:hover .caret-down {
  transform: rotate(180deg);
}

.netflix-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 210px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  padding: 0.8rem 0;
  z-index: 1500;
}

.profile-menu-container:hover .netflix-dropdown,
.netflix-dropdown:hover {
  display: block;
}

.dropdown-profiles {
  padding: 0 0.8rem 0.6rem;
}

.dropdown-profile-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  text-decoration: none;
}

.dropdown-profile-item .avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-link:hover {
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-link.admin-link {
  color: #fca5a5;
  font-weight: 700;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 0;
}

/* ==========================================================================
   NETFLIX BILLBOARD (HERO BANNER)
   ========================================================================== */
.netflix-billboard {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  margin-bottom: -4rem;
}

.billboard-vignette-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0.1) 40%, rgba(20,20,20,0.7) 75%, #141414 100%);
  pointer-events: none;
}

.billboard-vignette-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(77deg, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.55) 35%, transparent 70%);
  pointer-events: none;
}

.billboard-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  padding-top: 5rem;
}

.billboard-original-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.n-symbol {
  color: #E50914;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}

.badge-type {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #e5e5e5;
  text-transform: uppercase;
}

.billboard-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.9rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
}

.billboard-rank-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.top10-ribbon {
  background: #E50914;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  text-align: center;
  border-radius: 2px;
  letter-spacing: -0.5px;
}

.top10-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.billboard-synopsis {
  font-size: 1.1rem;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 1.6rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.billboard-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-netflix-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #FFFFFF;
  color: #000000;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.65rem 1.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-netflix-play:hover {
  background: rgba(255, 255, 255, 0.75);
}

.btn-netflix-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(109, 109, 110, 0.7);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-netflix-info:hover {
  background: rgba(109, 109, 110, 0.4);
}

.billboard-right-corner {
  position: absolute;
  right: 0;
  bottom: 22%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 15;
}

.sound-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sound-toggle-btn:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.8);
}

.maturity-tag {
  background: rgba(51, 51, 51, 0.6);
  border-left: 3px solid #dcdcdc;
  padding: 0.4rem 1.8rem 0.4rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   NETFLIX FOOTER
   ========================================================================== */
.netflix-footer {
  max-width: 1000px;
  margin: 5rem auto 2rem;
  padding: 0 2rem;
  color: #808080;
  font-size: 0.82rem;
}

.netflix-footer a {
  color: #808080;
  text-decoration: none;
}

.netflix-footer a:hover {
  text-decoration: underline;
}

.footer-call {
  margin-bottom: 1.8rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #808080;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  background: transparent;
  color: #808080;
}

.footer-country {
  font-size: 0.75rem;
  color: #808080;
}

/* ==========================================================================
   CINEBOT IA & GOOGLE GEMINI 2.5 WIDGET
   ========================================================================== */

/* Botón Flotante CineBot */
.cinebot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, #e50914 0%, #8b5cf6 100%);
  color: #ffffff;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.45);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  animation: pulseFab 2.8s infinite;
}

.cinebot-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
}

@keyframes pulseFab {
  0%, 100% { box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(139, 92, 246, 0.7); }
}

/* Panel Flotante de Chat CineBot */
.cinebot-panel {
  display: none;
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(18, 20, 28, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.2);
  z-index: 9999;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cinebot-panel.active {
  display: flex;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cinebot-header {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cinebot-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cinebot-header-title .gemini-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.cinebot-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.cinebot-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cinebot-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.cinebot-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  border-radius: var(--radius-md);
  word-break: break-word;
}

.cinebot-msg.bot {
  align-self: flex-start;
  background: #1c202e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.cinebot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #e50914, #b20710);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

/* Chips de Preguntas Rápidas */
.cinebot-quick-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}
.cinebot-quick-chips::-webkit-scrollbar { display: none; }

.quick-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.quick-chip:hover {
  background: rgba(229, 9, 20, 0.25);
  border-color: #e50914;
  color: #fff;
}

.cinebot-input-bar {
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cinebot-input-bar input {
  flex: 1;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
}
.cinebot-input-bar input:focus {
  border-color: #8b5cf6;
}

.cinebot-send-btn {
  background: linear-gradient(135deg, #e50914, #8b5cf6);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.cinebot-send-btn:hover {
  transform: scale(1.08);
}

/* Indicador de escritura animado */
.cinebot-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
}
.cinebot-typing-dots span {
  width: 6px;
  height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.cinebot-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.cinebot-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Card de Análisis & Restricciones Gemini en Modal */
.gemini-audit-card {
  margin-top: 1.2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.gemini-audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.gemini-audit-header .title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gemini-reason-tag {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 0.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
