:root {
  --bg: #07140d;
  --bg-2: #0d2418;
  --panel: rgba(10, 28, 20, 0.82);
  --panel-strong: rgba(12, 36, 24, 0.94);
  --ink: #edf7ef;
  --muted: rgba(237, 247, 239, 0.72);
  --line: rgba(172, 255, 202, 0.18);
  --accent: #92ff9f;
  --accent-2: #ffd86b;
  --danger: #ff8b7b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(146,255,159,0.14), transparent 24%),
    radial-gradient(circle at 85% 16%, rgba(255,216,107,0.12), transparent 24%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 52%, #04110a 100%);
}
.page-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 30px 0 42px;
}
.hero,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.28), inset 0 0 24px rgba(146,255,159,0.03);
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
}
.eyebrow,
.panel-tag {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
}
h1 {
  max-width: 12ch;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.95;
}
.lead,
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.lead {
  max-width: 62ch;
  margin: 16px 0 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 180px;
}
button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 16px;
  text-decoration: none;
  font-weight: 700;
  font-family: "Syne", sans-serif;
}
button {
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #09210f;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.ghost-btn,
.back-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
}
.dashboard-grid,
.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.dashboard-grid {
  grid-template-columns: 1.2fr 1fr 0.9fr;
}
.content-grid {
  grid-template-columns: 1.05fr 0.95fr;
}
.panel {
  border-radius: 28px;
  padding: 22px;
}
.panel.accent {
  background:
    linear-gradient(140deg, rgba(14,36,24,0.94), rgba(10,24,18,0.82)),
    var(--panel);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.stat-row div,
.player-card,
.result-card,
.fixture-card,
.note-pill,
.market-card,
.info-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.stat-row div {
  padding: 14px;
  border-radius: 18px;
}
.stat-row span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.stat-row strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-family: "Syne", sans-serif;
}
.compact strong {
  font-size: 18px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-head h3 {
  margin-top: 2px;
  font-size: 28px;
}
.note-pill {
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  white-space: nowrap;
}
.roster-list,
.timeline-list,
.results-list,
.schedule-list,
.market-list,
.stack-list {
  display: grid;
  gap: 12px;
}
.split-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.control-stack {
  display: grid;
  gap: 18px;
}
.control-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  padding: 10px 14px;
}
.chip-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #09210f;
}
.manager-note {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
}
.manager-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Syne", sans-serif;
}
.player-card {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}
.player-card.bench {
  border-color: rgba(255,216,107,0.24);
}
.player-name {
  font-weight: 600;
}
.player-meta,
.empty-state,
.mini-copy {
  color: var(--muted);
}
.player-stat {
  text-align: right;
  font-weight: 600;
}
.player-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.player-actions {
  display: grid;
  gap: 8px;
}
.player-toggle,
.secondary-btn,
.warn-btn {
  min-width: 120px;
  padding-inline: 12px;
}
.player-toggle {
  justify-self: end;
}
.secondary-btn {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
}
.warn-btn,
.player-toggle.bench-btn {
  background: rgba(255,216,107,0.12);
  color: var(--ink);
}
.status-good {
  color: var(--accent);
}
.status-warn {
  color: var(--accent-2);
}
.status-bad {
  color: var(--danger);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(172,255,202,0.12);
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
td:last-child,
th:last-child,
td:first-child,
th:first-child {
  text-align: center;
}
.wide {
  grid-column: 1 / -1;
}
.fixture-card,
.result-card,
.timeline-card,
.market-card,
.info-card {
  border-radius: 20px;
  padding: 14px 16px;
}
.fixture-head,
.result-head,
.timeline-head,
.market-head,
.info-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}
.fixture-match,
.market-meta,
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(172,255,202,0.1);
}
.fixture-match:first-of-type,
.market-meta:first-of-type,
.info-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.fixture-score.done,
.result-score {
  font-family: "Syne", sans-serif;
  font-weight: 700;
}
.fixture-score.pending {
  color: var(--muted);
}
.result-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(172,255,202,0.1);
}
.timeline-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.timeline-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(172,255,202,0.1);
}
.timeline-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.timeline-minute {
  color: var(--accent-2);
  font-family: "Syne", sans-serif;
  font-weight: 700;
}
.player-traits,
.market-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.player-pill {
  border: 1px solid rgba(172,255,202,0.12);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}
.market-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
}
.stats-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
}
.stats-card h4 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 20px;
}
.stats-card p {
  margin: 0;
}
.market-price {
  text-align: right;
}
.market-price strong,
.info-card strong {
  font-family: "Syne", sans-serif;
}
.info-card span {
  color: var(--muted);
}
.result-list-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 920px) {
  .hero,
  .dashboard-grid,
  .content-grid,
  .market-card,
  .player-card,
  .split-stats {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    min-width: 0;
  }
  .player-stat,
  .player-toggle,
  .market-price {
    text-align: left;
    justify-self: stretch;
  }
}
@media (max-width: 640px) {
  .page-shell {
    width: min(1180px, calc(100vw - 16px));
  }
  .hero,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }
  .stat-row,
  .player-card {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: clamp(34px, 12vw, 56px);
  }
}
