:root{
  --primary: #dddbfd;
  --secondary: #d9fdff;
  --border: rgba(0,0,0,0.14);
  --text: #111;
}

*{ box-sizing: border-box; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  margin: 24px;
  text-align: center;
  background: var(--secondary);
  color: var(--text);
}

.siteTitle{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.logoRow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1100px;
}

.mainLogo{
  width: clamp(120px, 28vw, 200px);
  height: clamp(120px, 28vw, 200px);
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.sideLogo{
  width: clamp(70px, 18vw, 140px);
  height: clamp(70px, 18vw, 140px);
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

header{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.headerButtons{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.lastUpdated{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}

.btnLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  background: var(--primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.iconBtn{
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.socialIcon{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.btnLink:hover{
  filter: brightness(0.98);
  border-color: rgba(0,0,0,0.25);
}

.tableWrap{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}

.leagueTable{
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

.colPos{ width: 44px; }
.colPlayed{ width: 78px; }
.colGd{ width: 66px; }
.colPts{ width: 66px; }

th, td{
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: center;
}

th{
  background: var(--primary);
}

th:nth-child(2),
td:nth-child(2){
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

th:nth-child(1),
td:nth-child(1),
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4),
th:nth-child(5),
td:nth-child(5){
  white-space: nowrap;
}

.fixturesSection{
  max-width: 1100px;
  margin: 18px auto 0;
}

.fixturesSection h2{
  margin: 18px 0 10px;
}

.fixtures{
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.fixtureCard{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--primary);
  padding: 12px;
  text-align: left;
}

.fixtureTitle{
  font-weight: 900;
  margin-bottom: 8px;
  text-align: center;
}

.fixtureLine{
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 6px 0;
}

.fixturePitch{
  font-weight: 900;
  min-width: 64px;
}

.fixtureVs{
  color: rgba(0,0,0,0.85);
}

.siteFooter{
  max-width: 1100px;
  margin: 18px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.14);
  display: flex;
  justify-content: center;
}

.adminLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  background: var(--primary);
}

.adminLink:hover{
  filter: brightness(0.98);
  border-color: rgba(0,0,0,0.25);
}

.fixtureEmpty{
  padding: 16px;
  border: 1px dashed #999;
  border-radius: 10px;
  background: #dddbfd;
  font-weight: 700;
}

@media (max-width: 900px){
  .fixtures{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 600px){
  body{ margin: 16px; }

  .logoRow{ gap: 10px; }

  .btnLink{ height: 42px; padding: 0 14px; }
  .iconBtn{ width: 52px; min-width: 52px; }
  .socialIcon{ width: 36px; height: 36px; }

  th, td{
    padding: 8px 10px;
    font-size: 14px;
  }

  .colPos{ width: 38px; }
  .colPlayed{ width: 64px; }
  .colGd{ width: 56px; }
  .colPts{ width: 56px; }

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