/* ===========================================================================
   THE NETWORK — THE BROADCAST SET
   ---------------------------------------------------------------------------
   Marquis, on the launch build: "make this look like nfl network created
   this portion of the app. I want to create excitement."

   The rest of the site already speaks broadcast: Barlow Condensed italic
   headlines, score-bug tiles, the wire ticker, sapphire as a signal. The
   network pages were the one place still built out of generic panels and
   inline colours. This file puts them on the same set, and adds the three
   idioms a sports network actually uses:

     THE LOWER THIRD   a skewed cap + a headline block, for the thing on air
     THE RIBBON        a state read at a glance — LIVE, NOMINATIONS OPEN
     THE LADDER        a ranked board with a bar, for the GOAT vote

   Everything is a token from style.css. Gold means the GOAT League and only
   the GOAT League; sapphire is the network; red is live.
   =========================================================================== */

/* ------------------------------------------------------------- the band -- */
.nx-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--wash), var(--ground-0));
  border-bottom: 1px solid var(--line);
}
.nx-band.gold {
  background: linear-gradient(180deg, rgba(50, 38, 8, 0.42), var(--ground-0));
  border-bottom-color: rgba(255, 217, 138, 0.22);
}
/* ONE authored light: a single diagonal beam behind the headline. It has a
   job — it is what makes the band read as a studio and not a header — and
   there is exactly one of it. */
.nx-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 46%; height: 180%; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(var(--sap-rgb), 0.10) 50%, transparent 60%);
  transform: skewX(-18deg);
}
.nx-band.gold::before {
  background: linear-gradient(100deg, transparent 40%, rgba(255, 217, 138, 0.09) 50%, transparent 60%);
}
.nx-band .wrap { padding-top: 26px; padding-bottom: 22px; }

/* ------------------------------------------------------- the lower third -- */
.nx-lt { display: flex; gap: 14px; align-items: stretch; }
.nx-lt .cap {
  flex: 0 0 8px; background: var(--sap); transform: skewX(-12deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.nx-band.gold .nx-lt .cap { background: var(--gold); }
.nx-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--f-cond); font-weight: 700; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sap-pale);
}
.nx-band.gold .nx-eyebrow { color: var(--gold); }
.nx-title {
  font-family: var(--f-cond); font-style: italic; font-weight: 800;
  text-transform: uppercase; color: var(--ink-strong);
  font-size: clamp(44px, 8.5vw, 104px); line-height: 0.9; letter-spacing: -0.015em;
  margin-top: 6px; text-wrap: balance;
}
.nx-sub {
  margin-top: 12px; max-width: 62ch; color: var(--ink-muted);
  font-size: 14px; line-height: 1.65;
}
.nx-sub b { color: var(--ink-strong); }

/* --------------------------------------------------------------- ribbons -- */
.nx-ribbon {
  display: inline-block; padding: 4px 12px 4px 10px;
  font-family: var(--f-cond); font-weight: 800; font-style: italic;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #06090F; background: var(--sap-soft);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.nx-ribbon.live { background: var(--hot); color: #FFF; }
.nx-ribbon.gold { background: var(--gold); }
.nx-ribbon.closed { background: var(--ink-dim); color: var(--ink-strong); }
.nx-ribbon.dark { background: var(--amber); }

/* ----------------------------------------------------------- score bugs -- */
.nx-bugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nx-bugs .tile { padding: 12px 14px; flex: 1 1 150px; max-width: 360px; min-width: 0; }
.nx-bugs .tile .v { font-size: 30px; }
.nx-bugs .tile .v small { font-size: 14px; font-style: normal; color: var(--ink-muted); margin-left: 4px; }

/* -------------------------------------------------------------- layout --- */
.nx-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px;
  padding-top: 22px; padding-bottom: 64px;
}
.nx-rail { display: grid; gap: 14px; align-content: start; }
/* ON A PHONE the rail dissolves into the column, and the one thing a new
   member must find first — claiming a name — moves above the feed. */
@media (max-width: 920px) {
  .nx-grid { grid-template-columns: 1fr; gap: 14px; }
  .nx-rail { display: contents; }
  .nx-main { order: 2; }
  .nx-rail > * { order: 3; }
  .nx-rail > .nx-first { order: 1; }
}
.nx-tabs { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }

