:root {
  --sg-blue: #0b5ed7;
  --sg-red: #c1121f;
  --sg-black: #111827;
  --sg-ink: #172033;
  --sg-muted: #667085;
  --sg-light: #f4f7fb;
  --sg-line: #d9e1ec;
}

body {
  color: var(--sg-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: #fff;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.navbar-brand img {
  width: 44px;
  height: 44px;
}

.navbar-brand span {
  display: grid;
  line-height: 1.05;
}

.navbar-brand small {
  color: rgba(255, 255, 255, .68);
  font-size: .8rem;
  font-weight: 700;
}

.top-strip {
  color: #fff;
  background: var(--sg-red);
  padding: 7px 0;
  font-size: .84rem;
  font-weight: 700;
}

.portal-header {
  background: var(--sg-black);
}

.club-masthead {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 94, 215, .95), rgba(17, 24, 39, .9) 58%, rgba(193, 18, 31, .92)),
    linear-gradient(135deg, var(--sg-blue), var(--sg-black), var(--sg-red));
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.club-masthead .container {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.club-masthead img {
  width: clamp(74px, 12vw, 128px);
  height: clamp(74px, 12vw, 128px);
}

.club-masthead h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: .95;
}

.portal-stage {
  background: var(--sg-light);
  padding: 28px 0 34px;
}

.portal-stack {
  display: grid;
  gap: 18px;
}

.portal-box {
  background: #fff;
  border-top: 5px solid var(--sg-blue);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .08);
  padding: 20px;
}

.portal-box.next-match {
  border-top-color: var(--sg-red);
}

.lead-story {
  display: grid;
  min-height: 100%;
  color: #fff;
  background: var(--sg-black);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .16);
}

.lead-story img {
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  opacity: .9;
  background: linear-gradient(135deg, var(--sg-blue), var(--sg-red));
}

.lead-story-body {
  padding: 28px;
  background: linear-gradient(90deg, var(--sg-black), #1f2937);
}

.lead-story h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.lead-story p {
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
}

.lead-story strong,
.box-link {
  color: var(--sg-red);
  font-weight: 850;
  text-transform: lowercase;
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compact-news {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--sg-line);
}

.compact-news span {
  display: block;
  color: var(--sg-muted);
  font-size: .82rem;
}

.compact-news strong {
  display: block;
  line-height: 1.2;
}

.hero {
  min-height: 78vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .62)),
    url("../img/logo.svg") center right 12% / min(42vw, 430px) no-repeat,
    linear-gradient(135deg, #0b5ed7 0%, #111827 52%, #c1121f 100%);
  display: flex;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
  font-weight: 850;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: .95;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.15rem;
}

.section-band {
  padding: 72px 0;
}

.section-band.alt {
  background: var(--sg-light);
}

.section-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-title h2 {
  font-weight: 800;
}

.kicker {
  color: var(--sg-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-panel {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  padding: 22px;
  height: 100%;
}

.news-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sg-black);
}

.news-card span,
.news-card h3,
.news-card p {
  display: block;
  margin-inline: 18px;
}

.news-card span {
  margin-top: 16px;
  color: var(--sg-red);
  font-size: .85rem;
  font-weight: 700;
}

.news-card h3 {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.news-card p {
  color: var(--sg-muted);
  margin-bottom: 20px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.empty-inline {
  color: var(--sg-muted);
  padding: 12px 0;
}

.list-item,
.match-row {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sg-line);
}

.list-item span,
.list-item small,
.match-row small {
  color: var(--sg-muted);
}

.match-row {
  grid-template-columns: minmax(110px, auto) auto 1fr auto;
  align-items: center;
  column-gap: 14px;
}

.match-row small {
  grid-column: 3 / 5;
}

.team-badge {
  color: #fff;
  background: var(--sg-blue);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.match-logos {
  display: flex;
  align-items: center;
}

.match-logos > * + * {
  margin-left: -8px;
}

.club-logo,
.club-logo-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .14);
  object-fit: contain;
}

.club-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sg-black);
  font-size: .78rem;
  font-weight: 900;
}

.match-score {
  font-weight: 900;
}

.team-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-snapshot-card {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-top: 5px solid var(--sg-red);
  box-shadow: 0 16px 34px rgba(17, 24, 39, .08);
}

.team-snapshot-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(90deg, var(--sg-black), var(--sg-blue));
  padding: 16px 18px;
}

.team-snapshot-card header span {
  font-weight: 900;
}

.team-snapshot-card header img {
  width: 48px;
  height: 48px;
}

.snapshot-block {
  padding: 18px;
  border-bottom: 1px solid var(--sg-line);
}

.snapshot-block:last-child {
  border-bottom: 0;
}

.logo-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.logo-match-card > strong {
  color: var(--sg-black);
  font-size: 1.55rem;
  font-weight: 950;
}

.logo-match-card small {
  grid-column: 1 / 4;
  color: var(--sg-muted);
  text-align: center;
}

