:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #191f25;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --muted: #a8b1bd;
  --green: #18b26b;
  --yellow: #f4c84a;
  --red: #ef4444;
  --cyan: #45c3ff;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 200, 74, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f8f67, #c91f2e);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 72px));
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.9) 0%, rgba(5, 8, 12, 0.52) 46%, rgba(5, 8, 12, 0.72) 100%),
    url("./assets/soyo-soccer-banner.svg") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 16, 0) 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 90px);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

.official-logo {
  display: block;
  width: clamp(96px, 14vw, 150px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.36));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 11vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: #d9e1ea;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(52, 211, 153, 0.48);
  background: var(--green);
  color: #07100d;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.match-ticker {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 32px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 27, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
}

.match-ticker strong {
  grid-column: 1 / 4;
}

.match-ticker small {
  color: var(--yellow);
  font-weight: 800;
}

.score-strip,
.section-shell,
.two-column,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--line);
  box-shadow: var(--shadow);
}

.score-strip article {
  padding: 22px;
  background: rgba(18, 22, 27, 0.96);
}

.score-strip span,
.schedule-meta,
.muted {
  color: var(--muted);
}

.score-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-shell {
  margin-top: 84px;
}

.section-shell.compact {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

h3 {
  margin-bottom: 10px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--text);
}

.match-grid,
.news-grid,
.club-grid,
.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.match-card,
.news-card,
.club-card,
.competition-card,
.feature-panel,
.schedule-item,
.scorer-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.match-card {
  padding: 18px;
}

.match-card header,
.team-row,
.schedule-item,
.scorer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-card header {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.team-row {
  min-height: 40px;
  font-weight: 800;
}

.team-row .score {
  min-width: 34px;
  text-align: right;
  font-size: 1.25rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(69, 195, 255, 0.13);
  color: #9de1ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  margin-top: 84px;
}

.schedule-list,
.scorer-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  padding: 15px;
}

.schedule-date {
  display: grid;
  width: 58px;
  min-width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--yellow);
  font-weight: 900;
}

.schedule-main {
  flex: 1;
  min-width: 0;
}

.schedule-main strong,
.schedule-main span {
  display: block;
}

.schedule-main span {
  margin-top: 4px;
}

.feature-panel {
  overflow: hidden;
}

.feature-image {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(0deg, rgba(18, 22, 27, 0.45), rgba(18, 22, 27, 0.05)),
    url("./assets/gallery/programacao-gira-rocha.jpeg") center / cover;
}

.feature-panel > div:last-child {
  padding: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(244, 200, 74, 0.14);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}

tr:last-child td {
  border-bottom: 0;
}

.club {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.club-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
}

.scorer-item {
  padding: 15px;
}

.scorer-item strong,
.scorer-item span {
  display: block;
}

.goals {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  font-weight: 900;
}

.news-card {
  padding: 20px;
}

.club-card {
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 20px;
}

.club-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(244, 200, 74, 0.13);
  color: var(--yellow);
  font-weight: 900;
}

.club-card strong {
  font-size: 1.1rem;
}

.club-card small {
  color: var(--muted);
}

.competition-grid {
  grid-template-columns: repeat(4, 1fr);
}

.competition-card {
  min-height: 220px;
  padding: 20px;
}

.competition-card p {
  color: var(--muted);
  line-height: 1.55;
}

.competition-card small {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

.active-competition {
  border-color: rgba(244, 200, 74, 0.42);
  background:
    linear-gradient(145deg, rgba(24, 178, 107, 0.16), rgba(201, 31, 46, 0.12)),
    var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-card {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gallery-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 536px;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 12, 15, 0.78);
  color: var(--text);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.news-card p,
.feature-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 84px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .nav.open {
    display: flex;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .match-ticker {
    left: 18px;
    right: 18px;
  }

  .score-strip,
  .match-grid,
  .news-grid,
  .club-grid,
  .competition-grid,
  .gallery-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .gallery-card.large,
  .gallery-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 280px;
  }

  .score-strip {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 64px;
  }

  .nav {
    top: 64px;
  }

  .brand-mark,
  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 4.6rem);
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-item {
    align-items: flex-start;
  }
}
