/* My Streaming Cinema - interfaz 10-foot para TV Box */
:root {
  --bg: #0b0e14;
  --bg2: #121722;
  --card: #1a2130;
  --card2: #222b3f;
  --text: #f2f5fa;
  --muted: #9aa6bd;
  --accent: #7c5cff;
  --accent2: #00d4ff;
  --danger: #ff5470;
  --ok: #3ddc84;
  --focus: #ffd166;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  overflow: hidden;
}
.hidden { display: none !important; }
button, input, select, textarea { font-size: 19px; font-family: inherit; }

/* Foco de navegacion con control remoto */
[data-nav] { outline: none; }
.nav-focus {
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px;
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(255, 209, 102, .18);
  z-index: 5;
  position: relative;
}

/* ------------------------------ auth */
#view-auth {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #1c2440 0%, var(--bg) 60%);
}
.auth-card {
  background: var(--bg2); border: 1px solid #263049; border-radius: 20px;
  padding: 44px 52px; width: 480px; max-width: 92vw; text-align: center;
}
.auth-card h1 { font-size: 36px; margin-bottom: 6px; white-space: nowrap; }
.auth-card h1 .box { color: var(--accent2); }
.auth-card p.sub { color: var(--muted); margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #2c3650;
  background: var(--card); color: var(--text); cursor: pointer;
}
.auth-tabs button.active { background: var(--accent); border-color: var(--accent); }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; color: var(--muted); margin-bottom: 6px; font-size: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid #2c3650; background: #0e1320; color: var(--text);
}
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 12px; border: none;
  background: var(--accent); color: #fff; font-weight: 700; cursor: pointer;
}
.btn.secondary { background: var(--card2); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 14px; font-size: 16px; }
.auth-err { color: var(--danger); min-height: 26px; margin-top: 12px; }

/* ------------------------------ layout principal */
#view-main { display: flex; flex-direction: column; height: 100vh; }
#content { flex: 1; overflow-y: auto; padding: 26px 36px 60px; min-height: 0; }
#content h2 { font-size: 32px; margin-bottom: 4px; }
#content .sec-sub { color: var(--muted); margin-bottom: 22px; }

