
:root {
  --page-bg: #f7f8fc;
  --panel-bg: #ffffff;
  --accent-blue: #013369;
  --accent-orange-top: #f8b06a;
  --accent-orange-bottom: #d48a3a;
  --text-main: #111827;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
}

header {
  background: #ffffff;
  border-bottom: 1px solid #d0d5dc;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe8c7 0, #f8b06a 40%, #d48a3a 80%);
  border: 1px solid rgba(148, 81, 29, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2b1607;
}

.brand-title {
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0;
}

nav a {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--accent-blue);
  text-decoration: none;
}

nav a.active,
nav a:hover {
  background: #fff5eb;
  border-color: var(--accent-orange-bottom);
  color: #7c2d12;
}

/* Hero banner area */

.hero-banner {
  max-width: 1100px;
  margin: 0.6rem auto 0.9rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
  position: relative;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlayed text on top of the banner image */
.hero-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 2rem;
}

.hero-banner-title {
  font-size: 1.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fefcf7;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.hero-banner-subtitle {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f3e1c0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.hero, .card {
  background: var(--panel-bg);
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  border: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
  margin-top: 1.1rem;
}

.hero::before, .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(180deg, var(--accent-orange-top), var(--accent-orange-bottom));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.sections-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 1.1rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-icon {
  font-size: 1.1rem;
}

/* Schedule block styling */

.schedule-block {
  margin-top: 1.1rem;
}

.schedule-grid {
  margin-top: 0.5rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 0.9fr 2fr 1.2fr;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  align-items: center;
}

.schedule-row:nth-child(odd) {
  background: #f3f4f6;
}

.schedule-head {
  font-weight: 600;
  color: #374151;
  background: #e5e7eb;
}

.schedule-time {
  font-weight: 500;
  color: #111827;
}

.schedule-matchup {
  color: #111827;
}

.schedule-note {
  color: #6b7280;
  font-size: 0.82rem;
}

footer {
  background: #ffffff;
  border-top: 1px solid #d0d5dc;
  padding: 0.9rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-banner-title {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }
  .hero-banner-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }
  .sections-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .schedule-row {
    grid-template-columns: 1fr 2fr;
  }
  .schedule-row span:last-child {
    margin-top: 0.15rem;
  }
}


.btn{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);color:inherit;padding:8px 12px;border-radius:10px;font-weight:600}
.btn:hover{background:rgba(255,255,255,.10)}


/* --- Additions: standings/results/spotlights layout helpers --- */
.muted { color: var(--text-muted); }

