/* ==========================================================================
   LWG TV — TV en vivo premium (diseño aprobado: disenos/tv-en-vivo).
   Solo con body.lwgp. La vista anterior de #view-live queda en el DOM
   (su lógica sigue) pero oculta.
   ========================================================================== */

body.lwgp #view-live { padding-top: 0 !important; }
body.lwgp #view-live > :not(.lwl) { display: none !important; }

.lwl {
  --lwl-card: #141618;
  --lwl-line: rgba(255, 255, 255, .08);
  --lwl-mut: rgba(242, 243, 242, .56);
  --lwl-dim: rgba(242, 243, 242, .38);
  --lwl-tile: 248px;
  position: relative; color: var(--lwgp-fg, #F2F3F2); padding-bottom: 60px;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
}
.lwl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lwl button { font-family: inherit; }
.lwl-loading { height: 70vh; display: grid; place-items: center; }
.lwl-loading span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--lwgp-red, #F20D25); animation: lwlspin .8s linear infinite; }
@keyframes lwlspin { to { transform: rotate(360deg); } }
.lwl-empty { padding: 40px 0; text-align: center; color: var(--lwl-mut); grid-column: 1 / -1; }

/* ---------------------------------------------------------------- portada */
.lwl-hero { position: relative; height: min(640px, 78vh); min-height: 520px; overflow: hidden; }
.lwl-hero-bg { position: absolute; inset: -12%; background-size: 46% auto; background-position: 78% 42%; background-repeat: no-repeat; filter: blur(80px) saturate(1.8); opacity: .3; transform: scale(1.1); }
.lwl-hero-glow { position: absolute; inset: 0; background:
  radial-gradient(65% 80% at 70% 38%, var(--c, #7a1d22), transparent 72%),
  radial-gradient(35% 45% at 90% 85%, color-mix(in srgb, var(--c, #7a1d22) 60%, transparent), transparent 70%),
  radial-gradient(40% 50% at 15% 0%, rgba(242, 13, 37, .22), transparent 70%); }
.lwl-hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--lwgp-bg, #111212) 4%, rgba(17, 18, 18, .78) 34%, rgba(17, 18, 18, .1) 70%),
  linear-gradient(180deg, rgba(17, 18, 18, .6), transparent 22%, transparent 55%, var(--lwgp-bg, #111212)),
  repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 4px); }
.lwl-hero-body { position: absolute; z-index: 2; left: var(--lwgp-px, 64px); bottom: 110px; width: min(620px, 48vw); }
.lwl-hero-ch { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
/* Logos: flex (no grid) para que max-height en % del img se cumpla; con grid los logos altos se salían de la caja. */
.lwl-hero-logo { width: 78px; height: 54px; border-radius: 12px; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); flex-shrink: 0; }
.lwl-hero-logo img { max-width: 84%; max-height: 78%; object-fit: contain; }
.lwl-hero-ch small { display: block; font-size: 13px; color: var(--lwl-mut); font-weight: 500; }
.lwl-hero-ch strong { font-size: 15px; font-weight: 700; }
.lwl-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--lwgp-red, #F20D25); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 9px 4px 8px; border-radius: 6px; box-shadow: 0 0 0 4px rgba(242, 13, 37, .18), 0 6px 20px rgba(242, 13, 37, .45); }
.lwl-badge i, .lwl-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lwlpulse 1.6s ease-in-out infinite; }
@keyframes lwlpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); } }
.lwl-hero-title { margin: 16px 0 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: clamp(52px, 6vw, 86px); line-height: .92; text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lwl-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 10px; font-size: 14px; color: rgba(242, 243, 242, .82); }
.lwl-hero-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--lwl-dim); margin: 0 12px 3px -12px; }
.lwl-hero-bar, .lwl-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.lwl-hero-bar { width: min(420px, 100%); }
.lwl-hero-bar i, .lwl-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--lwgp-red, #F20D25), #FF2A40); box-shadow: 0 0 12px rgba(242, 13, 37, .7); }
.lwl-hero-next { margin: 14px 0 0; font-size: 13px; color: var(--lwl-mut); max-width: 520px; }
.lwl-hero-next b { color: var(--lwgp-fg, #F2F3F2); font-weight: 600; }
.lwl-hero-btns { display: flex; gap: 12px; margin-top: 24px; }
.lwl-btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.lwl-btn.w { background: #fff; color: #0b0b0c; }
.lwl-btn.w svg { fill: #0b0b0c; stroke: none; }
.lwl-btn.g { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lwl-btn.g.on svg { fill: var(--lwgp-red, #F20D25); color: var(--lwgp-red, #F20D25); }
.lwl-btn:hover, .lwl-btn:focus-visible { transform: scale(1.04); outline: none; }
.lwl-btn.g:hover { background: rgba(255, 255, 255, .22); }

.lwl-rail { position: absolute; z-index: 2; right: var(--lwgp-px, 64px); bottom: 110px; width: 300px; display: flex; flex-direction: column; gap: 10px; }
.lwl-rail-lab { margin: 0 0 2px 4px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--lwl-mut); }
.lwl-rail-list { display: flex; flex-direction: column; gap: 10px; }
.lwl-rail-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; color: inherit; cursor: pointer;
  background: rgba(16, 18, 20, .55); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .15s, border-color .15s; }
.lwl-rail-item:hover, .lwl-rail-item:focus-visible { background: rgba(30, 32, 34, .75); outline: none; }
.lwl-rail-item.on { background: rgba(242, 13, 37, .18); border-color: rgba(242, 13, 37, .6); box-shadow: 0 0 30px rgba(242, 13, 37, .25); }
.lwl-rail-logo { width: 62px; height: 40px; border-radius: 9px; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lwl-rail-logo img { max-width: 80%; max-height: 76%; object-fit: contain; }
.lwl-rail-txt { min-width: 0; }
.lwl-rail-txt b { display: block; font-size: 13px; }
.lwl-rail-sub { display: block; font-size: 11px; color: var(--lwl-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lwl-chips { position: relative; z-index: 3; display: flex; gap: 8px; padding: 0 var(--lwgp-px, 64px); margin-top: -48px; overflow-x: auto; scrollbar-width: none; }
.lwl-chips::-webkit-scrollbar { display: none; }
.lwl-chips.in { margin-top: 0; padding: 16px 0 0; }
.lwl-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  color: rgba(242, 243, 242, .8); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); transition: background .15s, color .15s; }
.lwl-chip svg { width: 15px; height: 15px; }
.lwl-chip b { font-weight: 600; color: var(--lwl-dim); font-size: 12px; }
.lwl-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lwl-chip.on { background: #fff; color: #0b0b0c; border-color: #fff; }
.lwl-chip.on b { color: rgba(11, 11, 12, .5); }
.lwl-chip.ghost { background: none; }
.lwl-grow { flex: 1; }

.lwl-row { margin-top: 42px; padding: 0 var(--lwgp-px, 64px); }
.lwl-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--lwgp-red, #F20D25); }
.lwl-row-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.lwl-row-head h2 { margin: 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .01em; }
.lwl-more { margin-left: auto; border: 0; background: none; color: var(--lwl-mut); font-size: 13px; font-weight: 600; cursor: pointer; }
.lwl-more:hover { color: #fff; }
.lwl-track-wrap { position: relative; margin: 0 calc(var(--lwgp-px, 64px) * -1); }
.lwl-track { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 12px var(--lwgp-px, 64px) 18px; }
.lwl-track::-webkit-scrollbar { display: none; }
.lwl-track .lwl-tile { flex: 0 0 var(--lwl-tile); }
.lwl-arrow { position: absolute; top: 12px; bottom: 18px; width: 56px; z-index: 6; border: 0; cursor: pointer; color: #fff; opacity: 0; transition: opacity .2s; display: grid; place-items: center; }
.lwl-arrow.l { left: 0; background: linear-gradient(90deg, rgba(17, 18, 18, .95), transparent); }
.lwl-arrow.r { right: 0; background: linear-gradient(270deg, rgba(17, 18, 18, .95), transparent); }
.lwl-arrow svg { width: 26px; height: 26px; }
.lwl-track-wrap:hover .lwl-arrow { opacity: 1; }

/* ---------------------------------------------------------------- tarjeta */
.lwl-tile { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--lwl-card); border: 1px solid var(--lwl-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.lwl-art { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, var(--c, #2a2f36) 0%, #101214 75%); }
.lwl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.lwl-art img { position: relative; z-index: 1; max-width: 62%; max-height: 58%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)); }
.lwl-live, .lwl-q { position: absolute; z-index: 2; top: 9px; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; }
.lwl-q { right: 9px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lwl-live { left: 9px; background: var(--lwgp-red, #F20D25); display: none; align-items: center; gap: 5px; }
.lwl-live i { width: 5px; height: 5px; }
.lwl-tile.has-epg .lwl-live { display: inline-flex; }
.lwl-fav { position: absolute; z-index: 3; bottom: 9px; right: 9px; width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .15s, transform .15s; }
.lwl-fav svg { width: 15px; height: 15px; }
.lwl-fav.on { opacity: 1; color: var(--lwgp-red, #F20D25); }
.lwl-fav.on svg { fill: var(--lwgp-red, #F20D25); }
.lwl-fav:hover { transform: scale(1.12); }
.lwl-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--lwgp-red, #F20D25);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(242, 13, 37, .6); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.lwl-play svg { fill: #fff; stroke: none; width: 22px; height: 22px; margin-left: 3px; }
.lwl-meta { padding: 11px 13px 12px; }
.lwl-meta b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwl-prog-t { display: block; margin-top: 3px; font-size: 12px; color: var(--lwl-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwl-meta .lwl-bar { margin-top: 9px; height: 3px; }
.lwl-tile:hover, .lwl-tile:focus-visible { transform: scale(1.06); z-index: 3; border-color: transparent; outline: none;
  box-shadow: 0 0 0 2px var(--lwgp-red, #F20D25), 0 22px 50px rgba(0, 0, 0, .7), 0 0 40px rgba(242, 13, 37, .25); }
.lwl-tile:hover .lwl-play, .lwl-tile:focus-visible .lwl-play { opacity: 1; transform: scale(1); }
.lwl-tile:hover .lwl-fav, .lwl-tile:focus-visible .lwl-fav { opacity: 1; }

/* ------------------------------------------------------ todos los canales */
.lwl-all { padding: 104px var(--lwgp-px, 64px) 0; }
.lwl-all-head { display: flex; align-items: flex-end; gap: 24px; }
.lwl-all-head h1 { margin: 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: 64px; line-height: .9; }
.lwl-all-sub { margin: 6px 0 0; font-size: 14px; color: var(--lwl-mut); }
.lwl-seg { margin-left: auto; display: flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--lwl-line); }
.lwl-seg button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border: 0; border-radius: 9px; background: none; color: var(--lwl-mut); font-size: 13px; font-weight: 600; cursor: pointer; }
.lwl-seg button:hover { color: #fff; }
.lwl-seg button.on { background: #fff; color: #0b0b0c; }
.lwl-tools { display: flex; gap: 10px; margin-top: 24px; }
.lwl-search, .lwl-select { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lwl-line); color: var(--lwl-dim); }
.lwl-search { flex: 1; }
.lwl-search:focus-within { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.lwl-search input { flex: 1; height: 100%; border: 0; outline: none; background: none; color: var(--lwgp-fg, #F2F3F2); font: inherit; font-size: 14px; }
.lwl-select { color: var(--lwgp-fg, #F2F3F2); padding-right: 12px; }
.lwl-select select { appearance: none; -webkit-appearance: none; border: 0; outline: none; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; padding-right: 26px; cursor: pointer; max-width: 260px; }
.lwl-select select option { background: #1b1e21; color: #f2f3f2; }
.lwl-select > svg { position: absolute; right: 12px; pointer-events: none; color: var(--lwl-mut); }
.lwl-flag { width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; position: relative; overflow: hidden; background: linear-gradient(180deg, #002D62 0 50%, #CE1126 50%); }
.lwl-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(180deg, transparent 40%, #fff 40% 60%, transparent 60%); }
.lwl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; padding-top: 26px; }
.lwl-sentinel { height: 1px; }

/* ---------------------------------------------------------------- celular */
@media (max-width: 768px) {
  .lwl { --lwl-tile: 46vw; }
  .lwl-hero { height: 470px; min-height: 0; }
  .lwl-hero-bg { background-size: 80% auto; background-position: 50% 30%; }
  .lwl-hero-body { left: 16px; right: 16px; width: auto; bottom: 70px; }
  .lwl-hero-ch { margin-bottom: 10px; }
  .lwl-hero-logo { width: 60px; height: 42px; }
  .lwl-hero-title { font-size: 44px; }
  .lwl-hero-meta { font-size: 12px; margin: 10px 0 8px; }
  .lwl-hero-next { display: none; }
  .lwl-hero-btns { margin-top: 14px; }
  .lwl-btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .lwl-hero-btns .lwl-btn.g span { display: none; }
  .lwl-rail { display: none; }
  .lwl-chips { padding: 0 16px; margin-top: -40px; }
  .lwl-row { padding: 0 16px; margin-top: 28px; }
  .lwl-row-head h2 { font-size: 24px; }
  .lwl-track-wrap { margin: 0 -16px; }
  .lwl-track { gap: 10px; padding: 8px 16px 12px; }
  .lwl-arrow { display: none; }
  .lwl-fav { opacity: 1; }
  .lwl-all { padding: 128px 16px 0; }
  .lwl-all-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lwl-all-head h1 { font-size: 44px; }
  .lwl-seg { margin-left: 0; }
  .lwl-tools { flex-wrap: wrap; }
  .lwl-search { flex-basis: 100%; }
  .lwl-select { flex: 1; }
  .lwl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lwl-meta { padding: 9px 10px 10px; }
  .lwl-meta b { font-size: 12px; }
  .lwl-prog-t { font-size: 11px; }
}

/* ========================= VER CANAL =========================
   Por defecto (TV, celular, pantalla completa) el reproductor queda igual:
   la "pantalla" ocupa todo y lo nuevo está oculto. */
.lwlw-screen { position: absolute; inset: 0; }
.lwlw { display: none; }

@media (min-width: 1024px) {
  body.lwgp #player-overlay:not(.is-fullscreen) {
    --w-side: 360px; --w-pad: 32px;
    background: radial-gradient(900px 500px at 10% -10%, rgba(242, 13, 37, .16), transparent 60%), var(--lwgp-bg, #111212);
    overflow-y: auto; overflow-x: hidden;
  }
  body.lwgp #player-overlay:not(.is-fullscreen) .lwlw-screen {
    position: relative; inset: auto; margin: 76px 0 0 var(--w-pad);
    width: calc(100% - var(--w-pad) * 2 - var(--w-side) - 24px); aspect-ratio: 16 / 9;
    border-radius: 18px 18px 0 0; overflow: hidden; background: #000;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  }
  body.lwgp #player-overlay:not(.is-fullscreen) .lwlw-screen .player-top { visibility: hidden; }
  body.lwgp #player-overlay:not(.is-fullscreen) .lwlw { display: block; }
}

.lwlw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lwlw button { font-family: Inter, -apple-system, sans-serif; }
.lwlw-back { position: absolute; top: 18px; left: 28px; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px 0 11px; border-radius: 12px; cursor: pointer;
  background: rgba(30, 32, 31, .85); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; }
.lwlw-back:hover { background: #2A2D2B; }
.lwlw-bar { display: flex; align-items: center; gap: 6px; margin-left: var(--w-pad); width: calc(100% - var(--w-pad) * 2 - var(--w-side) - 24px);
  padding: 10px 12px; background: #17191B; border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.lwlw-tool { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 11px; background: none; color: #A3A9A6; font-size: 13px; font-weight: 600; cursor: pointer; }
.lwlw-tool:hover, .lwlw-tool:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; outline: none; }
.lwlw-tool.on { color: #fff; }
.lwlw-tool.on svg { color: var(--lwgp-red, #F20D25); fill: var(--lwgp-red, #F20D25); }
.lwlw-tool.sw { background: rgba(255, 255, 255, .06); color: #fff; }
.lwlw-info { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 18px 0 40px var(--w-pad); width: calc(100% - var(--w-pad) * 2 - var(--w-side) - 24px); }
.lwlw-card { min-width: 0; padding: 18px 20px; border-radius: 18px; background: rgba(23, 25, 27, .85); border: 1px solid rgba(255, 255, 255, .08); color: #F2F3F2; }
.lwlw-card h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwlw-card p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(242, 243, 242, .56); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lwlw-card .lwl-bar { margin-top: 12px; }
.lwlw-k { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--lwgp-red, #F20D25); }
.lwlw-k.d { color: rgba(242, 243, 242, .38); }
.lwlw-chan { display: flex; align-items: center; gap: 16px; }
.lwlw-logo { width: 92px; height: 62px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lwlw-logo img { max-width: 80%; max-height: 72%; object-fit: contain; }
.lwlw-chan h1 { margin: 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: 34px; line-height: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwlw-chan p { margin-top: 5px; -webkit-line-clamp: 1; }
.lwlw-chan > div { min-width: 0; }

.lwlw-side { position: absolute; top: 76px; right: var(--w-pad); width: var(--w-side); max-height: calc(100vh - 100px); display: flex; flex-direction: column;
  padding: 14px; border-radius: 18px; background: rgba(23, 25, 27, .88); border: 1px solid rgba(255, 255, 255, .08); color: #F2F3F2; }
.lwlw-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 11px; background: rgba(255, 255, 255, .06); color: rgba(242, 243, 242, .38); flex-shrink: 0; }
.lwlw-search input { flex: 1; border: 0; outline: none; background: none; color: #F2F3F2; font: inherit; font-size: 13px; }
.lwlw-tabs { display: flex; gap: 4px; margin: 12px 0 8px; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.lwlw-tabs button { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 6px 10px; border: 0; border-radius: 999px; color: rgba(242, 243, 242, .6); background: rgba(255, 255, 255, .05); cursor: pointer; }
.lwlw-tabs button:hover { color: #fff; }
.lwlw-tabs button.on { background: #fff; color: #0b0b0c; }
.lwlw-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; margin: 0 -4px; padding: 0 4px; }
.lwlw-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; }
.lwlw-item:hover, .lwlw-item:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.lwlw-item.on { background: linear-gradient(90deg, rgba(242, 13, 37, .22), rgba(242, 13, 37, .06)); box-shadow: inset 0 0 0 1px rgba(242, 13, 37, .6); }
.lwlw-ilogo { width: 66px; height: 42px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lwlw-ilogo img { max-width: 80%; max-height: 74%; object-fit: contain; }
.lwlw-itxt { flex: 1; min-width: 0; }
.lwlw-itxt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwlw-itxt > span { display: block; font-size: 11px; color: rgba(242, 243, 242, .56); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwlw-item.on .lwlw-itxt > span { color: #fff; }
.lwlw-itxt .lwl-bar { height: 3px; margin-top: 6px; width: 150px; }
.lwlw-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.lwlw-eq i { width: 3px; border-radius: 2px; background: var(--lwgp-red, #F20D25); animation: lwleq 1s ease-in-out infinite; }
.lwlw-eq i:nth-child(2) { animation-delay: -.3s; } .lwlw-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes lwleq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ============================ GUÍA ============================ */
body.lwgp #view-guide { padding-top: 0 !important; height: auto; }
body.lwgp #view-guide > :not(.lwgg) { display: none !important; }
.lwgg { padding: 104px var(--lwgp-px, 64px) 60px; color: var(--lwgp-fg, #F2F3F2); font-family: Inter, -apple-system, "Segoe UI", sans-serif; }
.lwgg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lwgg button { font-family: inherit; }
.lwgg-head { display: flex; align-items: flex-end; gap: 24px; }
.lwgg-head h1 { margin: 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: 64px; line-height: .9; }
.lwgg .lwl-chips.in { padding-top: 18px; }
.lwgg .lwl-chip.ghost { padding: 0 12px; }
.lwgg-grid { position: relative; margin-top: 22px; overflow-x: auto; border-radius: 18px; background: rgba(20, 22, 24, .7); border: 1px solid rgba(255, 255, 255, .08);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.lwgg-inner { position: relative; padding-bottom: 8px; }
.lwgg-times { display: flex; position: sticky; top: 0; z-index: 4; background: #15171A; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lwgg-corner { position: sticky; left: 0; z-index: 5; width: var(--gcol); flex-shrink: 0; padding: 14px 18px; background: #15171A; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--lwgp-red, #F20D25); }
.lwgg-tline { display: flex; }
.lwgg-slot { flex-shrink: 0; padding: 14px 10px; font-size: 12px; font-weight: 600; color: rgba(242, 243, 242, .55); border-left: 1px solid rgba(255, 255, 255, .06); }
.lwgg-row { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lwgg-ch { position: sticky; left: 0; z-index: 3; width: var(--gcol); flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; cursor: pointer; text-align: left; color: inherit;
  background: linear-gradient(90deg, #17191C 88%, rgba(23, 25, 28, 0)); }
.lwgg-ch:hover .lwgg-name b { color: #fff; text-decoration: underline; text-decoration-color: rgba(242, 13, 37, .7); text-underline-offset: 3px; }
.lwgg-logo { width: 54px; height: 36px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lwgg-logo img { max-width: 80%; max-height: 74%; object-fit: contain; }
.lwgg-name { min-width: 0; flex: 1; }
.lwgg-name b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwgg-name span { display: block; font-size: 11px; color: rgba(242, 243, 242, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwgg .lwgg-fav { position: static; width: 26px; height: 26px; background: none; opacity: .35; flex-shrink: 0; }
.lwgg-ch:hover .lwgg-fav, .lwgg .lwgg-fav.on { opacity: 1; }
.lwgg-track { position: relative; height: 64px; flex-shrink: 0; }
.lwgg-p { position: absolute; top: 7px; bottom: 7px; padding: 8px 12px; border: 0; border-radius: 10px; overflow: hidden; text-align: left; cursor: pointer; color: inherit;
  background: #1F2225; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: background .15s, box-shadow .15s, transform .15s; }
.lwgg-p b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwgg-p span { display: block; margin-top: 2px; font-size: 11px; color: rgba(242, 243, 242, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwgg-p:hover, .lwgg-p:focus-visible { background: #2A2D31; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); outline: none; }
.lwgg-p.past { opacity: .45; }
.lwgg-p.now { background: linear-gradient(90deg, rgba(242, 13, 37, .28), rgba(242, 13, 37, .12)); box-shadow: inset 0 0 0 1px rgba(242, 13, 37, .6); }
.lwgg-p.now span { color: rgba(255, 255, 255, .8); }
.lwgg-p.now:hover { box-shadow: inset 0 0 0 1px var(--lwgp-red, #F20D25), 0 0 24px rgba(242, 13, 37, .3); }
.lwgg-pp { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--lwgp-red, #F20D25), #FF2A40); box-shadow: 0 0 10px rgba(242, 13, 37, .7); }
.lwgg-p.empty { background: rgba(255, 255, 255, .025); box-shadow: none; }
.lwgg-p.empty b { color: rgba(242, 243, 242, .4); font-weight: 500; }
.lwgg-empty { position: sticky; left: 0; width: min(100%, 100vw - 24px); padding: 40px 20px; }
.lwgg-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 2; background: var(--lwgp-red, #F20D25); box-shadow: 0 0 12px rgba(242, 13, 37, .8); pointer-events: none; }
.lwgg-nowtag { position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 1; padding: 3px 8px; border-radius: 6px; background: var(--lwgp-red, #F20D25); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 14px rgba(242, 13, 37, .6); pointer-events: none; }
@media (max-width: 768px) {
  .lwgg { padding: 128px 12px 40px; }
  .lwgg-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lwgg-head h1 { font-size: 44px; }
  .lwgg-grid { --gcol: 132px !important; }
  .lwgg-logo { width: 40px; height: 28px; }
  .lwgg .lwgg-fav { display: none; }
}

/* Con el reproductor abierto (cubre toda la pantalla) la página de TV en vivo de abajo se oculta:
   el navegador no la pinta y no pueden quedar pedazos de ella encima del reproductor
   (se vieron tarjetas y rieles de TV en vivo sobre el video en una captura de oct-2026). */
body.lwgp:has(#player-overlay:not(.hidden):not(.is-fullscreen)) #view-live .lwl { visibility: hidden; }
