* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-2: #162238;
  --text: #eef4ff;
  --muted: #b8c4da;
  --line: rgba(255,255,255,0.08);

  --accent: #d64045;
  --accent-2: #ffcc66;
  --accent-3: #7cc4ff;

  --success: #2ecc71;
  --shadow: 0 18px 45px rgba(0,0,0,0.28);
  --radius: 18px;
}

/* ---------- SITE HEADER / NAV ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.score-ticker {
  background: linear-gradient(90deg, rgba(8,12,20,0.98) 0%, rgba(13,20,34,0.98) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.score-ticker-inner {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(214,64,69,0.14);
  border: 1px solid rgba(214,64,69,0.35);
  color: #ffd9db;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-text {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-main {
  background:
    linear-gradient(180deg, rgba(12,18,31,0.94), rgba(10,15,26,0.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
}

.header-inner {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.site-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(135deg, rgba(214,64,69,0.22), rgba(255,204,102,0.12));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.24);
}

.baseball-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fffaf2;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.08);
}

.baseball-mark::before,
.baseball-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 10px;
  height: 18px;
  border: 2px solid #d64045;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.baseball-mark::before {
  left: 2px;
  transform: rotate(12deg);
}

.baseball-mark::after {
  right: 2px;
  transform: rotate(-12deg);
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand-copy strong {
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.site-brand-copy small {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.desktop-nav-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-main,
.site-nav-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav-secondary {
  padding-left: 22px;
  margin-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.site-nav-link,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: #d7e0ef;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 800;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.site-nav-link:hover,
.nav-dropdown-toggle:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

.site-nav-link.active {
  color: #ffffff;
  background: rgba(214,64,69,0.12);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-caret {
  margin-left: 7px;
  font-size: 0.76rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(13,21,37,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 44px rgba(0,0,0,0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-link {
  width: 100%;
}

.nav-cta,
.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d64045 0%, #f05b4f 100%);
  color: #fff8f2;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(214,64,69,0.28);
  transition: 0.18s ease;
}

.nav-cta:hover,
.mobile-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(214,64,69,0.34);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15,24,41,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.mobile-nav-group {
  display: grid;
  gap: 8px;
}

.mobile-nav-label {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav .site-nav-link {
  min-height: 46px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 900px) {
  .desktop-nav-wrap {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 640px) {
  .score-ticker-inner,
  .header-inner,
  .mobile-menu {
    width: min(100% - 20px, 1140px);
  }

  .ticker-text {
    font-size: 0.78rem;
  }

  .site-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .site-brand-copy strong {
    font-size: 1rem;
  }

  .site-brand-copy small {
    font-size: 0.68rem;
  }
}
/* ---------- PAGE HEADER ---------- */

header {
  padding: 34px 0 14px;
}

header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

main {
  padding: 14px 0 48px;
}

/* ---------- NOTES ---------- */

.note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-radius: 14px;
  font-size: 0.95rem;
}

/* ---------- POWERED BY ---------- */

.brand-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(17,26,43,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.brand-chip span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-chip img {
  height: 42px;
  width: auto;
  display: block;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ---------- SCHEDULE LAYOUT ---------- */

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.schedule-groups {
  display: grid;
  gap: 22px;
}

/* ---------- DATE CARD ---------- */

.date-card {
  background: rgba(17,26,43,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.date-card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.date-card-header h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.date-card-header p {
  margin: 0;
  color: var(--muted);
}

/* ---------- GAME ROW ---------- */

.games-list {
  padding: 10px;
  display: grid;
  gap: 12px;
}

.game-item {
  display: grid;
  grid-template-columns: 90px 1fr 140px 120px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.game-time {
  font-weight: 700;
  font-size: 0.95rem;
}

.game-matchup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.game-matchup strong {
  font-size: 1rem;
  line-height: 1.3;
}

/* ---------- FIELD / STATUS ---------- */

.game-field,
.game-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.field-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #dfe7f5;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.3;
}

/* ---------- BADGES ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77,163,255,0.14);
  color: var(--accent-2);
  border: 1px solid rgba(77,163,255,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

/* ---------- SIDE PANEL ---------- */

.side-panel {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(17,26,43,0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}

.side-panel h2 {
  margin: 0 0 14px;
  color: var(--accent-2);
}

.legend-list {
  display: grid;
  gap: 12px;
}

.legend-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.legend-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.legend-desc {
  color: #d8e1f0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- TABLES ---------- */

.table-wrap {
  background: rgba(17,26,43,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(255,255,255,0.035);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- FOOTER ---------- */

footer {
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  color: var(--accent-2);
  font-family: Consolas, monospace;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .brand-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
main,
footer {
    width: min(100% - 20px, 1000px);
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 760px;
  }

  header {
    padding-top: 28px;
  }
}

@media (max-width: 700px) {
  .game-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-bar {
    justify-content: center;
  }

  .brand-chip {
    width: 100%;
    justify-content: center;
  }
}
html,
body {
  background:
    radial-gradient(circle at top left, rgba(77,163,255,0.18), transparent 28%),
    linear-gradient(180deg, #09101c 0%, #0b1220 100%) !important;
  background-attachment: fixed;
}

body {
  min-height: 100vh;
}

header,
main,
footer,
.schedule-layout,
.schedule-groups,
.date-card,
.side-panel {
  background-color: transparent;
}