:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-2: #141417;
  --ink: #f6f7f8;
  --muted: #9aa1aa;
  --soft: #d3d7dd;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #d8f500;
  --accent-2: #69a7ff;
  --danger: #ff4d6d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.nav .nav-follow {
  border-color: rgba(240, 255, 67, 0.5);
  background: var(--accent);
  color: #050608;
}

.nav .nav-follow:hover {
  border-color: var(--accent);
  background: #fbff9a;
  color: #050608;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 0.96;
  letter-spacing: 0.08em;
}

.hero-title {
  display: block;
  width: auto;
  max-width: 100%;
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title span {
  display: inline;
  width: auto;
  max-width: 100%;
  background: linear-gradient(90deg, var(--ink), var(--accent-2) 48%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(105, 231, 255, 0.12);
}

.lede {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.report-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.report-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.last-updated {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #09090b;
  color: var(--ink);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 9px 10px;
}

input::placeholder {
  color: #6f7680;
}

button {
  cursor: pointer;
  padding: 0 14px;
  font-weight: 850;
}

.button-ghost {
  align-self: stretch;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.button-ghost:hover {
  background: rgba(216, 245, 0, 0.18);
}

.status {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status.subtle {
  margin-top: -6px;
  color: #7f8792;
  font-weight: 650;
}

.error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 8px;
  background: rgba(255, 77, 109, 0.09);
  color: #ffb8c5;
}

.team-group {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.team-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.team-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.team-title span {
  color: var(--muted);
  font-size: 12px;
}

.transaction-grid {
  display: grid;
}

.transaction {
  display: grid;
  grid-template-columns: 104px 1.15fr 74px 74px 132px 2fr 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.transaction:first-child {
  border-top: 0;
}

.transaction:hover {
  background: rgba(255, 255, 255, 0.04);
}

.field {
  min-width: 0;
  color: var(--soft);
  font-size: 14px;
}

.field-label {
  display: none;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player {
  color: var(--ink);
  font-weight: 850;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(9, 111, 255, 0.24);
  border-radius: 999px;
  background: rgba(105, 167, 255, 0.12);
  color: #a9caff;
  font-size: 12px;
  font-weight: 850;
}

.type-pill {
  border-color: rgba(159, 180, 0, 0.28);
  background: rgba(216, 245, 0, 0.14);
  color: #eaff6e;
}

.team-code {
  min-width: 44px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.description {
  line-height: 1.5;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sources .field-label {
  flex-basis: 100%;
}

.sources a,
.sources span:not(.field-label) {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sources a:hover {
  border-color: rgba(216, 245, 0, 0.5);
  color: var(--accent);
}

.empty {
  margin-top: 18px;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.empty span {
  display: inline-block;
  margin-top: 8px;
  color: #7f8792;
  font-size: 13px;
}

@media (max-width: 940px) {
  .site-header,
  .report-header {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

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

  .last-updated {
    width: max-content;
    text-align: left;
  }

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

  .description {
    grid-column: 1 / -1;
  }

  .sources {
    grid-column: 1 / -1;
  }

  .field-label {
    display: block;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 1240px);
    padding-top: 32px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    white-space: normal;
  }

  .filters,
  .transaction {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-inline: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    justify-content: center;
  }

  .last-updated {
    width: 100%;
  }
}
