:root {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-radial: rgba(105, 40, 235, 0.14);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(246, 248, 252, 0.78);
  --border: rgba(39, 47, 67, 0.11);
  --text: #101624;
  --muted: #687086;
  --faint: #9098aa;
  --purple: #7b2cff;
  --purple-2: #b46cff;
  --green: #1fc675;
  --yellow: #f5bc2f;
  --red: #f14c65;
  --shadow: 0 22px 60px rgba(31, 37, 57, 0.13);
  --small-shadow: 0 12px 34px rgba(31, 37, 57, 0.1);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050b13;
  --bg-radial: rgba(120, 47, 255, 0.3);
  --surface: rgba(12, 21, 32, 0.72);
  --surface-strong: rgba(14, 23, 35, 0.88);
  --surface-soft: rgba(17, 27, 41, 0.82);
  --border: rgba(220, 232, 255, 0.1);
  --text: #f5f8ff;
  --muted: #9aa6b9;
  --faint: #728096;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --small-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 67% 35%, var(--bg-radial), transparent 30%),
    radial-gradient(circle at 6% 88%, rgba(100, 44, 255, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg), #ffffff 10%));
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: calc(100vw - 32px);
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 262px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: calc(100vh - 32px);
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong), transparent 4%), color-mix(in srgb, var(--surface), transparent 10%)),
    radial-gradient(circle at 40% 92%, rgba(123, 44, 255, 0.22), transparent 28%);
}

.brand,
.top-nav,
.top-actions,
.score-row,
.club,
.panel-head,
.match-header,
.team,
.mini-schedule div,
.moment-strip,
.timeline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
}

.brand img {
  width: 82px;
  height: 42px;
  object-fit: contain;
}

.side-nav {
  display: grid;
  gap: 9px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 620;
  transition: 180ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(123, 44, 255, 0.18), rgba(123, 44, 255, 0.04));
  box-shadow: inset 3px 0 0 var(--purple);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--purple), var(--text) 15%);
}

.brand-card {
  margin-top: auto;
  padding: 18px;
  min-height: 124px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at right bottom, rgba(123, 44, 255, 0.28), transparent 56%),
    var(--surface-soft);
}

.brand-card img {
  width: 78px;
  height: 44px;
  object-fit: contain;
}

.brand-card p {
  margin: 10px 0 0;
  max-width: 150px;
  color: var(--muted);
  line-height: 1.35;
}

.app {
  min-width: 0;
}

.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 34px;
  border-bottom: 1px solid var(--border);
}

.top-nav {
  gap: 42px;
  height: 100%;
}

.top-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  color: var(--muted);
  font-weight: 650;
}

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

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.top-actions {
  gap: 12px;
}

.icon-btn,
.theme-toggle,
.profile {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: var(--small-shadow);
}

.icon-btn,
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.has-dot {
  position: relative;
}

.has-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
}

.theme-toggle .moon,
:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: inline;
}

.profile {
  height: 54px;
  min-width: 108px;
  padding: 6px 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.dashboard {
  padding: 12px 18px 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 512px;
  gap: 16px;
}

.main-column,
.right-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.panel,
.world-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-strong), transparent 5%), color-mix(in srgb, var(--surface), transparent 4%));
  box-shadow: var(--small-shadow);
}

.live-panel {
  padding: 19px 20px 17px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
}

h2 {
  font-size: 18px;
}

.section-title a,
.panel a {
  color: var(--purple);
  font-weight: 720;
  font-size: 13px;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(123, 44, 255, 0.13);
}

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

.match-card {
  position: relative;
  min-height: 202px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--surface), transparent 12%));
}

