:root{
  --text:#06070A;
  --accent:#7D12DB;
  --bg:#ffffff;
  --muted:#6b7280;
  --line:rgba(6,7,10,.12);
  --soft:rgba(6,7,10,.05);
  --radius:8px;

  /* Nike-style hero accent */
  --yellow:#F6C445;

  /* spacing (8s with 4s available) */
  --s4:4px;
  --s8:8px;
  --s16:16px;
  --s24:24px;
  --s32:32px;
  --s48:48px;
  --s80:80px;

  /* typography */
  --font-ui:"Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head:"DM Serif Text", Georgia, "Times New Roman", serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font-ui);
  font-weight:300;
  color:var(--text);
  background:var(--bg);
}

.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 54px;
}

/* Full-width main wrapper (used on home) */
.main-full{ width:100%; }

/* =========================================================
   HEADER (LOGO | MENU | LOGIN)
========================================================= */

.site-header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:50;
  background:transparent;
}

/* Non-home pages can have a solid header */
body:not(.is-home) .site-header{
  position:sticky;
  background:#fff;
}

.site-header__inner{
  width: 100dvw;
  max-width:100%;
  display:grid;
  grid-template-columns: 10% 1fr 10%;
  align-items:center;

  padding-inline:var(--s48);
  padding-block:var(--s16); /* 80px total with 48 logo */
}

.site-header__left,
.site-header__right{
  display:flex;
  align-items:center;
}

.site-header__left{ justify-content:flex-start; }
.site-header__center{ display:flex; justify-content:center; }
.site-header__right{ justify-content:flex-end; gap:var(--s16); }

.site-header__logo{
  height:48px;
  width:auto;
  display:block;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--s48);
}

.site-nav__link{
  position:relative;
  color:var(--text);
  text-decoration:none;
  font-size:16px;
  font-weight:300;
  padding:var(--s8) 0;
}

.site-nav__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 180ms ease;
}

.site-nav__link:hover{ color:var(--text); }
.site-nav__link:hover::after{ transform:scaleX(1); }

.site-nav__link.is-active{ color:var(--accent); }
.site-nav__link.is-active::after{ transform:scaleX(1); }

.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:var(--s8);
  border:1px solid var(--accent);
  border-radius:var(--radius);
  color:var(--accent);
  background: #fff !important;
  text-decoration:none;
}

.auth-btn .material-symbols-outlined{ font-size:18px; }

.auth-btn:hover{
  background:var(--accent);
  color:#fff;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  padding:var(--s8);
  border:1px solid var(--accent);
  border-radius:var(--radius);
  background:transparent;
  color:var(--accent);
  cursor:pointer;
}

.nav-toggle .material-symbols-outlined{ font-size:18px; }
.nav-toggle__icon--close{ display:none; }

/* =========================================================
   MOBILE MENU OVERLAY
========================================================= */

@media (max-width: 1120px){
  .site-header__inner{ padding-inline:var(--s16); grid-template-columns: 1fr auto; }
  .site-header__center{ display:none; }
  .nav-toggle{ display:inline-flex; }

  body.nav-open .nav-toggle__icon--open{ display:none; }
  body.nav-open .nav-toggle__icon--close{ display:inline-block; }

  body.nav-open .site-nav{
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    background:#fff;
    padding-top:var(--s80);
    padding-inline:var(--s16);
    padding-bottom:var(--s16);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:space-between;
    gap:0;
    z-index:40;
  }

  /* top menu list */
  body.nav-open .site-nav{
    overflow:auto;
  }

  body.nav-open .site-nav__link{
    font-size:18px;
    padding:var(--s32) 0;
  }

  body.nav-open .site-nav__link::after{ display:none; }

  body.nav-open .site-nav__link{
    border-bottom:1px solid var(--line);
  }
  body.nav-open .site-nav__link:last-child{ border-bottom:0; }
}

/* =========================================================
   HOME HERO
========================================================= */

.is-home .main-full{ margin-top:0; }

.home-hero{
  position:relative;
  height:100vh;
  min-height:100vh;
  overflow:hidden;
  color:#fff;
  background:#111;
}

/* background image / blur layer */
.home-hero::before{
  content:"";
  position:absolute;
  inset:-20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(125,18,219,0.10), transparent 60%),
    url('../img/hero.png') center / cover no-repeat,
    #111;
  filter:blur(12px);
  transform:scale(1.05);
  z-index:0;
}

