/* ============================================================
   ZhuraPelisHD — Estilo Magis TV / Cinematografico
   Video de fondo, cards grandes, efecto premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black:   #030305;
  --dark:    #07070f;
  --dark2:   #0c0c18;
  --card:    #10101f;
  --card2:   #141428;
  --red:     #e8001d;
  --red2:    #ff1a35;
  --red3:    #ff4d63;
  --silver:  #c0c0d0;
  --silver2: #7a7a9a;
  --white:   #f0f0fa;
  --border:  rgba(232,0,29,0.12);
  --border2: rgba(255,255,255,0.05);
  --glow:    0 0 40px rgba(232,0,29,0.5);
  --font-display: 'Orbitron', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ─────────────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); position: fixed;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
  box-shadow: 0 0 10px var(--red);
}
.cursor-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(232,0,29,0.5);
  position: fixed; pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: all 0.15s ease;
}
.cursor-ring.hovered {
  width: 50px; height: 50px;
  border-color: var(--red);
  background: rgba(232,0,29,0.08);
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 70px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(3,3,5,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: 2px; text-decoration: none;
  display: flex; align-items: center; gap: 0.3rem;
}
.logo-z { color: var(--white); }
.logo-p { color: var(--red); text-shadow: 0 0 20px rgba(232,0,29,0.6); }
.logo-hd {
  font-size: 0.5rem; background: var(--red); color: #fff;
  padding: 2px 5px; border-radius: 2px; letter-spacing: 2px;
  align-self: flex-start; margin-top: 1px;
}

.nav-links { display:flex; gap:0.5rem; list-style:none; }
.nav-links a {
  font-family: var(--font-ui);
  color: rgba(240,240,250,0.6); text-decoration:none;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 4px;
  transition: all 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 1rem; right: 1rem;
  height: 2px; background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

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

.search-wrap { position: relative; }
.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 2rem;
  color: var(--white); font-family: var(--font-body);
  font-size: 0.82rem; width: 200px; outline: none;
  transition: all 0.3s;
}
.search-input:focus {
  width: 260px; border-color: rgba(232,0,29,0.4);
  background: rgba(232,0,29,0.05);
}
.search-input::placeholder { color: var(--silver2); }
.search-icon-btn {
  position: absolute; left: 0.65rem; top: 50%;
  transform: translateY(-50%);
  color: var(--silver2); font-size: 0.8rem; pointer-events: none;
}

.autocomplete-box {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: rgba(10,10,20,0.97);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  z-index: 999; display: none; backdrop-filter: blur(20px);
}
.autocomplete-box.show { display: block; }
.ac-item {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.65rem 1rem; cursor: pointer;
  transition: background 0.15s;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border2);
}
.ac-item:hover { background: rgba(232,0,29,0.08); }
.ac-item:last-child { border-bottom: none; }
.ac-thumb {
  width: 36px; height: 54px; border-radius: 4px;
  object-fit: cover; background: var(--card); flex-shrink: 0;
}
.ac-title { font-size: 0.85rem; font-weight: 600; }
.ac-meta  { font-size: 0.7rem; color: var(--silver2); }
.ac-type  {
  margin-left: auto; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 1px; padding: 2px 6px; border-radius: 3px;
  background: var(--red); color: #fff; text-transform: uppercase; flex-shrink: 0;
}
.ac-type.serie { background: #4a00e0; }

.btn-login {
  font-family: var(--font-ui);
  background: var(--red); color: #fff; border: none;
  padding: 0.5rem 1.4rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 0 20px rgba(232,0,29,0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.btn-register {
  font-family: var(--font-ui);
  background: transparent; color: var(--silver);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.48rem 1.4rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-register:hover { border-color: var(--red); color: var(--white); }
.btn-user {
  font-family: var(--font-ui);
  background: rgba(232,0,29,0.1); color: var(--red);
  border: 1px solid var(--border); padding: 0.48rem 1.2rem;
  border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.btn-logout {
  background: none; border: none; color: var(--silver2);
  cursor: pointer; font-size: 0.8rem; text-decoration: none; transition: color 0.2s;
}
.btn-logout:hover { color: var(--red); }

/* ── HERO CON VIDEO DE FONDO ─────────────────────────────── */
.hero {
  height: 100vh; min-height: 700px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}

