:root{
  /* Base */
  --bg:#070A12;
  --panel: rgba(18, 24, 38, .72);
  --panel2: rgba(12, 18, 30, .78);
  --stroke: rgba(92, 110, 140, .22);
  --txt:#EAF1FF;
  --mut:#A7B2C7;

  /* UI */
  --r:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  /* BRAND */
  --brand1:#b516e7;
  --brand2:#9a21e0;
  --brand3:#5e3be4;
  --brand4:#08b4f4;

  --brand-grad: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3), var(--brand4));
  --brand-glow: 0 12px 40px rgba(181,22,231,.22), 0 12px 40px rgba(8,180,244,.18);

  --accent: var(--brand4);
  --accent2: var(--brand1);
  --accentSoft: rgba(8,180,244,.18);
  --accentSoft2: rgba(181,22,231,.16);

  /* neutrales */
  --warn: rgba(255, 196, 87, .95);
  --danger: rgba(255, 92, 115, .95);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--txt);
  font-family:system-ui,Segoe UI,Arial;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(181,22,231,.14), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(8,180,244,.12), transparent 60%),
    radial-gradient(900px 600px at 40% 90%, rgba(94,59,228,.12), transparent 60%),
    var(--bg);
}

.hidden{display:none !important}
.login-err{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255, 0, 0, .12);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.muted{color:var(--mut)}
.small{font-size:12px; padding: 10px;}
.h2{font-weight:900;font-size:15px}
.badge{
  border:1px solid var(--stroke);
  padding:4px 10px;border-radius:999px;
  color:var(--mut);font-size:12px;
  background: rgba(10,14,22,.35);
}

.app{
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;                  
}

/* .shell{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
  padding: 14px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;                  
} */
.content{
  min-height: 0;                   
  overflow: auto;                    
  padding: 20px 10px 0 0;
}
.glass{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card{padding:14px}

/* LIST */
.list{display:flex; flex-direction:column; gap:10px; max-height: calc(100vh - 260px); overflow:auto; padding-right:4px}

/* IPTV item (live) */
.item{
  display:flex; gap:12px; align-items:center;
  padding:10px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,14,22,.28);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.item:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(10,14,22,.40);
}
.logo{
  width:42px;height:42px;border-radius:14px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0; overflow:hidden;
}
.logo img{width:100%;height:100%;object-fit:cover}
.meta{min-width:0; flex:1}
.name{font-weight:950; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.group{font-size:12px;color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.tags{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; max-width:42%}
.tag{
  font-size:11px;
  padding:4px 9px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
}

/* “Cards” para VOD/Series */
.item.poster{
  padding:0;
  overflow:hidden;
  border-radius: 18px;
  position:relative;
}
.item.poster .logo{
  width:86px;height:120px;border-radius:0;
  border:none;
  background: rgba(0,0,0,.35);
}
.item.poster .logo img{object-fit:cover}
.item.poster .meta{padding:10px 10px 10px 0}
.item.poster::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.20), rgba(0,0,0,.55));
  pointer-events:none;
}

/* MAIN */
.main{display:flex; flex-direction:column; gap:14px; overflow: hidden; margin: 0 -15px -24px 40px;}

/* Inputs global */
input,select,button{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,14,22,.35);
  color: var(--txt);
}
input::placeholder{color: rgba(167,178,199,.70)}

.grid{display:grid;grid-template-columns:1fr 1fr; gap:10px}
.row{display:flex; gap:10px; margin-top:12px}
.row>*{flex:1}

.btn{
  cursor:pointer;
  font-weight:950;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform: translateY(1px)}

/* Primary = tu marca */
.btn.primary{
  background: var(--brand-grad);
  border-color: rgba(255,255,255,.16);
  color:#fff;
  box-shadow: var(--brand-glow);
}
.btn.primary:hover{filter: brightness(1.05)}

.btn.ghost{background: rgba(255,255,255,.03)}
.btn.ghost:hover{background: rgba(255,255,255,.06)}
.btn.danger{
  background: rgba(255,92,115,.12);
  border-color: rgba(255,92,115,.25);
}
.btn.danger:hover{background: rgba(255,92,115,.18); border-color: rgba(255,92,115,.35)}

/* USER MENU */
.userbox{position:relative}
.userbtn{
  width:auto;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,18,30,.55);
  backdrop-filter: blur(6px);
}
.userbtn:hover{border-color: rgba(255,255,255,.18)}
.avatar{
  width:38px;height:38px;border-radius:14px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:center;
}
.usertext{display:flex;flex-direction:column;line-height:1.1;text-align:left}
.userline{font-weight:1000}
.chevron{color:var(--mut);font-size:12px;margin-left:2px}

