/* VillavoNetx — cine / IPTV (azul medianoche, púrpura, cian, rojo butaca, ámbar) */

:root {
  --bg-deep: #04060d;
  --bg-panel: #0a0e18;
  --bg-elevated: #111827;
  --border: rgba(56, 189, 248, 0.14);
  --text: #f0f4fc;
  --text-muted: #8b9dc3;
  /* Acentos imagen: púrpura / magenta Jellyfin, cian VillavoNetx, butacas, foco cálido */
  --accent-purple: #7c3aed;
  --accent-magenta: #c026d3;
  --accent-cyan: #38bdf8;
  --accent-cyan-bright: #67e8f9;
  --accent-cyan-dim: #22b8cf;
  --theater-red: #be123c;
  --brand-red: #e50914;
  --amber-glow: rgba(245, 158, 11, 0.22);
  --purple-glow: rgba(124, 58, 237, 0.42);
  --cyan-glow: rgba(56, 189, 248, 0.35);
  /* Compatibilidad con reglas existentes */
  --red: var(--accent-magenta);
  --red-glow: var(--purple-glow);
  --gold: var(--accent-cyan-bright);
  --gold-dim: var(--accent-cyan-dim);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(ellipse 120% 90% at 50% -15%, rgba(124, 58, 237, 0.2), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(56, 189, 248, 0.08), transparent 48%),
    radial-gradient(ellipse 60% 40% at 0% 80%, var(--amber-glow), transparent 50%),
    var(--bg-deep);
  color: var(--text);
}

/* Toasts */
.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(10, 14, 24, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 58, 237, 0.18);
  font-size: 0.9rem;
  animation: toast-in 0.35s ease;
}

.toast--error {
  border-color: rgba(190, 18, 60, 0.45);
  color: #fecdd3;
}

.toast--success {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ocultar pantallas con atributo hidden (evita que CSS display:flex deje el login encima) */
.screen-login[hidden],
.screen-app[hidden],
.screen-profiles[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Login estilo Netflix */
.screen-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
}

.brand-bg-layer {
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.brand-bg-layer.has-custom-bg {
  background-image: linear-gradient(
      180deg,
      rgba(4, 6, 13, 0.82) 0%,
      rgba(4, 6, 13, 0.72) 40%,
      rgba(4, 6, 13, 0.88) 100%
    ),
    var(--brand-bg-image);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
}

.login-backdrop-img[hidden] {
  display: none !important;
}

.login-backdrop-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 13, 0.75) 0%,
    rgba(4, 6, 13, 0.55) 45%,
    rgba(4, 6, 13, 0.82) 100%
  );
}

/* Sin imagen personalizada: hero por defecto detrás del velo */
.login-backdrop:not(.has-custom-bg) {
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.88) 0%, rgba(4, 6, 13, 0.78) 40%, rgba(4, 6, 13, 0.92) 100%),
    radial-gradient(ellipse 90% 60% at 50% 20%, rgba(124, 58, 237, 0.25), transparent 55%),
    url("/images/villavonetx-hero.png");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.login-backdrop.has-custom-bg {
  background: #04060d;
}

.login-brand--in-card {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 1.75rem;
}

.login-brand--in-card .brand-logo-img--login {
  display: block;
  margin: 0 auto;
}

.login-brand--logo .brand-logo-img--login {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.45rem;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(56, 189, 248, 0.7);
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.95), rgba(124, 58, 237, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 24px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(139, 92, 246, 0.4);
}

.login-mark {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--brand-red);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Nombre en rojo (login y marca) */
.login-brand--text .login-mark {
  position: relative;
  display: inline-block;
  width: 100%;
  background: none;
  -webkit-text-fill-color: var(--brand-red);
  color: var(--brand-red);
  text-shadow:
    1px 0 0 rgba(255, 80, 80, 0.55),
    -1px 0 0 rgba(180, 0, 40, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(229, 9, 20, 0.35);
  filter: none;
}

.login-brand--text .login-mark::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 0.12em;
  transform: translateX(-50%);
  z-index: -1;
  width: max-content;
  background: none;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0.35;
}

.login-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.login-tagline[hidden] {
  display: none !important;
  margin: 0;
}

