:root {
  --bg: #060913;
  --surface: rgba(14, 19, 33, 0.78);
  --surface-strong: rgba(20, 27, 45, 0.9);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f2f5ff;
  --muted: #a9b4cb;
  --primary: #5ca1ff;
  --accent: #8e68ff;
  --ok: #6fdb97;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.bg-glow {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 420px;
  background:
    radial-gradient(900px 300px at 10% 20%, rgba(92, 161, 255, 0.2), transparent 60%),
    radial-gradient(900px 300px at 90% 10%, rgba(142, 104, 255, 0.22), transparent 58%);
  pointer-events: none;
}

.container {
  width: min(1160px, 94vw);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
  position: relative;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
}

.brand-logo {
  width: clamp(56px, 6vw, 86px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.93rem;
}

.top-nav a:hover {
  color: var(--text);
  border-color: rgba(92, 161, 255, 0.5);
}

.hero {
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "content sidebar";
  gap: 1rem;
  align-items: start;
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0.8rem;
}

.sidebar-stack {
  display: grid;
  gap: 0.8rem;
}

.sidebar-module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  backdrop-filter: blur(8px);
}

.sidebar-module h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.sidebar-link-list {
  display: grid;
  gap: 0.45rem;
}

.sidebar-link-list a {
  text-decoration: none;
  color: #d6e5ff;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(7, 11, 22, 0.62);
  padding: 0.55rem 0.62rem;
}

.sidebar-link-list a:hover {
  border-color: rgba(92, 161, 255, 0.55);
  color: #ffffff;
}

.sidebar-link-list a.active {
  border-color: rgba(92, 161, 255, 0.75);
  background: rgba(26, 43, 76, 0.72);
  color: #ffffff;
  font-weight: 700;
}

.sidebar-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.contact-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.75rem;
}

.contact-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: block;
}

.contact-form span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-submit {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 11, 22, 0.82);
  color: var(--text);
  padding: 0.64rem 0.72rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(92, 161, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(92, 161, 255, 0.2);
  background: rgba(10, 15, 30, 0.92);
}

.contact-submit {
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  font-weight: 700;
  cursor: pointer;
}

.form-alert {
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font-size: 0.86rem;
  border: 1px solid transparent;
}

.form-alert-success {
  border-color: rgba(111, 219, 151, 0.4);
  background: rgba(25, 60, 40, 0.5);
  color: #ddffe8;
}

.form-alert-error {
  border-color: rgba(230, 104, 104, 0.46);
  background: rgba(68, 23, 23, 0.56);
  color: #ffe3e3;
}

.form-alert-error ul {
  margin: 0;
  padding-left: 1rem;
}

.turnstile-wrap {
  display: flex;
  align-items: center;
}

.sidebar-form {
  display: grid;
  gap: 0.7rem;
}

.sidebar-search-form {
  gap: 0.45rem;
}

.card-legend {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(8, 13, 24, 0.5);
  display: grid;
  gap: 0.35rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-upcoming {
  background: #ffcb63;
}

.legend-live {
  background: #64d88c;
}

.legend-finished {
  background: #e77878;
}

.sidebar-form label {
  display: block;
}

.sidebar-form span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sidebar-form input,
.sidebar-form select,
.sidebar-form button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 11, 22, 0.82);
  color: var(--text);
  padding: 0.64rem 0.72rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sidebar-form input,
.sidebar-form select {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-appearance: none;
  appearance: none;
}

.sidebar-form input::placeholder {
  color: rgba(169, 180, 203, 0.85);
}

.sidebar-form input:focus,
.sidebar-form select:focus {
  border-color: rgba(92, 161, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(92, 161, 255, 0.2);
  background: rgba(10, 15, 30, 0.92);
}

.sidebar-form button {
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  font-weight: 700;
  cursor: pointer;
}

.content {
  grid-area: content;
  min-width: 0;
}

.results-meta {
  color: var(--muted);
  margin: 0.4rem 0 0.9rem;
}

.results-mount {
  min-height: 220px;
}

.results-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.6);
  color: var(--muted);
  padding: 0.7rem 0.8rem;
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(92, 161, 255, 0.65);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(92, 161, 255, 0.65);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(92, 161, 255, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(92, 161, 255, 0);
  }
}

