/* ==========================================================================
   SASKY BOYS - single handwritten stylesheet
   Dark sportsbook aesthetic Â· Saskatchewan green + wheat gold
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:           #0a1310;
  --bg-grad-a:    #0b1612;
  --bg-grad-b:    #08100d;
  --surface:      #0f1c17;
  --surface-2:    #14261f;
  --surface-3:    #1a3228;
  --border:       #1e3a2f;
  --border-soft:  #16291f;

  /* Brand - Saskatchewan green + wheat gold */
  --green:        #0a6a3d;   /* field green */
  --green-bright: #22c065;   /* scoreboard glow */
  --green-deep:   #073d24;
  --gold:         #f6c43d;   /* wheat */
  --gold-soft:    #d9a928;
  --gold-glow:    rgba(246, 196, 61, 0.15);

  /* Text */
  --text:         #edf5ef;
  --text-dim:     #9eb5ab;
  --text-muted:   #6b8278;

  /* Accent / state */
  --danger:       #e85a5a;
  --danger-bg:    rgba(232, 90, 90, 0.08);
  --success:      #3bd77a;
  --success-bg:   rgba(59, 215, 122, 0.08);

  /* Shape */
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    14px;
  --shadow:       0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lift:  0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.45);
  --ring:         0 0 0 3px rgba(34, 192, 101, 0.22);

  /* Type */
  --font-sans:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ------- Reset-ish ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34,192,101,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(246,196,61,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--gold); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

img, svg { display: block; max-width: 100%; }

/* ------- Layout ------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-area {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 64px;
}

/* ========================================================================
   TOPBAR
   ======================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,19,16,0.92), rgba(10,19,16,0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(34,192,101,0.18), transparent 70%);
  border-radius: 50%;
  border: 1px solid var(--border);
}
.brand-text { color: var(--text); }
.brand-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: color .15s ease, background-color .15s ease;
}
.mainnav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.mainnav a[aria-current="page"] {
  color: var(--gold);
  background: var(--gold-glow);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.user-chip-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}
.badge-commish {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #2a1a00;
  border: 1px solid rgba(246,196,61,0.5);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 6px rgba(246,196,61,0.22);
}
.logout-btn {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .15s ease;
}
.logout-btn:hover {
  color: var(--text);
  border-color: var(--green);
  background: var(--surface-2);
}

/* ========================================================================
   CARDS / COMMON BLOCKS
   ======================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
}

/* Section heading used above feed/etc */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.section-head h1 {
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.3px;
  font-weight: 800;
}
.section-head .section-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.flash-success { background: var(--success-bg); border-color: rgba(59,215,122,0.3); color: var(--success); }
.flash-error   { background: var(--danger-bg);  border-color: rgba(232,90,90,0.3);  color: var(--danger); }

/* ========================================================================
   FORMS / BUTTONS
   ======================================================================== */
.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }

input[type=text], input[type=password], input[type=email], textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.98rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  background: var(--surface);
  box-shadow: var(--ring);
}
textarea { resize: vertical; min-height: 90px; font-family: inherit; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border-color: rgba(34,192,101,0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover { background: linear-gradient(135deg, #0c814b 0%, #0a5633 100%); color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #2a1a00;
  border-color: rgba(246,196,61,0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-gold:hover { filter: brightness(1.06); color: #2a1a00; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); border-color: var(--green); background: var(--surface-2); }

.btn-danger-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 0.82rem;
}
.btn-danger-ghost:hover { color: var(--danger); background: var(--danger-bg); }

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.btn-block { width: 100%; }

/* ========================================================================
   LOGIN PAGE
   ======================================================================== */
.login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--gold));
}
.login-logo {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.login-logo .brand-mark { width: 48px; height: 48px; }
.login-title {
  font-size: 1.4rem; font-weight: 800; margin: 4px 0 0;
  letter-spacing: -0.2px;
}
.login-sub {
  color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; text-align: center;
}
.login-footer-note {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========================================================================
   HOME DASHBOARD
   ======================================================================== */
.hero {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(34,192,101,0.14), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(246,196,61,0.10), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-bright), var(--gold), transparent);
  opacity: 0.6;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); margin: 0; max-width: 60ch; }

.grid-feat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.feat-card {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.feat-card:hover {
  color: var(--text);
  border-color: var(--green);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.feat-card .feat-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  filter: saturate(1.1);
}
.feat-card .feat-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feat-card .feat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================================================
   TRASH TALK FEED
   ======================================================================== */
.compose-card { margin-bottom: 24px; }
.compose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.char-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.char-count.near   { color: var(--gold); }
.char-count.over   { color: var(--danger); }

.feed { display: flex; flex-direction: column; gap: 14px; }

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 12px;
  transition: border-color .15s ease;
}
.post:hover { border-color: var(--border-soft); }

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}
.post-author {
  font-weight: 700;
  color: var(--text);
}
.post-time {
  color: var(--text-muted);
  font-size: 0.83rem;
}
.post-dot { color: var(--text-muted); }
.post-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 4px 0 10px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reactions {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .12s ease;
  font-variant-numeric: tabular-nums;
}
.react-btn:hover {
  border-color: var(--green);
  background: var(--surface-2);
  color: var(--text);
}
.react-btn.active {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold);
}
.react-btn .count { font-size: 0.78rem; font-weight: 700; }

.reply-toggle[open] summary { color: var(--text); }
.reply-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  user-select: none;
}
.reply-toggle summary::-webkit-details-marker { display: none; }
.reply-toggle summary:hover { color: var(--text); background: var(--surface-2); }
.reply-form { margin-top: 10px; }
.reply-form textarea { min-height: 64px; }
.reply-form-row {
  display: flex; gap: 8px; margin-top: 8px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}