.login-card {
  width: 100%;
  padding: 3rem 2.25rem 2.75rem;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(160, 160, 170, 0.55);
  border-radius: 10px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-heading {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  width: 100%;
  height: 3.125rem;
  padding: 1rem 1.25rem 0.5rem;
  border-radius: 6px;
  border: none;
  background: #333;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.login-field::placeholder {
  color: #8c8c8c;
}

.login-field:focus {
  background: #454545;
  box-shadow: 0 0 0 1px #fff inset;
}

.login-form-error {
  margin: 0;
}

.btn-login-submit {
  margin-top: 0.5rem;
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #e50914;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-login-submit:hover {
  background: #f40612;
}

.btn-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Botón APK — píldora neón + distorsión suave (texto fijo) */
@keyframes apk-pill-glitch {
  0%, 100% { transform: translate(0, 0) skewX(0deg); }
  20% { transform: translate(-2px, 1px) skewX(-0.6deg); }
  40% { transform: translate(2px, -1px) skewX(0.5deg); }
  60% { transform: translate(-1px, 0) skewX(-0.4deg); }
  80% { transform: translate(3px, 1px) skewX(0.7deg); }
}

@keyframes apk-pill-chroma {
  0%, 100% { opacity: 0; transform: translateX(0); }
  15% { opacity: 0.5; transform: translateX(-4px); }
  30% { opacity: 0.35; transform: translateX(3px); }
  45% { opacity: 0.55; transform: translateX(-3px); }
}

.btn.btn-android-download {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1rem 0 0;
  padding: 2px;
  min-height: 3.25rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(90deg, #00d2ff 0%, #9d50bb 50%, #f000ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    -8px 0 24px rgba(0, 210, 255, 0.35),
    8px 0 24px rgba(240, 0, 255, 0.32),
    0 8px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
}

.btn.btn-android-download:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn.btn-android-download:active {
  transform: none;
}

.btn.btn-android-download.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.btn-android-download__pill {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  animation: apk-pill-glitch 1.8s steps(1) infinite;
}

.btn-android-download__pill-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(95deg, #00d2ff 0%, #00b4ff 22%, #9d50bb 50%, #c026d3 72%, #f000ff 100%);
}

.btn-android-download__pill-fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #00f0ff;
  mix-blend-mode: screen;
  animation: apk-pill-chroma 1.6s steps(1) infinite;
  pointer-events: none;
}

.btn-android-download__pill-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.1) 24%,
    transparent 42%,
    transparent 62%,
    rgba(255, 255, 255, 0.28) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn-android-download__label {
  position: relative;
  z-index: 2;
  padding: 0 1.25rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(0.88rem, 3.2vw, 1.05rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-android-download__pill,
  .btn-android-download__pill-fx {
    animation: none;
  }
}

/* Campos genéricos (resto de la app) */
.field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  margin-top: 0.65rem;
}

.field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field-input:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.form-error {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(190, 18, 60, 0.18);
  border: 1px solid rgba(190, 18, 60, 0.4);
  color: #fecdd3;
  font-size: 0.88rem;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
  color: #fff;
  box-shadow: 0 8px 32px var(--purple-glow);
}

.screen-login .btn-primary {
  margin-top: 0;
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.55);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
}

.topbar-actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--accent-cyan-bright);
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.1);
}

.login-footnote {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: #737373;
  text-align: left;
  line-height: 1.5;
}

.login-admin-link {
  color: #fff;
  text-decoration: none;
}

.login-admin-link:hover {
  text-decoration: underline;
}

/* App layout: altura fija al viewport para que el reproductor llene el hueco bajo la topbar */
.screen-app {
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.25rem;
  background: rgba(10, 10, 14, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 200px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-purple), var(--accent-magenta));
  box-shadow: 0 0 22px var(--purple-glow);
  position: relative;
}

/* Sin logo subido: solo texto del servicio, sin icono decorativo */
.brand-icon:not(.has-logo) {
  display: none;
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 2px solid var(--accent-cyan-bright);
  opacity: 0.9;
}

.brand-icon.has-logo,
.brand-icon.has-logo::after {
  background: transparent;
  border: none;
  box-shadow: none;
  content: none;
}

.brand-logo-img {
  display: block;
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-img--login {
  max-height: 56px;
  max-width: 260px;
  margin: 0 auto 0.75rem;
}

.topbar-brand--logo .brand-text .brand-title[hidden] {
  display: none;
}

.login-brand--logo .login-mark,
.login-brand--logo .login-mark[hidden] {
  display: none !important;
}

.login-brand--logo .login-tagline {
  margin-top: 0.35rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
}

.topbar-search {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.session-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--gold);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-countdown-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.35);
  color: #bef264;
  white-space: nowrap;
}

.service-countdown-pill.is-warn {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
}

.service-countdown-pill.is-urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.service-countdown-pill.is-expired {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.app-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.65rem;
  background: rgba(8, 8, 12, 0.95);
  border-bottom: 1px solid var(--border);
}

.app-tab {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.app-tab:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.25);
}

.app-tab.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(15, 23, 42, 0.92));
  border-color: rgba(124, 58, 237, 0.55);
  color: var(--text);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.sidebar-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-list-head .sidebar-heading {
  margin: 0 0 0 0.35rem;
}

.series-back-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  color: var(--gold);
  cursor: pointer;
}

.series-back-btn:hover {
  background: rgba(56, 189, 248, 0.15);
}

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 300px;
  min-width: 240px;
  max-width: 340px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-section {
  padding: 0.85rem 0.75rem;
}

.sidebar-section--grow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-heading {
  margin: 0 0 0.5rem 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 28vh;
  overflow-y: auto;
  padding-right: 4px;
}

.category-btn {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.category-btn.is-active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), transparent);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--text);
  font-weight: 600;
}

.channel-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 4px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.channel-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.channel-card.is-active {
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.35), 0 8px 24px rgba(124, 58, 237, 0.15);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), var(--bg-elevated));
}

.channel-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a32, #1a1a20);
  object-fit: cover;
  flex-shrink: 0;
}

.channel-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-dim);
}

.channel-meta {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.player-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.player-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Panel compatibilidad audio / contenedor (estilo aviso streaming) */
.playback-compat-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.playback-compat-panel[hidden] {
  display: none !important;
}

.playback-compat-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  cursor: pointer;
}

.playback-compat-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22.5rem;
  max-height: min(88vh, 32rem);
  overflow-y: auto;
  pointer-events: auto;
  padding: 1.15rem 1.2rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(14, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
}

.playback-compat-close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playback-compat-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.playback-compat-title {
  margin: 0 0 0.55rem;
  padding-right: 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.playback-compat-body {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.88);
}

.playback-compat-format {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.playback-compat-format[hidden] {
  display: none !important;
}

.playback-compat-extra {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.playback-compat-extra[hidden] {
  display: none !important;
}

.playback-compat-extra-lead {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
}

.playback-compat-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.85);
}