/* purple overlay */
.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(43,10,87,0.58), rgba(43,10,87,0.58)),
    radial-gradient(circle at 20% 10%, rgba(125,18,219,0.22), transparent 60%);
  z-index:1;
  pointer-events:none;
}

.home-hero__inner,
.home-hero__content{
  position:relative;
  z-index:2;
  height:100%;
}

.home-hero__content{
  width:100%;
  padding-top:80px;
}

.home-title,
.home-fixtures{
  width:min(1100px, calc(100% - 96px));
  margin:0 auto;
}

.home-title{
  padding-top:clamp(24px, 2vh, 32px);
}

.home-title__big,
.home-title__small{
  font-family:var(--font-ui);
  font-weight:800;
  color:var(--yellow) !important;
  -webkit-text-stroke:0 !important;
  text-stroke:0 !important;
  background:none !important;
}

.home-title__big{
  font-size:clamp(3.2rem, 8vw, 7.5rem);
  letter-spacing:-0.02em;
}

.home-title__small{
  margin-top:var(--s8);
  font-size:clamp(2rem, 4.5vw, 4rem);
}

.home-fixtures{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
}

.home-fixtures__head{
  display:flex;
  gap:var(--s16);
  align-items:baseline;
  flex-wrap:wrap;
  margin-bottom:var(--s16);
}

.home-fixtures__label{ font-weight:500; }

.fixture-grid{
  display:grid;
  grid-template-rows:repeat(2, auto);
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (3 * var(--s16))) / 4);
  gap:var(--s16);
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:var(--s8);
}

.fixture-grid::-webkit-scrollbar{
  height:8px;
}

.fixture-grid::-webkit-scrollbar-thumb{
  background:rgba(246,196,69,.45);
  border-radius:999px;
}

.fixture-card{
  border:1px solid var(--yellow);
  border-radius:var(--radius);
  padding:var(--s16);
  background:rgba(0,0,0,0.28);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.fixture-card__top{ font-weight:600; margin-bottom:var(--s8); }
.fixture-card__meta{ opacity:0.85; }

@media (max-width: 980px){
  .home-title,
  .home-fixtures{
    width:min(1100px, calc(100% - 32px));
  }

  .home-fixtures{
    position:static;
    transform:none;
    margin:24px auto 0;
  }

  .fixture-grid{
    grid-template-rows:repeat(2, auto);
    grid-auto-flow:column;
    grid-auto-columns:minmax(240px, calc((100% - var(--s16)) / 2));
    gap:var(--s16);
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  background:#0b0c10;
  color:#fff;
}

.site-footer a{ color:#fff; text-decoration:none; opacity:0.9; }
.site-footer a:hover{ opacity:1; color:var(--accent); }

.site-footer__inner{
  padding:var(--s48);
  display:grid;
  grid-template-columns: 200px 1fr 1fr 1fr 200px;
  gap:var(--s48);
  align-items:start;
}



.site-footer__logo{ height:48px; width:auto; display:block; }

.site-footer__title{ font-weight:600; margin-bottom:var(--s16); }

.site-footer__col a{ display:block; margin-bottom:var(--s8); }

.site-footer__social{
  display:inline-flex;
  align-items:center;
  gap:var(--s8);
  font-weight:600;
}

.site-footer__bottom{
  border-top:1px solid rgba(255,255,255,0.12);
  padding:var(--s24) var(--s48);
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:var(--s24);
  align-items:center;
  font-size:14px;
}

.site-footer__legal{ display:flex; gap:var(--s24); flex-wrap:wrap; }
.site-footer__credit{ text-align:center; opacity:0.9; }
.site-footer__made{ text-align:right; opacity:0.9; }

@media (max-width: 1120px){
  .site-footer__inner{ grid-template-columns: 1fr; padding:var(--s32) var(--s16); gap:var(--s32); }
  .site-footer__bottom{ grid-template-columns:1fr; padding:var(--s24) var(--s16); text-align:left; }
  .site-footer__credit, .site-footer__made{ text-align:left; }
}

/* Google Icons baseline */
.material-symbols-outlined{
  font-size:1.15em;
  line-height:1;
  vertical-align:-0.15em;
  font-weight:400;
  user-select:none;
}

/* Cards + headings */
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  background:#fff;
}

.page-title{
  margin:0 0 12px;
  font-size:1.7rem;
  letter-spacing:-0.02em;
  display:flex;
  align-items:center;
  gap:10px;
}

.muted{ color:var(--muted); }

/* Tabs */
.tabs{
  display:flex;
  gap:10px;
  margin:0 0 14px;
  flex-wrap:wrap;
}
.tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  background:var(--soft);
}
.tab:hover{ background:rgba(6,7,10,.08); }
.tab.is-active{
  color:#fff;
  background:var(--accent);
}

/* Tables */
.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:720px;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  white-space:nowrap;
}
.table thead th{
  background:rgba(6,7,10,.03);
  font-weight:600;
}
.table tbody tr:hover{
  background:rgba(125,18,219,.04);
}
.table .num{ text-align:right; }