.usermenu{
  position:absolute; right:0; top:54px;
  width:280px;
  background: rgba(12,18,30,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding:12px;
  z-index:70;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.menu-title{display:flex;align-items:center;gap:8px;font-weight:1000;margin-bottom:8px}
.menu-sep{height:1px;background:rgba(255,255,255,.08); margin:10px 0}

.toggle{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:12px}
.toggle:hover{background:rgba(255,255,255,.04)}
.toggle input{display:none}
.toggle-ui{
  width:46px;height:26px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  position:relative;flex-shrink:0;
}
.toggle-ui::after{
  content:"";
  width:20px;height:20px;border-radius:50%;
  background: rgba(255,255,255,.22);
  position:absolute;top:50%;left:3px;transform:translateY(-50%);
  transition:all .2s ease;
}
.toggle input:checked + .toggle-ui{border-color: rgba(8,180,244,.55)}
.toggle input:checked + .toggle-ui::after{left:23px;background: var(--accent)}
.toggle-text{font-size:13px;color:#d7e4f6}


/* ====== LOGIN HOME ====== */
.login-home{display:flex; flex-direction:column; gap:14px}
.brand-big{display:flex; gap:12px; align-items:center; justify-content:center; margin-top:6px}
.brand-badge{
  width:54px;height:54px;border-radius:18px;
  background:#0b0f14;border:1px solid #2a3a55;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;
}
.brand-name{font-weight:1000; font-size:22px; letter-spacing:.2px}

.cards-3{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.pick-card{
  text-align:left;
  border-radius:16px;
  border:1px solid #2a3a55;
  background:rgba(11,15,20,.6);
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
}
.pick-card:hover{border-color:#3e567f; transform:translateY(-1px)}
.pick-ico{
  width:44px;height:44px;border-radius:14px;
  background:#0b0f14;border:1px solid #2a3a55;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.pick-title{font-weight:1000}
.legal-line{margin-top:2px; text-align:center}

@media(min-width:760px){
  .cards-3{grid-template-columns:repeat(3, 1fr)}
  .pick-card{flex-direction:column; align-items:flex-start}
  .pick-title{margin-top:6px}
}

/* RESPONSIVE */
@media (max-width: 980px){
  .shell{grid-template-columns: 1fr}
  .list{max-height: 320px}
}

/* ===== LOGIN TYPE ===== */
.login-type{display:flex; flex-direction:column; gap:10px}
.login-type-head{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.lt-badge{display:flex; align-items:center; gap:10px}
.lt-ico{
  width:44px;height:44px;border-radius:14px;
  background:#0b0f14;border:1px solid #2a3a55;
  display:flex;align-items:center;justify-content:center;
}
.lt-title{font-weight:1000}

/* ===== LOGIN SPLIT (CORREGIDO) ===== */

/* Contenedor general del login */
.login-split{
  display:grid;
  grid-template-columns: 280px 1fr; /* izquierda pequeña, derecha grande */
  gap:0;
  width:100%;
  max-width:960px;     /* NO pantalla completa */
  margin:40px auto;    /* centrado vertical/horizontal */
  min-height:520px;
  border-radius: var(--r);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--stroke);
}

/* ----- COLUMNA VISUAL (PEQUEÑA) ----- */
.login-visual{
  position:relative;
  background: var(--brand-grad);
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-visual-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.25), transparent 55%);
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand-hero{
  text-align:center;
  color:#fff;
  padding:16px;
}
.brand-logo{
  width:56px;
  height:56px;
  border-radius:16px;
  background:rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:900;
  margin:0 auto 10px;
}
.brand-hero h2{
  margin:0;
  font-size:18px;
  font-weight:1000;
}
.brand-hero p{
  margin-top:4px;
  font-size:13px;
  opacity:.9;
}

/* ----- COLUMNA LOGIN (MÁS GRANDE) ----- */
.login-form-wrap{
  padding:28px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  background: transparent;
}

.login-card{
  padding:0;
  background:none;
  border:none;
  box-shadow:none;
}

.login-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.login-form input{
  padding:14px;
  border-radius:14px;
  font-size:14px;
}

.login-form button{
  margin-top:8px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 820px){
  .login-split{
    grid-template-columns: 1fr;
    max-width:520px;
  }

  .login-visual{
    display:none; /* móvil: solo login */
  }

  .login-form-wrap{
    padding:24px;
  }
}
/* ====== Netflix-like catalog ====== */
/* ====== Netflix-like catalog ====== */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap:14px;
}

.poster{
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  padding:0;
  color:inherit;
}

/* Cover */
.poster-cover{
  width:100%;
  aspect-ratio:2 / 3;
  border-radius:14px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease;

  position:relative;
  overflow:hidden;
}

.poster-cover.noimg{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  background:rgba(255,255,255,.06);
}

.poster:hover .poster-cover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 16px 30px rgba(0,0,0,.35);
}

/* Ocultamos título abajo */
.poster-meta{
  display:none;
}

/* Hover title inside poster */
.poster-hover{
  position:absolute;
  inset:0;
  z-index:2;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
  padding:12px;

  opacity:.55;                 /* visible suave */
  transition:opacity .15s ease; /* sin movimiento */

  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%);
  color:#fff;
}

.poster:hover .poster-hover,
.poster:focus-visible .poster-hover{
  opacity:1;
}

.poster-hover-title{
  font-weight:950;
  font-size:13px;
  line-height:1.2;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;

  text-shadow:0 2px 10px rgba(0,0,0,.65);
}

.poster-hover-sub{
  font-size:12px;
  color:rgba(255,255,255,.80);

  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;

  text-shadow:0 2px 10px rgba(0,0,0,.65);
}


/* === Profiles === */
.profiles-box {
  margin: 22px 0 28px;
}

.profiles-title {
  margin-bottom: 10px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
}

.profile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  font-size: 18px;
}

.profile-name {
  font-weight: 600;
}

.profile-user {
  font-size: 12px;
}


/* =========================
   TOS MODAL (RESPONSIVE)
   ========================= */

/* cuando modal abierto, bloquea scroll del body */
body.modal-open{
  overflow: hidden;
}

/* Backdrop full screen */
.modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Card */
.modal-card{
  width: min(760px, 100%);
  max-height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--r) + 4px);
  overflow: hidden;
  animation: modalIn .16s ease-out;
}

