/* ============================================================
   EVA V2 - video facade (click-to-load)
   2026-11-09: Reels modal chrome mirrors the news modal.
   Rules: all colours come from real --evb2-* theme variables;
   desktop 1440x900 only; zero touch/mobile code; no autoplay.
   The iframe is never covered: top bar + bottom strip are separate
   flex rows, and the prev/next arrows sit OUTSIDE the panel.

   SPECIFICITY TRAP (verified 11-08):
   header-v2.php:58 has `.evb2-body button{background:none;color:inherit;
   border:0}` (0,1,1). A bare `.class` selector (0,1,0) LOSES to it.
   Every rule targeting a <button> MUST use `body.evb2-body button.<class>`
   (0,2,1).
   ============================================================ */

/* --- L4 side panel: 16/9 facade inside .evb2d-panel (310px content) --- */
.evb2d-video{margin:0 0 8px}
body.evb2-body button.evb2d-video-facade{
  position:relative;display:block;width:100%;aspect-ratio:16/9;
  padding:0;border:1px solid var(--evb2-line);border-radius:8px;
  overflow:hidden;background:var(--evb2-surface2);cursor:pointer;
  transition:filter .18s ease,border-color .18s ease;
}
body.evb2-body button.evb2d-video-facade:hover{filter:brightness(1.06);border-color:var(--evb2-gold-line)}
body.evb2-body button.evb2d-video-facade:focus-visible{outline:2px solid var(--evb2-gold);outline-offset:2px}
body.evb2-body button.evb2d-video-facade img{display:block;width:100%;height:100%;object-fit:cover}

.evb2d-video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:44px;height:44px;border-radius:50%;
  background:var(--evb2-gold-block);
  box-shadow:0 2px 12px rgba(0,0,0,.28);
  pointer-events:none;
}
.evb2d-video-play::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);
  width:0;height:0;
  border-left:14px solid var(--evb2-gold-ink);
  border-top:9px solid transparent;border-bottom:9px solid transparent;
}
/* No on-image caption: the source Shorts already burns in its own
   subtitle. The clip title lives BELOW the poster as normal themed text. */
.evb2d-video-note{margin:0 0 8px;font-size:11px;line-height:1.5;color:var(--evb2-muted)}
.evb2d-video-title{display:block;margin-bottom:2px;font-size:12px;font-weight:600;color:var(--evb2-text)}

/* --- L2 brand shelf: one compact row per video --- */
.evb2-l2-reelitems a{
  display:block;padding:7px 2px;border-bottom:1px dashed var(--evb2-line);
  font-size:13px;color:var(--evb2-muted);line-height:1.4;
}
.evb2-l2-reelitems a:hover{color:var(--evb2-gold)}
.evb2-l2-reelitems a:last-child{border-bottom:0}
.evb2-l2-reelitems .rv{
  display:block;font-size:10px;letter-spacing:.4px;text-transform:uppercase;
  color:var(--evb2-muted);margin-bottom:2px;
}

/* ============================================================
   Reels lightbox (11-16): 16:9 player + news-modal-style chrome
   - close X top-left, "1 / N" top-right in the top bar
   - prev/next arrows OUTSIDE the panel (never over the iframe)
   - bottom switch strip, one tab per video
   16:9 change: both current clips are landscape, so the player box
   was flipped from 9/16 to 16/9 (width derivation updated to match).
   ============================================================ */
.evb2d-vmodal{
  position:fixed;inset:0;z-index:99990;display:grid;place-items:center;
  padding:24px;background:transparent;
  backdrop-filter:blur(10px) brightness(.38);
  -webkit-backdrop-filter:blur(10px) brightness(.38);
}
.evb2d-vmodal[hidden]{display:none}

/* width is derived from the 16:9 player height so the ratio stays exact */
.evb2d-vmodal-in{
  position:relative;display:flex;flex-direction:column;
  width:min(92vw, calc(68vh * 16 / 9 + 36px));
  max-height:86vh;box-sizing:border-box;padding:0 18px 14px;
  background:var(--evb2-surface);border:1px solid var(--evb2-line);
  border-radius:12px;
}
.evb2d-vmodal-bar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex:none;padding:10px 0;border-bottom:1px solid var(--evb2-line);
}
body.evb2-body button.evb2d-vmodal-x{
  width:34px;height:34px;border-radius:50%;padding:0;cursor:pointer;
  border:1px solid var(--evb2-line);
  background:var(--evb2-surface2);color:var(--evb2-text);
  font-size:20px;line-height:32px;text-align:center;flex:none;
}
body.evb2-body button.evb2d-vmodal-x:hover{background:var(--evb2-gold);color:var(--evb2-gold-ink);border-color:var(--evb2-gold)}
body.evb2-body button.evb2d-vmodal-x:focus-visible{outline:2px solid var(--evb2-gold);outline-offset:2px}
.evb2d-vmodal-count{font-size:12.5px;color:var(--evb2-muted);font-variant-numeric:tabular-nums}

.evb2d-vmodal-box{
  position:relative;width:100%;aspect-ratio:16/9;max-height:68vh;
  flex:none;margin:10px auto 0;background:var(--evb2-bg);overflow:hidden;
  border:1px solid var(--evb2-line);border-radius:8px;
}
.evb2d-vmodal-frame{position:absolute;inset:0}
.evb2d-vmodal-frame iframe{display:block;width:100%;height:100%;border:0}

body.evb2-body button.evb2d-vmodal-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:40px;height:40px;border-radius:50%;padding:0;cursor:pointer;
  border:1px solid var(--evb2-gold-line);background:var(--evb2-surface2);
  color:var(--evb2-gold);font-size:22px;line-height:38px;
}
body.evb2-body button.evb2d-vmodal-nav.prev{left:-52px}
body.evb2-body button.evb2d-vmodal-nav.next{right:-52px}
body.evb2-body button.evb2d-vmodal-nav:hover{background:var(--evb2-gold);color:var(--evb2-gold-ink)}
body.evb2-body button.evb2d-vmodal-nav.off{opacity:.35;cursor:not-allowed;pointer-events:none}

.evb2d-vmodal-switch{
  display:flex;gap:6px;flex:none;margin-top:10px;padding-top:10px;
  border-top:1px solid var(--evb2-line);
}
body.evb2-body button.evb2d-vmodal-sitem{
  flex:1 1 0;min-width:0;text-align:left;padding:8px 10px;cursor:pointer;
  border:1px solid var(--evb2-line);border-radius:8px;
  background:var(--evb2-surface2);color:var(--evb2-muted);font-size:12px;line-height:1.4;
}
body.evb2-body button.evb2d-vmodal-sitem:hover{border-color:var(--evb2-gold-line);color:var(--evb2-text)}
body.evb2-body button.evb2d-vmodal-sitem.on{border-color:var(--evb2-gold);background:var(--evb2-gold-soft);color:var(--evb2-text)}
body.evb2-body button.evb2d-vmodal-sitem .ix{
  display:inline-block;min-width:18px;height:18px;line-height:18px;text-align:center;
  border-radius:50%;margin-right:6px;font-size:10.5px;font-weight:700;
  background:var(--evb2-gold-block);color:var(--evb2-gold-ink);
}
body.evb2-body button.evb2d-vmodal-sitem .tt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
