/*
Theme Name: L7+ Streaming
Theme URI: https://l7plus.com
Description: Plataforma de streaming L7+. Tema independiente. Estilo basado en Vayvo con identidad L7+.
Author: L7+ / Eleven Creators
Version: 5.1.1
Requires at least: 6.3
Requires PHP: 8.1
Text Domain: l7plus
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:      #0d0d0d;
  --bg2:     #1e1d26;
  --bg3:     #16151c;
  --border:  rgba(255,255,255,.1);
  --gold:    #c9a84c;
  --gold-d:  #a8892f;
  --cyan:    #c9a84c; /* alias intencional de --gold para retrocompatibilidad */
  --text:    #ffffff;
  --muted:   rgba(255,255,255,.65);
  --hh:      70px;
  --mw:      1200px;
  --ease:        .25s ease;
  --hero-overlap: 100px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fira Sans', 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: #fff; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

/* ============================================================
   LAYOUT — 1200px como Vayvo
   ============================================================ */
.l7w { max-width: var(--mw); margin: 0 auto; padding: 0 28px; }
#l7-page { padding-top: var(--hh); }

/* ============================================================
   HEADER — 70px como Vayvo
   ============================================================ */
#l7h {
  position: fixed; top: 0; left: 0; right: 0;
  min-height: var(--hh);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
#l7h.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.6); }
.l7hi {
  display: flex; align-items: center;
  min-height: var(--hh);
  max-width: var(--mw); margin: 0 auto;
  padding: 10px 28px; /* padding vertical para respirar */
}
.l7-logo { flex-shrink: 0; margin-right: 28px; }
.l7-logo a {
  display: flex; align-items: center;
  color: var(--cyan);
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: 2px;
}
.l7-logo a img, .l7-logo a svg, .l7-logo .custom-logo {
  width: auto !important; display: block;
}
/* La altura se controla vía inline style desde PHP (Ajustes → L7+ → Header) */
.l7-logo .custom-logo-link { display: flex; align-items: center; }
.l7-logo .custom-logo-link img { max-width: 240px; }

/* Nav */
.l7-nav { display: flex; align-items: center; height: 100%; flex: 1; gap: 0; }
.l7-nav a {
  display: flex; align-items: center; height: 100%;
  padding: 0 16px;
  color: var(--muted);
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500;
  position: relative; transition: color var(--ease);
}
.l7-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--cyan);
  transform: scaleX(0); transition: transform var(--ease);
}
.l7-nav a:hover { color: #fff; }
.l7-nav a:hover::after, .l7-nav a.current-menu-item::after { transform: scaleX(1); }
.l7-nav a.current-menu-item { color: #fff; }

/* Header actions */
.l7-ha { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.l7-sbtn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: none; border: none; color: var(--muted);
  font-size: 15px; cursor: pointer; border-radius: 4px;
  transition: color var(--ease), background var(--ease);
}
.l7-sbtn:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Perfil */
.l7-prof { position: relative; }
.l7-pbtn {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  border-radius: 60px;
  padding: 8px 16px 8px 8px;
  color: #fff; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.l7-pbtn:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.l7-av-photo {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.3);
}
.l7-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cyan); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.l7-chev { font-size: 9px; opacity: .45; transition: transform var(--ease); }
.l7-prof.open .l7-chev { transform: rotate(180deg); }
.l7-drop {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  overflow: hidden; z-index: 200;
}
.l7-prof.open .l7-drop { display: block; }
.l7-drop a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease), background var(--ease);
}
.l7-drop a:last-child { border-bottom: none; }
.l7-drop a:hover { color: #fff; background: rgba(255,255,255,.04); }
.l7-drop a i { width: 16px; text-align: center; font-size: 13px; }

/* CTA no logueado */
.l7-hlogin {
  color: var(--muted); font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500; padding: 10px 14px;
  transition: color var(--ease);
}
.l7-hlogin:hover { color: #fff; }
.l7-hbuy {
  background: transparent; color: #fff !important;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 11px 30px; border-radius: 60px;
  border: 2px solid #fff !important;
  transition: border-color var(--ease), color var(--ease);
}
.l7-hbuy:hover { border-color: var(--cyan) !important; color: var(--cyan) !important; }

/* Hamburger */
.l7-hbg {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 42px; height: 42px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.l7-hbg span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: all .25s;
}
.l7-hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.l7-hbg.open span:nth-child(2) { opacity: 0; }
.l7-hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
#l7-mnav {
  display: none; position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0;
  background: var(--bg3); z-index: 999; overflow-y: auto;
  border-top: 1px solid var(--border);
}
#l7-mnav.open { display: block; }
.l7-mni { padding: 24px 28px; }
#l7-mnav a {
  display: block; font-size: 20px; font-weight: 600; letter-spacing: 1px;
  color: var(--muted); padding: 14px 0;
  border-bottom: 1px solid var(--border); transition: color var(--ease);
}
#l7-mnav a:hover { color: var(--cyan); }

/* Search panel */
#l7-sp {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 18px 28px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#l7-sp.open { display: block; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.l7-sw { position: relative; }
.l7-si { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.l7-sinput {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; color: #fff; padding: 14px 44px;
  font-size: 16px; font-weight: 300; outline: none; transition: border-color var(--ease);
}
.l7-sinput:focus { border-color: var(--cyan); }
.l7-sinput::placeholder { color: var(--muted); }
.l7-sclear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: color var(--ease); }
.l7-sclear:hover { color: #fff; }
.l7-sf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.l7-fsel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; color: var(--muted); padding: 10px 32px 10px 14px;
  font-size: 14px; font-weight: 500; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none; min-width: 150px;
  transition: border-color var(--ease), color var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.l7-fsel:hover, .l7-fsel:focus { border-color: rgba(255,255,255,.3); color: #fff; }
.l7-fsel option { background: var(--bg2); }

/* ============================================================
   LOADER + SCROLL TOP
   ============================================================ */
#l7-ldr {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .4s, visibility .4s;
}
#l7-ldr.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.l7-ll { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 700; letter-spacing: 6px; color: var(--cyan); }
.l7-lb { width: 80px; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 2px; }
.l7-lbf { height: 100%; background: var(--cyan); animation: l7ld 1.2s ease-in-out infinite; }
@keyframes l7ld { 0% { width:0; margin-left:0 } 50% { width:60%; margin-left:20% } 100% { width:0; margin-left:100% } }
#l7-st { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--bg2); border: 1px solid var(--border); color: var(--muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--ease); z-index: 500; }
#l7-st.on { opacity: 1; visibility: visible; transform: translateY(0); }
#l7-st:hover { color: #fff; border-color: rgba(255,255,255,.3); }

/* ============================================================
   BOTONES — border-radius 60px como Vayvo
   ============================================================ */
.l7btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 16px;
  cursor: pointer; border: none;
  transition: all var(--ease); text-decoration: none;
  white-space: nowrap; border-radius: 60px;
}
.l7btn-gold {
  background: var(--cyan); color: #fff;
  padding: 16px 40px;
  border: 2px solid var(--cyan);
}
.l7btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: #fff; }
.l7btn-ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  padding: 16px 37px;
}
.l7btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.6); }