/* Home tiles */
.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:16px;
}
.tile{
  display:flex;
  gap:12px;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  background:#fff;
}
.tile:hover{
  border-color:rgba(125,18,219,.45);
  background:rgba(125,18,219,.03);
}
.tile-title{ font-weight:700; }
.tile-sub{ color:var(--muted); font-size:.95rem; margin-top:2px; }

.note{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:12px;
  background:rgba(125,18,219,.06);
  border:1px solid rgba(125,18,219,.20);
}

.bracket-skeleton,
.calendar-skeleton{
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px dashed rgba(6,7,10,.25);
  color:var(--muted);
  background:linear-gradient(90deg, rgba(6,7,10,.04), rgba(6,7,10,.01), rgba(6,7,10,.04));
}

/* Buttons/links */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
}
.btn:hover{ border-color:rgba(125,18,219,.45); }

.btn-sm{
  padding:8px 10px;
  border-radius:var(--radius);
  font-size:14px;
}

.btn .material-symbols-outlined{
  font-size:18px;
}

.link{ color:var(--accent); text-decoration:none; }
.link:hover{ text-decoration:underline; }

/* Mobile */
@media (max-width: 720px){
  .container{ width:calc(100% - 24px); padding:18px 0 44px; }
  .grid{ grid-template-columns:1fr; }
  .table{ min-width:640px; }

  /* Public stats helpers */
  .hide-mobile{ display:none !important; }
  .hide-mobile-inline{ display:none !important; }
  .show-mobile-inline{ display:inline !important; }
}

/* Mobile fixtures/results list — base (desktop default: show table, hide cards) */
.fx-desktop{ display:block; }
.fx-mobile{ display:none; margin-top:var(--s16); }
.fx-day{ margin-bottom:var(--s24); }
.fx-date{ font-weight:700; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:var(--s8); padding-bottom:6px; border-bottom:2px solid var(--line); }
.fx-item{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:var(--s16);
  background:#fff;
  margin-bottom:var(--s8);
}
.fx-row{ display:flex; align-items:center; justify-content:space-between; gap:var(--s8); padding:4px 0; }
.fx-team{ text-decoration:none; font-weight:500; flex:1; }
.fx-vs-line{ font-size:.78rem; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; padding:2px 0; }
.fx-score{ font-variant-numeric:tabular-nums; font-weight:700; font-size:1.1rem; flex-shrink:0; min-width:20px; text-align:right; }
.fx-link{ display:inline-block; margin-top:var(--s8); font-size:.85rem; color:var(--accent); text-decoration:none; }
.fx-link:hover{ text-decoration:underline; }

/* =========================================================
   RESPONSIVE TABLE VARIANTS
========================================================= */