.game-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.league-sections {
  display: grid;
  gap: 0.8rem;
}

.league-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.league-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.72rem 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 28, 0.65);
}

.league-summary::-webkit-details-marker {
  display: none;
}

.league-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.league-count {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 11, 20, 0.5);
  padding: 0.12rem 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.league-section .game-list {
  padding: 0.7rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
}

.game-card {
  position: relative;
  overflow: hidden;
}

.game-card.status-pre {
  background: linear-gradient(120deg, rgba(255, 190, 60, 0.38), rgba(255, 215, 120, 0.16) 35%, rgba(10, 16, 28, 0.88));
  border-color: rgba(255, 210, 120, 0.5);
  box-shadow: inset 4px 0 0 rgba(255, 205, 90, 0.9);
}

.game-card.status-in {
  background: linear-gradient(120deg, rgba(58, 188, 96, 0.42), rgba(120, 245, 160, 0.16) 35%, rgba(10, 16, 28, 0.88));
  border-color: rgba(103, 220, 140, 0.5);
  box-shadow: inset 4px 0 0 rgba(102, 222, 140, 0.9);
}

.game-card.status-post {
  background: linear-gradient(120deg, rgba(220, 70, 70, 0.44), rgba(255, 135, 135, 0.15) 35%, rgba(10, 16, 28, 0.88));
  border-color: rgba(235, 110, 110, 0.5);
  box-shadow: inset 4px 0 0 rgba(230, 104, 104, 0.9);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.card .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.card h2 {
  margin: 0.45rem 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.matchup {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 0.52rem;
  flex-wrap: wrap;
}

.team {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.team-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.matchup-at {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.93rem;
}

.card .time {
  margin-top: 0.58rem;
  color: var(--ok);
  font-weight: 600;
}

.odds-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(94, 161, 255, 0.32);
  background: rgba(20, 34, 60, 0.5);
  color: #d9e7ff;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.odds-pick {
  border-color: rgba(111, 219, 151, 0.4);
  background: rgba(24, 56, 38, 0.45);
  color: #daf8e4;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill-pre {
  background: rgba(255, 205, 84, 0.24);
  color: #ffe6a8;
}

.status-pill-in {
  background: rgba(73, 190, 110, 0.3);
  color: #d7ffe3;
}

.status-pill-post {
  background: rgba(220, 86, 86, 0.3);
  color: #ffdada;
}

.tv-row {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tv-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  align-self: center;
}

.streaming-row {
  margin-top: 0.52rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.streaming-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.streaming-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 219, 151, 0.34);
  background: rgba(28, 62, 42, 0.42);
  color: #ddffe9;
  padding: 0.22rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.legal-card {
  padding: 1rem 1rem 1.1rem;
  background: rgba(10, 15, 28, 0.72);
}

.legal-card h2 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0;
  color: #d5dff2;
  font-size: 0.88rem;
  line-height: 1.6;
}

.legal-meta {
  margin: 0 0 0.65rem !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

.legal-card a {
  color: #cde0ff;
}

.legal-card a:hover {
  color: #ffffff;
}

.game-drawer {
  margin-top: 0.7rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 0.55rem;
}

.game-drawer summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.drawer-grid {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.42rem;
}

.drawer-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-value {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 20, 0.36);
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  color: var(--text);
}

.empty {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.footer {
  margin-top: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.62);
  padding: 0.85rem 0.9rem;
}

.footer-brand {
  margin: 0;
  color: #dbe6ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-disclaimer {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-links {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
}

.footer-links a {
  color: #cfe0ff;
  text-decoration: none;
}

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

@media (max-width: 880px) {
  .page-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "content";
  }

  .sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
