/*
Theme Name: StreamXXXMovies
*/

/* =========================
   BASE
========================= */

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.05), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.04), transparent 40%),
    linear-gradient(180deg, #0a0a0a 0%, #000000 100%);

  animation: grayGlow 12s ease-in-out infinite alternate;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

@keyframes grayGlow {
  0% {
    background-position: 20% 10%, 80% 0%;
  }
  100% {
    background-position: 25% 15%, 75% 5%;
  }
}

header {
  position: fixed;
  top: 0;
}

.site-content,
.site-header {
  position: relative;
  z-index: 2;
}

.site-main {
  max-width: 100%;
  padding: 0;
}

/* CONTAINER */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
background: rgba(10,10,10,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}


/* 🔥 CONTENEDOR FLEX */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* 🔥 CLAVE */
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* LOGO */
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #22c55e;
  text-decoration: none;
}

.logo img,
.custom-logo {
  height: 26px !important;
  max-height: 26px !important;
  width: auto !important;
  object-fit: contain;
}

/* NAV CENTRADO REAL */
.main-nav {
  flex: 1; /* 🔥 esto es la clave */
  display: flex;
  justify-content: center;
  gap: 30px;
}

.main-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.main-nav a:hover {
  color: #ffffff;
}

.menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
}

.menu li a:hover {
  color: #fff;
}

.mobile-menu {
  display: none; /* 🔥 SIEMPRE oculto por defecto */
}

.menu-toggle {
  display: none; /* 🔥 solo aparecerá en mobile */
}

/* SEARCH */
.header-search {
  margin-left: 200px;
  padding-right:20px;	
}

.header-search form {
  display: flex;
  align-items: center;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 4px 10px;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 140px;
  font-size: 14px;
  padding: 6px 8px;
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: 6px;
  font-size: 14px;
}

.header-search form:hover {
  border-color: rgba(255,255,255,0.15);
}


/* =========================
   SECCIONES
========================= */

.section-row {
  margin: 40px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-left: 33px;
}

/* SCROLL */
.row-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

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

/* =========================
   MOVIE CARD
========================= */

.movie-card {
  width: 180px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
  display: block;
}

.movie-card:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top10-section .card-meta {
  display: none;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.card-info {
  margin-top: 6px;
}

.title {
  font-size: 13px;
  color: #e5e7eb;
}


/* =========================
   TOP 10
========================= */

.top10-section {
  margin-top: 120px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px;
  position: relative;
}

/* HEADER */
.top10-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.top10-big {
  font-family: 'Inter', sans-serif;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: transparent;
  -webkit-text-stroke: 2px #ff2a2a;
  line-height: 0.85;
  letter-spacing: -16px;
}

.top10-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #cfcfcf;
}

.top10-sub span {
  line-height: 1.2;
}

/* WRAPPER */
.top10-wrapper {
  overflow: hidden;
  position: relative;
}

/* ROW */
.top10-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 60px;
  scroll-behavior: smooth;
}

.top10-row::-webkit-scrollbar {
  display: none;
}

/* ITEMS */
.top10-item {
  flex: 0 0 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

/* NUMBERS */
.top10-number {
font-family: 'Inter', sans-serif;
  position: absolute;
  left: -65px;
  bottom: -8px;
  font-size: 120px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #ff2a2a;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  line-height: 0.96;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease, opacity 0.3s ease;
  letter-spacing: -6px;
  display: inline-block;
}

.top10-item:nth-child(10) .top10-number {
  letter-spacing: -27px;
	transform: translateX(-20px);
}

/* Poster stays above number */
.top10-item .movie-card {
  position: relative;
  z-index: 2;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
  transform-origin: left center;
  will-change: transform;
  pointer-events: auto;
}

/* Prevent flicker on moving container */
.top10-item {
  pointer-events: none;
}

.top10-item .movie-card,
.top10-item .card-link,
.top10-item .card-image,
.top10-item .card-overlay,
.top10-item .card-info {
  pointer-events: auto;
}

.top10-item::before {
  content: "";
  position: absolute;
  inset: -20px; /* 🔥 agranda zona hover */
}

/* ACTIVE CARD */
.top10-item:hover .movie-card {
  transform: perspective(1000px) rotateY(12deg) translateY(-10px) translateX(-10px);
  z-index: 8;
}

.top10-item:hover .top10-number {
  color: #ff2a2a;
  -webkit-text-stroke: 0;
  opacity: 1;
}

.top10-item:hover .card-image {
  box-shadow: -25px 40px 80px rgba(0,0,0,0.95);
}

/* NETFLIX-STYLE NEIGHBORS */
.top10-row:hover .top10-item {
  transform: translateX(0);
}

.top10-row .top10-item:hover + .top10-item {
  transform: translateX(18px);
}

.top10-row .top10-item:hover + .top10-item + .top10-item {
  transform: translateX(10px);
}

/* soften non-active cards slightly */
.top10-row:hover .top10-item:not(:hover) .movie-card {
  filter: brightness(0.92);
}

/* HIDE TITLE */
.top10-section .card-info {
  display: none;
}

/* =========================
   FLECHAS
========================= */

.top10-arrow {
  position: absolute;
  top: 0;
  bottom: 0; /* 🔥 ocupa todo el alto */
  width: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0)
  );

  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;

  z-index: 20;
  transition: all 0.3s ease;
}

