:root {
  color-scheme: dark;
  --bg: #10120f;
  --surface: #171b17;
  --surface-2: #20251f;
  --line: rgba(240, 244, 232, 0.12);
  --text: #f3f6ed;
  --muted: #aeb7a7;
  --soft: #dfe7d7;
  --green: #35d27f;
  --green-dark: #16492d;
  --red: #ef3e4a;
  --gold: #f5c65b;
  --cyan: #58c6d4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(53, 210, 127, 0.08), transparent 32rem),
    linear-gradient(180deg, #0b0e0b 0%, var(--bg) 52%, #0d0f0d 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 210, 127, 0.55);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(53, 210, 127, 0.22), rgba(245, 198, 91, 0.16));
  color: var(--green);
  font-size: 0.78rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.text-button,
.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  font-size: 1.35rem;
}

.icon-button:hover,
.text-button:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 210, 127, 0.48);
  background: rgba(53, 210, 127, 0.11);
}

.icon-button.is-loading span {
  animation: spin 800ms linear infinite;
}

.hero {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #12351c;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(236, 255, 230, 0.22) 13.2% 13.8%, transparent 14%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(236, 255, 230, 0.2) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(236, 255, 230, 0.13) 0 1px, transparent 1px calc(100% - 1px), rgba(236, 255, 230, 0.13) calc(100% - 1px)),
    linear-gradient(180deg, rgba(236, 255, 230, 0.13) 0 1px, transparent 1px calc(100% - 1px), rgba(236, 255, 230, 0.13) calc(100% - 1px));
  opacity: 0.78;
}

.hero-image {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(1.32) contrast(1.08) brightness(0.78);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 8, 0.9) 0%, rgba(12, 42, 17, 0.7) 42%, rgba(12, 42, 17, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 18, 8, 0.04) 0%, rgba(7, 18, 8, 0.94) 100%),
    linear-gradient(135deg, rgba(53, 210, 127, 0.18), rgba(245, 198, 91, 0.07));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 48px) 30px;
}

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

