:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --shadow2: 0 16px 34px rgba(0,0,0,.10);
  --radius: 14px;
  --nav:#0b0f16;
  --nav2:#1f2937;
  --soft:#f8fafc;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit}
p{line-height:1.65;margin:0}
ul{margin:0}
code{background:var(--soft);border:1px solid var(--border);padding:.08rem .35rem;border-radius:8px}

/* Nav */
.nav{
  position:sticky; top:0; z-index:30;
  background:linear-gradient(135deg, var(--nav), var(--nav2));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  gap:12px;
}
.brand{font-weight:900; letter-spacing:.2px; white-space:nowrap}
.brand a{color:#fff;text-decoration:none}
.nav-links{display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px}
.nav-links a{
  color:#fff; text-decoration:none; opacity:.92;
  padding:7px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  font-size: 14px;
}
.nav-links a:hover{opacity:1; border-color:rgba(255,255,255,.18)}
@media (max-width: 420px){
  .nav-links a{font-size:13px; padding:7px 9px}
}

/* Layout */
.container{max-width:1100px; margin:0 auto; padding:18px 14px 30px}

/* Hero */
.hero{
  background: linear-gradient(135deg, #0b0f16, #1f2937);
  color:#fff;
  border-radius: 18px;
  padding:22px 16px;
  box-shadow: var(--shadow2);
}
.hero h1{margin:0 0 6px 0; font-size: clamp(26px, 4.2vw, 40px); line-height:1.15}
.hero .sub{margin-top:6px; color:rgba(255,255,255,.86); line-height:1.35; font-size: 14px}

.hero-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:24px;
}
.hero-left{display:flex; flex-direction:column}

.hero-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.hero-right img{
  display:block;
  width:auto;
}
.hero-right img.sporting{height:134px}
.hero-right img.ecnl{height:126px}

@media (max-width: 720px){
  .hero-grid{
    grid-template-columns: 1fr;   /* stack */
    gap: 14px;
  }

  /* Logos under the buttons, aligned right, but not hugging edges */
  .hero-right{
    justify-content: flex-end;
    padding-right: 6px;
    margin-top: -6px;
  }

  .hero-right img.sporting{height:56px}
  .hero-right img.ecnl{height:56px}
}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius: 12px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff; font-weight:800;
}
.btn:hover{background: rgba(255,255,255,.14)}
.btn.secondary{background: transparent}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.chip{
  display:inline-flex; align-items:center;
  padding:8px 10px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  font-size: 13px;
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding:16px;
}
.stack{display:grid; gap:14px; margin-top:14px}
.muted{color:var(--muted)}
.small{font-size: 14px}
.h2{font-size:18px; margin:0 0 10px 0; font-weight:900}
hr.sep{border:none;border-top:1px solid var(--border); margin:14px 0}

/* Clubs grid */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 720px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px}
}
@media (min-width: 1020px){
  .grid{grid-template-columns: repeat(4, minmax(0,1fr));}
}

/* Tiles */
.tile{
  display:flex; flex-direction:column;
  border:1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  background:#fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover{transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.10)}
.tile .img{
  height:160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
.tile .body{padding:12px}
.tile .title{font-weight:950; margin:0 0 4px 0}
.tile .meta{margin:0; color:var(--muted); font-size: 13px; line-height:1.35}
.badges{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}
.badge{
  padding:6px 8px; border-radius:999px;
  border:1px solid var(--border);
  background:var(--soft);
  font-size:12px; color:#374151;
}

/* Hard reset tile image rendering */
.tile .img{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background-blend-mode: normal !important;
}
.tile .img::before,
.tile .img::after{
  content: none !important;
}

/* Season blocks */
.season{
  border:1px solid var(--border);
  border-radius: 18px;
  background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
  display:grid;
  gap:12px;
}
.season-head{display:grid; gap:6px}
.season-title{
  font-weight:950;
  font-size: 18px;
  line-height:1.25;
}
.season-sub{color: var(--muted); font-size: 13px}
.season-stats{font-weight:950; font-size: 13px; color:#111827}

.kv{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 520px){
  .kv{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (min-width: 920px){
  .kv{grid-template-columns: repeat(4, minmax(0,1fr));}
}
.kv .box{
  border:1px solid var(--border);
  border-radius: 16px;
  padding:12px;
  background:var(--soft);
}
.kv .k{font-size:12px; color:var(--muted); margin-bottom:4px}
.kv .v{font-weight:900}

.list{margin:10px 0 0 0; padding-left:18px}
.list li{margin:6px 0; line-height:1.45}

/* Tighten season content spacing */
.season .h2{margin-bottom:2px}
.season .list{margin-top:2px}
.season .list li{margin:3px 0}

@media (max-width: 520px){
  .season{padding:12px}
  .season .h2{margin-bottom:1px}
  .season .list li{margin:2px 0}
}

/* Highlight embeds */
.embed{
  border:1px dashed #cbd5e1;
  border-radius: 16px;
  padding:12px 14px;
  background:var(--soft);
  color:#64748b;
}
.embed-title{font-weight:950; color:#111827}
.embed-note{font-size:13px; margin-top:4px; color:#64748b}
.embed a{color:#0f172a; font-weight:900}

/* Footer + breadcrumb */
.footer{
  margin:18px 0 8px 0;
  text-align:center;
  color:var(--muted);
  font-size: 13px;
}
.breadcrumb{
  font-size: 13px;
  color: var(--muted);
  margin-bottom:10px;
}
.breadcrumb a{color:inherit; text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
/* Mobile polish: nav + hero */
@media (max-width: 520px){

  /* NAV: stack brand and links, center, tighten pills */
  .nav-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand{
    font-weight: 900;
    font-size: 16px;
    line-height: 1.1;
    text-align: center;
  }

  .nav-links{
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .nav-links a{
    font-size: 12px;
    padding: 6px 9px;
    border-radius: 999px;
  }

  /* HERO: tighten spacing and improve hierarchy */
  .hero{
    padding: 16px 14px;
    border-radius: 18px;
  }

  .hero h1{
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero .sub{
    font-size: 13px;
    line-height: 1.35;
    margin-top: 6px;
  }

  /* Buttons: make them feel intentional on mobile */
  .actions{
    margin-top: 12px;
    gap: 8px;
  }

  .btn{
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  /* Chips: reduce “crowded bubble” look */
  .chips{
    margin-top: 10px;
    gap: 6px;
  }

  .chip{
    padding: 7px 9px;
    font-size: 12px;
  }

}
/* Mobile hero text tightening */
@media (max-width: 520px){

  .hero h1{
    font-size: 26px;          /* slightly smaller to reduce wrapping */
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .hero .sub{
    font-size: 13px;
    line-height: 1.25;
    margin-top: 4px;
    white-space: nowrap;      /* prevent awkward line breaks */
    overflow: hidden;
    text-overflow: ellipsis;  /* graceful fallback if it *must* clip */
  }

  /* Allow the SECOND sub line to wrap if absolutely needed */
  .hero .sub + .sub{
    white-space: normal;
  }
}