.playback-compat-steps li {
  margin-bottom: 0.35rem;
}

.playback-compat-fallback-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.playback-compat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-compat {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-compat-primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.92));
  color: #0b1220;
  border-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.btn-compat-primary:hover {
  filter: brightness(1.05);
}

#btn-compat-transcode:not([hidden]) + #btn-compat-dismiss.btn-compat-ghost {
  margin-top: 0;
}

.btn-compat-secondary {
  background: rgba(56, 189, 248, 0.12);
  color: var(--gold);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-compat-secondary:hover {
  background: rgba(56, 189, 248, 0.18);
}

.btn-compat-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-compat-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-compat[hidden] {
  display: none !important;
}

.playback-compat-foot {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.playback-compat-foot[hidden] {
  display: none !important;
}

/* Llena todo el shell; letterboxing solo dentro del propio v deo (object-fit) */
.video-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

/* VOD: una sola barra — ocultar timeline nativa del <video controls> (la custom tiene seek). */
.video-main.video-main--vod-progress::-webkit-media-controls-timeline,
.video-main.video-main--vod-progress::-webkit-media-controls-current-time-display,
.video-main.video-main--vod-progress::-webkit-media-controls-time-remaining-display,
.player-shell:has(.player-vod-progress:not([hidden])) .video-main::-webkit-media-controls-timeline,
.player-shell:has(.player-vod-progress:not([hidden])) .video-main::-webkit-media-controls-current-time-display,
.player-shell:has(.player-vod-progress:not([hidden])) .video-main::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.player-floating-controls {
  position: absolute;
  right: 3.25rem;
  bottom: 2.65rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.player-audio-dropdown {
  position: relative;
  pointer-events: auto;
}

.player-audio-dropdown[hidden] {
  display: none !important;
}

.player-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.player-lang-btn:hover,
.player-lang-btn:focus-visible {
  background: rgba(20, 20, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.player-lang-btn[aria-expanded='true'] {
  background: rgba(229, 9, 20, 0.88);
  border-color: rgba(229, 9, 20, 0.95);
}

.player-lang-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.player-lang-btn__text {
  letter-spacing: 0.02em;
}

.player-audio-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: 11.5rem;
  max-width: min(18rem, 86vw);
  max-height: min(16rem, 50vh);
  overflow-y: auto;
  padding: 0.35rem 0 0.45rem;
  border-radius: 0.45rem;
  background: rgba(12, 14, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

.player-audio-menu[hidden] {
  display: none !important;
}

.player-audio-menu__title {
  margin: 0;
  padding: 0.35rem 0.85rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.player-audio-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.player-audio-menu__check {
  flex-shrink: 0;
  width: 1.15rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.player-audio-menu__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-audio-menu__item:hover,
.player-audio-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.player-audio-menu__item.is-active {
  font-weight: 600;
}

.player-audio-menu__item.is-active .player-audio-menu__label {
  color: #fff;
}

@media (max-width: 900px) {
  .player-floating-controls {
    right: 0.35rem;
    bottom: 3.15rem;
  }

  .player-shell:has(.player-vod-progress:not([hidden])) .player-floating-controls {
    bottom: 5.85rem;
  }

  .player-lang-btn {
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.86rem;
  }
}

.player-vod-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.35rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: auto;
}

.player-vod-progress[hidden] {
  display: none !important;
}

.player-shell:has(.player-vod-progress:not([hidden])) .player-floating-controls {
  bottom: 5.15rem;
}

.player-time {
  flex-shrink: 0;
  min-width: 4.75rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: center;
  user-select: none;
}

.player-progress-bar {
  flex: 1;
  min-width: 0;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.player-progress-bar:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c026d3, #e879f9);
  pointer-events: none;
  transition: width 0.12s linear;
}

.player-vod-progress.is-seeking .player-progress-fill {
  transition: none;
}

@media (max-width: 900px) {
  .player-vod-progress {
    bottom: 3rem;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem 0.5rem;
  }

  .player-time {
    min-width: 4.1rem;
    font-size: 0.68rem;
  }

  .player-progress-bar {
    height: 0.42rem;
  }
}

.player-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  z-index: 2;
  padding: 1rem 1.25rem 1.25rem;
  /* Oscuro arriba para leer titulo/audio; transparente abajo para no tapar controles nativos del video */
  background: linear-gradient(rgba(0, 0, 0, 0.88), transparent);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.now-playing {
  pointer-events: none;
}

.now-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

.now-title {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.now-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.now-status.is-live {
  color: #7dffb3;
}

.now-status.is-error {
  color: #ff8a8a;
}

.now-status.is-loading {
  color: #ffd88a;
}

.now-status.is-retry {
  color: #9ecbff;
}

.audio-track-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 36rem;
}

.audio-track-bar[hidden] {
  display: none !important;
}

.vod-seek-pref-wrap {
  pointer-events: auto;
  width: 100%;
  max-width: 36rem;
}

.vod-seek-pref-wrap[hidden] {
  display: none !important;
}

.vod-seek-pref-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
}

.vod-seek-pref-check {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.audio-track-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.audio-track-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  font-weight: 600;
}

.audio-track-multi-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.audio-track-multi-wrap[hidden] {
  display: none !important;
}

.audio-track-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.audio-track-select {
  font-size: 0.8rem;
  font-family: var(--font);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(20, 20, 26, 0.95);
  color: var(--text);
  min-width: 12rem;
  max-width: 100%;
  cursor: pointer;
  flex: 1 1 auto;
}

.audio-track-select:focus {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.audio-track-single-msg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 32rem;
}

.audio-track-single-msg[hidden] {
  display: none !important;
}

.player-retry-btn {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(124, 58, 237, 0.15));
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  transition: var(--transition);
}

.player-retry-btn:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(124, 58, 237, 0.22));
}

/* Scrollbars */
.category-list::-webkit-scrollbar,
.channel-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-thumb,
.channel-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

/* Perfiles estilo Netflix */
.screen-profiles {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.profiles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.9) 0%, rgba(4, 6, 13, 0.85) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.2), transparent 60%);
}