/* ============================================================
   WATCHLIST BTN
   ============================================================ */
.l7-wlbtn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500;
  color: #fff; background: transparent;
  border: 2px solid rgba(255,255,255,.35); border-radius: 60px;
  padding: 14px 30px; cursor: pointer; transition: all var(--ease);
}
.l7-wlbtn:hover, .l7-wlbtn.on {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6);
}

/* ============================================================
   HERO — 75vh como Vayvo, con gradiente base
   ============================================================ */
#l7-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background: #444 center/cover no-repeat;
  margin-bottom: calc(var(--hero-overlap) * -1);
  overflow: hidden;
}
#l7-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(13,13,13,.65) 0%, rgba(13,13,13,.25) 55%, transparent 100%),
    linear-gradient(
      to bottom,
      rgba(13,13,13,.35) 0%,
      transparent 20%,
      transparent 42%,
      rgba(13,13,13,.78) 72%,
      rgba(13,13,13,.97) 90%,
      rgba(13,13,13,1) 100%
    );
}
/* Transición suave al fondo de página */
#l7-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px; z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.l7-hc {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding-bottom: 72px;
}

/* Play button en hero — 100x100 como Vayvo */
#l7-hero-play {
  position: absolute;
  top: calc(50% - 85px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100px; height: 100px;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 42px;
  text-decoration: none;
  transition: all var(--ease);
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
#l7-hero-play i { margin-left: 5px; }
#l7-hero-play:hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(201,168,76,.35);
  transform: translateX(-50%) scale(1.08);
  color: #fff;
}

/* Título h1 en hero — 70px como Vayvo */
.l7-htitle {
  font-size: 70px; font-weight: 700; margin-bottom: 20px; line-height: 1.05;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
}

/* Logo PNG de serie — reemplaza el h1 cuando está configurado */
.l7-serie-logo {
  max-height: 150px; width: auto; max-width: 500px;
  display: block; margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 22px rgba(0,0,0,.9));
}
@media (max-width: 768px) {
  .l7-serie-logo { max-height: 80px; max-width: 280px; }
}

.l7-hmeta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  margin: 0 0 28px 0; padding: 0; list-style: none; width: 100%;
}
.l7-hmi {
  line-height: 1; margin: 0 14px 8px 0; padding: 0 14px 0 0;
  float: left; border-right: 2px solid rgba(255,255,255,.22);
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-weight: 500; color: rgba(255,255,255,.85); font-size: 20px;
}
.l7-hmi:last-child { border: none; margin-right: 0; padding-right: 0; }
/* Rating/clasificación badge en hmeta */
.l7-hmi-rat {
  display: inline-flex; align-items: center;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 3px 10px; border-radius: 3px;
  margin: 0 0 8px 0; line-height: 1.3; flex-shrink: 0;
}
/* Separador después del badge de clasificación */
.l7-hmi-sep {
  display: inline-block; width: 2px; height: 14px;
  background: rgba(255,255,255,.22);
  margin: 0 14px 6px 0; flex-shrink: 0; align-self: center;
}
/* Botón ⓘ info dentro del hmeta */
.l7-hmi-info {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 21px;
  padding: 0; margin: 0 0 6px 4px;
  display: inline-flex; align-items: center;
  transition: color .2s; flex-shrink: 0; line-height: 1;
}
.l7-hmi-info:hover { color: var(--gold); }
.l7-hdot { display: none; }
/* Separador entre rating y año — sin esto "5.02026" se ve pegado */
.l7-hmeta .l7-stars {
  margin: 0 16px 6px 0; padding: 0 16px 0 0;
  border-right: 2px solid rgba(255,255,255,.25);
  float: left;
}
.l7-hmi.gold { color: var(--gold); }
.l7-hmi.rating-badge {
  position: relative; top: -3px; left: 1px;
  display: inline-block; text-transform: uppercase;
  padding: 5px; font-size: 14px; line-height: 1;
  border: 1px solid #fff;
}
.l7-hgenres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.l7-gtag {
  font-size: 15px; color: rgba(255,255,255,.68);
  transition: color var(--ease);
}
.l7-gtag:after { content: ', '; }
.l7-gtag:last-child:after { display: none; }
.l7-hdesc { font-size: 16px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 28px; }
.l7-hactions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 0;
}

/* Descripción breve en el hero — ya no se usa en el hero, mantenida por compatibilidad */
.l7-hero-desc {
  font-size: 16px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,.78); max-width: 520px;
  margin-bottom: 24px;
}

/* Animación de entrada del hero — fade + slide-up */
@keyframes l7heroSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.l7-hc .l7-eyebrow,
.l7-hc .l7-htitle,
.l7-hc .l7-hmeta,
.l7-hc .l7-hero-desc,
.l7-hc .l7-hactions { will-change: transform, opacity; }
.l7-hc .l7-eyebrow  { animation: l7heroSlideUp .55s ease both; animation-delay: .15s; }
.l7-hc .l7-htitle   { animation: l7heroSlideUp .55s ease both; animation-delay: .28s; }
.l7-hc .l7-hmeta    { animation: l7heroSlideUp .55s ease both; animation-delay: .38s; }
.l7-hc .l7-hero-desc { animation: l7heroSlideUp .55s ease both; animation-delay: .44s; }
.l7-hc .l7-hactions  { animation: l7heroSlideUp .55s ease both; animation-delay: .52s; }
@media (prefers-reduced-motion: reduce) {
  .l7-hc .l7-eyebrow, .l7-hc .l7-htitle, .l7-hc .l7-hmeta,
  .l7-hc .l7-hero-desc, .l7-hc .l7-hactions { animation: none; }
}