/* ------------------------------------------------------------- the feed -- */
.nx-feed { display: grid; gap: 8px; }
.hub-post {
  padding: 12px 16px 12px 15px;
  border-left: 3px solid transparent;
}
.hub-post.k-league { border-left-color: var(--sap); }
.hub-post.k-site   { border-left-color: var(--gold); }
.hub-post.k-team   { border-left-color: var(--sap-soft); }
.hub-post .who { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.hub-post .who a { color: var(--ink-strong); font-weight: 800; font-size: 13.5px; text-decoration: none; }
.hub-post .who .h { color: var(--ink-dim); font-size: 11.5px; }
.hub-post .who .at { color: var(--ink-dim); font-size: 11px; margin-left: auto; }
.hub-post .body {
  margin-top: 6px; font-size: 13.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; color: var(--ink-soft);
}
.hub-post .acts { display: flex; gap: 14px; margin-top: 9px; align-items: center; }
.hub-post .acts button {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px;
  color: var(--ink-muted); padding: 0;
}
.hub-post .acts button.on { color: var(--pink); }
.hub-post .open { display: inline-block; margin-top: 7px; font-size: 12px; color: var(--sap-soft); }
.hub-post .ava {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  object-fit: contain; background: var(--surface-deep);
}
.hub-post .ava.blank, .nx-card .ava.blank {
  background: rgba(var(--line-rgb), 0.18); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-cond); font-weight: 800; font-style: italic; color: var(--sap-soft); font-size: 16px;
}
.nx-card .ava.blank { font-size: 40px; }
.nx-tag {
  font-family: var(--f-cond); font-weight: 800; font-style: italic;
  font-size: 11px; letter-spacing: 0.1em; padding: 1px 7px; border-radius: 3px;
  text-transform: uppercase;
}
.nx-tag.team    { color: var(--sap-soft); background: rgba(var(--line-rgb), 0.14); }
.nx-tag.league  { color: var(--sap-pale); background: rgba(var(--sap-rgb), 0.22); }
.nx-tag.site    { color: var(--gold); background: rgba(255,217,138,0.16); }
.nx-tag.network { color: var(--good); background: rgba(107,219,143,0.16); }
.nx-tag.goat    { color: #06090F; background: var(--gold); }

/* ----------------------------------------------------------- the composer */
.nx-composer textarea { width: 100%; padding: 10px 12px; font-size: 13.5px; resize: vertical; }
.nx-composer .row { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; align-items: center; }

/* -------------------------------------------------------------- the rail -- */
.nx-leagues { display: grid; gap: 2px; }
.nx-leagues a {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
  transition: background var(--t-control) var(--ease);
}
.nx-leagues a:hover { background: rgba(var(--sap-rgb), 0.10); }
.nx-leagues .crest {
  width: 28px; height: 28px; border-radius: 6px; object-fit: contain;
  background: var(--surface-deep); flex: 0 0 auto;
  font-family: var(--f-cond); font-weight: 800; font-style: italic; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--sap-soft);
}
.nx-leagues .nm { font-weight: 700; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-leagues .sp { margin-left: auto; font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-dim); text-transform: uppercase; }

/* the numbered strip: these ARE a sequence — claim, follow, post */
.nx-steps { display: grid; gap: 10px; counter-reset: s; }
.nx-steps > div { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); }
.nx-steps > div::before {
  counter-increment: s; content: counter(s);
  font-family: var(--f-cond); font-weight: 800; font-style: italic; font-size: 22px;
  line-height: 1; color: var(--sap-lift); flex: 0 0 20px; margin-top: -1px;
}
.gold .nx-steps > div::before, .nx-steps.gold > div::before { color: var(--gold); }
.nx-steps b { color: var(--ink-strong); }

/* ------------------------------------------------------------ the ladder -- */
.g-ladder { display: grid; gap: 6px; }
.g-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 16px 12px 10px;
}
.g-row.mine { border-color: rgba(255, 217, 138, 0.55); }
/* the vote bar: a gold floor line with a faint fill above it, so a row
   reads as "this much of the leader" and not as a grey block */
