/* ==========================================================================
   LWG TV — Catálogo premium de Películas y Series (diseño aprobado:
   disenos/peliculas-series). Solo con body.lwgp.
   ========================================================================== */

body.lwgp .vod-view:has(.lwgc) { padding-top: 0 !important; }
.lwgc { --lwgc-line: rgba(255, 255, 255, .08); --lwgc-mut: rgba(242, 243, 242, .56); --lwgc-dim: rgba(242, 243, 242, .38);
  color: var(--lwgp-fg, #F2F3F2); font-family: Inter, -apple-system, "Segoe UI", sans-serif; padding-bottom: 60px; }
.lwgc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lwgc button { font-family: inherit; }

/* Encabezado con mosaico */
.lwgc-banner { position: relative; height: 330px; overflow: hidden; }
.lwgc-mosaic { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; transform: rotate(-6deg) scale(1.25); opacity: .32; filter: saturate(1.2); }
.lwgc-mosaic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.lwgc-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--lwgp-bg, #111212) 6%, rgba(17, 18, 18, .75) 40%, rgba(17, 18, 18, .45)),
  linear-gradient(180deg, rgba(17, 18, 18, .5), transparent 30%, var(--lwgp-bg, #111212) 96%); }
.lwgc-tx { position: absolute; left: var(--lwgp-px, 64px); bottom: 44px; }
.lwgc-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--lwgp-red, #F20D25); }
.lwgc-tx h1 { margin: 0; font-family: "Bebas Neue", Inter, sans-serif; font-weight: 400; font-size: 84px; line-height: .9; }
.lwgc-sub { margin: 8px 0 0; font-size: 14px; color: var(--lwgc-mut); }

/* Barra de orden y filtros */
.lwgc-bar { display: flex; align-items: center; gap: 10px; padding: 6px var(--lwgp-px, 64px) 0; scroll-margin-top: 90px; flex-wrap: wrap; }
.lwgc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lwgc-line); }
.lwgc-tabs button { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--lwgc-mut); font-size: 13px; font-weight: 600; cursor: pointer; }
.lwgc-tabs button:hover { color: #fff; }
.lwgc-tabs button.on { background: #fff; color: #0b0b0c; }
.lwgc-grow { flex: 1; }
.lwgc-dd, .lwgc-search { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lwgc-line); font-size: 13px; font-weight: 600; }
.lwgc-dd select { appearance: none; -webkit-appearance: none; border: 0; outline: none; background: none; color: var(--lwgc-dim); font: inherit; font-weight: 600; padding-right: 22px; cursor: pointer; max-width: 170px; }
.lwgc-dd select option { background: #1b1e21; color: #f2f3f2; }
.lwgc-dd > svg { position: absolute; right: 12px; pointer-events: none; color: var(--lwgc-mut); }
.lwgc-dd.act { border-color: rgba(242, 13, 37, .6); background: rgba(242, 13, 37, .12); }
.lwgc-dd.act select { color: #fff; }
.lwgc-search { color: var(--lwgc-dim); min-width: 220px; }
.lwgc-search:focus-within { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.lwgc-search input { flex: 1; border: 0; outline: none; background: none; color: var(--lwgp-fg, #F2F3F2); font: inherit; font-weight: 500; }

.lwgc-chips { display: flex; gap: 8px; padding: 16px var(--lwgp-px, 64px) 0; overflow-x: auto; scrollbar-width: none; }
.lwgc-chips::-webkit-scrollbar { display: none; }
.lwgc-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: rgba(242, 243, 242, .8); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.lwgc-chip b { font-weight: 600; font-size: 12px; color: var(--lwgc-dim); }
.lwgc-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lwgc-chip.on { background: #fff; color: #0b0b0c; border-color: #fff; }
.lwgc-chip.on b { color: rgba(11, 11, 12, .5); }

.lwgc-res { display: flex; align-items: baseline; gap: 10px; padding: 26px var(--lwgp-px, 64px) 0; }
.lwgc-res b { font-size: 15px; } .lwgc-res span { font-size: 13px; color: var(--lwgc-mut); }

/* Cuadrícula */
.lwgc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 16px; padding: 16px var(--lwgp-px, 64px) 30px; }
.lwgc-card { position: relative; min-width: 0; cursor: pointer; outline: none; }
.lwgc-pi { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #1a1c1b; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .22s ease, box-shadow .22s ease; }
.lwgc-pi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lwgc-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--lwgc-mut); }
.lwgc-rb { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); }
.lwgc-rb b { color: var(--lwgp-gold, #F5C518); }
.lwgc-bm { position: absolute; z-index: 2; top: 8px; left: 8px; width: 28px; height: 28px; border: 0; border-radius: 7px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .85; }
.lwgc-bm svg { width: 14px; height: 14px; }
.lwgc-bm.on { background: var(--lwgp-red, #F20D25); opacity: 1; }
.lwgc-bm:hover { transform: scale(1.1); }
.lwgc-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: rgba(242, 13, 37, .92); }
.lwgc-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .2s; }
.lwgc-play svg { width: 52px; height: 52px; padding: 15px 13px 15px 17px; border-radius: 50%; background: var(--lwgp-red, #F20D25); fill: #fff; stroke: none; box-shadow: 0 10px 30px rgba(242, 13, 37, .6); }
.lwgc-card:hover .lwgc-pi, .lwgc-card:focus-visible .lwgc-pi { transform: scale(1.05); 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); }
.lwgc-card:hover .lwgc-play, .lwgc-card:focus-visible .lwgc-play { opacity: 1; }
.lwgc-t { display: block; margin-top: 9px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwgc-m { display: block; margin-top: 2px; font-size: 12px; color: var(--lwgc-mut); }
.lwgc-empty { grid-column: 1 / -1; padding: 50px 0; text-align: center; color: var(--lwgc-mut); }
.lwgc-loading { grid-column: 1 / -1; display: grid; place-items: center; height: 300px; }
.lwgc-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: lwgcspin .8s linear infinite; }
@keyframes lwgcspin { to { transform: rotate(360deg); } }

/* Paginación */
.lwgc-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 6px 16px 20px; }
.lwgc-pager button, .lwgc-pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--lwgc-mut); }
.lwgc-pager button { border: 1px solid var(--lwgc-line); background: rgba(255, 255, 255, .05); cursor: pointer; }
.lwgc-pager button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lwgc-pager button.on { background: #fff; color: #0b0b0c; border-color: #fff; }
.lwgc-pager button:disabled { opacity: .35; cursor: default; }

@media (max-width: 768px) {
  .lwgc-banner { height: 250px; }
  .lwgc-tx { left: 16px; bottom: 26px; }
  .lwgc-tx h1 { font-size: 56px; }
  .lwgc-bar { padding: 6px 16px 0; }
  .lwgc-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lwgc-tabs button { flex-shrink: 0; padding: 0 12px; }
  .lwgc-grow { display: none; }
  .lwgc-dd { flex: 1; }
  .lwgc-search { flex-basis: 100%; min-width: 0; }
  .lwgc-chips { padding: 14px 16px 0; }
  .lwgc-res { padding: 20px 16px 0; }
  .lwgc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; padding: 12px 16px 20px; }
  .lwgc-t { font-size: 12px; }
  .lwgc-pager { gap: 6px; }
  .lwgc-pager button, .lwgc-pager span { min-width: 36px; height: 36px; padding: 0 8px; }
}
