/* Página de catálogo */
.page--catalog {
  padding: 3rem 5vw 4rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-main);
}

/* Hero superior */
.hero {
  background: radial-gradient(circle at top left, #0b1220, #020617);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-kicker {
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #60a5fa;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0.4rem 0 0.9rem;
}

.hero-subtitle {
  max-width: 36rem;
  color: #cbd5f5;
  line-height: 1.6;
}

.hero-birdy {
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 211, 238, 0.7);
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.hero-birdy-label {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-birdy-text {
  font-weight: 600;
}


/* Estado vacío */
.empty-state {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px dashed var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  max-width: 32rem;
}

.empty-state-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #3b82f6;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .page--catalog {
    padding: 2rem 1.5rem 3rem;
  }

  .hero {
    padding: 1.6rem 1.4rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}


/* ===== PÁGINA DETALLE PELI ===== */

.page--movie {
  padding: 2.5rem 3rem;
  color: #f9fafb;
  background: radial-gradient(circle at top left, rgba(31, 64, 104, 0.9), #020617);
}

.movie-detail-hero {
  margin-bottom: 2rem;
  max-width: 56rem;
}

.movie-detail-title {
  font-size: 2.3rem;
  margin: 0.2rem 0;
}

.movie-detail-year {
  font-weight: 400;
  color: #9ca3af;
}

.movie-detail-meta {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

.movie-detail-synopsis {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Layout principal: vídeo + sidebar */
.movie-detail-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .movie-detail-body {
    flex-direction: column;
  }

  .movie-detail-main,
  .movie-detail-aside {
    width: 100%;
  }
}


.movie-detail-main {
  flex: 2 1 480px;
}

.movie-detail-video-wrapper {
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.movie-detail-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 60vh;      /* limita altura */
  object-fit: contain;   /* no recorta */
}

/* Selector de audio */
.movie-detail-audio {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.movie-detail-audio label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.movie-detail-audio select {
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.25rem 0.9rem;
  color: #f9fafb;
  font-size: 0.85rem;
}

/* Sidebar */
.movie-detail-aside {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.movie-detail-poster {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
}

.movie-detail-facts {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.movie-detail-facts dt {
  font-weight: 600;
  color: #9ca3af;
}

.movie-detail-facts dd {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .page--movie {
    padding: 1.8rem 1.3rem;
  }

  .movie-detail-body {
    flex-direction: column;
  }
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  color: #0b1120;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}
.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.founders-cta {
  margin-top: 1.5rem;
}

.btn-founders {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: radial-gradient(circle at top left, #0ea5e9, #22c55e);
  color: #0b1120;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.65);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, filter 140ms ease-out;
}

.btn-founders:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

/* ========= LAYOUT GENERAL ========= */

.rc-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617, #000814);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Inter", sans-serif;
  color: #e5e7eb;
}

.rc-main {
  padding-top: 4.5rem;  /* para que no se pegue al header fijo */
}

/* ========= CABECERA TIPO NETFLIX ========= */

.rc-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4rem;
  display: flex;
  align-items: center;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.0));
  backdrop-filter: blur(10px);
}

.rc-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.rc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.rc-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0ea5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #020617;
}

.rc-logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.rc-logo-dot {
  color: #38bdf8;
}

/* Zona derecha */

.rc-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Selector de idioma */

.rc-lang-form {
  margin: 0;
}

.rc-lang-select {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

/* Botones */

.rc-btn {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.rc-btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.rc-btn-outline {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.rc-btn-primary {
  background: #e50914;               /* guiño a Netflix */
  border-color: #e50914;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.6);
}

.rc-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Responsive */

@media (max-width: 768px) {
  .rc-header-inner {
    padding: 0 1rem;
  }

  .rc-header-right {
    gap: 0.4rem;
  }

  .rc-btn {
    padding: 0.35rem 0.8rem;
  }

  .rc-logo-text {
    font-size: 0.9rem;
  }
}


/* Ajustes ficha de película */

.movie-detail-video-wrapper {
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
  max-height: 60vh;         /* límite de altura */
}

.movie-detail-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;      /* que no recorte la imagen del vídeo */
}

/* En móvil que todo vaya en columna (ya lo tienes, lo remarcamos) */
@media (max-width: 900px) {
  .page--movie {
    padding: 1.8rem 1.3rem;
  }

  .movie-detail-body {
    flex-direction: column;
  }
}


.hero-sponsor {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.8);
  backdrop-filter: blur(12px);
}

.hero-sponsor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7dd3fc;
}

.hero-sponsor-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* === GRID DE PELÍCULAS =================================== */

.movie-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.movie-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.95);
}

/* Contenedor del póster con proporción fija tipo frame de vídeo */
.poster-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;   /* antes 2 / 3: esto hace que no se vean tan “alargadas” */
  max-height: 260px;      /* límite de altura para que no se vayan al infinito */
}

/* Imagen y vídeo ocupan siempre el contenedor sin deformarse */
.poster-wrapper img,
.poster-wrapper .trailer-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vídeo por encima del póster pero oculto hasta hover */
.trailer-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.poster-wrapper:hover .trailer-preview {
  opacity: 1;
}

/* Info debajo del póster */
.movie-info {
  padding: 0.1rem 0.85rem 0.9rem;
}

.movie-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.movie-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.movie-genre {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #a5b4fc;
}

/* Fallback si no hay póster */
.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #e5e7eb;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