.club-side {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.club-side span {
  max-width: 100%;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
}

.mini-standings {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: .88rem;
}

.mini-standings td {
  padding: 8px 5px;
  border-bottom: 1px solid var(--sg-line);
}

.mini-standings td:first-child,
.mini-standings td:last-child {
  width: 1%;
  white-space: nowrap;
  font-weight: 900;
}

.mini-standings td:nth-child(2),
.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mini-standings .club-logo,
.mini-standings .club-logo-fallback,
.standings-team-cell .club-logo,
.standings-team-cell .club-logo-fallback {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: .68rem;
}

.mini-standings .is-own-team {
  color: #fff;
  background: linear-gradient(90deg, var(--sg-blue), var(--sg-red));
}

.mini-empty {
  color: var(--sg-muted);
  margin-top: 10px;
  padding: 12px;
  background: var(--sg-light);
  border: 1px dashed var(--sg-line);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.standings-table th {
  color: var(--sg-muted);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.standings-table th,
.standings-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--sg-line);
  white-space: nowrap;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  width: 100%;
  white-space: normal;
}

.standings-table .is-own-team {
  color: #fff;
  background: linear-gradient(90deg, var(--sg-blue), var(--sg-red));
}

.standings-table .is-own-team td {
  border-bottom-color: transparent;
}

.team-hero {
  padding: 120px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--sg-black), var(--sg-blue) 58%, var(--sg-red));
}

.team-link {
  display: block;
  height: 100%;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: #fff;
}

.team-link strong {
  display: block;
  font-size: 1.45rem;
}

.category-card {
  display: grid;
  min-height: 230px;
  align-content: end;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--sg-black), var(--sg-blue) 58%, var(--sg-red));
  border-radius: 8px;
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .14);
}

.category-card strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.category-card span {
  color: rgba(255, 255, 255, .84);
  margin-top: 10px;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-photo-card {
  position: relative;
  display: block;
  min-height: 340px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .15);
}

.team-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform .18s ease;
}

.team-photo-card:hover img {
  transform: scale(1.03);
}

.team-photo-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .08));
  font-size: 1.35rem;
  font-weight: 900;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.player-card {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .08);
}

.player-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sg-light);
}

.player-card strong,
.player-card span {
  display: block;
  margin-inline: 16px;
}

.player-card strong {
  margin-top: 14px;
  font-size: 1.08rem;
}

.player-card span {
  color: var(--sg-muted);
  margin-bottom: 16px;
}

.portal-team {
  border-top: 5px solid var(--sg-red);
}

.portal-team span {
  display: block;
  color: var(--sg-blue);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.portal-team small {
  color: var(--sg-muted);
}

.partner-band {
  color: #fff;
  background: var(--sg-black);
  padding: 34px 0;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.partner-row > * {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  padding: 14px;
}

.sponsor-feature {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 32px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-top: 6px solid var(--sg-red);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .12);
}

.sponsor-feature img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
}

.sponsor-feature strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: .95;
}

.sponsor-feature span {
  display: block;
  color: var(--sg-muted);
  margin-top: 10px;
  font-size: 1.05rem;
}

.sponsor-grid {
  display: grid;
  gap: 22px;
}

.sponsor-grid.premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-grid.supporters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sponsor-card {
  display: grid;
  align-content: space-between;
  min-height: 220px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, .13);
}

.sponsor-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #fff;
}

.sponsor-card strong,
.sponsor-card span {
  display: block;
  margin-inline: 18px;
}

.sponsor-card strong {
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 1.08rem;
  font-weight: 900;
}

.sponsor-card span {
  color: var(--sg-muted);
  margin-bottom: 18px;
}

.sponsor-card.text-only {
  min-height: 160px;
  align-content: center;
  border-top: 5px solid var(--sg-blue);
}

.empty-state {
  border: 1px dashed var(--sg-line);
  border-radius: 8px;
  padding: 32px;
  color: var(--sg-muted);
  background: #fff;
  text-align: center;
}

.contact-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
}

.contact-list dt {
  color: var(--sg-muted);
}

.admin-shell {
  min-height: 100vh;
  background: var(--sg-light);
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  padding: 24px;
}

.auth-only {
  display: none;
}

.is-authenticated .auth-only {
  display: block;
}

@media (max-width: 768px) {
  .club-masthead .container {
    min-height: 124px;
  }

  .portal-stage {
    padding-top: 18px;
  }

  .lead-story img {
    min-height: 220px;
  }

  .lead-story-body {
    padding: 22px;
  }

  .partner-row {
    grid-template-columns: 1fr 1fr;
  }

  .sponsor-feature,
  .sponsor-grid.premium,
  .sponsor-grid.supporters {
    grid-template-columns: 1fr;
  }

  .team-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .team-photo-grid,
  .player-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
    background:
      linear-gradient(180deg, rgba(17, 24, 39, .94), rgba(17, 24, 39, .78)),
      linear-gradient(135deg, #0b5ed7 0%, #111827 52%, #c1121f 100%);
  }

  .section-band {
    padding: 50px 0;
  }

  .match-row {
    grid-template-columns: 1fr auto;
  }

  .match-row .team-badge,
  .match-row .match-logos,
  .match-row small {
    grid-column: 1 / 3;
  }
}