/* IZQUIERDA */
.top10-arrow.left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0)
  );
}

/* DERECHA */
.top10-arrow.right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0)
  );
}

.top10-arrow:hover {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.1)
  );
}

.top10-arrow.right:hover {
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.1)
  );
}

.top10-arrow::before {
  content: "›";
  font-size: 32px;
  opacity: 0.9;
}

.top10-arrow.left::before {
  content: "‹";
}

/* =========================
   GRID
========================= */

.grid-movies {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-left: 32px;
  margin-right: 32px;
}

/* =========================
   LOAD MORE BUTTON PRO
========================= */

#load-more {
  display: block;
  margin: 40px auto;

  padding: 12px 28px;

  background: linear-gradient(135deg, #ff2a2a, #b30000);
  color: #fff;

  border: none;
  border-radius: 30px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.25s ease;

  box-shadow: 0 10px 30px rgba(255, 42, 42, 0.25);
}

/* HOVER */
#load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 42, 42, 0.4);
}

/* CLICK */
#load-more:active {
  transform: scale(0.95);
}

/* LOADING */
#load-more.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .grid-movies {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 🔥 MOBILE ÚNICO Y LIMPIO */
@media (max-width: 768px) {

  /* GRID */
  .grid-movies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px; /* espacio entre cards */
    padding: 0 12px;
  }

  .movie-card {
    width: 100%;
  }

  .movie-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* HEADER */
  .site-header {
    padding: 0 12px;
    height: 60px;
  }

  /* TOP 10 */
  .top10-section {
    margin-top: 80px;
    padding: 20px 10px;
  }

  .top10-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .top10-big {
    font-size: 60px;
    -webkit-text-stroke: 1.5px #ff2a2a;
	letter-spacing: -2px;
  }

  .top10-sub {
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 10px;
  }

  /* 🔥 SLIDER */
  .top10-row {
  display: flex;
  gap: 24px;
  padding: 0 16px; /* 🔥 importante: simétrico */
  box-sizing: border-box;
	  padding-left: 24px;
	   padding-right: 16px;
	  scroll-behavior: smooth;
}

  /* 🔥 SOLO 2 ITEMS (CLAVE) */
  .top10-item {
    flex: 0 0 calc((100% - 24px) / 2);
	   padding-left: 14px;
  }

  /* 🔥 REDUCIR IMAGEN PARA MOSTRAR NÚMERO */
  .top10-item .movie-card {
    width: 78%;
    margin-left: 8px;
  }

  /* 🔥 NÚMERO VISIBLE */
  .top10-number {
    font-size: 120px;
    left: -28px;
    bottom: -14px;
    -webkit-text-stroke: 1.5px #ff2a2a;
    opacity: 0.9;
	  z-index: 1;

  }
	
.movie-card {
  position: relative;
  z-index: 2;
}

.top10-item:nth-child(10) .top10-number {
  letter-spacing: -24px;
	transform: translateX(-20px);
}
	
  /* 🔥 DESACTIVAR HOVER */
  .top10-item:hover .movie-card {
    transform: none;
  }

  .top10-item:hover .card-image {
    box-shadow: none;
  }

  /* FLECHAS */
  .top10-arrow {
    width: 40px;
    font-size: 20px;
  }
	
  .top10-wrapper {
  overflow: hidden;
}

}

.badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 5;
  background: rgba(0,0,0,0.8);
  color: #fff;
}