.l7-eyebrow {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500; color: var(--cyan);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}

/* ============================================================
   SERIE LAYOUT: sidebar 260px + main (como Vayvo)
   ============================================================ */
#l7-serie-layout {
  display: flex; flex-direction: row;
  gap: 0;
  padding-top: 0;
  position: relative;
  z-index: 2;
}
#l7-serie-main {
  float: right;
  width: calc(100% - 315px);
}
#l7-serie-sidebar {
  float: left;
  width: 260px;
  margin-right: 55px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--hh) + 20px);
}

/* Sidebar blocks — fondo #1e1d26 como Vayvo */
.l7-sb-block {
  margin-bottom: 2px;
  padding: 16px 20px;
  background: var(--bg2);
  border-radius: 4px;
}
.l7-sb-label {
  margin-bottom: 3px;
  font-size: 17px; font-weight: 500;
  color: #848db3;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  display: block;
}
.l7-sb-value { font-size: 15px; color: rgba(255,255,255,.85); }

/* ============================================================
   GRID DE SERIES — 2 columnas grandes como imagen adjunta
   ============================================================ */
#l7-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.l7-card { position: relative; overflow: hidden; display: block; background: #111; }
.l7-cthumb { position: relative; overflow: hidden; background: #222; aspect-ratio: 16/9; }
.l7-cthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.l7-card:hover .l7-cthumb img { transform: scale(1.04); }

/* Gradiente sobre imagen — exacto de Vayvo */
.l7-cov {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.95) 100%);
}
/* Border cian en hover — exacto de Vayvo */
.l7-cborder {
  position: absolute; inset: 0;
  border: 2px solid rgba(0,0,0,0);
  pointer-events: none; transition: border-color var(--ease); z-index: 4;
  width: calc(100% - 4px); height: calc(100% - 4px); top: 0; left: 0;
}
.l7-card:hover .l7-cborder { border-color: var(--cyan); }

/* Candado */
.l7-clock { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,.6); z-index: 3; }
.l7-clock.ok { color: var(--cyan); border-color: rgba(34,178,238,.4); }

/* Info sobre imagen — como Vayvo */
.l7-cinfo {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 24px 16px; z-index: 2;
}
/* Título tarjeta — 26px como Vayvo */
.l7-ctitle {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 500;
  color: #fff; margin-bottom: 0;
}
/* Estrellas en tarjeta */
.l7-cstars { margin: 3px 0 4px; }
/* Categoría en tarjeta — 15px, color rgba como Vayvo */
.l7-ccat {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; color: rgba(255,255,255,.68);
}
/* Meta (año, episodios) */
.l7-cmeta { display: flex; gap: 0; flex-wrap: wrap; margin-top: 2px; }
.l7-cmi {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 14px; color: rgba(255,255,255,.55);
  padding-right: 8px; margin-right: 8px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.l7-cmi:last-child { border-right: none; }
.l7-cmi.gold { color: var(--gold); }
.l7-cnothumb { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.12); font-size: 32px; }