/* Video de fondo que se reproduce solo */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(1.4) blur(1px);
  transform: scale(1.05);
  animation: heroZoom 30s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.12) translateX(-2%); }
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  filter: brightness(0.28) saturate(1.4);
  animation: heroZoom 30s ease-in-out infinite alternate;
}

/* Overlays cinematograficos */
.hero-grad-left {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(3,3,5,1) 0%,
    rgba(3,3,5,0.92) 25%,
    rgba(3,3,5,0.6) 50%,
    rgba(3,3,5,0.1) 75%,
    transparent 100%
  );
}
.hero-grad-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  height: 40%; 
  background: linear-gradient(to top, rgba(3,3,5,1) 0%, transparent 100%);
}
.hero-grad-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: 120px;
  background: linear-gradient(to bottom, rgba(3,3,5,0.8) 0%, transparent 100%);
}

/* Efecto de scanlines cinematograficas */
.hero-film {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px
  );
}

/* Viñeta */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative; z-index: 3;
  padding: 0 5%; max-width: 700px;
  padding-top: 70px;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.2rem;
  animation: fadeSlide 0.6s ease both;
}
.hero-eyebrow-line {
  width: 40px; height: 2px;
  background: var(--red); box-shadow: 0 0 8px var(--red);
}
.hero-eyebrow-text {
  font-family: var(--font-display);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--red);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 0.88;
  letter-spacing: -2px; margin-bottom: 1.5rem;
  animation: fadeSlide 0.6s 0.1s ease both;
  text-shadow: 0 4px 60px rgba(0,0,0,0.9);
}

.hero-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
  animation: fadeSlide 0.6s 0.15s ease both;
}
.hero-pill {
  font-family: var(--font-ui);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  padding: 0.2rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.hero-pill.rating { color: #ffd700; border-color: rgba(255,215,0,0.3); background: rgba(255,215,0,0.06); }
.hero-pill.quality { color: var(--red); border-color: var(--border); background: rgba(232,0,29,0.08); }

.hero-overview {
  font-size: 0.95rem; line-height: 1.8;
  color: rgba(240,240,250,0.7);
  margin-bottom: 2.5rem; max-width: 520px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  animation: fadeSlide 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; align-items: center;
  animation: fadeSlide 0.6s 0.25s ease both;
}

.btn-hero-play {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--red); color: #fff; border: none;
  padding: 1rem 2.5rem; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 1rem; letter-spacing: 1px;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 8px 40px rgba(232,0,29,0.5);
  position: relative; overflow: hidden;
}
.btn-hero-play .play-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.btn-hero-play::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-hero-play:hover::after { transform: translateX(100%); }
.btn-hero-play:hover { transform: scale(1.04); box-shadow: 0 12px 50px rgba(232,0,29,0.7); }

.btn-hero-more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.98rem 2rem; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.25s;
  backdrop-filter: blur(8px);
}
.btn-hero-more:hover { background: rgba(255,255,255,0.15); }

/* Hero right side - poster flotante */
.hero-poster-float {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  z-index: 3; width: 260px;
  padding-top: 70px;
  animation: fadeSlide 0.8s 0.3s ease both;
  display: none;
}
@media (min-width:1200px) { .hero-poster-float { display: block; } }
.hero-poster-float img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(232,0,29,0.2);
}