.g-row .bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%);
  background: linear-gradient(180deg, rgba(255,217,138,0.0), rgba(255,217,138,0.07));
  border-bottom: 3px solid var(--gold-2);
  pointer-events: none; transition: width var(--t-section) var(--ease-out);
}
.g-row.lead .bar { border-bottom-color: var(--gold); }
.g-row > * { position: relative; }
.g-rank {
  font-family: var(--f-cond); font-weight: 800; font-style: italic;
  font-size: 30px; line-height: 1; color: var(--ink-dim); text-align: center;
}
.g-row:first-child .g-rank, .g-row.lead .g-rank { color: var(--gold); }
.g-name { color: var(--ink-strong); font-weight: 800; font-size: 15px; }
.g-name .pos { font-family: var(--f-cond); font-weight: 700; font-style: normal; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-dim); margin-left: 6px; }
.g-meta { color: var(--ink-dim); font-size: 11.5px; margin-top: 3px; }
.g-meta a { color: var(--sap-soft); text-decoration: none; }
.g-why { color: var(--ink-muted); font-size: 12.5px; line-height: 1.6; margin-top: 6px; }
.g-votes { text-align: right; min-width: 64px; }
.g-votes .v { font-family: var(--f-cond); font-weight: 800; font-style: italic; font-size: 28px; line-height: 1; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.g-votes .l { font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-dim); text-transform: uppercase; }
.g-form { display: grid; gap: 7px; }
.g-form .inp { padding: 9px 11px; font-size: 13px; }
.g-form .two { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px; }
@media (max-width: 560px) { .g-row { grid-template-columns: 40px minmax(0, 1fr); } .g-votes { grid-column: 2; text-align: left; } .g-rank { font-size: 24px; } }

/* ------------------------------------------------------------ the profile */
.nx-card { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.nx-card .ava {
  width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto;
  background: var(--surface-deep);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
/* Tier I franchise frame (build 265): the picture sits in the frame's window; the frame is drawn over it. */
.nx-card .ava-framed { position: relative; width: 132px; height: 132px; flex: 0 0 auto; display: block; }
.nx-card .ava-framed .pic { position: absolute; left: 26%; top: 24%; width: 48%; height: 46%; object-fit: cover; background: var(--surface-deep); border-radius: 12%; z-index: 1; }
.nx-card .ava-framed .pic.blank { display: flex; align-items: center; justify-content: center; font-family: var(--f-cond); font-weight: 800; font-style: italic; font-size: 34px; color: var(--sap-soft); background: rgba(var(--line-rgb), 0.18); }
.nx-card .ava-framed .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 0; }
.nx-title .nx-crest { width: .9em; height: .9em; object-fit: contain; vertical-align: -0.12em; margin-left: .15em; }
.nx-card .ident { flex: 1 1 260px; min-width: 0; }
.nx-card .handle { color: var(--ink-muted); font-size: 13px; margin-top: 6px; }
.nx-card .handle a { color: var(--sap-soft); text-decoration: none; }
.nx-card .bio { color: var(--ink-muted); margin-top: 8px; font-size: 13px; max-width: 64ch; line-height: 1.6; }
.nx-card .nx-title { font-size: clamp(30px, 5.5vw, 56px); }
.era-rail { display: grid; gap: 0; }
.era-rail > div {
  display: flex; gap: 12px; align-items: baseline; font-size: 13px;
  padding: 8px 0 8px 18px; position: relative; border-left: 2px solid var(--line-2);
}
.era-rail > div::before {
  content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sap);
}
.era-rail > div:last-child::before { background: var(--gold); box-shadow: var(--glow-gold); }
.era-rail b { color: var(--ink-strong); }
.era-rail .since { color: var(--ink-dim); font-size: 11.5px; margin-left: auto; }

/* ------------------------------------------------------------ the ticker -- */
.wire-tag.net   { color: var(--sap-pale); background: rgba(var(--sap-rgb), 0.22); }
.wire-tag.goat  { color: #06090F; background: var(--gold); }
.wire-tag.site  { color: var(--gold); background: rgba(255,217,138,0.16); }

/* -------------------------------------------------------------- GOAT TV -- */
/* Build 218. Borrows the Hall of Fame's own plaque language (hall.html's
   .hof-plaque: a colour-driven left border and a gradient wash keyed to
   --plaque) rather than inventing a second "special" look -- a GOAT nominee
   going live is the same vocabulary as a legend on the wall, not a new one. */
.gt-wall { list-style: none; margin: 18px 0 0; padding: 0; display: grid;
           gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gt-plaque {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--plaque) 26%, rgba(7, 11, 22, 0.90)),
    rgba(7, 11, 22, 0.90));
  border: 1px solid rgba(var(--line-rgb), 0.16);
  border-left: 3px solid var(--plaque);
  text-decoration: none;
}
.gt-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-deep);
            overflow: hidden; }
