:root {
  --bg: #141414;
  --bg2: #181818;
  --red: #e50914;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --pad: 4%;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
.hidden { display: none !important; }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
  transition: background .3s;
}
#nav.solid { background: var(--bg); }
.logo { color: var(--red); font-weight: 900; font-size: 1.7rem; letter-spacing: 1px; }
#nav nav { display: flex; gap: 20px; font-size: .92rem; }
#nav nav a { color: #ddd; transition: color .2s; }
#nav nav a:hover, #nav nav a.active { color: #fff; font-weight: 600; }
.search { margin-left: auto; }
.search input {
  background: rgba(0,0,0,.6); border: 1px solid #777; color: #fff;
  padding: 7px 12px; border-radius: 3px; width: 200px; transition: width .3s, border-color .2s;
}
.search input:focus { outline: none; width: 280px; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 82vh; min-height: 460px;
  background-size: cover; background-position: center top; background-color: #222;
  display: flex; align-items: center; padding: 0 var(--pad);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(77deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 65%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18vh;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-info { position: relative; z-index: 2; max-width: 560px; margin-top: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; text-shadow: 2px 2px 8px rgba(0,0,0,.6); }
.hero p {
  margin: 18px 0 24px; font-size: clamp(.95rem, 1.4vw, 1.2rem); line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(0,0,0,.7);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px; border-radius: 4px; font-weight: 700; font-size: 1.05rem;
  transition: opacity .2s, background .2s;
}
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.45); }