/* Indicadores de navegacion del hero */
.hero-nav-dots {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; gap: 0.5rem; align-items: center;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { width: 24px; border-radius: 3px; background: var(--red); }

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

/* ── CATEGORIAS ──────────────────────────────────────────── */
.cats-section {
  padding: 2rem 3rem;
  background: linear-gradient(180deg, rgba(3,3,5,0) 0%, rgba(10,10,20,0.3) 100%);
}
.cats-row {
  display: flex; gap: 0.75rem; overflow-x: auto;
  padding-bottom: 0.5rem; scrollbar-width: none;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; color: var(--silver2);
  font-family: var(--font-ui); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 1px;
  transition: all 0.25s;
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(232,0,29,0.12);
  border-color: rgba(232,0,29,0.35);
  color: var(--white);
}
.cat-pill .cat-emoji { font-size: 1rem; }

/* ── MAIN / SECTIONS ─────────────────────────────────────── */
.main { padding: 0 0 5rem; }
.section { margin-bottom: 3.5rem; padding: 0 3rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border2);
}
.section-title {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.75rem;
}
.stbar {
  display: inline-block; width: 3px; height: 1.1rem;
  background: var(--red); box-shadow: 0 0 8px var(--red); border-radius: 2px;
}
.see-all {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--silver2); text-decoration: none; transition: all 0.2s;
}
.see-all:hover { color: var(--red); }
.count { color: var(--silver2); font-size: 0.75rem; font-family: var(--font-ui); }

/* ── GRID ────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* ── CARD TIPO MAGIS TV ──────────────────────────────────── */
.card {
  position: relative; border-radius: 10px;
  cursor: pointer; z-index: 1;
  transition: z-index 0s 0.3s;
}
.card:hover { z-index: 50; transition: z-index 0s 0s; }

.card-inner {
  border-radius: 10px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border2);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center bottom;
}
.card:hover .card-inner {
  transform: translateY(-8px) scale(1.06);
  border-color: rgba(232,0,29,0.3);
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 40px rgba(232,0,29,0.15);
  border-radius: 10px 10px 0 0;
}

.card-poster {
  width: 100%; aspect-ratio: 2/3;
  position: relative; overflow: hidden; background: var(--dark2);
}
.card-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.card:hover .card-poster img { transform: scale(1.08); }

.no-poster {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0015, #150020);
  color: rgba(232,0,29,0.25); gap: 0.5rem;
  font-size: 2.5rem;
}
.no-poster small { font-size: 0.55rem; color: var(--silver2); letter-spacing: 2px; font-family: var(--font-display); }

/* Overlay con play */
.card-play-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,3,5,0.97) 0%, rgba(3,3,5,0.2) 55%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.card:hover .card-play-overlay { opacity: 1; }

.card-play-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(232,0,29,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: 0 0 30px rgba(232,0,29,0.6);
  transform: scale(0.6); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 2px solid rgba(255,255,255,0.25);
}
.card:hover .card-play-circle { transform: scale(1); }

