:root {
  --ink: #111916;
  --muted: #5f6f68;
  --line: #dbe5df;
  --paper: #ffffff;
  --soft: #f3f7f4;
  --green: #0f6a43;
  --green-dark: #083d2a;
  --mint: #dff4e8;
  --gold: #d1a43b;
  --shadow: 0 18px 45px rgba(13, 49, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: conic-gradient(from 45deg, var(--green), var(--gold), var(--green-dark), var(--green));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  color: var(--green-dark);
}

main {
  padding: 0 clamp(16px, 4vw, 56px) 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  min-height: 520px;
  padding: 44px 0 28px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  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: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

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

.button.secondary {
  background: white;
}

.hero-visual {
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 390px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(209, 164, 59, 0.34), transparent 28%),
    linear-gradient(135deg, #083d2a 0%, #0f6a43 52%, #13241d 100%);
  box-shadow: var(--shadow);
}

.visual-topline,
.visual-scoreboard,
.visual-grid > div {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.visual-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 800;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0c75c;
  box-shadow: 0 0 0 6px rgba(240, 199, 92, 0.14);
}

.visual-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.visual-scoreboard div:first-child {
  display: grid;
  gap: 8px;
}

.visual-scoreboard strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.visual-scoreboard span:not(.eyebrow),
.visual-grid span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.eyebrow {
  color: #f0c75c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-pill {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(240, 199, 92, 0.16);
  color: #ffe197;
  font-weight: 900;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visual-grid > div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
}

.visual-grid strong {
  font-size: 20px;
}

.visual-field {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px) 50% 0 / 50% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 76px),
    rgba(255,255,255,0.08);
}

.visual-field::before,
.visual-field::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 58px;
  border: 1px solid rgba(255,255,255,0.18);
}

.visual-field::before {
  left: -1px;
}

.visual-field::after {
  right: -1px;
}

.visual-field span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.dashboard,
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.notes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.panel,
.schedule-section,
.bracket-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(14, 40, 28, 0.06);
}

.panel {
  padding: 20px;
}

.panel.large {
  min-height: 430px;
}

.panel-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-head.compact {
  display: block;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.panel p,
.section-head p,
footer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.timestamp {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.match-list,
.schedule-grid,
.time-results {
  display: grid;
  gap: 10px;
}

.match-row,
.schedule-card {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.5fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: inherit;
}

.match-row:hover,
.schedule-card:hover,
.related-link:hover {
  border-color: #a7c6b5;
  box-shadow: 0 10px 24px rgba(14, 40, 28, 0.08);
}

.teams {
  font-weight: 850;
}

.meta,
.time {
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.time-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.standings-table th,
.standings-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.standings-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.schedule-section,
.bracket-section {
  margin-top: 20px;
  padding: 22px;
}

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

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

.bracket-round {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.bracket-slot {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px dashed #b7c9be;
  font-weight: 800;
}

.ad-slot {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #b8c4bd;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbf9;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.ad-slot.wide {
  margin-top: 20px;
}

.concept-thumb {
  display: block;
  width: 100%;
  max-height: 120px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}

ul,
ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  padding: 28px clamp(16px, 4vw, 56px) 36px;
}

.match-page {
  padding-top: 34px;
}

.match-hero {
  max-width: 960px;
  padding: 30px 0 24px;
}

.match-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.match-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.back-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-table td:first-child {
  color: var(--muted);
  font-weight: 850;
  width: 34%;
}

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

.related-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.related-link span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .dashboard,
  .notes-grid,
  .schedule-grid,
  .bracket-grid,
  .match-detail-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .match-row,
  .schedule-card {
    grid-template-columns: 1fr;
  }
}
