/* Homepage match centre: a presentation-only layer. Fixture and control markup stays intact. */
html body.home-companion {
  --bg-canvas: #090b0e;
  --bg-surface: #101318;
  --bg-elevated: #141820;
  --border-hairline: #252b32;
  --accent-primary: #42d6ad;
  --accent-tv: #f4c64a;
  --text-primary: #f2f5f4;
  --text-secondary: #a5b0b6;
  background: var(--bg-canvas) !important;
}

/* One quiet header plane, with navigation and search sharing a visual baseline. */
html body.home-companion .companion-header {
  border-color: var(--border-hairline) !important;
  background: rgba(14, 17, 21, .97) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}
html body.home-companion .companion-header .wtgo-dsearch,
html body.home-companion .companion-header .nav-links {
  border-color: var(--border-hairline) !important;
  background: #11161b !important;
  box-shadow: none !important;
}
html body.home-companion .companion-header .nav-links a:not(.is-active) { color: #b9c1c4 !important; }
html body.home-companion .companion-header .nav-links a.is-active {
  color: #09241d !important;
  background: var(--accent-primary) !important;
  box-shadow: none !important;
}

/* Three columns should read as one instrument panel, not three competing cards. */
html body.home-companion .companion-today .fixture-dashboard {
  gap: 9px !important;
  padding: 9px !important;
  border-color: var(--border-hairline) !important;
  border-radius: 18px !important;
  background: #0c0f13 !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .24) !important;
}
html body.home-companion .companion-today .fixture-rail-left {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-left :is(.rail-panel,.rail-link-card),
html body.home-companion .companion-today .fixture-rail-right .rail-panel,
html body.home-companion .companion-today .fixture-centre,
html body.home-companion .companion-today .fixture-dashboard .all-sports-grid {
  border-color: var(--border-hairline) !important;
  background: var(--bg-surface) !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-left :is(.rail-panel,.rail-link-card) {
  border-radius: 11px !important;
}
html body.home-companion .companion-today .fixture-rail-left .rail-panel > h3,
html body.home-companion .companion-today .fixture-rail-left .rail-title {
  border-color: var(--border-hairline) !important;
  background: transparent !important;
}
html body.home-companion .companion-today .fixture-rail-left .rail-sport-tabs button,
html body.home-companion .companion-today .fixture-rail-left .sport-nav-more > summary {
  min-height: 38px !important;
  color: #c2cbd0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-left .rail-sport-tabs button:hover,
html body.home-companion .companion-today .fixture-rail-left .sport-nav-more > summary:hover {
  color: #fff !important;
  background: #1b2527 !important;
  transform: none !important;
}
html body.home-companion .companion-today .fixture-rail-left .rail-sport-tabs button.is-active {
  color: #edfff7 !important;
  border-color: rgba(66, 214, 173, .23) !important;
  background: #153129 !important;
  box-shadow: inset 3px 0 var(--accent-primary) !important;
}
html body.home-companion .companion-today .fixture-rail-left .sport-nav-icon,
html body.home-companion .companion-today .fixture-rail-left .is-empty .sport-nav-icon {
  color: #91d8bf !important;
  background: #1a302a !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-left .rail-sport-tabs button > span,
html body.home-companion .companion-today .fixture-rail-left .sport-nav-more > summary > span {
  color: #cbd7d4 !important;
  border-color: #2a3935 !important;
  background: #192722 !important;
}
html body.home-companion .companion-today .fixture-rail-left .live-rail-panel,
html body.home-companion .companion-today .fixture-rail-left .rail-link-card {
  background: #12191a !important;
  border-color: var(--border-hairline) !important;
}
html body.home-companion .companion-today .fixture-rail-left .live-rail-list a {
  color: #e5eeeb !important;
  border-color: var(--border-hairline) !important;
  background: transparent !important;
}

/* Compact toolbar and grouped league rhythm. No fixture-row grid changes. */
html body.home-companion .companion-today .fixture-centre { border-radius: 12px !important; }
html body.home-companion .companion-today .fixture-toolbar {
  border-color: var(--border-hairline) !important;
  background: #111720 !important;
}
html body.home-companion .companion-today .date-mini-nav,
html body.home-companion .companion-today .fixture-filterbar {
  border-color: var(--border-hairline) !important;
  background: #121820 !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .date-mini-nav button.is-active,
html body.home-companion .companion-today .fixture-filterbar > button.is-active {
  color: #09241d !important;
  background: var(--accent-primary) !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-filterbar > button:not(.is-active) { color: #c0cbd0 !important; }
html body.home-companion .companion-today .premium-select > summary {
  border-color: #2a3a40 !important;
  background: #182630 !important;
}
html body.home-companion .companion-today .all-sports-status {
  padding-block: 6px !important;
  color: #a6b7bc !important;
  background: transparent !important;
}
html body.home-companion .companion-today .fixture-groups { gap: 8px !important; }
html body.home-companion .companion-today .fixture-group {
  border-color: var(--border-hairline) !important;
  border-radius: 11px !important;
  background: #101820 !important;
}
html body.home-companion .companion-today .fixture-group > header {
  min-height: 44px !important;
  border-color: var(--border-hairline) !important;
  background: #19222d !important;
}
html body.home-companion .companion-today .fixture-row { border-color: #23303a !important; background: #111a22 !important; }
html body.home-companion .companion-today .fixture-row > summary { min-height: 53px !important; }
html body.home-companion .companion-today .fixture-row > summary:hover { background: #1a2930 !important; }
html body.home-companion .companion-today .fixture-row-time { color: #b7c7d0 !important; }
html body.home-companion .companion-today .fixture-tv-mark {
  color: #231b06 !important;
  border-color: #f5cb55 !important;
  background: var(--accent-tv) !important;
  box-shadow: 0 2px 9px rgba(244, 198, 74, .15) !important;
}
html body.home-companion .companion-today .fixture-tv-mark .tvm-ico,
html body.home-companion .companion-today .fixture-tv-mark .tvm-txt { color: inherit !important; }

/* A cohesive editorial rail: featured story remains prominent without a white card stack. */
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news.sports-feed-section {
  border: 1px solid var(--border-hairline) !important;
  border-radius: 12px !important;
  background: #121820 !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .rail-title {
  padding: 14px !important;
  border-bottom: 1px solid var(--border-hairline) !important;
  background: linear-gradient(125deg, #152128, #141a23) !important;
}
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .rail-title .news-rail-kicker { color: var(--accent-primary) !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .rail-title h3 { color: var(--text-primary) !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .rail-title span { color: #a7b5ba !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .rail-title > a { border-color: #37514d !important; color: #b0ead7 !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .sports-feed-grid {
  padding: 8px !important;
  gap: 3px !important;
  background: #121820 !important;
}
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .sports-feed-card,
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .wtgo-owned-story {
  color: #e9f0ef !important;
  border: 1px solid #293139 !important;
  border-radius: 8px !important;
  background: #171f27 !important;
  box-shadow: none !important;
}
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .sports-feed-card:hover,
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .wtgo-owned-story:hover {
  border-color: #416f64 !important;
  background: #1b2930 !important;
}
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .sports-feed-card:first-child,
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .wtgo-owned-story:first-child { background: #1a252b !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news :is(.feed-title,.wtgo-owned-headline) { color: #f0f5f4 !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news :is(.feed-category,.wtgo-owned-meta strong) { color: #6be5bf !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news :is(.feed-source,.feed-time,.wtgo-owned-byline,.wtgo-owned-meta time) { color: #a1b2b8 !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .wtgo-owned-empty { color: #b3c3c7 !important; }
html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .news-rail-cta {
  color: #071b16 !important;
  background: var(--accent-primary) !important;
}
html body.home-companion .companion-today .fixture-rail-right .next-tv-panel,
html body.home-companion .companion-today .fixture-rail-right .country-panel {
  color: var(--text-primary) !important;
  background: #131920 !important;
}
html body.home-companion .companion-today .fixture-rail-right .next-tv-list a {
  border-color: var(--border-hairline) !important;
  color: #e4ebec !important;
  background: transparent !important;
}
html body.home-companion .companion-today .fixture-rail-right .next-tv-list a:hover { background: #1b252c !important; }
html body.home-companion .companion-today .fixture-rail-right .next-tv-list a strong { color: #edf4f4 !important; }
html body.home-companion .companion-today .fixture-rail-right .next-tv-list a small { color: #9baeb8 !important; }
html body.home-companion .companion-today .fixture-rail-right .next-tv-list a time { color: #58dabb !important; }
html body.home-companion .companion-today .fixture-rail-right .country-panel .rail-title,
html body.home-companion .companion-today .fixture-rail-right .next-tv-panel .rail-title {
  border-color: var(--border-hairline) !important;
  background: #151d25 !important;
}

@media (max-width: 900px) {
  html body.home-companion .companion-today .fixture-dashboard { padding: 7px !important; }
  html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news.sports-feed-section { margin-top: 10px !important; }
  html body.home-companion .companion-today .mobile-sport-row { border-color: var(--border-hairline) !important; background: #121820 !important; }
  html body.home-companion .companion-today .mobile-sport-tabs button.is-active { color: #08251e !important; background: var(--accent-primary) !important; }
}
@media (max-width: 600px) {
  html body.home-companion .companion-today .fixture-dashboard { border-radius: 12px !important; }
  html body.home-companion .companion-today .fixture-rail-right .rail-panel.rail-news .sports-feed-grid { padding: 7px !important; }
}
/* A single broadcast-yellow chapter bar separates each sport without altering fixture data. */
html body.home-companion #today .sport-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 54px !important;
  margin: 18px 0 12px !important;
  padding: 8px 16px !important;
  border: 1px solid #d3a82e !important;
  border-radius: 12px !important;
  color: #111318 !important;
  background: #f4ca49 !important;
  background-image: none !important;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.16) !important;
}
html body.home-companion #today .sport-divider::before,
html body.home-companion #today .sport-divider::after,
html body.home-companion #today .sport-divider-line { display: none !important; }
html body.home-companion #today .sport-divider-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  color: #111318 !important;
}
html body.home-companion #today .sport-divider-label i {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border: 1px solid rgba(17,19,24,.22) !important;
  border-radius: 9px !important;
  color: #111318 !important;
  background: rgba(17,19,24,.07) !important;
  box-shadow: none !important;
}
html body.home-companion #today .sport-divider-label svg { color: #111318 !important; stroke: currentColor !important; }
html body.home-companion #today .sport-divider-label strong {
  color: #111318 !important;
  font-size: .84rem !important;
  font-weight: 950 !important;
  letter-spacing: .09em !important;
  line-height: 1.15 !important;
  text-shadow: none !important;
}
@media (max-width: 700px) {
  html body.home-companion #today .sport-divider { min-height: 48px !important; margin: 14px 0 10px !important; padding: 7px 12px !important; border-radius: 10px !important; }
  html body.home-companion #today .sport-divider-label { gap: 9px !important; }
  html body.home-companion #today .sport-divider-label i { width: 28px !important; height: 28px !important; flex-basis: 28px !important; }
  html body.home-companion #today .sport-divider-label strong { font-size: .76rem !important; letter-spacing: .075em !important; }
}