/* Badges */
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-family: var(--font-display);
  font-size: 0.5rem; font-weight: 700; letter-spacing: 1.5px;
  padding: 3px 7px; border-radius: 3px; text-transform: uppercase;
}
.badge-movie  { background: var(--red); color: #fff; }
.badge-series { background: #5b00d6; color: #fff; }

.card-rating {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,0.8); color: #ffd700;
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; backdrop-filter: blur(4px);
}

.card-price {
  position: absolute; bottom: 88px; left: 8px; z-index: 3;
  background: rgba(232,0,29,0.88); color: #fff;
  font-family: var(--font-display); font-size: 0.55rem; font-weight: 700;
  padding: 3px 8px; border-radius: 3px; letter-spacing: 1px;
}
.card-owned {
  position: absolute; bottom: 88px; left: 8px; z-index: 3;
  background: rgba(0,180,70,0.88); color: #fff;
  font-family: var(--font-display); font-size: 0.55rem; font-weight: 700;
  padding: 3px 8px; border-radius: 3px; letter-spacing: 1px;
}

/* Panel info expandible — tipo Magis TV */
.card-expand {
  background: var(--card2);
  border: 1px solid rgba(232,0,29,0.2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0; max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease,
              padding 0.35s ease;
  transform: translateY(-8px) scale(1.06);
  transform-origin: top center;
}
.card:hover .card-expand {
  max-height: 200px; opacity: 1;
  padding: 0.85rem;
}

.ce-title {
  font-family: var(--font-ui);
  font-size: 0.88rem; font-weight: 700; line-height: 1.2;
  margin-bottom: 0.3rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ce-meta {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.68rem; color: var(--silver2); margin-bottom: 0.5rem;
  font-family: var(--font-ui);
}
.ce-meta .rt { color: #ffd700; font-weight: 700; }
.ce-overview {
  font-size: 0.7rem; color: rgba(240,240,250,0.5); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.65rem;
}
.ce-btns { display: flex; gap: 0.4rem; }
.ce-btn-play {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--red); color: #fff; border: none;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; flex: 1;
}
.ce-btn-play:hover { background: var(--red2); }
.ce-btn-info {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(255,255,255,0.12); padding: 0.38rem 0.8rem;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  transition: all 0.2s; flex: 1;
}
.ce-btn-info:hover { background: rgba(255,255,255,0.15); }
.ce-btn-dl {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,215,0,0.1); color: #ffd700;
  border: 1px solid rgba(255,215,0,0.25); padding: 0.38rem 0.75rem;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  transition: all 0.2s; white-space: nowrap;
}
.ce-btn-dl:hover { background: #ffd700; color: #000; }

/* ── PAGINACION ──────────────────────────────────────────── */
.pagination {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-top: 3rem; flex-wrap: wrap;
}
.page-btn {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border2);
  color: var(--silver2); text-decoration: none; transition: all 0.2s;
}
.page-btn:hover { border-color: var(--red); color: var(--white); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 20px rgba(232,0,29,0.4); }

/* ── REPRODUCTOR FULLSCREEN ──────────────────────────────── */
#playerModal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: #000; flex-direction: column;
}
#playerModal.active { display: flex; }
.pm-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem;
  background: linear-gradient(180deg,rgba(0,0,0,0.9) 0%,transparent 100%);
}
.pm-title {
  font-family: var(--font-display); color: var(--white);
  font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
}
.pm-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(232,0,29,0.15); border: 1px solid rgba(232,0,29,0.3);
  color: var(--white); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.pm-close:hover { background: var(--red); transform: rotate(90deg); }
.pm-video-wrap { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
#mainVideo { width: 100%; height: 100vh; object-fit: contain; }

/* ── AUTH ────────────────────────────────────────────────── */
.auth-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,0,29,0.05) 0%, transparent 60%), var(--black);
}
.auth-wrap { text-align: center; width: 100%; max-width: 460px; padding: 2rem; }
.auth-logo { display: block; margin-bottom: 2rem; text-decoration: none; }
.auth-card {
  background: rgba(10,10,20,0.9); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 2.5rem; box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,0,29,0.1);
}
.auth-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: 3px; margin-bottom: 1.5rem; text-transform: uppercase;
}
.auth-error {
  background: rgba(232,0,29,0.08); border: 1px solid rgba(232,0,29,0.25);
  color: var(--red3); border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1rem;
}
.auth-link { margin-top: 1.5rem; font-size: 0.85rem; color: var(--silver2); }
.auth-link a { color: var(--red); text-decoration: none; }
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label {
  display: block; font-family: var(--font-display);
  font-size: 0.6rem; color: var(--silver2);
  margin-bottom: 0.4rem; letter-spacing: 2px; text-transform: uppercase;
}
.form-group input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 0.7rem 1rem; color: var(--white);
  font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: all 0.2s;
}
.form-group input:focus { border-color: rgba(232,0,29,0.4); background: rgba(232,0,29,0.03); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 0.85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 3px; text-transform: uppercase; cursor: pointer;
  margin-top: 0.5rem; transition: all 0.2s;
  box-shadow: 0 4px 30px rgba(232,0,29,0.4);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: var(--glow); }

