:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #ededed;
  --ink: #161616;
  --muted: #646464;
  --line: #d6d6d6;
  --red: #ae2424;
  --red-hover: #d14747;
  --black: #0d0d0d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.header-hero {
  color: var(--white);
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.88) 100%),
    url("https://www.reddevilsbasket.ch/wp-content/uploads/2025/04/background_red_devils_2025-scaled.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  padding-bottom: 2.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0 2rem;
}

.brand-mark img,
.brand-fallback {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.brand-fallback {
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  font-weight: 700;
}

.match-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.match-link:hover {
  text-decoration: underline;
}

.hero-copy {
  padding: 2rem 0 4rem;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
}

.hero-logo {
  width: clamp(132px, 18vw, 220px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.compact-hero .hero-overlay {
  padding-bottom: 1rem;
}

.game-hero {
  padding: 1rem 0 2.5rem;
}

.game-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.score-side {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.score-side strong,
.score-separator {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.score-team {
  max-width: 18ch;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow,
.panel-kicker,
.tile-label,
.section-tag {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  color: var(--red);
}

h1,
h2,
h3,
h4 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-description {
  max-width: 52rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 0;
}

.button {
  text-decoration: none;
  padding: 0.95rem 1.3rem;
  border-radius: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-hover);
}

.button-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-score-strip,
.two-column-panels,
.split-band,
.sponsor-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-score-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.2rem;
}

.score-tile {
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.55);
  border-top: 4px solid transparent;
}

.score-tile strong {
  display: block;
  margin: 0.3rem 0;
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
}

.score-tile span:last-child {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.score-tile.emphasis {
  border-top-color: var(--red);
  background: rgba(174, 36, 36, 0.78);
}

.main-content {
  padding: 2.5rem 0 0;
}

.content-band {
  margin-bottom: 2.5rem;
}

.home-signoff {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 3rem;
}

.footer-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.copyright-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading.centered {
  text-align: center;
}

.two-column-panels,
.split-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.dark-panel {
  background: linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
  color: var(--white);
}

.light-panel {
  background: var(--surface);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.fixture-card {
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(174, 36, 36, 0.22), rgba(255, 255, 255, 0.02));
  border-left: 4px solid var(--red);
}

.fixture-date,
.fixture-meta {
  color: rgba(255, 255, 255, 0.74);
}

.versus {
  display: inline-block;
  margin: 0.55rem 0;
  color: var(--red);
  font-family: "Oswald", sans-serif;
}

.empty-state,
.stack-list span,
.info-list dt,
.footer-copy {
  color: var(--muted);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

.info-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
}

.game-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
}

.game-meta-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.game-meta-list dd {
  margin: 0.25rem 0 0;
}

.team-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-box-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.team-box-score {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2.4rem;
  color: var(--red);
}

.player-summary-strip {
  margin-top: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--surface-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
}

.pill-w {
  background: rgba(34, 122, 65, 0.12);
  color: #1d6636;
}

.pill-l {
  background: rgba(179, 34, 31, 0.12);
  color: var(--red);
}

.stat-subtle {
  color: var(--muted);
  font-size: 0.86rem;
}

.player-bar-wrap {
  min-width: 220px;
}

.status-cell {
  width: 3rem;
}

.status-cross {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

.player-bar {
  display: flex;
  height: 16px;
  min-width: 1.5rem;
  background: #d8d8d8;
  overflow: hidden;
}

.player-bar-segment {
  height: 100%;
}

.ft-segment {
  background: #1d1d1d;
}

.two-segment {
  background: var(--red);
}

.three-segment {
  background: #ffb03a;
}

.player-bar-legend {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.stack-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sponsor-band {
  background: var(--surface-soft);
  padding: 2rem;
}

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

.sponsor-card {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--surface);
  padding: 1rem;
  border: 1px solid var(--line);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  margin-top: 2rem;
}

.footer-inner {
  padding: 2rem 0;
  text-align: center;
}

.federation-links,
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.federation-links img {
  width: 100px;
  object-fit: contain;
}

.social-links img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 920px) {
  .site-header,
  .hero-score-strip,
  .two-column-panels,
  .split-band,
  .info-list,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: block;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-copy {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-title-row {
    align-items: flex-start;
  }

  .game-scoreboard,
  .game-meta-list,
  .team-box-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: 128px;
  }
}