/* Barra superior: una sola pastilla liquid glass con todo */
#topnav { padding: 12px 18px 6px; position: relative; z-index: 50; }
/* Barra superior exacta estilo DebridStream */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px; border-radius: 18px;
  background: linear-gradient(180deg, #161d2c, #0e1420);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-profile { cursor: pointer; flex: none; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-size: 27px;
  background: linear-gradient(135deg, #3a2d6e, #1c2a5e);
  border: 2px solid rgba(255, 255, 255, .25);
  overflow: hidden;
}
/* Capsula busqueda + tabs */
.search-tabs {
  display: flex; align-items: center; gap: 2px; flex: 1;
  max-width: 780px; margin: 0 auto; padding: 7px 8px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
}
.sbtn {
  background: transparent; border: none; cursor: pointer; padding: 8px;
  color: var(--muted); display: flex; align-items: center; flex: none;
}
.sbtn svg { width: 20px; height: 20px; }
.search-tabs input {
  width: 64px; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; transition: width .25s ease;
}
.search-tabs input::placeholder { color: var(--muted); }
.search-tabs:focus-within input { width: 190px; }
#nav-items { display: flex; gap: 2px; margin-left: auto; }
.nav-item {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  color: var(--muted); border: none; background: transparent;
  font-size: 15.5px; font-weight: 600; white-space: nowrap;
}
.nav-item.active { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.top-actions { display: flex; gap: 10px; flex: none; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #c9d6ee; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { color: #fff; background: rgba(255, 255, 255, .11); }

/* Picker cinematografico */
#view-profiles { position: relative; min-height: 100vh; overflow: hidden; }
.picker-bg { position: absolute; inset: 0; }
.picker-bg img { width: 100%; height: 100%; object-fit: cover; }
.picker-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4, 7, 14, .94) 0%, rgba(4, 7, 14, .62) 42%, rgba(4, 7, 14, .28) 100%);
}
.picker-content { position: relative; z-index: 1; padding: 56px 0 60px 7%; max-width: 560px; }
.picker-logo { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #fff; white-space: nowrap; }
@media (max-width: 640px) { .picker-logo { font-size: 18px; letter-spacing: 1.5px; } }
.picker-logo .play { color: #ff3b3b; margin-right: 10px; }
.picker-sub { color: #c6cfdf; margin: 8px 0 28px; font-size: 19px; }
.prow {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 9px 12px; margin-bottom: 10px; border-radius: 16px; cursor: pointer;
  background: transparent; border: 2px solid transparent; color: #fff;
  font-size: 21px; font-weight: 600; text-align: left;
}
.prow:hover, .prow.nav-focus { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .07); }
.prow .picon {
  width: 74px; height: 74px; border-radius: 17px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #2a3350, #161c2e);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
}
.prow .picon svg { width: 100%; height: 100%; }
.prow .picon .plus { color: #c9d6ee; display: flex; }
.prow .picon .plus svg { width: 32px; height: 32px; }
.prow .pkids { margin-left: 10px; }
#profile-menu {
  position: absolute; top: calc(100% + 4px); right: 30px;
  background: rgba(20, 24, 44, .95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  padding: 10px; min-width: 250px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
}
#profile-menu .pm-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: transparent; border: none; color: var(--text); font-size: 16px;
}
#profile-menu .pm-item:hover { background: var(--card2); }
#profile-menu .pm-item .avatar { width: 36px; height: 36px; font-size: 21px; }
#profile-menu .pm-kids { font-size: 11px; color: #0b1020; background: #7ee2a8; border-radius: 6px; padding: 2px 6px; font-weight: 800; }

/* Selector de perfiles */
#view-profiles { min-height: 100vh; }
#view-profiles.picker-old { display: flex; align-items: center; justify-content: center; }
.profiles-wrap { text-align: center; max-width: 900px; padding: 40px; margin: 0 auto; }
.profiles-wrap .logo.big { font-size: 36px; font-weight: 800; margin-bottom: 10px; white-space: nowrap; }
.profiles-wrap .logo.big .box { color: var(--accent2); }
.profiles-wrap h2 { font-size: 30px; margin-bottom: 34px; font-weight: 600; }
#profiles-grid { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.profile-card { cursor: pointer; background: transparent; border: none; color: var(--text); width: 130px; }
.profile-card .pavatar {
  width: 110px; height: 110px; border-radius: 28px; font-size: 62px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  background: linear-gradient(135deg, #2c2350, #16224d);
  border: 3px solid transparent; transition: border-color .15s, transform .15s;
}
.profile-card:hover .pavatar { border-color: #fff; transform: scale(1.05); }
.profile-card .pname { font-size: 17px; }
.profile-card .pkids { display: inline-block; margin-top: 6px; font-size: 11px; color: #0b1020; background: #7ee2a8; border-radius: 6px; padding: 2px 8px; font-weight: 800; }
.profiles-actions { display: flex; gap: 14px; justify-content: center; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.avatar-pick button {
  font-size: 30px; width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
  background: var(--card2); border: 2px solid transparent;
}
.avatar-pick button.sel { border-color: var(--accent); }
.kids-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; }
.kids-row input { width: 22px; height: 22px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.chip {
  padding: 10px 18px; border-radius: 999px; background: var(--card);
  border: 1px solid #2c3650; color: var(--text); cursor: pointer;
}
.chip.active { background: var(--accent); border-color: var(--accent); }
select.dark, input.dark {
  padding: 12px 16px; border-radius: 10px; border: 1px solid #2c3650;
  background: var(--card); color: var(--text);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  cursor: pointer; border: 1px solid transparent; min-height: 150px;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { border-color: #2c3650; }
.card .logo-wrap {
  height: 74px; display: flex; align-items: center; justify-content: center;
  background: #0e1320; border-radius: 10px; overflow: hidden;
}
.card .logo-wrap img { max-height: 64px; max-width: 90%; object-fit: contain; }
.card .logo-wrap .nologo { font-size: 34px; }
.card .t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.card .s { color: var(--muted); font-size: 15px; line-height: 1.35; }
.card .row { display: flex; gap: 8px; margin-top: auto; }
.fav-btn {
  border: 1px solid #2c3650; background: var(--bg2); color: var(--focus);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 16px;
}
.fav-btn.off { color: var(--muted); }

.empty {
  text-align: center; color: var(--muted); padding: 70px 20px;
  border: 2px dashed #2c3650; border-radius: 16px;
}
.empty .big { font-size: 52px; margin-bottom: 12px; }

/* ------------------------------ guia EPG */
.guide-head { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.guide-time { color: var(--muted); }
.guide-row { display: flex; border-bottom: 1px solid #1c2438; min-height: 76px; }
.guide-ch {
  width: 210px; min-width: 210px; padding: 10px 12px; display: flex;
  align-items: center; gap: 10px; background: var(--bg2);
  position: sticky; left: 0; z-index: 2;
}
.guide-ch img { width: 44px; height: 44px; object-fit: contain; background: #0e1320; border-radius: 8px; }
.guide-ch .n { font-weight: 700; font-size: 16px; }
.guide-progs { display: flex; flex: 1; position: relative; }
.prog {
  border-left: 1px solid #1c2438; padding: 8px 10px; cursor: pointer;
  overflow: hidden; background: var(--card); min-width: 120px;
}
.prog .pt { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog .ph { color: var(--muted); font-size: 13px; }
.prog.live { background: #2a2140; border-left: 3px solid var(--accent); }

/* ------------------------------ reproductor */
#player {
  position: fixed; inset: 0; background: #000; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
#player video { width: 100%; height: 100%; background: #000; }
#player-ui {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 40px 34px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
#player-ui .ptitle { font-size: 26px; font-weight: 800; }
#player-ui .psub { color: #c6cfdf; margin-top: 6px; }
#player-ui .prow { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.pbtn {
  padding: 12px 22px; border-radius: 10px; border: 1px solid #3a4560;
  background: rgba(20,26,40,.9); color: #fff; cursor: pointer;
}
#player-load {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; color: var(--muted); background: rgba(0,0,0,.6);
}
.spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 5px solid #2c3650; border-top-color: var(--accent2);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ modal */
#modal {
  position: fixed; inset: 0; background: rgba(4,6,12,.78); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.modal-card {
  background: var(--bg2); border: 1px solid #2c3650; border-radius: 18px;
  padding: 34px 38px; width: 560px; max-width: 94vw; max-height: 88vh; overflow-y: auto;
}
.modal-card h3 { font-size: 26px; margin-bottom: 18px; }
.modal-err { color: var(--danger); min-height: 24px; margin: 10px 0; }
.modal-row { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

.list-row {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.list-row .grow { flex: 1; }
.list-row .t { font-weight: 700; }
.list-row .s { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px;
  background: var(--card2); color: var(--accent2); margin-left: 10px;
}
.toggle { position: relative; width: 64px; height: 34px; border-radius: 999px; background: #2c3650; border: none; cursor: pointer; }
.toggle.on { background: var(--ok); }
.toggle::after {
  content: ""; position: absolute; top: 4px; left: 5px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; transition: left .15s;
}
.toggle.on::after { left: 33px; }

/* ------------------------------ home tipo Netflix */
.row-title { font-size: 24px; font-weight: 800; margin: 26px 0 12px; }
.row-title:first-child { margin-top: 0; }
.hrow {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px;
  scrollbar-width: thin;
}
.pcard { min-width: 168px; width: 168px; cursor: pointer; }
.pposter {
  width: 168px; height: 250px; border-radius: 12px; overflow: hidden;
  background: var(--card2); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pposter img { width: 100%; height: 100%; object-fit: cover; }
.ptitle-fb { font-size: 52px; font-weight: 800; color: var(--accent2); }
.pbar { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: rgba(0,0,0,.6); }
.pbar div { height: 100%; background: var(--danger); }
.pcard .pt { font-weight: 700; font-size: 15px; margin-top: 8px; line-height: 1.3; }
.pcard .py { color: var(--muted); font-size: 13px; }

/* ------------------------------ avisos y detalle */
.notice {
  background: #1a2130; border: 1px solid #2c3650; border-radius: 12px;
  padding: 14px 18px; color: var(--muted); font-size: 16px; margin-bottom: 18px; line-height: 1.5;
}
.detail { display: flex; gap: 22px; }
.dposter { width: 180px; border-radius: 12px; align-self: flex-start; }
.prov {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card2);
  border-radius: 999px; padding: 6px 14px 6px 6px; margin: 4px 6px 4px 0; font-size: 15px;
}
.prov img { width: 28px; height: 28px; border-radius: 50%; }
.auth-legal { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ------------------------------ heroe estilo DebridStream */
.hero {
  position: relative; border-radius: 22px; overflow: hidden; cursor: pointer;
  min-height: 340px; display: flex; align-items: flex-end; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 16, .96) 8%, rgba(5, 7, 16, .45) 45%, rgba(5, 7, 16, .1) 100%);
}
.hero-info { position: relative; padding: 30px 34px; max-width: 640px; }
.hero-title { font-size: 40px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.hero-meta { color: #9fe6a0; font-size: 15px; margin-bottom: 10px; }
.hero-overview { color: #c6cfdf; font-size: 15px; line-height: 1.5; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; gap: 12px; }

/* Tarjetas anchas (continuar viendo) */
.wcard { width: 340px; min-width: 340px; cursor: pointer; }
.wthumb { position: relative; height: 190px; border-radius: 14px; overflow: hidden; background: var(--card); }
.wthumb img { width: 100%; height: 100%; object-fit: cover; }
.wthumb .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.25); }
.wthumb .pbar > div { height: 100%; background: var(--danger); }
.wthumb .wplay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7); opacity: .9;
}
.wcard .wt { font-size: 16px; font-weight: 700; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard .wy { color: var(--muted); font-size: 13px; }

/* Ajustes estilo DebridStream */
.settings-layout { display: flex; gap: 40px; align-items: flex-start; }
.settings-side { min-width: 220px; padding-top: 6px; }
.settings-side .s-title { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.settings-side .s-prof { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.settings-main { flex: 1; max-width: 640px; }
.set-group { margin-bottom: 26px; }
.set-group-t { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; padding-left: 4px; }
.set-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 18px; margin-bottom: 8px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  color: var(--text); font-size: 16px; text-align: left;
}
.set-row .set-ico { font-size: 20px; width: 28px; text-align: center; }
.set-row .set-label { flex: 1; font-weight: 600; }
.set-row .set-val { color: var(--muted); font-size: 14px; }
.set-row .set-chev { color: var(--muted); font-size: 20px; }
.set-row .set-badge { font-size: 11px; font-weight: 800; color: #0b1020; background: #8f9bb8; border-radius: 6px; padding: 3px 8px; }

/* Detalle con backdrop */
.dhero { margin: -8px -8px 16px; border-radius: 12px 12px 0 0; overflow: hidden; max-height: 220px; }
.dhero img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Pildora volver (sub-paneles de ajustes) */
.back-pill {
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 15px; font-weight: 600;
}

/* Heroe exacto estilo DebridStream */
.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 44px; font-weight: 700; letter-spacing: 8px; text-transform: uppercase;
  margin-bottom: 10px; color: #fff;
}
.hero-meta { color: #8fe38f; font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.hero-detail {
  padding: 12px 30px; border-radius: 999px; cursor: pointer; border: none;
  background: rgba(255, 255, 255, .92); color: #111; font-size: 16px; font-weight: 700;
}

/* Tarjetas apaisadas (filas estilo DebridStream) */
.lcard { width: 300px; min-width: 300px; cursor: pointer; }
.lthumb { position: relative; height: 168px; border-radius: 14px; overflow: hidden; background: var(--card); }
.lthumb img { width: 100%; height: 100%; object-fit: cover; }
.lthumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}
.ltitle {
  position: absolute; left: 14px; bottom: 10px; right: 14px; z-index: 1;
  font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}

/* Porque viste X */
.because { display: flex; gap: 22px; align-items: stretch; margin-bottom: 8px; }
.because-feature { width: 430px; min-width: 430px; cursor: pointer; }
.bf-thumb { position: relative; height: 240px; border-radius: 16px; overflow: hidden; background: var(--card); }
.bf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
}
.bf-title {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-size: 22px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff;
}
.bf-meta { color: #8fe38f; font-size: 14px; margin: 10px 2px 6px; font-weight: 600; }
.bf-desc { color: #c6cfdf; font-size: 14px; line-height: 1.5; margin: 0 2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.because-row { flex: 1; min-width: 0; }

/* Cabecera de genero con barra azul */
.genre-head {
  border-left: 4px solid #3b9dff; padding-left: 12px;
  font-size: 20px; font-weight: 800; margin: 26px 0 4px;
}
.genre-sub { color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 12px; }

/* Pildoras de genero */
.genre-pills { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; }
.genre-pills .chip { white-space: nowrap; }

/* Editor de perfil pantalla completa */
.pedit-layout { display: flex; gap: 50px; align-items: flex-start; max-width: 760px; }
.pedit-form { flex: 1; }
.pedit-preview { text-align: center; min-width: 180px; }
.pedit-preview .pavatar { width: 150px; height: 150px; font-size: 84px; }
.pedit-preview .pname { margin-top: 12px; font-size: 18px; font-weight: 700; }
.field input { font-size: 17px; }

/* PIN */
.pin-wrap { text-align: center; padding: 30px; }
.pin-wrap h3 { margin-bottom: 8px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 24px 0; }
.pin-dots span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #4a5878; background: transparent;
}
.pin-dots span.f { background: #fff; border-color: #fff; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; justify-content: center; }
.pin-pad button {
  height: 64px; border-radius: 16px; font-size: 26px; cursor: pointer;
  background: var(--card2); border: 1px solid rgba(255,255,255,.12); color: #fff;
}

/* ============ PULIDO PREMIUM: lo que hace que quieras quedarte ============ */

/* Fondo ambiente cinematografico */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 10% -6%, rgba(124, 93, 250, .17), transparent 60%),
    radial-gradient(760px 480px at 90% 6%, rgba(0, 212, 255, .09), transparent 60%),
    radial-gradient(1000px 700px at 50% 112%, rgba(124, 93, 250, .10), transparent 60%);
}
#view-main, #view-auth, #view-profiles { position: relative; z-index: 1; }
body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h2, .row-title, .genre-head, .hero-info .hero-title { letter-spacing: .3px; }
h2, .row-title { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 700; }

/* Vidrio en tarjetas y paneles */
.card, .set-row, .list-row, .auth-card, .profile-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .09);
}

/* Fisica de tarjetas: se levantan con brillo */
.pcard, .lcard, .wcard, .card, .profile-card { transition: transform .28s cubic-bezier(.2, .7, .3, 1.4), box-shadow .28s ease; }
.pcard:hover, .lcard:hover, .wcard:hover { transform: translateY(-5px) scale(1.025); }
.lcard:hover .lthumb { box-shadow: 0 14px 44px rgba(124, 93, 250, .38); }
.wcard:hover .wthumb { box-shadow: 0 14px 44px rgba(124, 93, 250, .38); }
.pcard:hover .pimg { box-shadow: 0 14px 44px rgba(124, 93, 250, .38); }
.lthumb, .wthumb, .pimg { transition: box-shadow .28s ease; }

/* Heroe cinematografico */
.hero { min-height: 430px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.hero-bg { animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-detail { transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.hero-detail:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 255, 255, .25); }

/* Botones con gradiente */
.btn {
  background: linear-gradient(135deg, #8a68ff, #5b3df0);
  border: none; box-shadow: 0 8px 26px rgba(124, 93, 250, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 93, 250, .6); }
.btn.secondary { background: rgba(255, 255, 255, .1); box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); }

/* Barras de progreso con brillo */
.pbar > div { box-shadow: 0 0 12px rgba(255, 84, 112, .9); }
.wthumb .pbar > div { box-shadow: 0 0 12px rgba(255, 84, 112, .9); }

/* Scrollbar sutil en filas */
.hrow::-webkit-scrollbar { height: 8px; }
.hrow::-webkit-scrollbar-track { background: transparent; }
.hrow::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }
.hrow::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }

/* Foco remoto con halo */
.nav-focus {
  box-shadow: 0 0 0 6px rgba(255, 209, 102, .18), 0 10px 34px rgba(255, 209, 102, .25);
}

/* Iconos SVG */
.set-ico { color: #a9bede; display: inline-flex; align-items: center; flex: none; }
.set-ico svg { width: 24px; height: 24px; }
.set-row:hover .set-ico { color: #d6e2ff; }
.av-svg svg { width: 100%; height: 100%; display: block; }
.avatar.av-svg { padding: 5px; overflow: hidden; }
.pavatar.av-svg { padding: 8px; }
.av-pick-svg { display: block; }
.av-pick-svg svg { width: 42px; height: 42px; display: block; }
.avatar-pick button { padding: 6px; }
#pe-prev-av svg { width: 100%; height: 100%; }

/* Titulo de seccion con aire */
.row-title { margin: 26px 0 14px; font-size: 21px; }
.genre-head { margin-top: 30px; }

/* ---------------- Premium ---------------- */
#nav-premium svg { color: #ffd166; }
.prem-wrap { max-width: 1080px; margin: 0 auto; padding: 6px 4px 30px; }
.prem-sub { color: #c6cfdf; font-size: 16px; margin: 0 0 18px; }
.prem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prem-card { position: relative; background: linear-gradient(160deg, #161c2e, #101527); border: 1px solid #2c3650; border-radius: 16px; padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prem-card.prem-best { border-color: var(--accent); box-shadow: 0 0 32px rgba(124, 92, 255, .28); }
.prem-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.prem-name { font-size: 19px; font-weight: 800; color: #fff; }
.prem-price { font-size: 34px; font-weight: 800; color: var(--accent2); }
.prem-price span { font-size: 14px; font-weight: 500; color: #9aa6bd; }
.prem-feats { list-style: none; margin: 4px 0; padding: 0; color: #c6cfdf; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.prem-feats li::before { content: "✓ "; color: #7ee2a8; font-weight: 700; }
.prem-qr { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; margin-top: 6px; }
.prem-qr svg { width: 100%; height: 100%; display: block; }
.prem-soon { font-size: 15px; font-weight: 800; color: var(--accent2); border: 1px dashed var(--accent2); border-radius: 999px; padding: 8px 26px; margin: 14px 0 4px; }
.prem-scan { font-size: 13px; color: #9aa6bd; }
.prem-trial-badge { font-size: 15px; font-weight: 800; color: #0b0e14; background: #7ee2a8; border-radius: 999px; padding: 8px 26px; margin: 14px 0; }
.prem-note { margin-top: 20px; font-size: 13px; color: #9aa6bd; text-align: center; }
.prem-card .btn { text-decoration: none; margin-top: 4px; }
@media (max-width: 900px) { .prem-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