/* Header */
.modal-head{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.modal-ico{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Título */
.modal-title{
  font-weight: 1000;
  letter-spacing: .2px;
}

/* OJO: tu .small tiene padding global. Dentro del modal lo anulamos */
.modal-backdrop .small{
  padding: 0;
}

/* Body con scroll interno */
.modal-body{
  padding: 14px 16px 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.45;
}

.modal-body p{ margin: 0 0 10px; }

.modal-subtitle{
  margin: 14px 0 8px;
  font-weight: 1000;
  opacity: .95;
}

.modal-list{
  margin: 8px 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.modal-list li{
  color: rgba(255,255,255,.86);
}

.modal-note{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* Actions sticky abajo */
.modal-actions{
  display:flex;
  gap:10px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.20));
}

/* Botones */
.modal-actions .btn{ height: 44px; }

/* Anim */
@keyframes modalIn{
  from{ transform: translateY(8px) scale(.985); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Mobile: bottom-sheet ===== */
@media (max-width: 560px){
  .modal-backdrop{
    place-items: end center;
    padding: 10px;
  }

  .modal-card{
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 14px 14px;
    animation: sheetIn .18s ease-out;
  }

  .modal-actions{
    flex-direction: column; /* botones uno debajo del otro */
  }
}

@keyframes sheetIn{
  from{ transform: translateY(16px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}





/* =========================
   HERO BANNER (Top slider)
   ========================= */

.hero{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;

  /* full width dentro de .dash (quita padding) */
  margin: 0 -6px; /* ajusta si tu layout tiene otro padding */
  height: clamp(220px, 38vw, 460px);
  background: rgba(10,14,22,.35);
  border: 1px solid rgba(255,255,255,.08);
}

.heroTrack{
  display:flex;
  height:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.heroTrack::-webkit-scrollbar{ display:none; }

.heroSlide{
  position:relative;
  flex: 0 0 100%;
  height:100%;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
}

.heroSlide::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.10) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.65) 100%);
}

.heroInner{
  position:absolute;
  inset:0;
  z-index:2;
  padding: 18px 18px 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
}

.heroBadgeRow{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.heroBadge{
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}

.heroTitle{
  font-size: clamp(20px, 3.2vw, 44px);
  font-weight: 950;
  letter-spacing: -.4px;
  line-height: 1.05;
  text-shadow: 0 12px 40px rgba(0,0,0,.55);
  max-width: 980px;
}

.heroSub{
  font-size: 13px;
  opacity: .85;
  max-width: 920px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.heroDots{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  display:flex;
  gap:8px;
  justify-content:center;
  pointer-events:none;
}
.heroDot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.heroDot.active{
  background: rgba(255,255,255,.95);
}

/* flechas desktop */
.heroBtn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:4;
  width:46px;
  height:46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.40);
  color: #fff;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.heroBtn:hover{ transform: translateY(-50%) scale(1.05); background: rgba(0,0,0,.55); }
.heroBtn:active{ transform: translateY(-50%) scale(0.98); }
.heroBtn.prev{ left: 10px; }
.heroBtn.next{ right: 10px; }

@media (max-width: 900px){
  .hero{ margin: 0 -4px; border-radius: 16px; }
  .heroBtn{ display:none; } /* ✅ móvil: sin flechas */
}