.eyebrow.small {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.68rem;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 14px;
  font-size: clamp(4.2rem, 13vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.6;
}

.search {
  width: min(100%, 640px);
}

.search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  outline: none;
  background: rgba(13, 16, 13, 0.78);
  color: var(--text);
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.search input:focus {
  border-color: rgba(53, 210, 127, 0.72);
}

.dashboard {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 54px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.stat,
.panel,
.feed-zone {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 27, 23, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.stat {
  min-height: 84px;
  padding: 15px 18px;
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.panel {
  padding: 18px;
}

.panel-header,
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h2,
.feed-toolbar h2 {
  margin: 0;
  font-size: 1.12rem;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.source-list,
.chips {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.source-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.source-name {
  display: block;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-meta,
.article-meta,
.article-summary {
  color: var(--muted);
}

.source-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}

.source-count {
  color: var(--soft);
  font-weight: 800;
}

.chip {
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  text-align: left;
  background:
    linear-gradient(90deg, var(--chip-primary-soft, rgba(255, 255, 255, 0.06)), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  border-color: var(--chip-border, var(--line));
}

.chip-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.chip-label > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-emblem {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.chip-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.chip.is-active {
  border-color: var(--chip-primary, rgba(53, 210, 127, 0.7));
  background:
    linear-gradient(90deg, var(--chip-primary-soft, rgba(53, 210, 127, 0.14)), rgba(255, 255, 255, 0.08)),
    rgba(53, 210, 127, 0.08);
}

.feed-zone {
  min-height: 420px;
  padding: clamp(18px, 3vw, 28px);
}

.feed-toolbar {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.text-button {
  min-height: 42px;
  padding: 0 14px;
}

.notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(245, 198, 91, 0.28);
  border-radius: var(--radius);
  background: rgba(245, 198, 91, 0.1);
  color: #ffe4a4;
}

.feed-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--card-border, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--card-primary-soft, rgba(255, 255, 255, 0.055)), transparent 44%),
    linear-gradient(315deg, var(--card-secondary-soft, rgba(255, 255, 255, 0.04)), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--surface-2);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.article-card.has-image {
  grid-template-columns: 148px minmax(0, 1fr) auto;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--card-primary, var(--green)), var(--card-secondary, var(--gold)));
}

.article-card:hover {
  border-color: var(--card-hover-border, rgba(255, 255, 255, 0.22));
  transform: translateY(-1px);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.article-media {
  display: block;
  width: 148px;
  aspect-ratio: 16 / 10;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--card-media-border, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.article-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  min-width: 0;
}

.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--card-border, var(--line));
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-weight: 900;
}

.article-title {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.club-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 34px;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.club-emblem {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.club-logo {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
}

.club-initials {
  color: #182016;
  font-size: 0.58rem;
  font-weight: 900;
}

.club-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-summary {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.55;
}

.article-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
  font-size: 0.82rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
}

.article-time {
  align-self: start;
  justify-self: end;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state,
.skeleton {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.loading-play {
  display: grid;
  min-height: 260px;
  place-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(53, 210, 127, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(53, 210, 127, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(18, 36, 19, 0.72);
  color: var(--soft);
  text-align: center;
  outline: none;
}

.loading-play strong {
  color: var(--text);
  font-size: 1.15rem;
}

.loading-play > span {
  color: var(--muted);
}

.loading-play:hover .loading-ball,
.loading-play:focus-visible .loading-ball {
  animation-duration: 1.25s;
}

.loading-play:focus-visible {
  border-color: rgba(53, 210, 127, 0.75);
  box-shadow: 0 0 0 3px rgba(53, 210, 127, 0.16);
}

.loading-pitch {
  position: relative;
  width: min(100%, 520px);
  height: 148px;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 230, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(236, 255, 230, 0.18) 23px 24px, transparent 25px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(236, 255, 230, 0.16) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(37, 123, 55, 0.46) 0 42px, rgba(28, 96, 44, 0.46) 42px 84px),
    #153f20;
}

.loading-pitch::before,
.loading-pitch::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 58px;
  height: 78px;
  border: 1px solid rgba(236, 255, 230, 0.18);
}

.loading-pitch::before {
  left: -1px;
}

.loading-pitch::after {
  right: -1px;
}

.loading-lane {
  position: absolute;
  left: 11%;
  right: 13%;
  top: 50%;
  height: 2px;
  border-top: 2px dashed rgba(245, 198, 91, 0.42);
  transform: translateY(-50%);
}

.loading-ball {
  position: absolute;
  left: 10%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #151515 0 7px, transparent 8px),
    radial-gradient(circle at 28% 28%, #151515 0 5px, transparent 6px),
    radial-gradient(circle at 72% 30%, #151515 0 5px, transparent 6px),
    radial-gradient(circle at 31% 73%, #151515 0 5px, transparent 6px),
    radial-gradient(circle at 72% 72%, #151515 0 5px, transparent 6px),
    #f4f5ed;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  animation: ballRun 2.4s cubic-bezier(0.5, 0, 0.35, 1) infinite;
}

.loading-goal {
  position: absolute;
  right: 7%;
  top: 50%;
  width: 38px;
  height: 54px;
  border: 2px solid rgba(236, 255, 230, 0.48);
  border-left: 0;
  transform: translateY(-50%);
}

.loading-goal::before {
  content: "";
  position: absolute;
  inset: 5px;
  background-image:
    linear-gradient(rgba(236, 255, 230, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 255, 230, 0.16) 1px, transparent 1px);
  background-size: 9px 9px;
}

.skeleton {
  min-height: 124px;
  overflow: hidden;
}

.skeleton::before {
  content: "";
  display: block;
  width: 70%;
  height: 18px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 0 rgba(255, 255, 255, 0.08),
    0 68px 0 rgba(255, 255, 255, 0.06);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ballRun {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  42% {
    transform: translate(240%, -85%) rotate(270deg);
  }

  72% {
    transform: translate(720%, -50%) rotate(680deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(1080deg);
  }
}

@media (max-width: 900px) {
  .stats-strip,
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

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

  .feed-zone {
    order: 1;
  }
}

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

  .hero {
    min-height: 380px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 12, 8, 0.95), rgba(8, 12, 8, 0.72)),
      linear-gradient(180deg, rgba(8, 12, 8, 0.06), rgba(8, 12, 8, 0.98));
  }

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

  .feed-toolbar,
  .panel-header {
    align-items: flex-start;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card.has-image {
    grid-template-columns: 1fr;
  }

  .article-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .article-time {
    justify-self: start;
  }
}