@media (max-width: 720px){

  /* League table */
  .table-wrap--league{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .table--league{
    width:100%;
    min-width:0 !important;
    table-layout:auto !important;
  }

  .table--league th,
  .table--league td{
    white-space:nowrap;
  }

  /* Hide less important columns on mobile */
  .table--league th:nth-child(5),
  .table--league td:nth-child(5),
  .table--league th:nth-child(7),
  .table--league td:nth-child(7),
  .table--league th:nth-child(8),
  .table--league td:nth-child(8){
    display:none;
  }

  /* Tight numeric columns */
  .table--league th:nth-child(1),
  .table--league td:nth-child(1),
  .table--league th:nth-child(3),
  .table--league td:nth-child(3),
  .table--league th:nth-child(4),
  .table--league td:nth-child(4),
  .table--league th:nth-child(6),
  .table--league td:nth-child(6),
  .table--league th:nth-child(9),
  .table--league td:nth-child(9),
  .table--league th:nth-child(10),
  .table--league td:nth-child(10){
    width:1%;
  }

  /* Let team name take the rest */
  .table--league th:nth-child(2),
  .table--league td:nth-child(2){
    width:auto;
    white-space:normal;
    min-width:140px;
  }

  /* Player stats */
  .table-wrap--player-stats{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .table--player-stats{
    width:100%;
    min-width:0 !important;
    table-layout:auto !important;
  }

  .table--player-stats th,
  .table--player-stats td{
    white-space:nowrap;
  }

  /* Hide less important columns on mobile */
  .table--player-stats th:nth-child(3),
  .table--player-stats td:nth-child(3),
  .table--player-stats th:nth-child(6),
  .table--player-stats td:nth-child(6),
  .table--player-stats th:nth-child(8),
  .table--player-stats td:nth-child(8){
    display:none;
  }

  /* Tight numeric columns */
  .table--player-stats th:nth-child(1),
  .table--player-stats td:nth-child(1),
  .table--player-stats th:nth-child(4),
  .table--player-stats td:nth-child(4),
  .table--player-stats th:nth-child(5),
  .table--player-stats td:nth-child(5),
  .table--player-stats th:nth-child(7),
  .table--player-stats td:nth-child(7),
  .table--player-stats th:nth-child(9),
  .table--player-stats td:nth-child(9){
    width:1%;
  }

  /* Let player name take the rest */
  .table--player-stats th:nth-child(2),
  .table--player-stats td:nth-child(2){
    width:auto;
    white-space:normal;
    min-width:140px;
  }

  /* Fixtures/results */
  .fx-desktop{ display:none; }
  .fx-mobile{ display:block; }
}

/* Public stats helpers (desktop defaults) */
.show-mobile-inline{ display:none; }
.hide-mobile-inline{ display:inline; }

.material-symbols-outlined{
  font-size: 1.2em;          /* scales with text */
  line-height: 1;
  vertical-align: -0.15em;   /* optical alignment */
  font-weight: 400;
  user-select: none;
}

/* Accessibility helper */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
}

/* --- Forms / alerts (Phase 2) --- */
.form{ display:flex; flex-direction:column; gap:12px; }
.form-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field-label{ font-weight:600; }
.input{ padding:11px 12px; border-radius:12px; border:1px solid var(--line); font:inherit; width:100%; box-sizing:border-box; }
.input:focus{ outline:none; border-color:rgba(125,18,219,.45); box-shadow:0 0 0 3px rgba(125,18,219,.12); }
.btn-primary{ background:var(--accent); border-color:rgba(125,18,219,.55); color:#fff; }
.btn-primary:hover{ filter:brightness(0.97); }
.alert{ display:flex; align-items:flex-start; gap:10px; padding:12px; border-radius:12px; margin:0 0 14px; }
.alert-error{ background:rgba(220,38,38,.08); border:1px solid rgba(220,38,38,.22); }
.alert-ok{ background:rgba(16,185,129,.10); border:1px solid rgba(16,185,129,.22); }
.auth-card{ max-width:520px; margin:0 auto; }

/* --- Admin layout (Phase 2) --- */
.admin-header{ position:sticky; top:0; z-index:30; background:#fff; border-bottom:1px solid var(--line); }
.admin-header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; }
.admin-user{ display:flex; align-items:center; gap:12px; }
.admin-user-name{ display:inline-flex; align-items:center; gap:8px; color:var(--muted); }
.admin-shell{ display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100dvh - 58px); }
.admin-nav{ border-right:1px solid var(--line); background:rgba(6,7,10,.02); }
.admin-nav-inner{ display:flex; flex-direction:column; padding:14px; gap:6px; }
.admin-nav-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; text-decoration:none; color:var(--text); }
.admin-nav-item:hover{ background:rgba(125,18,219,.06); }
.admin-nav-item.is-active{ background:rgba(125,18,219,.10); border:1px solid rgba(125,18,219,.18); }
.admin-nav-sep{ height:1px; background:var(--line); margin:10px 0; }
.admin-main{ padding:18px; }
.admin-kpis{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0 2px; }
.admin-kpi{ border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.admin-kpi-label{ color:var(--muted); font-size:.92rem; }
.admin-kpi-value{ font-weight:800; font-size:1.35rem; margin-top:4px; }
.admin-subtitle{ margin:18px 0 10px; font-size:1.1rem; }
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{ display:inline-flex; padding:7px 10px; border-radius:999px; background:rgba(125,18,219,.07); border:1px solid rgba(125,18,219,.18); font-weight:600; font-size:.95rem; }
.admin-fold{ margin:14px 0; border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.admin-fold summary{ cursor:pointer; display:flex; align-items:center; gap:10px; font-weight:700; }

/* --- Small UI helpers --- */
.badge{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; border:1px solid var(--line); background:rgba(6,7,10,.03); font-weight:700; font-size:.85rem; }
.badge-ok{ border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.10); }

details.inline-details{ position:relative; }
details.inline-details > summary{ list-style:none; }
details.inline-details > summary::-webkit-details-marker{ display:none; }
.inline-details-body{ margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; }

@media (max-width: 980px){
  .admin-shell{ grid-template-columns:1fr; }
  .admin-nav{ border-right:none; border-bottom:1px solid var(--line); }
  .admin-nav-inner{ flex-direction:row; flex-wrap:wrap; }
  .admin-main{ padding:14px; }
  .form-row{ grid-template-columns:1fr; }
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  letter-spacing:-0.01em;
}
.brand-text{ font-size:1rem; }

/* Nav */
/* Keep desktop menu on one line */
.site-nav{
  flex-wrap: nowrap;
}

.site-nav__link{
  white-space: nowrap;
}
.nav-inner{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 0;
}
.site-nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
}
.site-nav a:hover{ background:var(--soft); }
.site-nav a.is-active{
  color:var(--accent);
  background:rgba(125,18,219,.08);
  border:1px solid rgba(125,18,219,.18);
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
@media (max-width: 1120px){
  .nav-toggle{ display:inline-flex; align-items:center; gap:8px; }
  .site-nav{ display:none; }
  .site-nav.is-open{ display:block; }

  /* hide auth button on the top bar */
  .auth-btn{ display:none; }

  /* show auth button inside the open overlay */
  body.nav-open .site-nav__auth{ display:block; }
}

.page-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px;
}

