/* ═══════════════════════════════════════════════════════════════════
   Zilla Engine · B+ broadcast · Phase 8 · League Home
   Section wrapper (layout order), summary / draw / recap heroes, 1v1 photos,
   groups at a glance, announcement, pinned article, rules teaser.
   Tokens only (tokens.css); every class bp- prefixed. Loaded after bplus.css.
   ═══════════════════════════════════════════════════════════════════ */

/* Every section outside the full-width hero and strip sits in its own padded block */
.bp-hblock { padding: 0 var(--gutter); }
.bp-hend { height: 50px; }

/* ── Live / next hero additions ── */
.bp-crest--photo { background: var(--surface-2); }
.bp-crest--photo img { width: 100%; height: 100%; object-fit: cover; }
.bp-hero__who { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-hero__extra { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 22px; align-items: center;
  padding: 8px 20px; background: rgba(0,0,0,.72); font-size: 14px; color: var(--sub); white-space: nowrap; }
.bp-hero__momentum + .bp-hero__extra { bottom: 162px; }
.bp-hero__duel { display: inline-flex; align-items: baseline; gap: 8px; }
.bp-hero__duel b { font: 800 italic 22px/1 var(--font-display); color: var(--text); }
.bp-hero__duel i { font-style: normal; font-size: 12px; color: var(--muted); }
.bp-hero__links { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.bp-fdots { display: inline-flex; gap: 3px; vertical-align: middle; }
.bp-fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.bp-fdot--w { background: var(--win); }
.bp-fdot--l { background: var(--loss); }

/* ── Summary / draw / recap heroes: content decides the height ── */
.bp-hero--sum, .bp-hero--recap { height: auto; min-height: 520px; padding-bottom: 60px; }
.bp-sum { position: relative; z-index: 1; padding: 44px var(--gutter) 34px; }
.bp-sum__head { text-align: center; }
.bp-sum__title { font-size: 92px; line-height: .92; margin: 14px 0 0; text-wrap: balance; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.bp-sum__sub { font-size: 18px; color: rgba(255,255,255,.8); margin: 10px 0 0; }
.bp-sum__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.bp-sum__grid:not(.is-many) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1100px; margin-left: auto; margin-right: auto; }
.bp-sum__group { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: rgba(0,0,0,.55); min-width: 0; }
.bp-sum__gname { font-size: 12px; color: var(--league-accent); padding: 0 4px 2px; }
.bp-sumt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 42px; padding: 4px 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 30%, var(--surface)), var(--surface) 70%); border-left: 3px solid var(--tc); min-width: 0; }
.bp-sumt:hover { filter: brightness(1.15); }
.bp-sumt .bp-crest { --s: 30px; font-size: 12px; }
.bp-sumt__name { font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-sumt__meta { font-size: 11px; color: var(--muted); }
.bp-sumt.is-tbd { grid-template-columns: minmax(0, 1fr); color: var(--dim); --tc: var(--line-2); }

.bp-draw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.bp-draw__pair { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: rgba(0,0,0,.55); min-width: 0; }
.bp-draw__v { align-self: center; font-size: 11px; color: var(--muted); }

.bp-recap__game { display: inline-flex; align-items: baseline; gap: 22px; margin-top: 22px; font-size: 54px; line-height: 1; }
.bp-recap__game b { font-size: 110px; }
.bp-recap__game b i { font-style: normal; color: var(--league-accent); margin: 0 8px; }
.bp-recap__game:hover span { color: var(--league-accent); }

/* ── Groups at a glance ── */
.bp-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bp-gcard { background: var(--surface); border-top: 3px solid var(--line-2); padding: 10px 10px 12px; min-width: 0; }
.bp-gcard.is-mine { border-top-color: var(--league-accent); box-shadow: 0 0 0 1px var(--league-accent) inset; }
.bp-gcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 8px; }
.bp-gcard__name { font-size: 22px; }
.bp-gcard__adv { font-size: 11px; color: var(--muted); }
.bp-gcard__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-grow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 30px; gap: 8px; align-items: center; height: 38px; padding: 0 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, var(--surface-2)), var(--surface-2) 60%); }
.bp-grow.is-out { opacity: .55; }
.bp-grow.is-line { box-shadow: 0 2px 0 var(--league-accent); margin-bottom: 4px; }
.bp-grow.is-mine .bp-grow__name { color: var(--league-accent); }
.bp-grow__rank { font-size: 18px; color: var(--muted); }
.bp-grow.is-in .bp-grow__rank { color: var(--league-accent); }
.bp-grow__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-grow__team .bp-crest { --s: 24px; font-size: 10px; }
.bp-grow__name { font-size: 18px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-grow__team:hover .bp-grow__name { color: var(--league-accent); }
.bp-grow__wl { font-size: 12px; color: var(--muted); }
.bp-grow__pts { font-size: 18px; text-align: right; }

/* ── Announcement ── */
.bp-announce { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin-top: var(--section-gap); padding: 28px 32px; background: var(--league-accent); color: var(--ink); }
.bp-announce > :not(.bp-scan) { position: relative; z-index: 1; }
.bp-announce .bp-scan { position: absolute; inset: 0; }
.bp-announce__txt { min-width: 0; }
.bp-announce__title { font-size: 44px; line-height: .95; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.bp-announce__body { font-size: 17px; line-height: 1.5; color: var(--ink); margin-top: 6px; }
.bp-announce__body > :last-child { margin-bottom: 0; }
.bp-announce__body a, .bp-announce__body strong { color: var(--ink); }
.bp-announce .bp-btn { flex: none; }

/* ── Pinned article ── */
.bp-pinned { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 300px; background: var(--surface);
  border-top: 4px solid var(--league-accent); --tc: var(--league-accent); }
.bp-pinned:hover { filter: brightness(1.1); }
.bp-pinned__cover { position: relative; overflow: hidden; background-size: cover; background-position: center;
  background-image: linear-gradient(160deg, color-mix(in srgb, var(--tc) 55%, var(--surface-2)), var(--surface) 80%); }
.bp-pinned__cover .bp-scan { position: absolute; inset: 0; }
.bp-pinned__ghost { position: absolute; left: -10px; bottom: -40px; font-size: 200px; line-height: 1; color: rgba(255,255,255,.1); white-space: nowrap; }
.bp-pinned__body { display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 26px 30px; min-width: 0; }
.bp-pinned__body .bp-news__tag { position: static; align-self: flex-start; background: var(--league-accent); color: var(--ink); }
.bp-pinned__title { font-size: 46px; line-height: .96; margin: 0; overflow-wrap: anywhere; }
.bp-pinned__ex { font-size: 16px; line-height: 1.5; color: var(--sub); margin: 0; }
.bp-pinned__more { font-size: 13px; color: var(--league-accent); }

/* ── Rules teaser ── */
.bp-rteaser { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.bp-rteaser__secs, .bp-rteaser__docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-rteaser__sec { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 0 16px;
  background: var(--surface); border-left: 3px solid var(--league-accent); }
.bp-rteaser__sec .bp-d { font-size: 22px; }
.bp-rteaser__n { color: var(--league-accent); }
.bp-rteaser__go { color: var(--muted); }
.bp-rteaser__sec:hover { background: var(--surface-2); }
.bp-rteaser__doc { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 0 14px;
  background: var(--surface); color: var(--text); }
.bp-rteaser__doc svg { color: var(--league-accent); }
.bp-rteaser__doc .bp-d { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-rteaser__doc .bp-l { font-size: 11px; color: var(--muted); }
.bp-rteaser__doc:hover { background: var(--surface-2); }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1100px) {
  .bp-glance, .bp-sum__grid.is-many, .bp-draw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-sum__title { font-size: 70px; }
  .bp-pinned { grid-template-columns: minmax(0, 1fr); }
  .bp-pinned__cover { min-height: 200px; }
}
@media (max-width: 768px) {
  .bp-hblock { padding: 0 12px; }
  .bp-hend { height: 28px; }
  .bp-hero--sum, .bp-hero--recap { min-height: 0; padding-bottom: 0; }
  .bp-sum { padding: 26px 12px 22px; }
  .bp-sum__title { font-size: 42px; }
  .bp-sum__sub { font-size: 13px; }
  .bp-sum__grid, .bp-sum__grid.is-many, .bp-sum__grid:not(.is-many), .bp-draw { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 18px; }
  .bp-sum__group, .bp-draw__pair { padding: 6px; }
  .bp-sumt { grid-template-columns: 22px minmax(0, 1fr); gap: 6px; min-height: 34px; padding: 3px 6px; }
  .bp-sumt .bp-crest { --s: 22px; font-size: 9px; }
  .bp-sumt__name { font-size: 15px; }
  .bp-sumt__meta { display: none; }
  .bp-recap__game { font-size: 24px; gap: 10px; }
  .bp-recap__game b { font-size: 54px; }
  .bp-hero__extra { display: none; }

  .bp-glance { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; gap: 6px; }
  .bp-glance::-webkit-scrollbar { display: none; }
  .bp-gcard { flex: 0 0 82%; scroll-snap-align: start; }

  .bp-announce { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 14px; margin-top: 22px; }
  .bp-announce__title { font-size: 30px; }
  .bp-announce__body { font-size: 15px; }
  .bp-pinned__title { font-size: 30px; }
  .bp-pinned__body { padding: 18px 16px; }
  .bp-rteaser { grid-template-columns: minmax(0, 1fr); }
}

/* ── Phase 9 · 1v1 nickname tag ── */
.bp-nick{display:inline-block;margin-top:4px;padding:2px 8px;border:1px solid var(--league-accent,#E5622A);
  color:var(--league-accent,#E5622A);font-size:11px;letter-spacing:.12em;text-transform:uppercase;transform:skewX(-10deg);
  white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.bp-phero__name + .bp-nick{margin:6px 0 2px}
.bp-champ__name + .bp-nick{display:table;margin-top:6px}
.bp-hero__who .bp-nick{margin:0;padding:1px 6px;font-size:10px}

/* ── Phase 9 · Games page: group chips + one block per group inside a round ── */
.bp-gchips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.bp-gchips .bp-pill{min-height:32px;padding:4px 14px}
.bp-gblock{margin:0 0 18px}
.bp-gblock__head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:8px 0 8px 12px;
  border-left:3px solid var(--league-accent,#E5622A);margin-bottom:6px}
.bp-gblock__name{font-size:20px;text-transform:uppercase;font-style:italic}
.bp-gblock__n{font-size:12px;color:var(--text-2,#9aa0a6);letter-spacing:.08em;text-transform:uppercase}
.bp-gblock__link{margin-left:auto;font-size:12px;color:var(--league-accent,#E5622A);letter-spacing:.08em;text-transform:uppercase}

/* ── Phase 9 · 1v1 names: first name above the surname in heroes; short form in tight rows ── */
.bp-hero__tname--person { font-size: 58px; }
.bp-hname__first { display: block; font-size: .42em; line-height: 1.1; letter-spacing: .02em; opacity: .85; }
.bp-nm-short { display: none; }
@media (max-width: 640px) {
  .bp-nm-full { display: none; }
  .bp-nm-short { display: inline; }
  .bp-hero__tname--person { font-size: 34px; }
}