.badge-top.q-4k { background: gold; color: #000; }
.badge-top.q-hd { background: #111; color: #fff; }
.badge-top.q-sd { background: red; color: #fff; }

/* =========================
   TITLE OVERLAY (TOP10)
========================= */

.card-title-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 34px; /* 🔥 espacio para el meta debajo */

  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  color: #fff;

  display: -webkit-box;
  -webkit-line-clamp: 1; /* 🔥 SOLO 1 LÍNEA */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 🔥 SOLO EN TOP10 (opcional si quieres limitar) */
.top10-section .card-title-overlay {
  font-size: 12px;
}

/* =========================
   META (AÑO + DURACIÓN)
========================= */

.card-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;

  z-index: 3; /* 🔥 SUBE CAPA */
  font-size: 12px;
  font-weight: 500;
  color: #ffffff; /* 🔥 MÁS CONTRASTE */
  opacity: 0.9;
  display: flex;
  gap: 6px;
}

.card-meta span::after {
  content: "•";
  margin-left: 6px;
}

.card-meta span:last-child::after {
  content: "";
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 20%,   /* 🔥 más suave */
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.2) 60%,
    transparent 80%
  );
}

.movie-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.movie-player iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-info-box {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-item {
  font-size: 14px;
  color: #e5e7eb;
}

.info-item strong {
  color: #9ca3af;
  margin-right: 6px;
}

/* =========================
   FIX MOBILE HEADER
========================= */

@media (max-width: 768px) {

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px; /* 🔥 aire lateral */
  }

  /* ☰ */
  .menu-toggle {
    display: block;
    font-size: 22px;
    z-index: 3;
    margin-right: 6px;
  }

  /* 🔥 ocultar menú desktop */
  .main-nav {
    display: none;
  }

  /* 🔥 logo centrado REAL */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  /* 🔍 search derecha */
  .header-search {
    position: relative;
    margin-left: 6px;
	margin-right: 10px;
    z-index: 3;
  }

  /* 🔥 CAJA BUSCADOR */
  .search-box {
    position: fixed;
    top: 70px;
    right: 14px;

    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    padding: 12px;
    width: 85%;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;

    z-index: 999;
  }

  .search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
  }

.search-box input::placeholder {
  color: #9ca3af;
}
	
.search-box input:focus {
  border-color: #22c55e;
}

  .search-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* 🔥 MENU MOBILE (CORREGIDO) */
  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;

    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.05);

    display: none;
    flex-direction: column;
    padding: 10px 16px;

    z-index: 998;
  }

  .mobile-menu a {
    color: #e5e7eb;
    padding: 12px 0;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .mobile-menu.active {
    display: flex;
  }

/* 🔥 FIX SEARCH MOBILE (igual a desktop) */
.search-toggle {
  all: unset;

  display: inline-flex !important; /* 🔥 fuerza horizontal */
  align-items: center;
  gap: 6px;

  cursor: pointer;

  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
  
  white-space: nowrap; /* 🔥 evita salto de línea */
}

/* ICONO */
.search-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* HOVER */
.search-toggle:hover {
  color: #ff2a2a;
}

}


/* =========================
   SEARCH OVERLAY (YFLIX STYLE)
========================= */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;

  z-index: 9999;
}

/* ACTIVO */
.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* CAJA */
.search-overlay-box {
  width: 90%;
  max-width: 600px;
}

/* FORM */
.search-overlay-box form {
  display: flex;
  align-items: center;
  gap: 10px;

  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  padding: 14px 18px;
}

/* ICONO */
.search-icon {
  font-size: 18px;
  opacity: 0.7;
}

/* INPUT */
.search-overlay-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
}

/* PLACEHOLDER */
.search-overlay-box input::placeholder {
  color: #9ca3af;
}

/* BOTÓN */
.search-overlay-box button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

/* 🔥 FIX FINAL SEARCH BUTTON (YFLIX STYLE) */

.header-search {
  display: flex;
  align-items: center;
}

/* RESET TOTAL */
.search-toggle {
  all: unset; /* 🔥 rompe todos los estilos anteriores */
  
  display: inline-flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;

  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;

  transition: color 0.2s ease;
}

/* ICONO */
.search-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* 🔥 HOVER YFLIX */
.search-toggle:hover {
  color: #ff2a2a;
}

.search-toggle:hover svg {
  transform: scale(1.1);
}

.live-results {
  margin-top: 14px;
  background: rgba(20,20,20,0.95);
  border-radius: 14px;
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: 0.2s;
}

.live-item:hover {
  background: rgba(255,255,255,0.05);
}

.live-item img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.live-info {
  display: flex;
  flex-direction: column;
}

.live-title {
  font-size: 14px;
  font-weight: 600;
}