/* ── DETALLE ─────────────────────────────────────────────── */
.detail-page { min-height: 580px; position: relative; padding-top: 70px; }
.detail-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  filter: brightness(0.22) saturate(1.4); z-index: 0;
}
.detail-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(3,3,5,0.98) 35%, rgba(3,3,5,0.7) 65%, rgba(3,3,5,0.3) 100%),
    linear-gradient(to top, rgba(3,3,5,1) 0%, transparent 50%);
}
.detail-content {
  position: relative; z-index: 2;
  display: flex; gap: 3rem; align-items: flex-start;
  max-width: 1300px; margin: 0 auto; padding: 3rem 3rem;
}
.detail-poster {
  flex-shrink: 0; width: 260px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(232,0,29,0.15);
}
.detail-poster img { width: 100%; display: block; }
.no-poster-lg {
  width: 260px; height: 390px; background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; border-radius: 12px; color: rgba(232,0,29,0.2);
}
.detail-info { flex: 1; min-width: 0; }
.detail-type-badge {
  display: inline-block; font-family: var(--font-display);
  background: var(--red); color: #fff; font-size: 0.55rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; margin-bottom: 0.75rem;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 900;
  line-height: 0.9; letter-spacing: -1px; margin-bottom: 1rem;
}
.detail-meta {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--font-ui); font-size: 0.88rem;
  color: var(--silver2); margin-bottom: 1rem; flex-wrap: wrap;
}
.detail-overview {
  font-size: 0.9rem; color: rgba(240,240,250,0.7);
  line-height: 1.75; margin-bottom: 1.75rem; max-width: 600px;
}
.action-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.btn-play-main {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--red); color: #fff; border: none;
  padding: 0.85rem 2rem; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 30px rgba(232,0,29,0.4);
}
.btn-play-main:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15); padding: 0.83rem 1.5rem;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-download:hover { background: rgba(255,255,255,0.15); }
.btn-buy-dl {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #ffd700;
  border: 1px solid rgba(255,215,0,0.35); padding: 0.83rem 1.5rem;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; transition: all 0.2s;
}
.btn-buy-dl:hover { background: #ffd700; color: #000; }
.access-badge { color: #00c851; font-weight: 700; font-size: 0.85rem; font-family: var(--font-ui); }

/* ── EPISODIOS ───────────────────────────────────────────── */
.episodes-section { max-width: 1300px; margin: 0 auto; padding: 0 3rem 3rem; }
.episodes-container { background: rgba(10,10,20,0.8); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); }
.season-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border2); }
.episodes-title { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.season-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.season-tab { font-family: var(--font-display); padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; background: var(--card); border: 1px solid var(--border2); color: var(--silver2); transition: all 0.2s; }
.season-tab:hover { border-color: rgba(232,0,29,0.4); color: var(--white); }
.season-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.download-notice { display: flex; align-items: center; justify-content: space-between; background: rgba(232,0,29,0.04); border-bottom: 1px solid rgba(232,0,29,0.12); padding: 0.85rem 1.5rem; font-size: 0.82rem; color: rgba(232,0,29,0.8); gap: 1rem; flex-wrap: wrap; font-family: var(--font-ui); }
.download-active { background: rgba(0,180,70,0.05); border-color: rgba(0,180,70,0.15); color: #00c851; }
.btn-buy-sm { font-family: var(--font-display); background: var(--red); color: #fff; padding: 0.35rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; transition: all 0.2s; }
.btn-buy-sm:hover { background: var(--red2); }
.episodes-list { padding: 0.75rem; }
.episode-row { display: flex; gap: 1rem; align-items: center; padding: 0.65rem; border-radius: 8px; border: 1px solid transparent; transition: all 0.2s; margin-bottom: 0.4rem; }
.episode-row:hover { background: rgba(232,0,29,0.04); border-color: rgba(232,0,29,0.15); }
.ep-active { border-color: var(--red) !important; background: rgba(232,0,29,0.06) !important; }
.ep-thumb { width: 130px; height: 74px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--dark2); position: relative; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.episode-row:hover .ep-thumb img { transform: scale(1.05); }
.ep-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; cursor: pointer; font-size: 1.5rem; }
.ep-thumb:hover .ep-play-overlay { opacity: 1; }
.ep-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--silver2); }
.ep-info { flex: 1; min-width: 0; }
.ep-label { font-family: var(--font-display); font-size: 0.58rem; font-weight: 700; color: var(--red); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.2rem; }
.ep-title { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.ep-btn-play { font-family: var(--font-ui); background: var(--red); color: #fff; border: none; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.ep-btn-play:hover { background: var(--red2); }
.ep-btn-dl { background: var(--card); color: var(--white); border: 1px solid var(--border2); padding: 0.35rem 0.9rem; border-radius: 999px; text-decoration: none; font-size: 0.75rem; transition: all 0.2s; }
.ep-btn-dl:hover { background: rgba(255,255,255,0.1); }
.ep-locked { font-size: 0.9rem; color: var(--silver2); padding: 0.35rem 0.5rem; }

/* ── CHECKOUT ────────────────────────────────────────────── */
.checkout-wrap { display: flex; justify-content: center; padding: 6rem 1rem 3rem; min-height: 100vh; }
.checkout-card { background: rgba(10,10,20,0.95); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 520px; height: fit-content; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.checkout-item { display: flex; gap: 1rem; align-items: center; background: rgba(232,0,29,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin-bottom: 2rem; }
.checkout-poster { width: 60px; height: 90px; border-radius: 6px; object-fit: cover; }
.checkout-item-title { font-family: var(--font-ui); font-weight: 700; margin-bottom: 0.25rem; font-size: 1rem; }
.checkout-item-type { font-size: 0.75rem; color: var(--silver2); margin-bottom: 0.5rem; }
.checkout-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.checkout-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 1.5rem; text-transform: uppercase; }
.checkout-secure { text-align: center; font-size: 0.75rem; color: var(--silver2); margin-top: 1rem; }
.checkout-back { display: block; text-align: center; margin-top: 1.5rem; color: var(--silver2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.checkout-back:hover { color: var(--white); }

/* ── PROFILE ─────────────────────────────────────────────── */
.profile-wrap { max-width: 900px; margin: 0 auto; padding: 6rem 3rem 3rem; }
.profile-header { display: flex; gap: 1.5rem; align-items: center; background: rgba(10,10,20,0.8); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; backdrop-filter: blur(10px); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; font-weight: 900; flex-shrink: 0; box-shadow: 0 0 30px rgba(232,0,29,0.4); }
.profile-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: 1px; }
.profile-email, .profile-since { color: var(--silver2); font-size: 0.85rem; }
.rentals-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.rental-card { display: flex; align-items: center; justify-content: space-between; background: rgba(10,10,20,0.8); border: 1px solid var(--border2); border-radius: 8px; padding: 1rem 1.25rem; transition: border-color 0.2s; }
.rental-card:hover { border-color: rgba(232,0,29,0.25); }
.rental-title { font-family: var(--font-ui); font-weight: 700; margin-bottom: 0.2rem; }
.rental-type, .rental-date { font-size: 0.75rem; color: var(--silver2); }
.btn-play-sm { font-family: var(--font-display); background: var(--red); color: #fff; padding: 0.4rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; transition: all 0.2s; }
.btn-play-sm:hover { background: var(--red2); }
.empty-state { text-align: center; padding: 3rem; color: var(--silver2); }
.btn-buy { font-family: var(--font-display); display: inline-block; background: var(--red); color: #fff; padding: 0.7rem 1.8rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; transition: all 0.2s; box-shadow: 0 4px 20px rgba(232,0,29,0.3); }
.btn-buy:hover { background: var(--red2); transform: translateY(-1px); }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: rgba(10,10,20,0.8); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--red); }
.stat-label { font-family: var(--font-ui); font-size: 0.72rem; color: var(--silver2); text-transform: uppercase; letter-spacing: 2px; margin-top: 0.25rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; background: rgba(10,10,20,0.5); color: var(--silver2); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border); font-family: var(--font-display); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border2); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(232,0,29,0.02); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--dark); border-top: 1px solid var(--border); padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; letter-spacing: 3px; margin-bottom: 0.5rem; }
.footer-logo .r { color: var(--red); text-shadow: 0 0 20px rgba(232,0,29,0.5); }
.footer-copy { color: var(--silver2); font-size: 0.72rem; font-family: var(--font-ui); letter-spacing: 1px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:900px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .section, .episodes-section, .detail-content, .profile-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-content { padding: 0 1.5rem; padding-top: 70px; }
  .hero { height: 80vh; }
  .detail-content { flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .cats-section { padding: 1.5rem; }
}
@media (max-width:600px) {
  .grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 0.75rem; }
  .ep-thumb { width: 90px; height: 52px; }
}