.replies {
  margin-top: 12px;
  padding-top: 12px;
  padding-left: 14px;
  border-top: 1px dashed var(--border);
  border-left: 2px solid var(--green-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reply {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px 8px;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty h3 { color: var(--text); margin: 0 0 6px; font-weight: 700; }

/* ========================================================================
   PAGINATION
   ======================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.pagination .page-info {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}

/* ========================================================================
   COMING SOON (stub sections)
   ======================================================================== */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.coming-soon::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 160%;
  background: radial-gradient(ellipse at center top, rgba(34,192,101,0.08), transparent 60%);
  pointer-events: none;
}
.coming-soon .cs-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  position: relative;
}
.coming-soon h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  position: relative;
}
.coming-soon p {
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0;
  position: relative;
}
.coming-soon .stub-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(246,196,61,0.3);
  border-radius: 999px;
  text-transform: uppercase;
  position: relative;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-grad-b);
  padding: 20px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  text-align: center;
}
.footer-brand { color: var(--text-dim); font-weight: 600; }
.footer-dot { color: var(--border); }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 880px) {
  .topbar-inner { gap: 14px; }
  .mainnav a { padding: 8px 10px; font-size: 0.88rem; }
  .brand-text { display: none; }
  .user-name { display: none; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; min-height: auto; padding: 10px 0; }
  .brand { order: 1; }
  .user-chip { order: 2; margin-left: auto; }
  .mainnav {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--border-soft);
    padding-top: 8px;
    margin-top: 4px;
  }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 1.55rem; }
  .section-head h1 { font-size: 1.4rem; }
  .main-area { padding-top: 20px; padding-bottom: 48px; }
  .container { padding: 0 14px; }
  .login-card { padding: 28px 22px; }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus visible */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}
/* ============ Scores ============ */
.scores-wrap { max-width: 900px; margin: 0 auto; padding: 1rem; }
.scores-meta { color: var(--muted, #999); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.scores-error { background: rgba(255, 80, 80, 0.1); border: 1px solid #c33; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.scores-empty { padding: 2rem; text-align: center; color: var(--muted, #999); }
.scores-list { display: grid; gap: 0.75rem; }

.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.game-card.status-live { border-color: var(--green-bright); box-shadow: 0 0 0 1px var(--green-bright); }
.game-card.status-final { opacity: 0.92; }

.game-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.875rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.game-card.status-live .game-status { color: var(--green-bright); font-weight: 600; }
.game-card.status-live .game-status::before { content: '¡ñ'; margin-right: 0.3rem; animation: scores-pulse 1.5s infinite; }
@keyframes scores-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.game-expand {
    background: transparent; border: 1px solid var(--border);
    color: inherit; padding: 0.2rem 0.6rem; border-radius: 4px;
    cursor: pointer; font-size: 0.8125rem;
    font-family: inherit;
}
.game-expand:hover { border-color: var(--gold); color: var(--gold); }
.game-expand .caret { display: inline-block; margin-right: 0.2rem; }

.game-teams { padding: 0.5rem 0.875rem; }
.team-row {
    display: grid; grid-template-columns: 28px 1fr auto 3.5rem;
    align-items: center; gap: 0.625rem; padding: 0.375rem 0;
}
.team-row + .team-row { border-top: 1px solid var(--border); }
.team-row.winner .team-name, .team-row.winner .team-score { color: var(--gold); font-weight: 600; }
img.team-logo { width: 28px; height: 28px; object-fit: contain; }
span.team-logo { width: 28px; height: 28px; display: inline-block; }
.team-name { font-size: 0.9375rem; }
.team-record { color: var(--muted, #999); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.team-score { text-align: right; font-size: 1.125rem; font-variant-numeric: tabular-nums; font-weight: 600; }

.game-boxscore { padding: 0.875rem; border-top: 1px solid var(--border); background: rgba(0,0,0,0.15); }
.game-boxscore[hidden] { display: none; }
.box-loading, .box-error, .box-empty { padding: 1rem; text-align: center; color: var(--muted, #999); }

.three-stars { margin-bottom: 1rem; }
.three-stars h4 { margin: 0 0 0.375rem; color: var(--gold); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.three-stars ol { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; }

.team-stats { margin-bottom: 1rem; }
.team-stats table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.team-stats th { padding: 0.3rem; color: var(--gold); font-weight: 600; }
.team-stats td { padding: 0.25rem 0.3rem; text-align: center; font-variant-numeric: tabular-nums; }
.team-stats td.stat-label { color: var(--muted, #999); }

.box-team { margin-bottom: 1rem; }
.box-team h4 { margin: 0 0 0.375rem; font-size: 0.875rem; color: var(--green-bright); }
.player-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin-bottom: 0.5rem; }
.player-table th { text-align: left; padding: 0.25rem 0.4rem; color: var(--muted, #999); font-weight: 500; border-bottom: 1px solid var(--border); }
.player-table td { padding: 0.2rem 0.4rem; font-variant-numeric: tabular-nums; }
.player-table th:not(:first-child), .player-table td:not(:first-child) { text-align: right; }
.player-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

@media (max-width: 560px) {
    .team-row { grid-template-columns: 24px 1fr auto 3rem; font-size: 0.875rem; }
    .player-table { font-size: 0.75rem; }
    .player-table th, .player-table td { padding: 0.15rem 0.3rem; }
}