/* ---------- Login / registro ---------- */
/* Un solo fondo: el mismo color en toda la pantalla, con un resplandor difuminado y sin cortes */
body.is-auth { background: #0e0d11; }
body.is-auth::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 38% at 22% 24%, rgba(229,9,20,.34), transparent 70%),
    radial-gradient(34% 34% at 82% 78%, rgba(190,20,70,.22), transparent 70%);
  filter: blur(70px);
}
.auth-page {
  width: 100%; max-width: 1180px; margin: 0 auto; min-height: 100%; padding: 40px clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 90px);
}
.auth-hero { display: flex; flex-direction: column; gap: 26px; }
.auth-logo { color: var(--red); font-weight: 900; font-size: 2rem; letter-spacing: 3px; text-shadow: 0 0 28px rgba(229,9,20,.45); }
.auth-hero h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; font-weight: 800; }
.perks { list-style: none; display: grid; gap: 16px; max-width: 460px; }
.perks li { display: flex; gap: 14px; align-items: center; }
.perks em {
  font-style: normal; width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; backdrop-filter: blur(6px);
}
.perks b { display: block; font-size: 1rem; }
.perks span { color: #b9b9c0; font-size: .88rem; }
.trial-banner { display: none; }

.auth-panel { display: grid; place-items: center; }
.auth-card {
  width: 100%; max-width: 430px; display: flex; flex-direction: column; gap: 16px;
  background: rgba(24,23,29,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  padding: 32px 30px; box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.auth-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.auth-card h1 { font-size: 1.65rem; }
.auth-intro { color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: -8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tabs button { background: transparent; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 700; transition: background .2s, color .2s; }
.auth-tabs button.on { background: #fff; color: #000; }
.auth-tabs button:not(.on):hover { color: #fff; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld .lbl { font-size: .8rem; color: #b4b4bb; font-weight: 600; }
.inp {
  position: relative; display: flex; align-items: center; background: rgba(0,0,0,.28); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.inp:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,9,20,.18); }
.inp .ico { display: grid; place-items: center; padding-left: 13px; color: #8a8a93; }
.inp:focus-within .ico { color: var(--red); }
.inp input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 14px 13px; font: inherit; font-size: 1rem;
}
.inp input:focus { outline: none; }
.inp input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px #1c1b22 inset; }
.eye { background: transparent; color: #9a9aa3; font-size: .78rem; font-weight: 700; padding: 0 14px; height: 100%; }
.eye:hover { color: #fff; }

.meter { margin-top: -6px; }
.meter .bar { height: 5px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; background: #e5484d; border-radius: 99px; transition: width .25s, background .25s; }
.meter[data-s="2"] .bar i { background: #f5a524; }
.meter[data-s="3"] .bar i { background: #9ed83f; }
.meter[data-s="4"] .bar i { background: #46d369; }
.meter small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }

.auth-btn {
  position: relative; width: 100%; margin-top: 4px; padding: 14px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.02rem;
  background: linear-gradient(180deg, #f40612, #c20812); box-shadow: 0 8px 24px rgba(229,9,20,.35);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.auth-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.auth-btn:disabled { opacity: .75; cursor: progress; }
.auth-btn.loading span { opacity: 0; }
.auth-btn.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-msg { color: #ff6b6b; font-size: .9rem; min-height: 1.1em; text-align: center; }
.auth-msg.ok { color: #46d369; }
.auth-alt { color: var(--muted); font-size: .9rem; text-align: center; }
.auth-alt a { color: #fff; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-fine { color: #7c7c85; font-size: .75rem; text-align: center; line-height: 1.4; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 24px 16px 28px; gap: 22px; }
  .auth-hero { gap: 12px; }
  .auth-logo { font-size: 1.5rem; }
  .auth-hero h2 { font-size: 1.35rem; }
  .perks { display: none; }
  .trial-banner {
    display: inline-block; align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  }
  .auth-panel { place-items: start center; min-width: 0; }
  .auth-card { padding: 24px 20px; min-width: 0; }
}

/* ---------- Pie de página ---------- */
body { display: flex; flex-direction: column; }
#app { flex: 1 0 auto; width: 100%; }
#footer {
  flex: none; text-align: center; padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom));
  color: #7e7e88; font-size: .82rem; line-height: 1.7; border-top: 1px solid rgba(255,255,255,.07);
}
body.is-auth #footer { border-top-color: rgba(255,255,255,.05); }
#footer .f-brand { color: var(--red); font-weight: 900; letter-spacing: 3px; font-size: .95rem; margin-bottom: 4px; }
#footer a { color: #b4b4bb; text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; }
#footer .f-sep { margin: 0 8px; opacity: .5; }
/* ---------- Etiqueta de prueba gratis ---------- */
.trial-pill {
  background: linear-gradient(180deg, #f40612, #c20812); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(229,9,20,.35);
}

/* ---------- Perfil ---------- */
#nav .avatar { margin-left: 4px; }
.profile .prices { margin: 12px 0; }
.btn.tg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #229ed9; color: #fff; }
.btn.tg:hover { background: #1b87bb; }
.p-actions { margin-bottom: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 6px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 1.05rem; flex: none;
}
.avatar:hover { filter: brightness(1.15); }
.avatar.big { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: default; }
.sheet.profile { max-width: 460px; position: relative; margin-top: 8vh; }
.profile .sheet-body { padding: 26px 26px 28px; }
.p-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.p-head h2 { font-size: 1.3rem; }
.p-head small { color: var(--muted); }
.profile h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.prow { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #2c2c2c; font-size: .95rem; }
.prow span { color: var(--muted); }
.badge { padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.badge.ok { background: #1d6b34; color: #7dffa3; }
.badge.off { background: #5a1a1a; color: #ff9a9a; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price { background: #242424; border-radius: 6px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: .92rem; }
.price span { color: var(--muted); }
.profile .hint { color: var(--muted); font-size: .82rem; margin: 14px 0 16px; }

/* ---------- Planes ---------- */
.plans { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.plan { border: 1px solid #333; border-radius: 8px; padding: 12px; background: #1d1d1d; }
.plan.mine { border-color: #46d369; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.plan-head small { color: var(--muted); }
.plan .prices { margin: 0; }

/* ---------- Solicitudes y avisos ---------- */
.notfound { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 80px; }
.notfound .ask { color: #fff; font-size: 1.15rem; margin-top: 6px; }
.req-msg { color: #ff9a9a; min-height: 1.2em; font-size: .95rem; }
.req-msg.ok { color: #46d369; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.toast {
  position: relative; background: #1f1f1f; border: 1px solid #444; border-left: 4px solid #46d369;
  border-radius: 8px; padding: 16px 38px 16px 16px; box-shadow: 0 10px 40px #000; animation: pop .25s ease;
}
.toast p { margin: 8px 0 12px; font-size: .92rem; line-height: 1.45; color: #ddd; }
.toast-x { position: absolute; top: 8px; right: 8px; background: transparent; color: #aaa; font-size: 1rem; }
.toast-x:hover { color: #fff; }

/* ---------- Favoritos y calificación ---------- */
.sheet-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.btn-ico {
  background: rgba(42,42,42,.85); color: #fff; border: 2px solid rgba(255,255,255,.5);
  padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: .95rem;
}
.btn-ico:hover { border-color: #fff; }
.btn-ico.on { background: #fff; color: #000; border-color: #fff; }
.rate { color: #ddd; font-size: .9rem; text-shadow: 1px 1px 4px #000; }
.card { position: relative; }
.score {
  position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(0,0,0,.75); color: #46d369;
  font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.score.low { color: #ff9a9a; }

/* ---------- Etiquetas de género ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--pad) 10px;
}
.grid-page .chips { padding: 0 0 12px; }
.chip {
  padding: 4px 12px; text-align: center;
  border-radius: 999px; font-size: .74rem; white-space: nowrap;
  background: rgba(109,109,110,.35); color: var(--text); border: 1px solid transparent;
}
.chip:hover { background: rgba(109,109,110,.6); }
.chip.on { background: var(--red); color: #fff; }

/* ---------- Filas ---------- */
.rows { position: relative; z-index: 3; margin-top: -9vh; padding-bottom: 60px; }
.row { margin-bottom: 34px; position: relative; }
.row h2 { font-size: 1.3rem; font-weight: 600; padding: 0 var(--pad); margin-bottom: 10px; }
.track {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 10px var(--pad); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute; top: 40px; bottom: 10px; width: var(--pad); min-width: 36px; z-index: 5;
  background: rgba(20,20,20,.6); color: #fff; font-size: 2rem; opacity: 0; transition: opacity .2s;
}
.row:hover .arrow { opacity: 1; }
.arrow.l { left: 0; } .arrow.r { right: 0; }

.card {
  flex: 0 0 auto; width: clamp(130px, 15vw, 230px); aspect-ratio: 2/3;
  border-radius: 4px; overflow: hidden; background: #2a2a2a; position: relative;
  scroll-snap-align: start; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: scale(1.12); z-index: 4; box-shadow: 0 8px 24px rgba(0,0,0,.8); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center; font-weight: 700; color: #888;
}
.card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.9)); font-size: .82rem; font-weight: 600;
  opacity: 0; transition: opacity .2s;
}
.card:hover .cap { opacity: 1; }

/* Grid (búsqueda / filtros) */
.grid-page { padding: 110px var(--pad) 60px; }
.grid-page h2 { margin-bottom: 18px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.grid .card { width: 100%; }
.empty { padding: 140px var(--pad); text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- Modal detalle ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.75);
  overflow-y: auto; padding: 4vh 12px;
}
.sheet {
  max-width: 860px; margin: 0 auto; background: var(--bg2); border-radius: 8px;
  overflow: hidden; box-shadow: 0 10px 50px #000; animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-hero {
  position: relative; height: 380px; background-size: cover; background-position: center top; background-color: #222;
  display: flex; align-items: flex-end; padding: 28px;
}
.sheet-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg2));
}
.sheet-hero > div { position: relative; z-index: 2; }
.sheet-hero h1 { font-size: 2.2rem; margin-bottom: 14px; text-shadow: 2px 2px 8px #000; }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; background: var(--bg2); color: #fff; font-size: 1.2rem;
}
.sheet-body { padding: 8px 28px 30px; }
.meta { display: flex; gap: 14px; align-items: center; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.meta .match { color: #46d369; font-weight: 700; }
.meta .tag { border: 1px solid #666; padding: 0 6px; font-size: .8rem; }
.sheet-body p.desc { line-height: 1.5; margin-bottom: 14px; }
.eps-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.eps-head h3 { font-size: 1.4rem; }
select {
  background: #242424; color: #fff; border: 1px solid #555; padding: 7px 10px; border-radius: 4px; font: inherit;
}
.ep {
  display: flex; align-items: center; gap: 16px; padding: 16px 12px;
  border-bottom: 1px solid #333; cursor: pointer; border-radius: 4px; transition: background .2s;
}
.ep:hover { background: #2a2a2a; }
.ep .n { font-size: 1.5rem; color: var(--muted); width: 34px; text-align: center; }
.ep .t { font-weight: 600; }
.ep .go { margin-left: auto; color: var(--muted); }

/* ---------- Reproductor ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
.player-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(rgba(0,0,0,.8), transparent); transition: opacity .3s;
}
.player-bar button { background: transparent; color: #fff; font-size: 1.6rem; }
.player-bar span { font-weight: 600; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- Adaptación: móvil, PC y TV ---------- */
html { -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.track { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

/* Foco visible: teclado y mando de TV */
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.card:focus-visible { outline: none; transform: scale(1.1); z-index: 4; box-shadow: 0 0 0 4px #fff, 0 8px 24px rgba(0,0,0,.8); }
.chip:focus-visible, .btn:focus-visible, .btn-ico:focus-visible { outline-offset: 3px; }

/* Pantallas táctiles: sin efectos de hover ni flechas de las filas */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .arrow { display: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .search input { width: 160px; }
  #nav { gap: 18px; }
}

/* Móvil */
@media (max-width: 700px) {
  #nav { gap: 8px 10px; flex-wrap: wrap; padding: max(8px, env(safe-area-inset-top)) var(--pad) 6px; }
  .logo { font-size: 1.15rem; }
  .search { flex: 1; margin-left: 0; min-width: 0; }
  .search input, .search input:focus { width: 100%; font-size: 16px; padding: 8px 12px; } /* 16px evita el zoom de iOS */
  #nav .avatar { margin-left: 0; width: 40px; height: 40px; }
  #nav nav { order: 3; width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; font-size: .9rem; }
  #nav nav::-webkit-scrollbar { display: none; }
  #nav nav a { padding: 7px 14px; white-space: nowrap; border-radius: 999px; background: rgba(255,255,255,.1); }
  #nav nav a:hover, #nav nav a.active { background: #fff; color: #000; }

  /* Textos y botones abajo para que la imagen se vea completa */
  .hero { height: 64vh; min-height: 380px; align-items: flex-end; padding-bottom: 22px; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 30%, rgba(0,0,0,0) 62%); }
  .hero-info { margin-top: 0; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero p { -webkit-line-clamp: 2; margin: 8px 0 14px; font-size: .9rem; }
  .btn { padding: 9px 18px; font-size: .95rem; }
  .rows { margin-top: 0; }
  .row h2 { font-size: 1.1rem; }
  .card { width: clamp(108px, 30vw, 160px); }
  .grid-page { padding-top: 120px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .chip { padding: 6px 12px; font-size: .8rem; }

  .modal { padding: 0; }
  .sheet { border-radius: 0; min-height: 100%; }
  .sheet-hero { height: 230px; padding: 16px; }
  .sheet-hero h1 { font-size: 1.5rem; margin-bottom: 10px; }
  .sheet-body { padding: 6px 16px 28px; }
  .close { width: 42px; height: 42px; top: max(10px, env(safe-area-inset-top)); }
  .btn-ico { padding: 8px 11px; font-size: .88rem; }
  .ep { padding: 12px 6px; gap: 10px; }
  .eps-head h3 { font-size: 1.15rem; }
  .sheet.profile { margin-top: 0; }
  .profile .sheet-body { padding: 60px 18px 28px; }

  #toasts { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: none; }
  .player-bar { padding: max(14px, env(safe-area-inset-top)) 14px 14px; }
}
@media (max-width: 380px) {
  .prices { grid-template-columns: 1fr; }
}

/* Pantallas grandes y TV: todo se escala y se agranda para verlo a distancia */
@media (min-width: 1600px) {
  html { font-size: 20px; }
  .card { width: 12vw; max-width: 360px; }
  .hero-info { max-width: 42vw; }
  .search input { width: 280px; font-size: 1rem; }
  .avatar { width: 46px; height: 46px; }
  .sheet { max-width: 1100px; }
  .sheet-hero { height: 460px; }
  .sheet.profile { max-width: 560px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 2400px) {
  html { font-size: 28px; }
}

@media (max-width: 700px) { .trial-pill { font-size: .68rem; padding: 4px 8px; } .search { flex: 1 1 90px; } }