/* Filtros Isotope — tabs como Vayvo (botones píldora) */
.l7-isof { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.l7-ifbtn {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--muted); background: transparent;
  border: none; border-radius: 60px; padding: 10px 24px;
  cursor: pointer; transition: all var(--ease);
}
.l7-ifbtn:hover { color: #fff; background: rgba(255,255,255,.07); }
.l7-ifbtn.on {
  background: var(--cyan); color: #fff;
  box-shadow: 0 4px 12px rgba(34,178,238,.3);
}
.l7-ifc { font-size: 13px; opacity: .6; margin-left: 4px; }

/* ============================================================
   EPISODIOS — lista 50/50 como Vayvo
   ============================================================ */
#l7-eps { padding: 2px 15px 60px; clear: both; }

/* Nav temporadas */
.l7-snav { display: flex; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.l7-snav::-webkit-scrollbar { display: none; }
.l7-stab {
  flex-shrink: 0;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 500;
  color: rgba(255,255,255,.6);
  padding: 18px 28px;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all var(--ease);
  background: none; border-left: none; border-right: none; border-top: none;
}
.l7-stab:hover { color: #fff; }
.l7-stab.on { color: #fff; border-bottom-color: var(--cyan); }

/* Lista episodios — flex 50/50 */
.l7-eplist { display: flex; flex-direction: column; gap: 0; }
.l7-epitem {
  display: flex; flex-direction: row; align-items: center;
  flex-wrap: wrap;
  padding: 24px 15px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer; transition: background var(--ease);
}
.l7-epitem:last-child { border-bottom: none; }
.l7-epitem:hover { background: rgba(255,255,255,.025); }
.l7-ethumb { width: 220px; flex-shrink: 0; padding-right: 20px; }
.l7-ethi { position: relative; border-radius: 2px; overflow: hidden; background: #222; aspect-ratio: 16/9; }
.l7-ethi img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.l7-epitem:hover .l7-ethi img { transform: scale(1.04); }
.l7-ethi::before {
  content: ''; display: block; position: absolute; width: 100%; height: 100%; bottom: -1px; left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
/* Play overlay episodio — 74x74 como Vayvo */
.l7-epo {
  display: block; position: absolute; inset: 0;
  text-align: center; opacity: 0; transition: opacity var(--ease); z-index: 2;
}
.l7-epitem:hover .l7-epo { opacity: 1; }
.l7-eppi {
  position: relative; top: calc(50% - 37px);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 100px; width: 74px; height: 74px;
  color: #fff; font-size: 27px;
  border: 3px solid rgba(255,255,255,.8);
  background: rgba(0,0,0,.2);
  box-shadow: 0 0 15px rgba(0,0,0,.2);
  transition: all var(--ease);
}
.l7-eppi i { margin-left: 5px; }
.l7-epitem:hover .l7-eppi { background: rgba(0,0,0,.4); border-color: #fff; box-shadow: 0 0 15px rgba(0,0,0,.5); }
.l7-efbadge { position: absolute; top: 8px; left: 8px; background: var(--cyan); color: #fff; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; z-index: 3; }
/* Número de episodio sobre thumbnail — bottom-left */
.l7-epnum-badge { position: absolute; bottom: 8px; left: 8px; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); background: rgba(0,0,0,.65); padding: 3px 8px; border-radius: 2px; z-index: 4; letter-spacing: .5px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.l7-elocked { position: absolute; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 28px; z-index: 2; }
.l7-einfo { flex: 1; min-width: 0; padding-left: 20px; display: flex; flex-direction: column; justify-content: center; }
/* Título episodio — 22px como Vayvo */
.l7-etitle {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 500; margin-bottom: 6px;
  color: #fff; display: block; text-decoration: none; transition: color var(--ease);
}
.l7-etitle:hover { color: var(--cyan); }
.l7-emeta { display: flex; flex-wrap: wrap; margin: 0 0 10px; padding: 0; list-style: none; }
.l7-emi {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; color: rgba(255,255,255,.65);
  margin: 0 8px 5px 0; padding: 0 8px 0 0;
  border-right: 2px solid rgba(255,255,255,.25); display: inline;
}
.l7-emi:last-child { border: none; margin-right: 0; padding-right: 0; }
.l7-emi.free { color: var(--cyan); }
.l7-emi.locked { color: rgba(255,255,255,.3); }
.l7-edesc { flex-basis: 100%; padding-left: 240px; font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
.l7-buycta { margin-top: 30px; padding: 28px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; text-align: center; }
.l7-buycta p { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 18px; }

/* ============================================================
   UNDER-HERO BLOCK — visible solo en ≤768px (debajo del hero)
   ============================================================ */
.l7-under-hero { display: none; background: var(--bg); padding: 20px 0 8px; }
.l7-uh-logo { max-height: 68px; max-width: 240px; margin-bottom: 12px; object-fit: contain; filter: drop-shadow(0 1px 10px rgba(0,0,0,.7)); }
.l7-uh-title {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.l7-uh-meta { margin-bottom: 14px; }
.l7-uh-meta .l7-hmi { font-size: 16px; margin-bottom: 4px; }
.l7-uh-meta .l7-hmi-rat { font-size: 13px; }
.l7-uh-playbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  background: rgba(255,255,255,.95); color: #0d0d0d;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: .5px;
  border: none; border-radius: 5px; text-decoration: none;
  cursor: pointer; transition: background .18s;
  margin-bottom: 10px;
}
.l7-uh-playbtn:hover { background: #fff; color: #0d0d0d; }
.l7-uh-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.l7-uh-actions .l7btn { font-size: 13px; padding: 10px 16px; }
.l7-uh-desc {
  font-size: 14px; line-height: 1.7; color: rgba(230,237,243,.7);
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 0;
}

/* ============================================================
   DESCRIPCIÓN EN MAIN CONTENT — desktop solo
   ============================================================ */
.l7-serie-desc-block {
  font-size: 15px; line-height: 1.8; color: rgba(230,237,243,.72);
  max-width: 660px; margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   EPISODIOS HEADER (serie + ⓘ) — como referencia Netflix
   ============================================================ */
.l7-eps-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.l7-eps-serie-name {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.l7-eps-info-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); font-size: 18px;
  padding: 0; display: inline-flex; align-items: center;
  transition: color .2s; flex-shrink: 0;
}
.l7-eps-info-btn:hover { color: var(--gold); }

/* ============================================================
   INFO MODAL — bottom-sheet en móvil, centrado en desktop
   ============================================================ */
#l7-info-modal {
  display: none; position: fixed; inset: 0; z-index: 9800;
  background: rgba(0,0,0,.72); align-items: flex-end;
  justify-content: center; padding: 0;
}
#l7-info-modal.open { display: flex; }
#l7-info-modal-box {
  background: #18181f; border-radius: 20px 20px 0 0;
  width: 100%; max-width: 600px;
  max-height: 85vh; overflow-y: auto;
  position: relative; padding: 28px 24px 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
#l7-info-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.12); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  color: rgba(255,255,255,.7); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
#l7-info-modal-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.l7-imod-title {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 20px; padding-right: 32px;
}
.l7-imod-section {
  text-align: center; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.l7-imod-section:last-child { border-bottom: none; }
.l7-imod-section-h {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.l7-imod-rat-badge {
  display: inline-block; border: 1.5px solid rgba(255,255,255,.5);
  padding: 4px 14px; border-radius: 3px;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}
.l7-imod-item {
  font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 6px;
}
.l7-imod-details { text-align: left; }
.l7-imod-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 14px;
}
.l7-imod-detail-row:last-child { border-bottom: none; }
.l7-imod-detail-row span:first-child { color: rgba(255,255,255,.45); }
.l7-imod-detail-row span:last-child { color: rgba(255,255,255,.8); font-weight: 500; }
@media (min-width: 769px) {
  #l7-info-modal {
    align-items: center;
    padding: 20px;
  }
  #l7-info-modal-box {
    border-radius: 14px;
    max-width: 480px;
  }
}

/* Label de sección — "Sinopsis", "Episodios", etc. */
.l7-section-label {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; display: block;
}

/* Badge "EN REPRODUCCIÓN" en lista de episodios */
.l7-now-playing-badge {
  display: inline-flex; align-items: center;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 2px; padding: 3px 8px; margin-left: 8px;
  vertical-align: middle; white-space: nowrap; flex-shrink: 0;
}

/* Episodio actual en lista */
.l7-ep-current { background: rgba(34,178,238,.04); border-left: 3px solid var(--cyan) !important; cursor: default !important; }

/* ============================================================
   EPISODIO INDIVIDUAL — player/gate
   ============================================================ */
#l7-ep-top { position: relative; background: #000 center/cover no-repeat; }
#l7-ep-top-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,13,13,.15), rgba(13,13,13,.8)); z-index: 1; pointer-events: none; }
#l7-ep-player-wrap { position: relative; z-index: 2; width: 100%; }
#l7-ep-player { width: 100%; aspect-ratio: 16/9; background: #000; display: block; position: relative; }
#l7-ep-player iframe { width: 100%; height: 100%; border: none; display: block; }
/* .l7-player-wrap es el wrapper que genera l7_player() en functions.php.
   Sin position:absolute, height:100% del iframe no resuelve → el iframe queda en 150px (default HTML). */
.l7-player-wrap { position: absolute; inset: 0; }
.l7-player-wrap iframe,
.l7-player-wrap video { width: 100%; height: 100%; border: none; display: block; }
/* ============================================================
   PLYR — overrides tema L7+ (dark/gold)
   ============================================================ */
.plyr--video {
  --plyr-color-main: #c9a84c;
  --plyr-video-background: #000;
  --plyr-font-family: 'Fira Sans', sans-serif;
  --plyr-font-size-base: 14px;
  --plyr-font-size-small: 12px;
  --plyr-control-icon-size: 16px;
  --plyr-control-spacing: 10px;
  --plyr-range-fill-background: #c9a84c;
  --plyr-video-controls-background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
  --plyr-menu-background: rgba(13,13,13,.97);
  --plyr-menu-color: #fff;
  --plyr-menu-border-color: rgba(255,255,255,.1);
  --plyr-menu-shadow: 0 4px 24px rgba(0,0,0,.7);
  --plyr-badge-background: #c9a84c;
  --plyr-badge-text-color: #000;
  --plyr-tooltip-background: rgba(13,13,13,.95);
  --plyr-tooltip-color: #fff;
}
#l7-ep-player .plyr { width: 100%; height: 100%; }
#l7-ep-player .plyr--video { border-radius: 0; background: #000; }
.plyr__control--overlaid {
  background: rgba(201,168,76,.9) !important;
  padding: 20px !important;
}
.plyr__control--overlaid:hover { background: #c9a84c !important; }
.plyr__control--overlaid svg { width: 22px; height: 22px; }
/* Menú de ajustes (calidad / velocidad) */
.plyr__menu__container { border-radius: 8px; }
.plyr__menu__container [role="menuitemradio"][aria-checked="true"]::before { background: #c9a84c; }

#l7-ep-top { background-color: #000; }
#l7-ep-gate-wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 32px; }

#l7-ep-gate { background: rgba(13,13,13,.9); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; max-width: 540px; width: 100%; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* ============================================================
   CATÁLOGO HEADER
   ============================================================ */
#l7-cath { background: var(--bg); border-bottom: 1px solid var(--border); padding: 60px 0 48px; }
.l7-catey { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.l7-catt { font-size: clamp(40px, 6vw, 72px); font-weight: 700; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; color: #fff; margin-bottom: 12px; }
.l7-cats { font-size: 16px; color: rgba(255,255,255,.6); max-width: 480px; }

/* Sin resultados */
.l7-nores { text-align: center; padding: 80px 0; }
.l7-nores i { font-size: 40px; color: rgba(255,255,255,.15); display: block; margin-bottom: 20px; }
.l7-nores h3 { font-size: 22px; font-weight: 500; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.l7-nores p { color: rgba(255,255,255,.3); font-size: 15px; }

/* ============================================================
   ESTRELLAS / RATING
   ============================================================ */
.l7-stars { display: inline-flex; align-items: center; gap: 4px; }
.l7-stars-track { display: flex; gap: 0; font-size: 15px; }
.l7-stars-track i { font-size: 15px; }
.l7-sf-full, .l7-sf-half { color: var(--cyan); }
.l7-sf-empty { color: rgba(34,178,238,.25); }
.l7-stars-num { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.7); margin-left: 4px; }

/* ============================================================
   SIDEBAR REVIEWS
   ============================================================ */
#l7-sidebar-reviews { margin-bottom: 2px; padding: 18px 20px; background: var(--bg2); }
#l7-sidebar-reviews h3 {
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 500; color: #848db3; margin-bottom: 14px;
}
.l7-sb-review { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.l7-sb-review:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.l7-sb-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.l7-sb-review-av { width: 28px; height: 28px; border-radius: 50%; background: rgba(34,178,238,.3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.l7-sb-review-name { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; color: #fff; }
.l7-sb-review-date { font-size: 12px; color: rgba(255,255,255,.4); }
.l7-sb-review-text { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l7-sb-review-btn {
  display: block; width: 100%; text-align: center;
  border-radius: 60px; padding: 13px 32px;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.3);
  font-size: 14px; cursor: pointer; font-weight: 400; transition: all var(--ease);
}
.l7-sb-review-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.6); }
.l7-open-reviews { cursor: pointer; }

/* ============================================================
   REVIEWS POPUP
   ============================================================ */
#l7-reviews-popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9998; overflow-y: auto; }

/* ============================================================
   REVIEWS FORM
   ============================================================ */
.l7-rform label { display: block; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.l7-rform input[type=text], .l7-rform input[type=email], .l7-rform textarea { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; color: #fff; padding: 12px 16px; font-size: 15px; outline: none; transition: border-color var(--ease); }
.l7-rform input:focus, .l7-rform textarea:focus { border-color: var(--cyan); }
.l7-rform textarea { resize: vertical; min-height: 90px; }
.l7-rform p { margin-bottom: 14px; }
.l7-stari { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 14px; }
.l7-stari input[type=radio] { display: none; }
.l7-stari label { font-size: 28px; color: rgba(34,178,238,.2); cursor: pointer; transition: color var(--ease); }
.l7-stari label:hover, .l7-stari label:hover ~ label, .l7-stari input:checked ~ label { color: var(--cyan); }

/* ============================================================
   DASHBOARD DE USUARIO — tabs Watchlist + Reviews
   ============================================================ */
#l7-dashboard { padding: 40px 0 80px; }
#l7-dashboard-layout { display: flex; gap: 48px; align-items: flex-start; }
#l7-dashboard-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: calc(var(--hh) + 20px); }
#l7-dashboard-main { flex: 1; min-width: 0; }

/* Avatar grande en dashboard */
.l7-dash-avatar { text-align: center; padding: 24px 20px; background: var(--bg2); margin-bottom: 2px; }
.l7-dash-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid rgba(255,255,255,.2); }
.l7-dash-avatar .l7-dash-initials { width: 80px; height: 80px; border-radius: 50%; background: var(--cyan); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; margin: 0 auto 12px; }
.l7-dash-name { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.l7-dash-email { font-size: 13px; color: rgba(255,255,255,.5); }

/* Sidebar menu del dashboard */
.l7-dash-nav { list-style: none; margin: 0 0 2px; padding: 0; }
.l7-dash-nav li { margin: 0; padding: 0; }
.l7-dash-nav a {
  display: block; padding: 14px 20px;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.65);
  background: var(--bg2);
  border-left: 3px solid transparent;
  margin-bottom: 2px; transition: all var(--ease);
}
.l7-dash-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.l7-dash-nav a.active { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--cyan); }
.l7-dash-nav i { width: 18px; text-align: center; margin-right: 10px; font-size: 14px; }

/* Tabs del dashboard main */
#l7-dash-tabs { display: flex; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 28px; overflow: hidden; }
.l7-dash-tab {
  flex: 1; text-align: center;
  font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 500; color: #fff;
  border-top: 2px solid transparent;
  padding: 22px 0;
  background: rgba(255,255,255,0);
  cursor: pointer; border-bottom: none; border-left: none; border-right: none;
  transition: all var(--ease);
}
.l7-dash-tab:hover { background: rgba(255,255,255,.04); }
.l7-dash-tab.on { background: rgba(255,255,255,.06); border-top-color: var(--cyan); }

/* Panels del dashboard */
.l7-dash-panel { display: none; }
.l7-dash-panel.on { display: block; }

/* Grid de watchlist en dashboard */
.l7-wl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

/* Reviews en dashboard */
.l7-dash-review { padding: 20px; background: var(--bg2); margin-bottom: 2px; }
.l7-dash-review-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.l7-dash-review-serie { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 600; color: var(--cyan); }
.l7-dash-review-date { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 2px; }
.l7-dash-review-text { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.7; }

/* Edit profile form */
#l7-edit-profile { padding: 24px; background: var(--bg2); }
#l7-edit-profile h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce, .woocommerce-page { color: rgba(255,255,255,.65); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-proceed-to-checkout .checkout-button { background: var(--cyan) !important; color: #fff !important; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif !important; font-weight: 500 !important; font-size: 16px !important; border: none !important; border-radius: 60px !important; padding: 14px 32px !important; transition: background var(--ease) !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #0b78a2 !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; justify-content: center; }
.woocommerce input[type=text], .woocommerce input[type=email], .woocommerce input[type=password], .woocommerce textarea, .woocommerce select { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 4px !important; color: #fff !important; padding: 12px 16px !important; outline: none; }
.woocommerce input:focus, .woocommerce textarea:focus { border-color: var(--cyan) !important; }
.woocommerce-MyAccount-navigation { background: var(--bg2); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 20px; color: rgba(255,255,255,.65); font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 500; border-left: 3px solid transparent; margin-bottom: 2px; transition: all var(--ease); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--cyan); }
table.shop_table { background: var(--bg2); border-collapse: collapse; width: 100%; }
table.shop_table th { background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 14px 16px; border-bottom: 1px solid var(--border); }
table.shop_table td { color: rgba(255,255,255,.7); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.woocommerce-message { background: rgba(34,178,238,.07) !important; border-top: 3px solid var(--cyan) !important; color: #fff !important; border-radius: 4px !important; }
.woocommerce-error { background: rgba(220,50,50,.07) !important; border-top: 3px solid #e04444 !important; border-radius: 4px !important; }

/* ============================================================
   ARMEMBER
   ============================================================ */
.arm_setup_form_div, .arm-form-main-div { background: transparent !important; border: none !important; }
.arm_submit_btn { background: var(--cyan) !important; color: #fff !important; font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif !important; font-weight: 500 !important; border-radius: 60px !important; font-size: 16px !important; padding: 14px 32px !important; }
.arm_membership_setup_form ul.arm_module_plans_ul { margin-bottom: 30px; }
#content-pro .width-container-pro .arm_module_forms_container, #content-pro .width-container-pro .arm_module_gateways_container, #content-pro .width-container-pro .arm_module_plans_container { border-color: rgba(255,255,255,.2); }

/* ============================================================
   FOOTER
   ============================================================ */
#l7-foot { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 0 0; clear: both; }
.l7-fg { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.l7-flogo { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; color: var(--cyan); display: inline-block; margin-bottom: 12px; }
.l7-ftag { font-size: 14px; color: rgba(255,255,255,.35); line-height: 1.65; max-width: 240px; }
.l7-fcol h5 { font-family: 'Fira Sans Condensed', 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.l7-fcol ul { display: flex; flex-direction: column; gap: 10px; }
.l7-fcol a { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.5); transition: color var(--ease); }
.l7-fcol a:hover { color: var(--cyan); }
.l7-fb { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.l7-fc { font-size: 13px; color: rgba(255,255,255,.25); }

/* ============================================================
   404, SEARCH
   ============================================================ */
.l7-404-num { font-size: clamp(120px,20vw,200px); line-height: 1; color: rgba(34,178,238,.1); letter-spacing: 8px; font-weight: 700; }

/* ============================================================
   TAXONOMY
   ============================================================ */
.l7-tax-pill { font-size: 14px; padding: 8px 18px; border-radius: 60px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.5); text-decoration: none; transition: all var(--ease); }
.l7-tax-pill:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.l7-tax-pill.active { border-color: var(--cyan); background: rgba(34,178,238,.1); color: var(--cyan); }

/* ============================================================
   WATCHLIST + MISC
   ============================================================ */
#l7-is-loader { text-align: center; padding: 32px; display: none; }
#l7-is-loader.active { display: block; }
#l7-is-loader i { font-size: 20px; color: rgba(255,255,255,.3); animation: l7spin 1s linear infinite; }
@keyframes l7spin { to { transform: rotate(360deg); } }

.l7-gate { padding: 72px 32px; text-align: center; }
.l7-gate-icon { font-size: 60px; color: rgba(255,255,255,.12); margin-bottom: 24px; }
.l7-gate h3 { font-size: 36px; font-weight: 700; letter-spacing: 2px; color: #fff; margin-bottom: 10px; }
.l7-gate p { font-size: 16px; color: rgba(255,255,255,.6); max-width: 400px; margin: 0 auto 28px; line-height: 1.7; }
.l7-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Isotope */
#l7-grid.iso { display: flex !important; flex-wrap: wrap; }
#l7-grid.iso .l7-cw { width: calc(50% - 2px); margin: 1px; }

/* ============================================================
   AVATAR PICKER
   ============================================================ */
.l7-avatar-picker-wrap {
  margin-top: 28px;
  padding: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.l7-avatar-picker-title {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin: 0 0 18px;
  letter-spacing: .5px;
}
.l7-avatar-picker-title i { margin-right: 8px; color: var(--gold); }
.l7-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}
.l7-avatar-opt {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  aspect-ratio: 1;
  overflow: hidden;
}
.l7-avatar-opt img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: opacity .2s;
}
.l7-avatar-opt:hover { border-color: rgba(201,168,76,.5); transform: scale(1.06); }
.l7-avatar-opt.selected { border-color: var(--gold); }
.l7-avatar-check {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201,168,76,.75);
  opacity: 0;
  transition: opacity .2s;
  font-size: 22px;
  color: #000;
}
.l7-avatar-opt.selected .l7-avatar-check { opacity: 1; }
.l7-avatar-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
  color: rgba(255,255,255,.4);
}
.l7-avatar-status.ok  { color: var(--gold); }
.l7-avatar-status.err { color: #e04444; }
.l7-avatar-status.saving { color: rgba(255,255,255,.4); }

/* ============================================================
   ADMIN BAR FIX
   ============================================================ */
.admin-bar #l7h { top: 32px; }
.admin-bar #l7-mnav { top: calc(var(--hh) + 32px); }
.admin-bar #l7-page { padding-top: calc(var(--hh) + 32px); }
.admin-bar #l7-serie-sidebar, .admin-bar #l7-dashboard-sidebar { top: calc(var(--hh) + 52px); }
html.wp-toolbar { padding-top: 0 !important; }
@media screen and (max-width: 782px) {
  .admin-bar #l7h { top: 46px; }
  .admin-bar #l7-mnav { top: calc(var(--hh) + 46px); }
  .admin-bar #l7-page { padding-top: calc(var(--hh) + 46px); }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.l7-landing-header { background: rgba(13,13,13,0) !important; border-bottom: none !important; }
.l7-landing-header.scrolled { background: rgba(13,13,13,.96) !important; border-bottom: 1px solid var(--border) !important; }
body.l7-landing-page #l7-page { padding-top: 0; }

/* ============================================================
   ELEMENTOR
   ============================================================ */
.elementor-page #l7-page { padding-top: var(--hh); }
.e-con, .elementor-section { background: transparent !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  #l7-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .l7-nav { display: none; }
  .l7-hlogin { display: none; }
  .l7-hbg { display: flex; }
  .l7-fg { grid-template-columns: 1fr 1fr; gap: 28px; }
  #l7-hero { height: 72vh; }
  .l7-htitle { font-size: 52px; }
  #l7-serie-layout { flex-direction: column; }
  #l7-serie-main { float: none; width: 100%; order: 1; }
  #l7-serie-sidebar { float: none; width: 100%; position: static; margin-right: 0; margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; order: 2; }
  #l7-dashboard-layout { flex-direction: column; }
  #l7-dashboard-sidebar { width: 100%; position: static; }
  .l7-wl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #l7-grid { grid-template-columns: repeat(2, 1fr); }
  /* Episodios: mantener layout en fila como referencia Netflix */
  .l7-epitem { flex-direction: row; align-items: flex-start; padding: 16px 0; }
  .l7-ethumb { width: 42%; max-width: 160px; padding-right: 14px; flex-shrink: 0; }
  .l7-einfo { flex: 1; width: auto; padding: 0; padding-top: 0; }
  .l7-etitle { font-size: 16px; margin-bottom: 4px; }
  .l7-emeta { margin-bottom: 5px; }
  .l7-emi { font-size: 13px; }
  .l7-edesc { font-size: 13px; padding: 5px; margin-top: 10px; }
  .l7-fg { grid-template-columns: 1fr; }
  .l7-htitle { font-size: 40px; }
  .l7-wl-grid { grid-template-columns: repeat(2, 1fr); }
  /* En móvil el bloque .l7-hc se oculta — el bloque .l7-under-hero lo reemplaza.
     El botón circular #l7-hero-play se mantiene visible sobre el artwork para
     que el CTA principal sea inmediatamente reconocible. */
  .l7-hc { display: none; }
  #l7-hero-play { width: 76px; height: 76px; font-size: 30px; top: calc(50% - 38px); }
  #l7-hero { height: 260px; margin-bottom: 0; }
  .l7-under-hero { display: block; }
  /* La descripción en #l7-serie-main se oculta en móvil (ya aparece en under-hero) */
  .l7-serie-desc-block { display: none; }
}
@media (max-width: 480px) {
  :root { --hh: 60px; }
  .l7w { padding: 0 16px; }
  .l7hi { padding: 0 16px; }
  .l7-htitle { font-size: 32px; }
  #l7-hero { height: 220px; }
  .l7-stab { padding: 12px 18px; font-size: 15px; }
  #l7-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  #l7-grid.iso .l7-cw { width: calc(50% - 2px); }
  #l7-serie-sidebar { grid-template-columns: 1fr; }
  .l7-dash-tab { font-size: 15px; padding: 16px 8px; }
  #l7-ep-gate-wrap { min-height: 320px; padding: 20px; }
}

/* ============================================================
   SIGUIENTE EPISODIO — overlay animado en el player
   ============================================================ */
#l7-next-ep {
  display: none;
  position: absolute;
  inset: 0;
  padding: 24px;
  background: rgba(13, 13, 13, 0.95);
  z-index: 25;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  align-items: center;
  justify-content: center;
}
#l7-next-ep.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
#l7-next-ep-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 680px;
}
#l7-next-ep-thumb {
  width: 130px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #222;
}
#l7-next-ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#l7-next-ep-info { flex: 1; min-width: 0; }
#l7-next-ep-label {
  font-family: 'Fira Sans Condensed','Barlow Condensed',sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
#l7-next-ep-title {
  font-family: 'Fira Sans Condensed','Barlow Condensed',sans-serif;
  font-size: 17px; font-weight: 600; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.l7-next-ep-num { color: rgba(255,255,255,.5); margin-right: 2px; }
#l7-next-ep-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0;
}
#l7-next-ep-count { font-size: 12px; opacity: .7; margin-left: 3px; }
#l7-next-ep-cancel {
  background: none; border: none; padding: 4px 0;
  font-family: 'Fira Sans Condensed','Barlow Condensed',sans-serif;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.45); cursor: pointer; transition: color var(--ease);
}
#l7-next-ep-cancel:hover { color: #fff; }
@media (max-width: 600px) {
  #l7-next-ep { padding: 14px 16px; }
  #l7-next-ep-inner { flex-wrap: wrap; }
  #l7-next-ep-thumb { width: 90px; }
  #l7-next-ep-title { font-size: 14px; white-space: normal; }
  #l7-next-ep-actions { flex-direction: row; align-items: center; width: 100%; }
}

/* ============================================================
   BARRAS DE PROGRESO en thumbnails de episodios
   ============================================================ */
.l7-ep-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
  z-index: 5;
}
.l7-ep-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  min-width: 4px;
}

/* ── REPRODUCTOR NATIVO HTML5 ── */
#l7-ep-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}


/* ============================================================
   MODAL DE EPISODIO — abre player sin navegar
   ============================================================ */
#l7-ep-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.96);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: l7modalIn .25s ease;
}
#l7-ep-modal.open { display: flex; }
@keyframes l7modalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#l7-ep-modal-inner {
    width: 100%;
    max-width: 1100px;
    position: relative;
}
#l7-ep-modal-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
#l7-ep-modal-player iframe,
#l7-ep-modal-player video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
#l7-ep-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: color .2s;
    line-height: 1;
}
#l7-ep-modal-close:hover { color: #fff; }
#l7-ep-modal-info {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
#l7-ep-modal-title {
    font-family: 'Fira Sans Condensed','Barlow Condensed',sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#l7-ep-modal-meta {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
#l7-ep-modal-goto {
    font-family: 'Fira Sans Condensed','Barlow Condensed',sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
    flex-shrink: 0;
}
#l7-ep-modal-goto:hover { color: #c9a84c; }
/* Gate dentro del modal */
#l7-ep-modal-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 60px 32px;
    text-align: center;
}
/* Cursor pointer en episodios clickeables */
.l7-epitem.l7-has-modal { cursor: pointer; }
.l7-epitem.l7-has-modal:hover .l7-ethi { opacity: .85; }

/* Items bloqueados — click lleva al episodio donde se muestra el gate */
.l7-epitem.l7-locked { cursor: pointer; }
.l7-epitem.l7-locked .l7-etitle { color: rgba(255,255,255,.55); }
.l7-epitem.l7-locked:hover .l7-etitle { color: #c9a84c; }
.l7-epitem.l7-locked:hover .l7-ethi { opacity: .8; }

@media (max-width: 600px) {
  #l7-ep-modal { padding: 0; align-items: center; }
  #l7-ep-modal-inner { max-width: 100%; }
  #l7-ep-modal-player { border-radius: 0; }
  #l7-ep-modal-info { display: none; }
  #l7-ep-modal-close {
    position: fixed;
    top: 12px;
    right: 12px;
    font-size: 22px;
    background: rgba(0,0,0,.65);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 100000;
  }
}

/* ============================================================
   STICKY FOOTER — el footer siempre toca el fondo de la ventana
   ============================================================ */
html {
    height: 100%;
}
body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
#l7-page {
    flex: 1 0 auto;
}
#l7-foot {
    flex-shrink: 0;
}

/* Hero mobile: las imágenes del slideshow de Elementor están encuadradas para
   landscape (sujeto desplazado a la derecha). En portrait el crop centrado
   recorta al protagonista. Movemos el origen al 70% para mantenerlo visible.
   Si en el futuro suben crops específicos por dispositivo desde Elementor,
   esta regla se puede ajustar o quitar. */
@media (max-width: 768px) {
  .elementor-background-slideshow__slide__image {
    background-position: 70% center !important;
  }
}

/* ============================================================
   GRID DE BÚSQUEDA — responsive: 4 cols desktop → 2 cols mobile
   ============================================================ */
.l7-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
@media (max-width: 900px) {
  .l7-search-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}
@media (max-width: 600px) {
  .l7-search-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* Cards en mobile: títulos más pequeños y padding reducido para que no se
   desborden del thumbnail (170-186×95-105 aprox a viewport 390). Aplica a
   .l7-card en cualquier grid (search, archive de series, etc.). */
@media (max-width: 600px) {
  .l7-card .l7-ctitle { font-size: 15px; line-height: 1.2; }
  .l7-card .l7-cinfo  { padding: 0 10px 8px; }
  .l7-card .l7-csub   { font-size: 11px !important; }
  .l7-card .l7-cmi    { font-size: 11px; padding-right: 6px; margin-right: 6px; }
  .l7-card .l7-ccat   { font-size: 12px; }
}

/* ============================================================
   FOOTER MOBILE — aumentar touch target de los links
   ============================================================ */
@media (max-width: 768px) {
  #l7-foot a, #l7-foot li a {
    display: inline-block;
    padding: 8px 0;
    min-height: 36px;
    line-height: 1.4;
  }
}

/* ============================================================
   DASHBOARD MOBILE — tabs bottom + nav vertical son redundantes.
   En mobile mostramos solo las tabs bottom (acceso más rápido) y
   ocultamos la lista vertical UL.l7-dash-nav.
   ============================================================ */
@media (max-width: 768px) {
  .l7-dash-nav { display: none !important; }
  .l7-dash-tab span,
  .l7-dash-tab .l7-dash-tab-label {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}
