/* BUND FINANCE · sistema de diseño único (tema oscuro y claro)
   Tokens: color, tipografía (Inter), espaciado (escala de 4 px), radios y sombras.
   Botones: primario (rojo BUND), secundario (fantasma con borde sutil), texto/enlace y Pro (solo «★ PLAN PRO»).
   Se carga al final para unificar los estilos de todos los módulos sin tocar su lógica. */

.tv {
  --bf-red: #ff1f2d; --bf-red-h: #ff3d48; --bf-red-soft: rgba(255, 31, 45, .14); --bf-ring: 0 0 0 3px rgba(255, 31, 45, .28);
  --bg: #000000; --surface-1: #0a0c10; --surface-2: #10131a; --surface-3: #181c25; --ink: #000000;
  --line: #1b202a; --line-strong: #2a303c; --fg-1: #eef1f6; --fg-2: #8d95a7; --fg-3: #5c6476;
  --up: #00d26a; --down: #ff3b5c; --flat: #f5c400;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35); --sh-pop: 0 14px 40px rgba(0, 0, 0, .55);
  --ctl-h: 34px;
  /* puente con las variables existentes de los módulos */
  --tv-black: var(--bg); --tv-accent: var(--bf-red); --tv-card2: var(--surface-2); --tv-in: var(--surface-2); --tv-track: var(--line);
  --color-bg: var(--surface-2); --color-panel: var(--surface-1); --color-fg: var(--fg-1); --color-fg-muted: var(--fg-2); --color-border-line: var(--line);
  --color-ok: var(--up); --color-bad: var(--down); --color-warn: var(--flat);
  --cds-border: var(--line-strong); --cds-surface-popover: var(--surface-3); --cds-text-secondary: var(--fg-2); --cds-radius: var(--r-md);
  --cds-font-size-caption: var(--fs-sm); --cds-font-size-body: var(--fs-base); --cds-font-size-heading: var(--fs-lg); --cds-font-size-title: var(--fs-2xl);
  --font-anthropic-serif: var(--font-anthropic-sans);
  background: var(--bg); color: var(--fg-1); letter-spacing: -.005em;
}
.tv[data-theme="light"] {
  --bf-red: #d90f1f; --bf-red-h: #c00a19; --bf-red-soft: rgba(217, 15, 31, .1); --bf-ring: 0 0 0 3px rgba(217, 15, 31, .22);
  --bg: #f3f5f8; --surface-1: #ffffff; --surface-2: #f6f7fa; --surface-3: #eceff4; --ink: #ffffff;
  --line: #e3e7ee; --line-strong: #cfd5df; --fg-1: #111827; --fg-2: #5b6475; --fg-3: #8a93a3;
  --up: #00994d; --down: #d81b50; --flat: #a87b00;
  --sh-1: 0 1px 2px rgba(17, 24, 39, .06); --sh-pop: 0 14px 40px rgba(17, 24, 39, .14);
  --tv-black: var(--bg); --tv-accent: var(--bf-red); --tv-card2: var(--surface-2); --tv-in: var(--surface-1); --tv-track: var(--line);
  --color-bg: var(--surface-2); --color-panel: var(--surface-1); --color-fg: var(--fg-1); --color-fg-muted: var(--fg-2); --color-border-line: var(--line);
  --color-ok: var(--up); --color-bad: var(--down); --color-warn: var(--flat); --cds-border: var(--line-strong); --cds-surface-popover: var(--surface-1);
}
.tv ::selection { background: var(--bf-red-soft); }
/* lo oculto siempre queda oculto, aunque un estilo de botón diga otra cosa */
.tv [hidden] { display: none !important; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/sora-latin-800-normal.woff2") format("woff2"); }
/* marca: Sora (geométrica, moderna) con degradado rojo BUND */
.tv .tv-brand-name { font-family: "Sora", Inter, system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.05;
  background: linear-gradient(135deg, #ff5a63 0%, #ff1f2d 45%, #d90f1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 10px rgba(255, 31, 45, .35)); }
.tv[data-theme="light"] .tv-brand-name { background: linear-gradient(135deg, #f0303b 0%, #d90f1f 55%, #a50a17 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
.tv .tv-brand-sub { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-top: 3px; }

/* ---------- superficies ---------- */
.tv .tv-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.tv .tv-tape { background: var(--surface-1); border-color: var(--line); border-radius: var(--r-lg); }
.tv .tv-tape-live { background: var(--surface-2); color: var(--bf-red); }
.tv .tv-ti:hover b { color: var(--bf-red); }
.tv .tv-pad h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; }
.tv .tv-pad .hint, .tv .tv-hint { color: var(--fg-2); }

/* ---------- foco visible y estados comunes ---------- */
.tv :is(button, a, input, select, textarea):focus-visible { outline: none; box-shadow: var(--bf-ring); }
.tv :is(button, [role="button"]):disabled, .tv [aria-disabled="true"] { opacity: .42; cursor: not-allowed !important; filter: grayscale(.3); }

/* ---------- botón primario (rojo BUND): la acción principal de cada vista ---------- */
.tv :is(.tv-gbtn, .bf-al .go, .bf-b.pri, .op-btn:not(.sec), .an-srch button, .bf-acc-dr .btn:not(.sec), .bf-al .btn2.pri, .sc-btn.pri) {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: var(--ctl-h); padding: 0 16px; border-radius: var(--r-md); background: var(--bf-red); color: #fff !important; border: 1px solid var(--bf-red);
  font: 600 var(--fs-md)/1 var(--font-anthropic-sans); letter-spacing: .01em; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .1s; box-shadow: none;
}
.tv :is(.tv-gbtn, .bf-al .go, .bf-b.pri, .op-btn:not(.sec), .an-srch button, .bf-acc-dr .btn:not(.sec), .bf-al .btn2.pri, .sc-btn.pri):hover { background: var(--bf-red-h); border-color: var(--bf-red-h); }
.tv :is(.tv-gbtn, .bf-al .go, .bf-b.pri, .op-btn:not(.sec), .an-srch button, .bf-acc-dr .btn:not(.sec), .bf-al .btn2.pri, .sc-btn.pri):active { transform: translateY(1px); }
.tv .bf-al .go { grid-column: 1 / -1; min-height: 42px; }
.tv .op-btn.big { min-height: 44px; font-size: var(--fs-base); }

/* ---------- botón secundario (fantasma, borde sutil) ---------- */
.tv :is(.tv-refresh, .tv-snap, .bf-bell, .bf-idx, .tv-lk, .op-btn.sec, .bf-al .btn2:not(.pri), .bf-al .perm, .bf-acc-dr .btn.sec, .sc-btn:not(.pri), .tv-recent button) {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--ctl-h); padding: 0 12px; border-radius: var(--r-md); background: transparent; color: var(--fg-1); border: 1px solid var(--line-strong);
  font: 500 var(--fs-md)/1 var(--font-anthropic-sans); white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s;
}
.tv :is(.tv-refresh, .tv-snap, .bf-bell, .bf-idx, .tv-lk, .op-btn.sec, .bf-al .btn2:not(.pri), .bf-al .perm, .bf-acc-dr .btn.sec, .sc-btn:not(.pri), .tv-recent button):hover { background: var(--surface-2); border-color: var(--fg-3); color: var(--fg-1); }
.tv .tv-recent button { min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
.tv .tv-lk.wa { color: var(--fg-1); border-color: var(--line-strong); }
.tv .tv-lk.wa svg { color: #25d366; }
.tv .tv-lk.wa:hover { background: var(--surface-2); color: var(--fg-1); }
.tv .bf-bell svg, .tv .bf-idx svg { width: 16px; height: 16px; }
.tv .bf-bell .n { background: var(--bf-red); }
.tv .tv-refresh { margin-left: 0; }

/* ---------- texto / enlace ---------- */
.tv :is(.bf-acc, .bf-al .lnk, .bf-acc-dr .lnk, .bf-user button, .sc-lnk) { all: unset; cursor: pointer; color: var(--fg-2); font-size: var(--fs-md); font-weight: 500; text-decoration: none; border-radius: var(--r-sm); padding: 2px 2px; }
.tv :is(.bf-acc, .bf-al .lnk, .bf-acc-dr .lnk, .bf-user button, .sc-lnk):hover { color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px; }
.tv .bf-foot a { color: var(--fg-2); text-decoration: none; }
.tv .bf-foot a:hover { color: var(--fg-1); text-decoration: underline; }

/* ---------- Pro (solo el CTA del encabezado) ---------- */
.tv .bf-probtn { min-height: var(--ctl-h); box-sizing: border-box; padding: 0 14px; border-radius: var(--r-pill); background: var(--bf-red); box-shadow: 0 6px 18px color-mix(in srgb, var(--bf-red) 35%, transparent); animation: none; font-size: 12.5px; letter-spacing: .07em; }
.tv .bf-probtn:hover { background: var(--bf-red-h); transform: none; }
.tv .bf-probtn.ya { background: transparent; border: 1px solid var(--line-strong); color: var(--fg-1) !important; box-shadow: none; }

/* ---------- controles segmentados (períodos, intervalos, tema, idioma, vistas) ---------- */
.tv :is(.tv-seg, .tv-theme, .tv-lang, .sc-seg) { display: inline-flex; align-items: stretch; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-1); overflow: visible; }
.tv :is(.tv-seg, .tv-theme, .tv-lang, .sc-seg) button { all: unset; cursor: pointer; display: inline-grid; place-items: center; min-width: 28px; min-height: 26px; padding: 0 9px; border-radius: 7px; font: 500 var(--fs-sm)/1 var(--font-anthropic-sans); color: var(--fg-2); transition: background-color .15s, color .15s; }
.tv :is(.tv-seg, .tv-theme, .tv-lang, .sc-seg) button:hover { color: var(--fg-1); background: var(--surface-2); }
.tv :is(.tv-seg, .tv-theme, .tv-lang, .sc-seg) button[aria-pressed="true"], .tv .sc-seg button[aria-selected="true"] { background: var(--fg-1); color: var(--ink); font-weight: 600; }
.tv .tv-theme, .tv .tv-lang { border-radius: var(--r-pill); }
.tv .tv-theme button, .tv .tv-lang button { border-radius: var(--r-pill); }

/* pastillas de indicadores y filtros */
.tv :is(.tv-chip, .sc-chip) { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--fg-2); font: 500 var(--fs-sm)/1 var(--font-anthropic-sans); background: transparent; transition: border-color .15s, color .15s, background-color .15s; }
.tv :is(.tv-chip, .sc-chip):hover { color: var(--fg-1); border-color: var(--fg-3); }
.tv :is(.tv-chip, .sc-chip)[aria-pressed="true"] { color: var(--fg-1); border-color: var(--fg-2); background: var(--surface-3); }
.tv .tv-chip[aria-pressed="false"] i { opacity: .45; }

/* ---------- pestañas principales: un solo estilo ---------- */
.tv .tv-tabs { gap: 6px; padding: 4px 0; }
.tv .tv-tabs button[data-tab][role="tab"] { --k: var(--fg-2); display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 6px; font-size: var(--fs-md); font-weight: 500; color: var(--fg-1); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.tv .tv-tabs button[data-tab][role="tab"] svg { box-sizing: border-box; width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); opacity: 1; flex: none; }
.tv .tv-tabs button[data-tab][role="tab"]:hover { border-color: color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 9%, var(--surface-1)); transform: translateY(-1px); }
.tv .tv-tabs button[data-tab][role="tab"]:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }
.tv .tv-tabs button[data-tab][role="tab"][aria-selected="true"] { color: #fff; background: var(--k); border-color: var(--k); font-weight: 600; box-shadow: 0 4px 14px color-mix(in srgb, var(--k) 35%, transparent); }
.tv .tv-tabs button[data-tab][role="tab"][aria-selected="true"] svg { color: #fff; background: rgba(255,255,255,.18); }
.tv .tv-tabs [data-tab="grafico"] { --k: #3b82f6 !important; }
.tv .tv-tabs [data-tab="cripto"] { --k: #f59e0b !important; }
.tv .tv-tabs [data-tab="divisas"] { --k: #14b8a6 !important; }
.tv .tv-tabs [data-tab="finanzas"] { --k: #22c55e !important; }
.tv .tv-tabs [data-tab="analisis-7p"] { --k: #6366f1 !important; }
.tv .tv-tabs [data-tab="noticias"] { --k: #0ea5e9 !important; }
.tv .tv-tabs [data-tab="mapa"] { --k: #f97316 !important; }
.tv .tv-tabs [data-tab="screener"] { --k: #10b981 !important; }
.tv .tv-tabs [data-tab="sugerencias"] { --k: #eab308 !important; }
.tv .tv-tabs [data-tab="metodo"] { --k: #a855f7 !important; }
.tv[data-theme="light"] .tv-tabs [data-tab="cripto"] { --k: #d97706 !important; }
.tv[data-theme="light"] .tv-tabs [data-tab="sugerencias"] { --k: #ca8a04 !important; }

/* ---------- entradas ---------- */
.tv :is(.tv-gsearch, .tv-input, .tv-ctrl select, .sc input, .sc select) { font: 400 var(--fs-base)/1.2 var(--font-anthropic-sans); color: var(--fg-1); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); min-height: var(--ctl-h); padding: 0 12px; box-sizing: border-box; }
.tv :is(.tv-gsearch, .tv-input, .tv-ctrl select, .sc input, .sc select):focus { outline: none; border-color: var(--bf-red); box-shadow: var(--bf-ring); }
.tv .tv-gsearch { border-color: var(--line-strong); }
.tv .tv-input { min-height: 30px; font-size: var(--fs-sm); }

/* ---------- encabezado ---------- */
.tv .tv-bar.bf-hdr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); padding: var(--sp-3) var(--sp-4); }
.tv .bf-hdr .tv-search { flex: 1 1 380px; padding: 0; margin: 0; min-width: 260px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.tv .bf-hdr .tv-search .fld { max-width: 560px; width: 100%; flex: 0 0 auto; }
.tv .bf-hdr .tv-recent:not(:has(button)) { display: none; }
.tv .bf-hdr .tv-recent { font-size: var(--fs-xs); }
.tv .bf-hdr .tv-links .tv-lk.wa { font-size: 0; gap: 0; width: var(--ctl-h); padding: 0; }
.tv .bf-hdr .tv-links .tv-lk.wa svg { width: 18px; height: 18px; }
.tv .an-srch { border-color: var(--line-strong) !important; background: var(--surface-2) !important; border-radius: var(--r-md) !important; }
.tv .an-srch span { color: var(--fg-2) !important; }
.tv .an-srch:focus-within { border-color: var(--bf-red) !important; box-shadow: var(--bf-ring); }
.tv .bf-hdr .tv-recent { flex-basis: 100%; }
.tv .bf-hdr .tv-prefs { margin-left: auto; align-items: center; }
.tv .bf-hdr .tv-prefs-row { gap: var(--sp-2); }
.tv .bf-nav2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: 0 var(--sp-4) var(--sp-3); }
.tv .bf-nav2 .tv-tabs { flex: 1 1 auto; }
.tv .bf-nav2 .tv-strip { margin-left: auto; }
.tv .tv-take { padding: 0 var(--sp-4) var(--sp-3); }
.tv .bf-user { gap: 6px; }

/* ---------- gráfico: controles agrupados ---------- */
.tv .tv-tools { gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4); align-items: flex-end; }
.tv .tv-grp { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tv .tv-grp > .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tv .tv-grp > .bdy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tv .tv-grp > .tgl { display: none; }
.tv .tv-grp.vista { margin-left: auto; order: 4; }
.tv .tv-grp.indicadores { order: 5; flex-basis: 100%; }
.tv .tv-draw button:disabled { display: none; }
.tv .tv-draw { background: var(--surface-1); }
.tv .tv-draw button[aria-pressed="true"] { background: var(--fg-1); color: var(--ink); }
.tv .tv-zoom { left: auto !important; right: 76px; top: auto !important; bottom: 40px; justify-content: flex-end; gap: 2px; padding: 2px; border-radius: var(--r-md); background: color-mix(in srgb, var(--surface-1) 88%, transparent); border: 1px solid var(--line-strong); opacity: .9; width: auto; }
.tv .tv-chartbox:hover .tv-zoom { opacity: 1; }
.tv .tv-zoom button { width: 30px; height: 28px; background: transparent; color: var(--fg-1); box-shadow: none; font-size: 15px; border-radius: 7px; }
.tv .tv-zoom button:hover { background: var(--surface-3); color: var(--fg-1); }
/* botones de zoom centrados en la franja entre el gráfico (con volumen) y el RSI/MACD */
.tv .tv-chartbox .tv-zoom.mid { top: var(--zt) !important; bottom: auto !important; left: 0 !important; right: var(--zr, 0px) !important; margin-inline: auto; width: max-content; justify-content: center; opacity: 1; }

/* ---------- panel derecho: 5 secciones iguales ---------- */
.tv .tv-side { gap: var(--sp-3); padding: var(--sp-3); }
.tv .tv-side > div:not([hidden]) { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); }
.tv .tv-side > div > h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.tv .tv-side .tv-ent { background: transparent; border: 0; padding: 0; }
.tv .tv-kv td { border-bottom-color: var(--line); padding: 6px 0; }

/* ---------- lista de seguimiento ---------- */
.tv .tv-wl .it.sel { border-left-color: var(--bf-red); }
.tv .tv-wl .sec.bus, .tv .tv-wl .hint button { color: var(--bf-red); }
.tv .tv-nb { color: var(--bf-red); border-color: var(--bf-red); }
.tv .bf-wtgl { display: none; }

/* ---------- tablas ---------- */
.tv .tv-table th { color: var(--fg-2); font-weight: 600; background: var(--surface-1); }
.tv .tv-table tbody tr:hover { background: var(--surface-2); }

/* ---------- paneles laterales (alertas, cuenta, índice) ---------- */
.tv :is(.bf-al .pn, .bf-acc-dr .pn, .bf-drawer .pn) { background: var(--surface-1); border-color: var(--line); }
.tv :is(.bf-al form, .bf-acc-dr section, .bf-al li) { background: var(--surface-2); border-color: var(--line); border-radius: var(--r-md); }
.tv .bf-al .tabs button[aria-selected="true"] { border-color: var(--bf-red); }

/* ---------- análisis: sub-vistas ---------- */
.tv .an-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.tv .an-subs { display: inline-flex; gap: var(--sp-2); justify-self: center; }
.tv .an-subs button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 600 var(--fs-sm)/1 var(--font-anthropic-sans); color: color-mix(in srgb, var(--k) 72%, var(--fg-1)); background: color-mix(in srgb, var(--k) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); transition: background-color .15s, color .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.tv .an-subs button .ic { font-size: 14px; line-height: 1; }
.tv .an-subs button:hover { background: color-mix(in srgb, var(--k) 22%, transparent); transform: translateY(-1px); }
.tv .an-subs button:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }
.tv .an-subs button[aria-selected="true"] { background: var(--k); border-color: var(--k); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--k) 35%, transparent); }
.tv .an-subs .s-informe { --k: #3b82f6; }
.tv .an-subs .s-screener { --k: #10b981; }
.tv .an-subs .s-opciones { --k: #a855f7; }
.tv[data-theme="light"] .an-subs .s-informe { --k: #2563eb; }
.tv[data-theme="light"] .an-subs .s-screener { --k: #059669; }
.tv[data-theme="light"] .an-subs .s-opciones { --k: #9333ea; }
.tv .an-nav h2 { margin: 0; font-size: var(--fs-xl); font-weight: 600; font-family: var(--font-anthropic-sans); }

/* ---------- inicio de sesión (portada) ---------- */
.tv .bf-cover .bf-b.pri { min-height: 46px; border-radius: var(--r-pill); }

/* ---------- móvil ---------- */
@media (max-width: 720px) {
  .tv { --ctl-h: 44px; }
  .tv .tv-tabs button[data-tab][role="tab"] { min-height: 44px; }
  .tv :is(.tv-seg, .tv-theme, .tv-lang, .sc-seg) button { min-height: 40px; min-width: 40px; }
  .tv :is(.tv-chip, .sc-chip) { min-height: 36px; }
  .tv .tv-bar.bf-hdr { padding: var(--sp-3); }
  .tv .bf-hdr .tv-search { flex-basis: 100%; order: 3; }
  .tv .bf-hdr .tv-prefs { margin-left: 0; width: 100%; order: 4; }
  .tv .bf-nav2 { padding: 0 var(--sp-3) var(--sp-3); }
  .tv .bf-nav2 .tv-strip { margin-left: 0; }
  .tv .tv-tools { align-items: stretch; }
  .tv .tv-grp { flex: 1 1 140px; }
  .tv .tv-grp > .lbl { display: none; }
  .tv .tv-grp > .tgl { all: unset; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--fg-1); font-size: var(--fs-md); cursor: pointer; }
  .tv .tv-grp > .tgl small { color: var(--fg-2); font-size: var(--fs-sm); }
  .tv .tv-grp > .bdy { display: none; padding-top: 6px; }
  .tv .tv-grp.open > .bdy { display: flex; }
  .tv .tv-grp.vista { margin-left: 0; }
  .tv .bf-wtgl { all: unset; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: var(--fs-md); font-weight: 600; color: var(--fg-1); }
  .tv .tv-watch.bf-col .hd, .tv .tv-watch.bf-col .tv-wl { display: none; }
  .tv .tv-watch { min-height: 0; }
  .tv .tv-zoom { right: 12px; bottom: 40px; }
  /* barras segmentadas largas: desplazamiento horizontal dentro de su propio espacio */
  .tv .sc-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tv .sc-seg::-webkit-scrollbar { display: none; }
  .tv .sc-seg button { flex: none; }
  .tv .an-nav { grid-template-columns: 1fr; }
  .tv .an-nav h2 { justify-self: start; }
  .tv .an-nav .an-sp { display: none; }
  .tv .an-subs { width: 100%; }
  .tv .an-subs { gap: 6px; min-width: 0; }
  .tv .an-subs button { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; white-space: normal; line-height: 1.15; padding: 4px 8px; min-height: 44px; gap: 5px; border-radius: 12px; font-size: 12.5px; }
}