.profiles-bg:not(.has-custom-bg) {
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.92) 0%, rgba(4, 6, 13, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 60%);
}

.screen-profiles > :not(.profiles-bg) {
  position: relative;
  z-index: 1;
}

.profiles-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 1rem;
}

.profiles-account {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profiles-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.profiles-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profiles-sub {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.profiles-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  margin-bottom: 1.5rem;
}

.profile-card {
  flex: 0 0 auto;
  width: clamp(100px, 16vw, 150px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  transition: transform 0.2s ease;
}

.profile-card:hover,
.profile-card:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.profile-card:focus-visible .profile-avatar {
  box-shadow: 0 0 0 3px var(--accent-cyan-bright), 0 0 28px var(--cyan-glow);
}

.profile-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 150px;
  margin: 0 auto 0.65rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  border: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.profile-card:hover .profile-avatar {
  border-color: rgba(255, 255, 255, 0.9);
}

.profile-avatar--purple {
  background: linear-gradient(145deg, var(--accent-purple), #4c1d95);
  box-shadow: 0 12px 32px var(--purple-glow);
}

.profile-avatar--cyan {
  background: linear-gradient(145deg, var(--accent-cyan), #0369a1);
  box-shadow: 0 12px 32px var(--cyan-glow);
}

.profile-avatar--magenta {
  background: linear-gradient(145deg, var(--accent-magenta), #86198f);
  box-shadow: 0 12px 32px rgba(192, 38, 211, 0.4);
}

.profile-avatar--amber {
  background: linear-gradient(145deg, #f59e0b, #b45309);
  box-shadow: 0 12px 32px var(--amber-glow);
}

.profile-avatar--violet {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-avatar--locked {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile-lock-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.profile-lock-badge svg {
  display: block;
}

.profile-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.profile-pin-modal[hidden] {
  display: none !important;
}

.profile-pin-dialog {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(4, 6, 13, 0.98));
  box-shadow: 0 0 48px rgba(56, 189, 248, 0.15);
}

.profile-pin-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  text-align: center;
}

.profile-pin-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.profile-pin-field {
  position: relative;
  width: 100%;
}

.profile-pin-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.profile-pin-toggle:hover {
  color: var(--accent-cyan-bright);
  background: rgba(56, 189, 248, 0.1);
}

.profile-pin-eye {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.profile-pin-toggle.is-visible .profile-pin-eye--show {
  display: none;
}

.profile-pin-toggle:not(.is-visible) .profile-pin-eye--hide {
  display: none;
}

.profile-pin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.profile-pin-actions .btn {
  margin: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.profile-pin-actions .btn-primary {
  margin-top: 0;
}

.profile-name {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.profile-card:hover .profile-name {
  color: var(--text);
}

.profile-name-input,
.profile-pin-current,
.profile-pin-new {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
}

.profile-pin-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-card--edit {
  width: clamp(120px, 18vw, 170px);
}

#btn-admin-panel[hidden] {
  display: none !important;
}

.profiles-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.profiles-manage-btn {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.profiles-welcome-tagline {
  display: none;
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-magenta);
  max-width: 22rem;
}

.profiles-error {
  max-width: 420px;
  margin: 0 auto 1rem;
}

.profiles-loading,
.profiles-empty {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 1rem 0;
}

.profiles-retry-btn {
  margin: 0.5rem auto 0;
}

.screen-profiles.is-managing .profile-card {
  cursor: default;
  transform: none;
}

.screen-profiles.is-managing .profile-card:hover {
  transform: none;
}

@media (max-width: 768px) {
  .profiles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    justify-items: center;
    gap: 0.75rem 0.45rem;
    width: 100%;
    max-width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-card {
    width: 100%;
    max-width: none;
  }

  .profile-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .profile-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .profile-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .profile-card:nth-child(4):last-child {
    grid-column: 3 / span 2;
  }

  .profile-avatar {
    max-width: none;
    margin-bottom: 0;
  }

  .profile-name {
    display: none;
  }

  .profiles-actions #btn-profiles-manage {
    display: none !important;
  }

  .profiles-welcome-tagline {
    display: block;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .app-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    max-height: 45vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .category-list {
    max-height: 120px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .topbar {
    padding: 0.5rem 0.75rem;
  }

  .topbar-brand {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .login-card {
    padding: 2.5rem 1.5rem 2.25rem;
    border-radius: 8px;
  }

  .login-brand--in-card {
    padding-bottom: 1.35rem;
  }

  .login-heading {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .login-shell {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .session-pill {
    max-width: 100px;
  }
  .service-countdown-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
}

/* Mensaje remoto del administrador (pantalla completa) */
.admin-remote-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}

.admin-remote-overlay[hidden] {
  display: none !important;
}

.admin-remote-overlay-inner {
  max-width: 32rem;
  width: 100%;
  text-align: center;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(30, 15, 50, 0.98), rgba(10, 8, 24, 0.98));
  border: 1px solid rgba(232, 121, 249, 0.45);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.admin-remote-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-magenta, #e879f9);
}

.admin-remote-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.admin-remote-message {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

/* —— Inicio estilo Netflix —— */
.screen-app.screen-app--home {
  background: #000;
}

.screen-app.screen-app--home #view-browse,
.screen-app.screen-app--home #view-live {
  display: none !important;
}

.screen-app.screen-app--live #view-home,
.screen-app.screen-app--live #view-browse {
  display: none !important;
}

.screen-app.screen-app--browse #view-home,
.screen-app.screen-app--browse #view-live {
  display: none !important;
}

.screen-app.screen-app--live .nf-live-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 300px;
  min-width: 240px;
  max-width: 340px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
}

.nf-live-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.live-player-host {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}

.live-player-label {
  flex-shrink: 0;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-shell--inline {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.player-shell--inline .video-main {
  flex: 1;
  width: 100%;
  min-height: 200px;
  max-height: none;
  object-fit: contain;
  background: #000;
}

.screen-app.screen-app--browse .nf-page-browse {
  display: block;
}

.nf-topbar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.75rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nf-topbar-row--main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.nf-topbar-start {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nf-topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nf-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand-red);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  text-shadow:
    1px 0 0 rgba(255, 90, 90, 0.5),
    -1px 0 0 rgba(160, 0, 30, 0.4),
    0 0 18px rgba(229, 9, 20, 0.3);
}

.nf-brand-btn .brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-logo-img--bar {
  max-height: 32px;
  max-width: 120px;
}

.nf-brand-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.topbar-brand--logo .nf-brand-title[hidden] {
  display: none;
}

@media (min-width: 901px) {
  .nf-topbar {
    padding-left: 2.85rem;
    padding-right: 2.85rem;
  }

  .nf-topbar-start .nf-brand-btn {
    font-size: 1.62rem;
    padding-left: 0.5rem;
  }

  .nf-topbar-start .brand-logo-img--bar {
    max-height: 38px;
    max-width: 140px;
  }

  .nf-topbar-end {
    padding-right: 0.65rem;
    gap: 1rem;
  }
}

.nf-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.5rem;
}

.nf-nav-link {
  padding: 0.45rem 0;
  border: none;
  background: transparent;
  color: #e5e5e5;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition);
}

.nf-nav--desktop .nf-nav-link:not(:last-child)::after {
  content: '|';
  display: inline-block;
  margin: 0 2.15rem;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
  font-size: 0.9rem;
  pointer-events: none;
  user-select: none;
}

.nf-nav-link:hover,
.nf-nav-link.is-active {
  color: #fff;
  font-weight: 600;
}

.nf-icon-btn,
.nf-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nf-icon-btn:hover,
.nf-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nf-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nf-global-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 1.5rem));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 0.5rem 0;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  z-index: 80;
}

.nf-gs-section {
  padding: 0.35rem 0.65rem 0.5rem;
}

.nf-gs-section + .nf-gs-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

.nf-gs-section-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #a3a3a3);
}

.nf-gs-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.nf-gs-item:hover,
.nf-gs-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nf-gs-item-thumb {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.nf-gs-item-ph {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted, #a3a3a3);
  background: rgba(255, 255, 255, 0.06);
}

.nf-gs-item-body {
  min-width: 0;
  flex: 1;
}

.nf-gs-item-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-gs-item-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #a3a3a3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-gs-empty,
.nf-gs-loading {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted, #a3a3a3);
}

.nf-search-wrap.is-open .nf-search-input {
  display: block;
  width: min(220px, 40vw);
}

.nf-search-input {
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.nf-profile-wrap {
  position: relative;
}

.nf-profile-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent-purple), var(--accent-magenta));
}

.nf-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 0;
  max-width: min(210px, calc(100vw - 1.5rem));
  padding: 0.35rem 0;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 60;
}

.nf-profile-menu-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nf-profile-menu-name {
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: none;
  flex: 0 1 auto;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-profile-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nf-profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nf-profile-countdown {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
}

/* Hero destacado del día (estilo streaming) */
.nf-hero-spotlight {
  position: relative;
  width: 100%;
  min-height: min(78vh, 720px);
  max-height: 88vh;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.5rem;
}

.nf-hero-spotlight-media {
  position: absolute;
  inset: 0;
}

.nf-hero-video,
.nf-hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.nf-hero-youtube-wrap {
  position: absolute;
  inset: 0;
}

.nf-hero-youtube-wrap {
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.nf-hero-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.nf-hero-spotlight.is-youtube-ready .nf-hero-youtube-wrap {
  opacity: 1;
}

.nf-hero-spotlight.is-youtube-ready .nf-hero-poster-fallback {
  opacity: 0;
  pointer-events: none;
}

.nf-hero-poster-fallback {
  z-index: 0;
}

.nf-hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nf-hero-spotlight.is-video-ready .nf-hero-video {
  opacity: 1;
}

.nf-hero-poster-fallback {
  z-index: 0;
  transition: opacity 0.35s ease;
}

.nf-hero-spotlight.is-video-ready .nf-hero-poster-fallback {
  opacity: 0;
  pointer-events: none;
}

.nf-hero-spotlight-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.35) 38%,
      rgba(0, 0, 0, 0.15) 62%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.nf-hero-spotlight-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: 4;
  padding: 0 2.85rem 2rem;
  max-width: 52rem;
  text-align: left;
}

.nf-hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-red);
  text-shadow:
    1px 0 0 rgba(255, 90, 90, 0.45),
    -1px 0 0 rgba(120, 0, 20, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.65);
}