.page-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:.95rem;
}

.page-kicker .dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(125,18,219,.55);
}

.bracket{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:14px;
}

.bracket-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.bracket-title{
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
}

.bracket-skeleton{
  height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px dashed rgba(6,7,10,.25);
  color:var(--muted);
  background:linear-gradient(90deg, rgba(6,7,10,.04), rgba(6,7,10,.01), rgba(6,7,10,.04));
}

.site-nav a.is-active{
  position:relative;
}
.site-nav a.is-active::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:4px;
  height:2px;
  border-radius:999px;
  background:var(--accent);
  opacity:.55;
}

/* --- Admin: user role assignment --- */
.admin-list{ display:flex; flex-direction:column; gap:14px; margin-top:12px; }
.admin-user-card{ border:1px solid var(--line); border-radius:16px; padding:14px; background:#fff; box-shadow:0 1px 0 rgba(6,7,10,.02); }
.admin-user-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.admin-user-name{ font-weight:700; color:var(--text); }
.admin-user-meta{ text-align:right; display:flex; flex-direction:column; gap:2px; }
.admin-roles-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:999px; background:rgba(6,7,10,.01); font-size:14px; cursor:pointer; user-select:none; }
.chip input{ width:16px; height:16px; }
.chip:hover{ background:rgba(125,18,219,.06); border-color:rgba(125,18,219,.25); }
.chip-disabled{ opacity:.55; cursor:not-allowed; }
.chip-disabled:hover{ background:rgba(6,7,10,.01); border-color:var(--line); }
@media (max-width: 720px){
  .admin-user-top{ flex-direction:column; }
  .admin-user-meta{ text-align:left; }
}


/* =========================================================
   HOTFIX: HEADER + NAV + FOOTER LAYOUT (live deploy)
   - removes UL bullets
   - forces header grid + centered menu
   - fixes footer into proper columns
========================================================= */

.site-nav ul,
.site-footer ul{
  list-style:none;
  margin:0;
  padding:0;
}

.site-nav a,
.site-footer a{
  text-decoration:none;
}

/* ---------- HEADER ---------- */
.site-header{
  position:absolute; /* sits over hero */
  top:0; left:0; right:0;
  z-index:50;
  background:transparent; /* you wanted no header bg */
  border:0;
}

.site-header__inner{
  width:100%;
  max-width:100%;
  padding-inline:48px;
  padding-block:16px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  column-gap:24px;
}

/* logo */
.site-header__left{
  display:flex;
  align-items:center;
}
.site-header__left img{
  height:48px;
  width:auto;
  display:block;
}

/* centered nav */
.site-header__nav,
.site-header__center{
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
}
.site-nav,
.site-nav__panel{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.site-nav ul,
.site-nav__list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:48px;
  flex-wrap:nowrap;
  min-width:0;
}
.site-nav li{ margin:0; padding:0; }
.site-nav a{
  color:var(--text, #111);
  font-weight:300;
  font-size:16px;
  position:relative;
  white-space:nowrap; /* stop stacking/word-break */
}

/* hover underline (only) */
.site-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:-8px;
  width:0%;
  height:2px;
  background:var(--accent, #6d28ff);
  transition:width .2s ease;
}
.site-nav a:hover{
  color:var(--accent, #6d28ff);
}
.site-nav a:hover::after{
  width:100%;
}

/* login icon button */
.site-header__right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}
.site-header__right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  min-width:40px;
  flex-shrink:0;
}