.gt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gt-live { position: absolute; top: 10px; left: 10px; display: flex; align-items: center;
           gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 10.5px;
           font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
           background: var(--hot); color: #FFF; }
.gt-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFF;
               animation: gt-pulse 1.6s ease-in-out infinite; }
@keyframes gt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.gt-viewers { position: absolute; bottom: 10px; right: 10px; padding: 3px 9px;
              border-radius: 999px; font-size: 11px; font-weight: 700;
              background: rgba(7,11,22,0.72); color: var(--ink); }
.gt-body { padding: 14px 16px 16px; }
.gt-eyebrow { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
              color: var(--gold); font-weight: 700; }
.gt-name { font-family: var(--f-cond); font-weight: 800; font-style: italic;
           font-size: 22px; color: var(--ink-strong); margin-top: 4px; line-height: 1.1; }
.gt-name a { color: inherit; text-decoration: none; }
.gt-meta { color: var(--ink-muted); font-size: 12px; margin-top: 4px; }
.gt-title { color: var(--ink-soft); font-size: 12.5px; margin-top: 8px; line-height: 1.6; }
.gt-watch { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700;
            color: var(--sap-soft); text-decoration: none; }
.gt-empty { padding: 22px; text-align: center; }
.gt-empty .big { font-size: 34px; }
.gt-field { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.gt-field-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
                border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.gt-field-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim);
                     flex: 0 0 auto; }
.gt-field-row .name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.gt-field-row .name a { color: inherit; text-decoration: none; }
.gt-field-row .meta { color: var(--ink-dim); font-size: 11.5px; }

/* Build 436 -- GOAT TV nominee cards, the champion, and the Network's four
   task tiles. Same plaque language as above; gold stays for the GOAT. */
.gt-cards { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gt-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px;
           background: linear-gradient(160deg, rgba(200,165,82,0.10), rgba(7,11,22,0.9) 60%);
           border: 1px solid rgba(255,217,138,0.18); }
.gt-card.live { border-color: rgba(255,90,90,0.55); }
.gt-card-top { display: flex; gap: 12px; align-items: center; }
.gt-crest { width: 46px; height: 46px; object-fit: contain; flex: none; }
.gt-card .gt-meta a { color: var(--sap-soft); text-decoration: none; }
.gt-why { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.gt-why span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.gt-nextline { font-size: 12px; color: var(--ink-muted); }
.gt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.gt-actions .btn { padding: 7px 14px; font-size: 12.5px; }
.gt-champ { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px;
            border-color: rgba(255,217,138,0.5); background: linear-gradient(135deg, rgba(200,165,82,0.22), rgba(7,11,22,0.9)); flex-wrap: wrap; }
.gt-next { display: grid; gap: 6px; font-size: 13px; }
.nx-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 14px; }  /* build 595: six doors, 3 by 2 */
.nx-door { display: block; position: relative; padding: 14px 14px 13px; min-height: 108px; border-radius: 12px; text-decoration: none; color: #edf2ff;
           border: 1px solid #3e5174; background: linear-gradient(145deg, #243757, #101b30 55%, #0a1120);
           box-shadow: inset 0 2px 0 rgba(132,146,175,.25), inset 0 -4px 0 #030714, 0 8px 14px rgba(0,0,0,.3); transition: transform .18s, border-color .18s; }
.nx-door.gold { background: linear-gradient(145deg, #3e3729, #1a2232 55%, #0a1120); border-color: #6d6044; }
.nx-door:hover { transform: translateY(-3px); border-color: #b5c7eb; }
.nx-door .ic { font-size: 22px; line-height: 1; }
.nx-door b { display: block; font-family: var(--f-cond); font-weight: 800; font-size: 20px; text-transform: uppercase; margin-top: 10px; line-height: 1.05; }
.nx-door small { display: block; font-size: 11.5px; color: #a5b4ce; margin-top: 4px; line-height: 1.45; }
.nx-feature { display: flex; gap: 14px; align-items: center; padding: 14px 18px; margin-bottom: 14px; text-decoration: none; color: inherit; }
@media (max-width: 760px) { .nx-doors { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .nx-door { transition: none; } .nx-door:hover { transform: none; } }

/* BUILD 593: flair on the profile header (shared pieces in style.css). */
.nx-title-plated { font-size: inherit; margin: 2px 0 0; }
.nx-title-plated .fl-plate { max-width: 560px; }
.nx-flair-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.nx-flair-row .nx-crest { width: 32px; height: 32px; object-fit: contain; margin: 0; }
.nx-title .fl-emblems img { width: .8em; height: .8em; }