.nf-hero-spotlight-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.nf-hero-spotlight.is-hero-decor-trailer .nf-hero-spotlight-title {
  margin-bottom: 0;
}

.nf-hero-spotlight-title {
  margin: 0 0 1.25rem;
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nf-hero-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nf-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nf-hero-btn--play {
  background: #fff;
  color: #111;
}

.nf-hero-btn--play:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.03);
}

.nf-hero-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #111;
  margin-left: 2px;
}

.nf-hero-mute-toggle {
  position: absolute;
  right: 2.85rem;
  bottom: 2rem;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nf-hero-mute-toggle.is-unmuted {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.nf-home {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 3rem;
  background: #000;
}

.nf-home-empty {
  padding: 3rem 2rem;
  color: var(--text-muted);
  text-align: center;
}

.nf-row {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.nf-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.nf-row-head .nf-row-title {
  margin: 0;
}

.nf-row-link-all {
  flex-shrink: 0;
}

.nf-row-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e5e5e5;
}

.nf-row-head + .nf-row-track,
.nf-row-head + .nf-row-carousel {
  margin-top: 0;
}

.nf-row--new .nf-row-head .nf-row-title {
  margin-bottom: 0;
}

/* Tendencias: rejilla vertical (sin carril horizontal) */
.nf-home-trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 1rem 0.75rem;
  padding: 0 0 1.75rem;
  overflow: visible;
}

.nf-home-trends-grid .nf-poster {
  width: 100%;
  flex: none;
  scroll-snap-align: unset;
}

.nf-home-trends-grid .nf-poster .nf-poster-img-wrap {
  width: 100%;
  max-width: none;
}

/* Nuevos estrenos: carrusel automático sin barra de desplazamiento */
.nf-new-marquee-viewport {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding-bottom: 0.35rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}

.nf-new-marquee-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: max-content;
  will-change: transform;
  animation: nf-new-marquee-scroll 36s linear infinite;
}