.list-compact { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.row { padding: 10px 12px; border: 1px solid rgba(17, 24, 39, 0.08); border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.row-title { font-weight: 800; }
.row-sub { color: var(--text-muted); margin-top: 4px; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

.mini-table h3 { margin: 0 0 8px; font-size: 0.95rem; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
thead th { text-align: left; font-size: 0.85rem; color: var(--text-muted); padding: 10px 12px; background: rgba(1, 51, 105, 0.06); }
tbody td { padding: 10px 12px; border-top: 1px solid rgba(17, 24, 39, 0.06); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(1, 51, 105, 0.18); background: rgba(255, 245, 235, 0.6); color: var(--accent-blue); text-decoration: none; font-weight: 700; }
.pill:hover { background: rgba(255, 245, 235, 0.9); }

.scoreboard-block { border: 1px solid rgba(17, 24, 39, 0.08); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.65); }
.scoreboard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(1, 51, 105, 0.10); }
.scoreboard-body { padding: 12px 14px; }

/* Schedule rows created by live-scoreboards.js */
.schedule-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(17, 24, 39, 0.06); }
.schedule-row:first-child { border-top: none; }
.schedule-time { font-weight: 800; }
.schedule-matchup { line-height: 1.25; }


/* Leaders (auto player stats) */
.leaders-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.leader-col{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px;
}
.leader-title{
  font-weight: 700;
  margin-bottom: 10px;
}
.leader-row{
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.leader-row:first-of-type{ border-top: none; }
.leader-rank{
  font-weight: 700;
  opacity: 0.9;
}
.leader-name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-val{
  font-weight: 700;
}
/* Brand icon next to HH */
.brand-mark{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-icon{
  width:22px;
  height:22px;
  border-radius:6px;
  display:block;
}


/* --- Quick links bar + grid (homepage) --- */
.quicklinks-bar{
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 0 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.quicklinks-bar .btn{ text-decoration:none; }
.quicklinks-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.quicklinks-grid .btn{ text-decoration:none; width:100%; text-align:center; }
.divider{height:1px;background:rgba(255,255,255,.12);margin:12px 0;}
@media (max-width: 640px){
  .quicklinks-grid{ grid-template-columns:1fr; }
}


/* Score formatting */
.team-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;}
.team-score{font-weight:700;white-space:nowrap;}



/* ---------- Compatibility fallbacks (Android / forced colors) ----------
   Some browsers (or forced dark/high-contrast modes) can mis-render the
   gradient-mask border, leaving “shadow-only” cards. These fallbacks keep
   cards readable without changing the look for supported browsers.
*/
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .hero::before, .card::before { display: none; }
  .hero, .card { border: 1px solid var(--accent-orange-bottom); }
}

@media (forced-colors: active) {
  .hero::before, .card::before { display: none; }
  .hero, .card {
    background: Canvas !important;
    color: CanvasText !important;
    border: 1px solid CanvasText !important;
  }
  .muted { color: GrayText !important; }
  a { color: LinkText !important; }
}


/* --- Headlines pages --- */
.subnav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(1, 51, 105, 0.18);
  background: rgba(255, 245, 235, 0.7);
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
}

.subnav-link:hover,
.subnav-link.active {
  background: #fff5eb;
  border-color: var(--accent-orange-bottom);
  color: #7c2d12;
}

.content-section {
  margin-top: 1.1rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feed-status {
  font-weight: 700;
  color: var(--accent-blue);
}

.updates-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.update-item {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px 0;
}

.update-item:first-child {
  border-top: none;
  padding-top: 4px;
}

.update-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.update-link:hover {
  text-decoration: underline;
}

.update-meta {
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.update-desc {
  margin-top: 6px;
  color: var(--text-main);
  line-height: 1.5;
}

.empty-state {
  padding: 8px 0;
  color: var(--text-muted);
}

/* ---------- Homepage refresh: clean gateway, no feed changes ---------- */
body.home-refresh {
  background: #0b1220;
}

body.home-refresh header {
  position: sticky;
  top: 0;
  z-index: 20;
}

body.home-refresh nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.home-refresh nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
}

.home-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,6,23,0.92) 0%, rgba(2,6,23,0.62) 46%, rgba(2,6,23,0.20) 100%),
    url("/assets/realistic-hero.png") center center / cover no-repeat;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 45%, rgba(248,176,106,0.22), transparent 34%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 78px 1.25rem 92px;
  color: #fff7ed;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #fdba74;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
}

.eyebrow.dark {
  color: #9a3412;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 18px 36px rgba(0,0,0,0.55);
}

.home-hero-subtitle {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: #ffedd5;
  font-size: clamp(1.02rem, 2.4vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.primary-action,
.secondary-action,
.note-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: #111827;
  background: linear-gradient(180deg, #fdba74, #f97316);
  box-shadow: 0 14px 32px rgba(249,115,22,0.28);
}

.secondary-action {
  color: #fff7ed;
  border: 1px solid rgba(255,237,213,0.50);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.home-nav-hub,
.home-note {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.1rem auto;
  border-radius: 24px;
  background: #fffaf4;
  color: #111827;
  border: 1px solid rgba(253,186,116,0.48);
  box-shadow: 0 24px 55px rgba(0,0,0,0.24);
}

.home-nav-hub {
  padding: 1.3rem;
}

.hub-intro {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hub-intro h2,
.home-note h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.hub-intro p,
.home-note p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.league-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.league-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  color: #111827;
  border: 1px solid rgba(1,51,105,0.16);
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 24px rgba(15,23,42,0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.league-card:hover,
.league-card:focus-visible {
  transform: translateY(-3px);
  border-color: #f97316;
  box-shadow: 0 18px 34px rgba(15,23,42,0.16);
}

.league-card strong {
  display: block;
  color: var(--accent-blue);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.league-card span:last-child {
  color: #4b5563;
  line-height: 1.35;
}

.league-kicker {
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.march-card {
  background: linear-gradient(135deg, #fff7ed, #ffedd5 52%, #fed7aa);
}

.support-card {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.home-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}

.note-link {
  flex: 0 0 auto;
  color: #111827;
  background: #fdba74;
}

body.home-refresh footer {
  background: #ffffff;
}

@media (max-width: 900px) {
  .league-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body.home-refresh .nav-container {
    align-items: stretch;
  }
  body.home-refresh nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  body.home-refresh nav a {
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .home-hero {
    min-height: 540px;
    background-position: 62% center;
  }
  .league-card-grid {
    grid-template-columns: 1fr;
  }
  .home-nav-hub,
  .home-note {
    width: min(100% - 1.2rem, 1100px);
  }
}


.support-nav{
  border:1px solid rgba(251,146,60,.7);
  border-radius:999px;
  padding:.7rem 1rem !important;
  background:rgba(0,0,0,.35);
}