.match-card.featured {
  border-color: color-mix(in srgb, var(--purple), transparent 28%);
  box-shadow: inset 0 0 0 1px rgba(123, 44, 255, 0.22), 0 0 30px rgba(123, 44, 255, 0.13);
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta b {
  margin-left: auto;
  color: var(--purple);
}

.score-row {
  justify-content: space-between;
  margin: 18px 0;
}

.club {
  gap: 12px;
}

.crest {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
  font-style: normal;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.mini {
  width: 21px;
  height: 21px;
  border-width: 1px;
  font-size: 10px;
}

.fcsb { background: linear-gradient(135deg, #061a5a, #ffcb25 48%, #df1f45); }
.cfr { background: linear-gradient(135deg, #821d30, #d9d5dc); }
.craiova { background: linear-gradient(135deg, #226dc8, #a9d8ff); }
.rapid { background: linear-gradient(135deg, #751f31, #ffffff); color: #5b1224; }
.vol { background: linear-gradient(135deg, #49678a, #c8d5e8); }
.boto { background: linear-gradient(135deg, #164db8, #ef354a); }

.score {
  font-size: 30px;
  font-weight: 850;
}

.pill {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.pill.live {
  color: #fff;
  background: var(--purple);
}

.mini-schedule {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.55fr;
  gap: 14px;
  margin-top: 22px;
}

.mini-schedule div {
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mini-schedule strong {
  font-size: 13px;
}

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

.mini-schedule button {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface-soft);
}

.world-panel {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-strong), transparent 0%) 0 31%, color-mix(in srgb, var(--surface-strong), transparent 18%) 42%, transparent 72%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.1), rgba(4, 10, 18, 0.14)),
    url("assets/world-cup-bg.png") center right / cover no-repeat;
}

.world-panel h2 {
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.world-panel p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.world-panel button,
.primary {
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(123, 44, 255, 0.25);
}

.world-stats {
  display: flex;
  gap: 18px;
  margin-right: 80px;
  position: relative;
  z-index: 1;
}

.world-stats span {
  width: 78px;
  height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft), transparent 2%);
  backdrop-filter: blur(10px);
}

.world-stats b {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.world-stats span {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 30, 0.58);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.player-panel,
.scorers,
.moment-strip,
.match-center,
.table-panel,
.news-panel,
.collab-panel {
  padding: 20px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-head span,
.panel-head p {
  color: var(--muted);
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.player-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #171f33, var(--purple));
}

.player-card p,
.collab-panel p {
  color: var(--muted);
  margin-top: 4px;
}

.rating {
  width: 48px;
  padding: 7px 0;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: var(--purple);
}

.radar {
  position: relative;
  min-height: 178px;
  grid-row: span 2;
  border-radius: 14px;
  background:
    radial-gradient(circle, transparent 22%, rgba(123, 44, 255, 0.12) 23%, transparent 24%),
    repeating-radial-gradient(circle, transparent 0 22px, rgba(123, 44, 255, 0.14) 23px 24px);
}

.radar::before,
.radar-shape {
  content: "";
  position: absolute;
  inset: 46px;
  clip-path: polygon(50% 0, 90% 28%, 78% 82%, 24% 82%, 8% 30%);
}

.radar::before {
  border: 1px solid rgba(123, 44, 255, 0.28);
  background: transparent;
}

.radar-shape {
  background: rgba(123, 44, 255, 0.28);
  border: 2px solid var(--purple);
}

.axis {
  position: absolute;
  color: var(--muted);
  font-size: 11px;
}

.axis.top { top: 10px; left: 45%; }
.axis.right { right: 4px; top: 48%; }
.axis.bottom { bottom: 8px; left: 37%; }
.axis.left { left: 4px; top: 54%; }

.player-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
}

.player-numbers span {
  color: var(--muted);
}

.player-numbers b {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.scorers ol {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.scorers li,
.table-panel td:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 9px;
}

.scorers li {
  justify-content: space-between;
}

.moment-strip {
  gap: 22px;
  min-height: 74px;
  overflow: auto;
}

.moment-strip strong {
  min-width: 105px;
}

.moment-strip span {
  min-width: 160px;
  color: var(--muted);
}

.moment-strip b {
  color: var(--text);
}

.moment-strip button {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--purple);
  background: var(--surface-soft);
  white-space: nowrap;
}

.match-center {
  display: none;
}

.status {
  color: var(--green) !important;
  font-weight: 780;
}

.match-header {
  justify-content: center;
  gap: 38px;
  padding: 12px 0 18px;
}

.team {
  gap: 12px;
}

.big-score {
  text-align: center;
}

.big-score b {
  display: block;
  font-size: 42px;
}

.big-score span {
  color: var(--muted);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
}

.tabs button {
  position: relative;
  border: 0;
  padding: 14px 2px;
  color: var(--muted);
  background: transparent;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 760;
}

.tabs button.active {
  color: var(--text);
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--purple);
}

.pitch-layout {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  gap: 18px;
  align-items: center;
  padding-top: 22px;
}

.side-stat {
  display: grid;
  gap: 7px;
}

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

.side-stat b {
  font-size: 22px;
}

.side-stat i {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple) var(--w), rgba(133, 143, 164, 0.24) 0);
}

.away i {
  background: linear-gradient(90deg, #cfd6e3 var(--w), rgba(133, 143, 164, 0.24) 0);
}

.pitch {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid color-mix(in srgb, var(--muted), transparent 46%);
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), color-mix(in srgb, var(--muted), transparent 50%) calc(50% - 1px) calc(50% + 1px), transparent 0),
    repeating-linear-gradient(0deg, rgba(123, 44, 255, 0.05), rgba(123, 44, 255, 0.05) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(123, 44, 255, 0.05), rgba(123, 44, 255, 0.05) 1px, transparent 1px, transparent 22px),
    color-mix(in srgb, var(--surface-soft), transparent 10%);
}

.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 76px;
  height: 122px;
  border: 2px solid color-mix(in srgb, var(--muted), transparent 52%);
  transform: translateY(-50%);
}

.pitch::before { left: -2px; }
.pitch::after { right: -2px; }

.half {
  position: relative;
}

.half svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
}

.half.left svg {
  stroke: rgba(146, 89, 255, 0.62);
}

.half.right svg {
  stroke: rgba(255, 255, 255, 0.55);
}

:root[data-theme="light"] .half.right svg {
  stroke: rgba(64, 76, 98, 0.55);
}

.node {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b977ff;
  box-shadow: 0 0 0 5px rgba(123, 44, 255, 0.14);
}

.right .node {
  background: color-mix(in srgb, var(--text), #ffffff 25%);
  box-shadow: 0 0 0 5px rgba(142, 153, 176, 0.12);
}

.n1 { left: 15%; top: 18%; }
.n2 { left: 32%; top: 32%; }
.n3 { left: 55%; top: 24%; }
.n4 { left: 48%; top: 48%; }
.n5 { left: 24%; top: 56%; }
.n6 { left: 36%; top: 76%; }
.n7 { left: 72%; top: 72%; }
.n8 { left: 70%; top: 42%; }

.timeline {
  position: relative;
  height: 34px;
  margin: 12px 28px 0;
  border-top: 1px solid color-mix(in srgb, var(--muted), transparent 52%);
}

.timeline span,
.timeline b {
  position: absolute;
  top: -11px;
  transform: translateX(-50%);
  color: var(--purple);
}

.timeline b {
  top: 8px;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  height: 42px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

td:first-child {
  color: var(--green);
}

.news-panel {
  display: grid;
  gap: 16px;
}

.news-panel article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
}

.thumb {
  height: 74px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(123, 44, 255, 0.72), rgba(10, 16, 28, 0.08)),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.7), transparent 14%),
    linear-gradient(45deg, #294563, #101827);
}

.t2 { background: linear-gradient(135deg, #697f8f, #111827 64%, #6c31e6); }
.t3 { background: linear-gradient(135deg, #b11f45, #172036 62%, #7b2cff); }

.news-panel span {
  color: var(--purple);
  font-size: 11px;
  font-weight: 850;
}

.news-panel strong {
  display: block;
  margin: 5px 0;
  line-height: 1.3;
}

.news-panel p {
  color: var(--muted);
  font-size: 12px;
}

.collab-panel {
  background:
    radial-gradient(circle at 84% 8%, rgba(123, 44, 255, 0.24), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong), transparent 5%), color-mix(in srgb, var(--surface), transparent 4%));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0 18px;
}

.service-grid button {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
}

.service-grid span {
  display: block;
  color: var(--purple);
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 8px;
}

@media (min-width: 1320px) {
  .match-center {
    display: block;
  }
}

@media (max-width: 1350px) {
  .shell {
    grid-template-columns: 88px 1fr;
  }

  .brand span,
  .side-nav a:not(.active),
  .side-nav a span + text,
  .brand-card,
  .side-nav a {
    font-size: 0;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 58px;
  }

  .side-nav a {
    justify-content: center;
    padding: 0;
  }

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

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

@media (max-width: 920px) {
  .shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: auto;
    padding: 14px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .top-nav {
    width: 100%;
    gap: 12px;
    overflow: auto;
    height: 45px;
  }

  .top-nav a {
    height: 45px;
    white-space: nowrap;
  }

  .dashboard {
    padding: 12px;
  }

  .match-cards,
  .mini-schedule,
  .lower-grid,
  .right-column,
  .player-layout,
  .pitch-layout {
    grid-template-columns: 1fr;
  }

  .world-panel,
  .match-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-stats {
    margin: 20px 0 0;
  }

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