.nf-new-marquee-strip--once {
  animation: none;
}

.nf-new-marquee-viewport:hover .nf-new-marquee-strip,
.nf-new-marquee-viewport:focus-within .nf-new-marquee-strip {
  animation-play-state: paused;
}

@keyframes nf-new-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-new-marquee-strip {
    animation: none;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .nf-new-marquee-strip::-webkit-scrollbar {
    display: none;
  }
}

.nf-row--top10 {
  padding-right: 0;
}

.nf-row-carousel {
  position: relative;
}

.nf-row-carousel .nf-row-track--top10 {
  padding-bottom: 0.75rem;
  padding-right: 3.5rem;
  scrollbar-width: none;
}

.nf-row-carousel .nf-row-track--top10::-webkit-scrollbar {
  display: none;
}

.nf-row-nav {
  position: absolute;
  top: 0;
  bottom: 0.75rem;
  z-index: 6;
  width: clamp(2.75rem, 5vw, 4.5rem);
  padding: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nf-row-nav[hidden] {
  display: none !important;
}

.nf-row-nav--prev {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.92) 15%, rgba(7, 11, 20, 0.45) 55%, transparent);
}

.nf-row-nav--next {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 11, 20, 0.92) 15%, rgba(7, 11, 20, 0.45) 55%, transparent);
}

.nf-row-nav:hover:not(:disabled),
.nf-row-nav:focus-visible {
  color: #fff;
}

