/* Herald · Sports — app tweaks. Base in glass-core.css.
   Additive display: luminous, no dark fills. Live games must pop. */
.sp-game .row-title {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.sp-grp {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 4px 4px;
}
/* A game in progress — bright accent so a glance catches it. */
.row.sp-live {
  border-color: rgba(82, 217, 255, 0.65);
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.14), rgba(82, 217, 255, 0.04));
}
.row.sp-live .row-title { color: #aef0ff; }
/* A team you follow / a favorite league. */
.row.sp-on {
  border-color: var(--aa-ring, rgba(45, 212, 191, 0.5));
  background: linear-gradient(180deg, var(--aa-bloom2, rgba(45, 212, 191, 0.12)), var(--aa-bloom, rgba(45, 212, 191, 0.03)));
}
/* Game detail: big live score line + play-by-play. */
.sp-score {
  flex-shrink: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
  padding: 8px 0 4px;
}
.sp-pbp-h {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 4px 4px;
}
.row.sp-play { cursor: default; }
.row.sp-play .row-title { white-space: normal; font-weight: 600; }
/* A scoring play — luminous so it stands out in the feed. */
.row.sp-score-play {
  border-color: rgba(82, 217, 255, 0.6);
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.13), rgba(82, 217, 255, 0.03));
}
.row.sp-score-play .row-title { color: #aef0ff; }

/* Scores / feed: logo-forward game tiles in a 2-col grid. */
.sp-gtile {
  padding: 13px 14px;
  gap: 7px;
  justify-content: center;
}
.sp-gt { display: flex; align-items: center; gap: 9px; }
.sp-glogo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.28));
}
.sp-gab {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-gsc {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  min-width: 34px;
  text-align: right;
}
.sp-gdt {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.tile.sp-live {
  border-color: rgba(82, 217, 255, 0.6);
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.13), var(--s-1));
}
.tile.sp-live .sp-gdt { color: #aef0ff; }
/* Unmistakable D-pad selection. The shared .tile:focus is only a faint
   border, and .sp-live's own border hid it — you couldn't tell which
   tile was selected. Bright ring + lift wins regardless of state. */
.sp-tile:focus,
.sp-gtile:focus,
.tile.sp-live:focus,
.sp-hero:focus {
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 22px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
/* Overview sections are paged through the standard pager (D-pad down
   walks them all, then the menu bar). Selected section gets the same
   unmistakable ring as tiles. */
.g-card { border-radius: var(--r-md); scroll-margin: 10px; }
.g-card + .g-card { margin-top: 10px; }
.g-card:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
}
/* Live hero: score panel + field diagram stacked as one glance page. */
.g-hero { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.g-hero #g-field { margin: 0; }

/* Home: premium 2-col tile grid — one centred, glowing composition
   per tile (icon + name stacked, no dead void). */
#home [data-list].grid-2 { gap: 12px; align-content: start; }
#home .sp-tile {
  aspect-ratio: auto;
  min-height: 0;
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 62%),
    linear-gradient(180deg, var(--s-3), var(--s-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sp-bg {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  opacity: 0.07;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-bg .icon { width: 100%; height: 100%; }
/* Venue silhouette: a larger, more present backdrop than the mark. */
.sp-bg--ven {
  right: -22px;
  bottom: 50%;
  transform: translateY(50%);
  width: 168px;
  height: 132px;
  opacity: 0.11;
}
.sp-bg--ven svg { width: 100%; height: 100%; }
#home .sp-tile:focus .sp-bg { opacity: 0.13; }
#home .sp-tile:focus .sp-bg--ven { opacity: 0.2; }
#home .sp-tin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
#home .sp-ic {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 70%);
}
#home .sp-ic .icon {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.3));
}
#home .sp-nm {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  text-align: center;
}
#home .sp-sb {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}
/* "My teams" — brand-accented hero. */
#home .sp-hero {
  border-color: var(--aa-ring, rgba(45, 212, 191, 0.5));
  background:
    radial-gradient(120% 110% at 50% 28%, var(--aa-glow-soft, rgba(45, 212, 191, 0.16)), transparent 65%),
    linear-gradient(180deg, var(--s-3), var(--s-1));
}
#home .sp-hero .sp-ic { color: var(--app-accent, var(--brand)); }
#home .sp-hero .sp-ic .icon { filter: drop-shadow(0 0 13px var(--aa-glow, rgba(45, 212, 191, 0.75))); }