.site-nav__auth{
  display:none;
}
.site-header__right .icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:1px solid var(--accent, #6d28ff);
  border-radius:8px;
  background:transparent;
  color:var(--accent, #6d28ff);
}
.site-header__right .icon-btn:hover{
  background:var(--accent, #6d28ff);
  color:#fff;
}
.site-header__right .material-symbols-outlined{
  font-size:18px;
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 1120px){
  .site-header__inner{
    padding-inline:16px;
    grid-template-columns:1fr auto;
  }
  .site-header__nav{ display:none; } /* hide desktop nav */
}

/* ---------- FOOTER ---------- */
.site-footer{
  width:100%;
  background:#0b0d10;
  color:#fff;
}

.site-footer a{ color:#fff; opacity:.9; }
.site-footer a:hover{ opacity:1; }

.site-footer__inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:48px;
}

.site-footer__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:48px;
  align-items:start;
}

/* stop it looking like a giant vertical list */
.site-footer__grid li{ padding:6px 0; }

.site-footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:32px;
  padding-top:24px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

@media (max-width: 860px){
  .site-footer__inner{ padding:32px 16px; }
  .site-footer__grid{ grid-template-columns: 1fr; gap:24px; }
}

/* === Header nav link colour fix === */
.site-header .site-nav__link,
.site-header .site-nav__link:visited{
  color:#ffffff;
}

.site-header .site-nav__link:hover,
.site-header .site-nav__link:focus{
  color:#ffd700; /* league gold */
}

.site-header .site-nav__link{
  font-weight:500;
  letter-spacing:.2px;
}


/* ===== Header: Home vs Inner Pages ===== */
body.is-home .site-header{
  background:transparent;
}

body.is-inner .site-header{
  background:var(--accent, #6d28ff); /* league purple */
}

/* ===== FINAL OVERRIDE: page-specific header background ===== */
body.is-home .site-header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:transparent !important;
}

body.is-inner .site-header{
  position:sticky;
  top:0;
  background:var(--accent, #6d28ff) !important;
}

body.is-inner .site-header,
body.is-inner .site-header__inner{
  border:0;
}

body.is-inner .site-header .site-nav__link,
body.is-inner .site-header .site-nav__link:visited{
  color:#ffffff !important;
}

body.is-inner .site-header .site-nav__link:hover,
body.is-inner .site-header .site-nav__link:focus{
  color:#f6c445 !important;
}

/* === Header nav hover: remove button background === */
.site-header .site-nav__link:hover,
.site-header .site-nav__link:focus{
  background:transparent !important;
  box-shadow:none !important;
}

/* ===== MOBILE NAV FIX ===== */
@media (max-width: 1120px){

  /* keep the nav wrapper hidden until menu opens */
  .site-header__center{
    display:none;
  }

  /* when menu is opened by JS, reveal the wrapper */
  body.nav-open .site-header__center{
    display:block;
    position:fixed;
    inset:0;
    z-index:90;
  }

  /* make the opened nav fill the screen */
  body.nav-open .site-nav{
    display:block !important;
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    background:var(--accent, #6d28ff);
    padding:88px 24px 24px;
    overflow:auto;
    z-index:91;
  }

  body.nav-open .site-nav__panel{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    min-height:100%;
  }

  body.nav-open .site-nav__list{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    width:100%;
  }

  body.nav-open .site-nav__list li{
    width:100%;
  }

  body.nav-open .site-nav__link{
    display:block;
    width:100%;
    padding:18px 0;
    color:#fff !important;
    font-size:24px;
    font-weight:400;
    border-bottom:1px solid rgba(255,255,255,.16);
    background:transparent !important;
  }

  body.nav-open .site-nav__link::after{
    display:none !important;
  }

  body.nav-open .site-nav__auth{
    display:block;
    margin-top:24px;
  }

  body.nav-open .site-nav__auth .auth-btn{
    display:inline-flex !important;
  }
}

/* ===== MOBILE MENU TOP BAR FIX ===== */
@media (max-width: 1120px){

  body.nav-open .site-header{
    z-index:120 !important;
  }

  body.nav-open .site-header__inner{
    position:relative;
    z-index:121;
    grid-template-columns:1fr auto;
    align-items:center;
  }

  body.nav-open .site-header__left,
  body.nav-open .site-header__right{
    position:relative;
    z-index:122;
  }

  body.nav-open .nav-toggle{
    display:inline-flex !important;
    position:relative;
    z-index:123;
    color:#ffffff !important;
    border-color:rgba(255,255,255,.35) !important;
    background:transparent !important;
  }

  body.nav-open .nav-toggle .material-symbols-outlined{
    color:#ffffff !important;
  }

  body.nav-open .site-header__left img,
  body.nav-open .site-header__logo{
    position:relative;
    z-index:123;
    display:block !important;
  }
}


.home-hero__inner,
.home-hero__content{
  position:relative;
  z-index:2;
  min-height: 100% !important;
}

/* ===== FORCE SOLID HERO TITLE TEXT ===== */
.home-title__big,
.home-title__small{
  color:var(--yellow) !important;
  -webkit-text-stroke:0 !important;
  text-stroke:0 !important;
  paint-order:normal;
  background:none !important;
}


/* ===== FINAL FOOTER OVERRIDE ===== */
.site-footer{
  background:#03070c;
  color:#fff;
}

.site-footer a{
  color:rgba(255,255,255,.92);
  text-decoration:none;
}

.site-footer a:hover,
.site-footer a:focus{
  color:#fff;
  opacity:1;
}

.site-footer__inner{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding:18px 0 16px;
  display:block;
  grid-template-columns:none;
  gap:0;
}

.site-footer__title,
.site-footer__col,
.site-footer__grid,
.site-footer__bottom,
.site-footer__legal,
.site-footer__made{
  all:unset;
}

.site-footer__top{
  display:grid;
  grid-template-columns:120px 1fr 1fr 1fr auto;
  gap:48px;
  align-items:start;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.site-footer__brand{
  display:flex;
  align-items:flex-start;
}

.site-footer__logoLink{
  display:inline-flex;
}

.site-footer__logo{
  height:56px;
  width:auto;
  display:block;
}

.site-footer__menuTitle{
  margin:0 0 14px;
  font-size:1rem;
  font-weight:700;
  color:#fff;
  line-height:1.2;
}

.site-footer__menu a{
  display:block !important;
  margin:0 0 12px;
  line-height:1.35;
}

/* .site-footer__menu--single removed — no longer used */

.site-footer__social{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
}

.site-footer__facebook{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:1rem;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
}

.site-footer__facebook .material-symbols-outlined{
  font-size:24px;
}

.site-footer__sub{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:center;
  padding:18px 0 14px;
}

.site-footer__policies{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
}

.site-footer__copy{
  text-align:right;
  white-space:nowrap;
  color:rgba(255,255,255,.9);
}

.site-footer__credit{
  text-align:center;
  color:rgba(255,255,255,.9);
  padding-top:2px;
}

@media (max-width: 1200px){
  .site-footer__inner{
    width:min(1200px, calc(100% - 48px));
  }

  .site-footer__top{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:28px;
  }

  .site-footer__social{
    justify-content:flex-start;
  }
}

@media (max-width: 720px){
  .site-footer__inner{
    width:calc(100% - 32px);
    padding:24px 0 18px;
  }

  .site-footer__top{
    grid-template-columns:1fr;
    gap:20px;
  }

  .site-footer__social{
    justify-content:flex-start;
  }

  .site-footer__sub{
    grid-template-columns:1fr;
    align-items:flex-start;
  }

  .site-footer__copy,
  .site-footer__credit{
    text-align:left;
    white-space:normal;
  }
}







.ko-team-page .ko-mobile-list {
  display: none;
}

@media (max-width: 767px) {
  .ko-team-page .table-wrap {
    display: none;
  }

  .ko-team-page .ko-mobile-list {
    display: block;
    margin-top: 12px;
  }

  .ko-team-page .ko-mobile-card {
    border: 1px solid #d9d9df;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    margin-bottom: 12px;
  }

  .ko-team-page .ko-mobile-card__match {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .ko-team-page .ko-mobile-card__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }

  .ko-team-page .ko-mobile-card__team {
    font-weight: 600;
    line-height: 1.3;
  }

  .ko-team-page .ko-mobile-card__score {
    font-weight: 700;
    min-width: 20px;
    text-align: right;
  }

  .ko-team-page .ko-mobile-card__meta {
    margin-top: 10px;
  }

  .ko-team-page .ko-mobile-card__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
  }

  .ko-team-page .ko-mobile-card__value {
    display: block;
    line-height: 1.35;
  }
}



/* KO Matches Layout */
.ko-table {
  display: block;
}

.ko-cards {
  display: none;
}

/* Mobile switch */
@media (max-width: 768px) {
  .ko-table {
    display: none;
  }

  .ko-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ko-card {
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
  }

  .ko-card-head {
    font-weight: 600;
    margin-bottom: 10px;
  }

  .ko-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ko-player strong {
    display: block;
  }

  .ko-player .muted {
    font-size: 0.9rem;
  }
}

/* === KO Admin forms === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: end;
}
.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { grid-column: 1; }
}
.score-input {
  width: 62px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  text-align: center;
  background: #fff;
}
.score-input:focus {
  outline: none;
  border-color: rgba(125,18,219,.45);
  box-shadow: 0 0 0 3px rgba(125,18,219,.10);
}
/* Stop admin match tables forcing horizontal scroll */
.admin-main .table-wrap .table { min-width: 0; }

/* === KO mobile cards — score on name line === */
@media (max-width: 768px) {
  .ko-player { display: flex; flex-direction: column; gap: 0; }
  .ko-player__name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .ko-player__name { font-weight: 600; flex: 1; }
  .ko-player__score { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 20px; text-align: right; }
  .ko-player__team { font-size: .88rem; color: var(--muted); margin-top: 1px; }
}

/* === Entry cards — public KO player list === */
.entry-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-width: 180px; }
.entry-card--active { background: rgba(26,122,26,.07); border-color: #1a7a1a; color: #1a7a1a; }
.entry-card--active .entry-card__team { color: #1a7a1a; opacity: .75; }
.entry-card--eliminated { opacity: .5; }
.entry-card__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.entry-card--eliminated .entry-card__name,
.entry-card--eliminated .entry-card__team { text-decoration: line-through; }
.entry-card__team { font-size: .86rem; color: var(--muted); margin-top: 1px; }

/* Button rows — float right */
[style*="align-self:end"] {
  display: flex !important;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Form grid layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: end;
}

.label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Admin tables — no forced scroll */
.admin-main .table-wrap .table {
  min-width: 0;
}


/* =========================================================
   DOWNLOADS PAGE
========================================================= */

.dl-table { display: block; }
.dl-mobile { display: none; }

.dl-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dl-card:last-child { border-bottom: 0; }
.dl-card__title { font-weight: 600; margin-bottom: 2px; }
.dl-card__desc { font-size: .88rem; margin-top: 2px; }
.dl-card__meta { font-size: .82rem; margin-top: 4px; }
.dl-card__btn { flex-shrink: 0; }

@media (max-width: 720px) {
  .dl-table { display: none; }
  .dl-mobile { display: block; margin-top: 12px; }
  .dl-card { flex-direction: column; gap: 10px; }
  .dl-card__btn { width: 100%; justify-content: center; }
}

/* =========================================================
   LEAGERA HEADER PASS 1 — wordmark, login button, nav position
   (new classes only — base .site-header/.site-nav rules untouched)
========================================================= */

/* Wordmark: "Gorton" white / "Pool" yellow, replaces the logo image */
.site-header__wordmark{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  font-family:var(--font-ui);
  font-size:26px;
  font-weight:600;
  letter-spacing:.3px;
  white-space:nowrap;
  line-height:1;
}
.site-header__wordmark-gorton{ color:#ffffff; }
.site-header__wordmark-pool{ color:var(--yellow); }

/* Nav: float right, closer to the Login button, slightly lighter weight */
.site-header__center{
  justify-content:flex-end !important;
}
.site-header .site-nav__link{
  font-weight:400 !important;
}

/* Login button: yellow pill, purple on hover with yellow outline */
.auth-btn--login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  padding:10px 22px;
  border-radius:6px;
  background:var(--yellow) !important;
  border:1px solid var(--yellow) !important;
  color:#1a0f3d !important;
  font-family:var(--font-ui);
  font-weight:600;
  font-size:14px;
  letter-spacing:.3px;
  text-decoration:none;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.auth-btn--login:hover,
.auth-btn--login:focus{
  background:var(--accent) !important;
  color:#ffffff !important;
  border-color:var(--yellow) !important;
}

@media (max-width: 1120px){
  /* keep the wordmark visible in the mobile top bar */
  .site-header__wordmark{ font-size:22px; }

  /* login button inside the opened mobile menu */
  body.nav-open .site-nav__auth .auth-btn--login{
    display:inline-flex !important;
    width:auto;
  }
}