.nf-row-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.nf-row-nav-icon {
  display: block;
  width: 0.55em;
  height: 0.55em;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
  margin-left: -0.15em;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.nf-row-nav--prev .nf-row-nav-icon {
  transform: rotate(135deg);
  margin-left: 0.15em;
}

.nf-row-nav--next .nf-row-nav-icon {
  width: 0.65em;
  height: 0.65em;
  border-width: 5px;
}

.nf-row-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.nf-row-track::-webkit-scrollbar {
  height: 6px;
}

.nf-row-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.nf-poster {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.nf-poster--top10 {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
}

.nf-poster-rank {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
  margin-right: -0.15em;
  user-select: none;
}

.nf-poster-img-wrap {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.2s ease;
}

.nf-poster:not(.nf-poster--top10) .nf-poster-img-wrap {
  width: clamp(110px, 12vw, 160px);
}

.nf-poster:hover .nf-poster-img-wrap {
  transform: scale(1.06);
  z-index: 2;
}

.nf-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nf-poster-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.nf-poster-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.nf-poster-progress > span {
  display: block;
  height: 100%;
  background: var(--accent-magenta);
}

.nf-page-browse {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 2rem;
  background: #000;
}

.nf-browse-head {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 1.5rem 0.5rem;
  background: linear-gradient(180deg, #000 70%, transparent);
}

.nf-series-back {
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.nf-series-back--global {
  display: block;
  margin: 0.65rem 1.5rem 0;
}

.nf-series-back--global[hidden] {
  display: none !important;
}

.nf-category-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.nf-category-pill {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.nf-category-pill.is-active,
.nf-category-pill:hover {
  background: rgba(192, 38, 211, 0.35);
  border-color: rgba(192, 38, 211, 0.6);
  color: #fff;
}

.nf-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem 0.75rem;
  padding: 0.5rem 1.5rem 2rem;
}

.nf-browse-grid .nf-poster {
  width: 100%;
  min-width: 0;
}

.nf-browse-grid .nf-poster:not(.nf-poster--top10) .nf-poster-img-wrap {
  width: 100%;
  max-width: 100%;
  border: 2px solid rgba(192, 38, 211, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.15);
}

.nf-browse-grid .nf-poster-caption {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-poster--live .nf-poster-img-wrap--live {
  aspect-ratio: 16 / 9;
}

.nf-poster-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #b3b3b3;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-browse-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.nf-poster.is-active .nf-poster-img-wrap {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 2px;
}

.nf-player-stage[hidden] {
  display: none !important;
}

.nf-player-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
}

.nf-player-stage .player-shell,
.live-player-host .player-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nf-player-stage .video-main {
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}

.nf-player-back {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nf-player-back:hover {
  background: rgba(192, 38, 211, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.nf-player-back[hidden] {
  display: none !important;
}

body.nf-player-open {
  overflow: hidden;
}

.player-overlay--minimal {
  pointer-events: none;
}

.player-overlay--minimal .vod-seek-pref-wrap,
.player-overlay--minimal .player-retry-btn {
  pointer-events: auto;
}

/* --- Utilidades móvil / escritorio ---------------------------------------- */
.mob-only {
  display: none !important;
}

.desk-only {
  display: block;
}

@media (max-width: 900px) {
  .mob-only {
    display: block !important;
  }

  .mob-only.nf-mob-menu-btn,
  .mob-only.nf-nav--pills {
    display: flex !important;
  }

  .desk-only {
    display: none !important;
  }

  .nf-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.85rem 0;
    gap: 0;
    background: #000;
  }

  .nf-topbar-row--main {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    width: 100%;
    gap: 0.35rem;
  }

  .nf-topbar-start {
    flex-direction: column;
    gap: 0;
    justify-content: center;
    min-width: 0;
  }

  .nf-topbar-start .nf-brand-btn {
    margin: 0 auto;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  .nf-topbar-start .brand-logo-img--bar {
    max-height: 40px;
    max-width: 148px;
  }

  .nf-topbar-end {
    justify-content: flex-end;
  }

  .nf-topbar-end .nf-profile-btn {
    display: none;
  }

  .nf-profile-menu {
    position: fixed;
    top: 3.25rem;
    left: 0.85rem;
    right: auto;
    z-index: 80;
    width: max-content;
    min-width: 0;
    max-width: min(200px, calc(100vw - 1.7rem));
  }

  .nf-mob-menu-btn {
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
  }

  .nf-nav--pills {
    display: flex;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.15rem 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nf-nav--pills::-webkit-scrollbar {
    display: none;
  }

  .nf-nav-pill {
    flex: 1 0 auto;
    min-width: max-content;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
  }

  .nf-nav-pill.is-active {
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.55);
  }

  .nf-home {
    padding: 0 0 1.5rem;
    background: #000;
  }

  .nf-home .nf-row {
    padding-left: 1rem;
    padding-right: 0.5rem;
  }

  #home-row-continue {
    display: none;
  }

  .nf-home-trends-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    padding: 0 0 1.25rem;
  }

  .nf-hero-spotlight {
    display: none !important;
  }

  .mob-hero-section {
    margin: 0 1rem 1rem;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #111;
  }

  .mob-hero-video,
  .mob-hero-youtube-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
  }

  .mob-hero-youtube-wrap {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
  }

  .mob-hero-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
  }

  .mob-hero-slide.is-youtube-ready .mob-hero-youtube-wrap {
    opacity: 1;
  }

  .mob-hero-slide.is-youtube-ready .mob-hero-img-fallback {
    opacity: 0;
  }

  .mob-hero-brand {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--brand-red);
  }

  .mob-hero-btn-play {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .mob-hero-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #111;
  }

  .mob-hero-viewport {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 3;
    max-height: min(72vh, 520px);
  }

  .mob-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
  }

  .mob-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    position: relative;
    cursor: pointer;
    background: #0a0c12;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mob-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  .mob-hero-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 1rem;
    text-align: center;
  }

  .mob-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
    text-align: left;
  }

  .mob-hero-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
  }

  .mob-hero-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }

  .mob-hero-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
  }

  .mob-hero-dots {
    display: none !important;
  }

  .mob-section {
    margin: 0 0 1.25rem;
    padding: 0 1rem;
  }

  .mob-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
  }

  .mob-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
  }

  .mob-section-title--live {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .live-broadcast-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .live-broadcast-icon__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e50914;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 6px rgba(229, 9, 20, 0.55);
    animation: live-broadcast-pulse 1.8s ease-in-out infinite;
  }

  .live-broadcast-icon__wave {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #e50914;
    opacity: 0;
    animation: live-broadcast-ripple 2s ease-out infinite;
  }

  .live-broadcast-icon__wave--2 {
    animation-delay: 1s;
  }

  @keyframes live-broadcast-pulse {
    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(1.15);
      opacity: 0.88;
    }
  }

  @keyframes live-broadcast-ripple {
    0% {
      transform: scale(1);
      opacity: 0.65;
    }

    100% {
      transform: scale(2.5);
      opacity: 0;
    }
  }

  .mob-link-all {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent-magenta);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mob-live-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    align-items: start;
  }

  .mob-live-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .mob-live-logo {
    display: block;
    width: 100%;
    max-width: 76px;
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(229, 9, 20, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .mob-live-logo--img {
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .mob-live-card img.mob-live-logo {
    object-fit: cover;
    object-position: center;
    border: none;
    box-shadow: none;
  }

  .mob-live-logo--ph {
    width: 100%;
    max-width: 76px;
    aspect-ratio: 1;
    height: auto;
    position: relative;
    border-radius: 50%;
    border: 2px solid rgba(56, 217, 255, 0.55);
    background: radial-gradient(circle at 35% 30%, rgba(56, 217, 255, 0.45), rgba(88, 28, 135, 0.35));
    box-shadow: 0 0 14px rgba(56, 217, 255, 0.3);
    overflow: visible;
  }

  .mob-live-logo--ph::before,
  .mob-live-logo--ph::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(56, 217, 255, 0.45);
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    animation: mob-live-ph-wave 1.7s ease-out infinite;
  }

  .mob-live-logo--ph::after {
    animation-delay: 0.85s;
  }

  @keyframes mob-live-ph-wave {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.55;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.45);
      opacity: 0;
    }
  }

  .mob-live-label {
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent-magenta);
    text-transform: uppercase;
    line-height: 1.2;
  }

  .mob-home-top10 .nf-row-title,
  .mob-home-new .nf-row-title {
    font-size: 1rem;
  }

  .mob-home-new .nf-row-head {
    margin-bottom: 0.65rem;
  }

  .mob-home-new .nf-row-link-all {
    display: inline-block;
  }

  .nf-page-browse {
    padding: 0;
  }

  /* Mismo layout que PC: pastillas de carpeta + rejilla de pósters */
  .mob-browse-top {
    display: none !important;
  }

  .nf-browse-head {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.5rem 0 0.35rem;
    background: linear-gradient(180deg, #000 85%, transparent);
  }

  .nf-category-bar {
    padding: 0 0.85rem 0.4rem;
    gap: 0.45rem;
  }

  .nf-category-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .nf-category-pill.is-active {
    background: rgba(192, 38, 211, 0.45);
    border-color: rgba(192, 38, 211, 0.85);
    box-shadow: 0 0 14px rgba(192, 38, 211, 0.35);
  }

  .nf-browse-grid.mob-browse-grid--hidden {
    display: grid !important;
  }

  .nf-series-back--global {
    margin: 0.5rem 1rem 0;
  }

  .nf-browse-grid {
    padding: 0.35rem 0.75rem 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.35rem;
  }

  /* Catálogo móvil: sin título bajo póster (películas/series). Episodios sí muestran etiqueta. */
  .nf-browse-grid .nf-poster:not(.nf-poster--episode) .nf-poster-caption {
    display: none;
  }

  .nf-browse-grid:has(.nf-poster--episode) {
    row-gap: 0.65rem;
    gap: 0.5rem 0.4rem;
  }

  .nf-browse-grid .nf-poster--episode {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  .nf-browse-grid .nf-poster--episode .nf-poster-img-wrap {
    flex-shrink: 0;
    overflow: hidden;
  }

  .nf-browse-grid .nf-poster--episode .nf-poster-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    visibility: visible;
    margin-top: 0.35rem;
    padding: 0 0.05rem 0.2rem;
    min-height: 1.35em;
    font-size: 11px;
    line-height: 1.35;
    color: #e8e8e8;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  /* En vivo móvil: reproductor arriba fijo, lista de canales con scroll debajo */
  .screen-app.screen-app--live #view-live {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .screen-app.screen-app--live .nf-live-page {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .nf-live-page .nf-live-layout {
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .nf-live-page .live-player-host {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    z-index: 2;
    background: #000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  }

  .nf-live-page .live-player-label {
    position: static;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }

  .nf-live-page .player-shell--inline {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-height: min(42vh, 320px);
    min-height: 180px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .nf-live-page .player-shell--inline .video-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: contain;
  }

  .nf-live-page .live-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-right: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
  }

  .nf-live-page .live-sidebar > .sidebar-section:first-child {
    flex-shrink: 0;
  }

  .nf-live-page .live-sidebar .category-list {
    max-height: 20vh;
    flex-shrink: 0;
    overflow-y: auto;
  }

  .nf-live-page .live-sidebar .sidebar-section--grow {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .nf-live-page .live-sidebar .channel-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .nf-row {
    padding-left: 1rem;
  }
}

/* —— D-pad / Fire TV remote focus (app.js: lcds-dpad-focused) —— */
.lcds-dpad-focused {
  outline: 3px solid var(--accent-cyan-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 22px var(--cyan-glow);
  z-index: 2;
}

.lcds-is-tv .lcds-dpad-focused.nf-poster .nf-poster-img-wrap,
.lcds-is-tv .lcds-dpad-focused.channel-card,
.lcds-is-tv .lcds-dpad-focused.nf-gs-item {
  transform: scale(1.06);
}

.lcds-is-tv .lcds-dpad-focused.profile-card .profile-avatar {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px var(--accent-cyan-bright), 0 0 28px var(--cyan-glow);
}

.lcds-is-tv .lcds-dpad-focused.nf-nav-link,
.lcds-is-tv .lcds-dpad-focused.nf-nav-pill,
.lcds-is-tv .lcds-dpad-focused.nf-category-pill,
.lcds-is-tv .lcds-dpad-focused.category-btn {
  color: var(--accent-cyan-bright);
  background: rgba(56, 189, 248, 0.12);
}

.lcds-is-tv .btn-login-submit.lcds-dpad-focused,
.lcds-is-tv .btn-primary.lcds-dpad-focused {
  filter: brightness(1.12);
}

@media (hover: hover) and (pointer: fine) {
  .lcds-dpad-focused:not(:focus-visible) {
    outline-width: 2px;
  }
}