/* Beautiful-for-the-medium game overview: luminous panels + chart. */
.g-ov { flex-shrink: 0; }
.g-ov.hidden { display: none; }
.g-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 16px;
}
/* Three balanced columns: away | status | home, each centred. */
.g-team {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.g-midwrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.g-per {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}
.g-ab {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 16px currentColor;
}
.g-sc {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  /* score is team-coloured inline; glow it in its own colour */
  text-shadow: 0 0 26px currentColor;
  opacity: 0.92;
}
.g-sc.g-win { opacity: 1; font-size: 56px; }
.g-mid {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.g-mid--live {
  color: #aef0ff;
  border-color: rgba(82, 217, 255, 0.6);
  background: rgba(82, 217, 255, 0.14);
  box-shadow: 0 0 16px rgba(82, 217, 255, 0.4);
  animation: g-pulse 1.6s ease-in-out infinite;
}
@keyframes g-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.62; } }
.g-mid--final { color: var(--text-muted); }
.g-mid--vs { color: var(--text-secondary); }
/* Current / last play card — colourful, alive, not bland. */
/* Live situation strip — sport-aware depth, glanceable. */
.g-sit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin: 2px 2px 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(82, 217, 255, 0.4);
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.10), rgba(82, 217, 255, 0.02));
}
.g-sit.hidden { display: none; }
.g-sit--rz {
  border-color: rgba(255, 92, 92, 0.65);
  background: linear-gradient(180deg, rgba(255, 92, 92, 0.16), rgba(255, 92, 92, 0.03));
  box-shadow: 0 0 18px rgba(255, 92, 92, 0.3);
}
.g-dia { flex-shrink: 0; width: 58px; height: 58px; }
.g-dia svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(82, 217, 255, 0.55)); }
.g-sit-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.g-sit-cnt { display: flex; align-items: center; gap: 8px; }
.g-sit-bs {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #aef0ff;
  font-variant-numeric: tabular-nums;
}
.g-sit-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.g-pips { display: inline-flex; gap: 4px; }
.g-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.g-pip.on {
  background: #ff5c5c;
  border-color: #ff5c5c;
  box-shadow: 0 0 7px rgba(255, 92, 92, 0.8);
}
.g-sit-who {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-sit-p { color: var(--text-secondary); font-weight: 500; }
/* Football situation */
.g-fb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.g-poss {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 1px;
  color: #aef0ff;
  border: 1px solid rgba(82, 217, 255, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
}
.g-dd { font-size: var(--fs-lg); font-weight: 800; color: var(--text-primary); }
.g-spot { font-size: var(--fs-sm); color: var(--text-muted); }
.g-rz {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffb4b4;
  border: 1px solid rgba(255, 92, 92, 0.7);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.45);
}

.g-last {
  flex-shrink: 0;
  margin: 4px 2px 10px;
  padding: 11px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.07), rgba(82, 217, 255, 0.01));
}
.g-last.hidden { display: none; }
.g-last-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 4px;
}
.g-last-t {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.g-last-m {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.g-last--score {
  border-color: var(--aa-ring, rgba(45, 212, 191, 0.55));
  background: linear-gradient(180deg, var(--aa-bloom2, rgba(45, 212, 191, 0.14)), var(--aa-bloom, rgba(45, 212, 191, 0.02)));
  box-shadow: 0 0 18px var(--aa-glow-soft, rgba(45, 212, 191, 0.22));
}
.g-last--score .g-last-k { color: var(--brand); }
/* Game leaders on the overview — fills the space as a real recap. */
.g-ldr {
  flex-shrink: 0;
  margin: 12px 2px 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}
.g-ldr.hidden { display: none; }
.g-ldr-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
}
.g-ldr-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
}
.g-ldr-row + .g-ldr-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.g-ldr-cat {
  flex: 0 0 92px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.g-ldr-who {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-ldr-val {
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #aef0ff;
  font-variant-numeric: tabular-nums;
}
.g-info {
  flex-shrink: 0;
  margin: 12px 2px 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}
.g-info.hidden { display: none; }
.g-info-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
}
.g-info-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
}
.g-info-row + .g-info-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.g-info-cat {
  flex: 0 0 70px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.g-info-val {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
/* Score panel: team logo beside the abbreviation, centred. */
.g-thead { display: flex; align-items: center; justify-content: center; gap: 9px; }
.g-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}
/* The sport centrepiece — a live diagram, not a squiggle. */
.g-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  min-height: 122px;
  padding: 6px 6px 12px;
}
.g-field.gf-idle { opacity: 0.82; }
.g-field.gf-football, .g-field.gf-soccer {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.gf-dia { width: 132px; flex-shrink: 0; }
.gf-dia svg { width: 100%; height: auto; filter: drop-shadow(0 0 7px rgba(82, 217, 255, 0.5)); }
.gf-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gf-inn {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aef0ff;
}
.gf-cnt { display: flex; align-items: center; gap: 8px; }
.gf-bs {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.gf-lbl { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-muted); }
.gf-who {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-who2 { color: var(--text-secondary); font-weight: 500; }
.gf-state { font-size: var(--fs-base); font-weight: 800; color: var(--text-muted); }
.gf-fld svg { width: 100%; height: 66px; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.4)); }
.gf-fld.gf-rz svg { filter: drop-shadow(0 0 9px rgba(255, 92, 92, 0.55)); }
.gf-pitch svg { width: 100%; height: 76px; filter: drop-shadow(0 0 6px var(--aa-glow-soft, rgba(45, 212, 191, 0.28))); }
.gf-rztag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffb4b4;
  border: 1px solid rgba(255, 92, 92, 0.7);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.4);
}
.g-field.gf-clock { flex-direction: column; gap: 5px; }
.gf-clk {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}
.gf-clk-s { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 2.5px; color: var(--text-muted); }
.g-pip.out { background: #ff5c5c; border-color: #ff5c5c; box-shadow: 0 0 7px rgba(255, 92, 92, 0.8); }
.g-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px 0;
}
.gl-row { display: flex; align-items: center; gap: 2px; }
.gl-ab {
  width: 46px;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.gl-c {
  flex: 1;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.gl-c.gl-h { color: var(--text-muted); font-weight: 800; font-size: var(--fs-xs); }