.live-meta {
  font-size: 12px;
  color: #9ca3af;
}

.live-all {
  display: block;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.8;
}

.live-all:hover {
  opacity: 1;
}

/* =========================
   FINAL FIX SEARCH MOBILE (DEFINITIVO)
========================= */

@media (max-width: 768px) {

  .header-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
	

 	

  }

  .search-toggle {
    all: unset !important;

    display: inline-flex !important;
    flex-direction: row !important; /* 🔥 evita columna */
    align-items: center !important;
    gap: 0 !important;

    cursor: pointer;

    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
  }

  .search-toggle span {
    display: none !important;
	  
  }

  .search-toggle svg {
    width: 16px;
    height: 16px;
    display: inline-block;
  }
	
	.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
padding-left:6px;		
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
  display: block;
}

}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #050505;
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* LOGO */
.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 40px;
  width: auto;
}

/* TEXTO */
.footer-description {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* DISCLAIMER */
.footer-disclaimer {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* LINKS */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #ff2a2a;
}

/* COPYRIGHT */
.footer-copy {
  color: #6b7280;
  font-size: 12px;
}

/* 🔥 SPINNER */
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;

  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;

  animation: spin 0.6s linear infinite;
}

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

/* estado loading */
#load-more.loading .btn-text {
  display: none;
}

#load-more.loading .btn-loader {
  display: inline-block;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;

  background: #111; /* base */
}

/* 🔥 EFECTO BRILLO */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
  90deg,
  transparent,
  rgba(255, 42, 42, 0.15),
  transparent
);

  animation: skeleton-loading 1.2s infinite;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* =========================
   SINGLE LAYOUT
========================= */

.single-page {
  padding: 40px 20px;
}

.single-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* PLAYER */
.player-box iframe {
  width: 100%;
  height: 520px;
  border-radius: 12px;
}

/* SERVERS */
.servers {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.server-btn {
  background: #1a1a1a;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  color: #ccc;
  cursor: pointer;
  transition: 0.2s;
}

.server-btn.active,
.server-btn:hover {
  background: #ff2a2a;
  color: #fff;
}

/* RIGHT */
.single-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* POSTER */
.poster-small img {
  width: 100%;
  border-radius: 10px;
}

/* INFO BOX */
.info-box {
  background: #111827;
  padding: 15px;
  border-radius: 10px;
}

.info-box h1 {
  font-size: 18px;
  margin-bottom: 10px;
}

.meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

.description {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
}

/* SHARE */
.share-box {
  background: #1f2937;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.share-buttons a {
  background: #374151;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.share-buttons a:hover {
  background: #ff2a2a;
}

/* RELATED */
.related {
  margin-top: 40px;
}

@media (max-width: 768px) {

  .single-container {
    grid-template-columns: 1fr;
  }

  .player-box iframe {
    height: 250px;
  }

}

/* PLAYER COVER */
.player-cover {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  display: block;
}

/* BOTÓN PLAY */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;

  background: rgba(0,0,0,0.6);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: #fff;

  transition: 0.3s;
}

.play-button:hover {
  background: #ff2a2a;
}

/* POPUP AD */
.ad-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 350px;
  height: 250px;

  background: #000;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
}

.ad-popup.active {
  display: flex;
}

.ad-close {
  position: absolute;
  top: -10px;
  right: -10px;

  background: red;
  color: #fff;

  width: 25px;
  height: 25px;

  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}


#player-thumbnail {
  position: relative;
  cursor: pointer;
}

.big-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #fff;
}

#video-ad {
  display: none;
}

#video-ad.active {
  display: flex;
}

/* CONTENEDOR */
.watch-container {
  max-width: 1400px;
  margin: auto;
  padding: 40px;
  margin-top: 80px;
}

/* GRID */
.watch-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* PLAYER */
.watch-player {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

#player-thumbnail,
#video-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

#player-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  object-position: center top;
}

.watch-player iframe {
  width: 100%;
  height: 520px;
}

/* CONTROLES */
.player-controls {
  display: flex;
  gap: 20px;
  padding: 12px;
  font-size: 14px;
  color: #94a3b8;
}

/* SIDEBAR */
.watch-sidebar {
}

.sidebar-card {
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
}

.sidebar-poster img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.sidebar-card h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* BADGES */
.badges {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.badges span {
  background: #1e293b;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.imdb {
  background: #facc15;
  color: #000;
}

/* DESC */
.desc {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 15px;
}

/* META */
.meta p {
  font-size: 13px;
  margin-bottom: 6px;
}