.matchcenter-error {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 117, 95, .38);
  border-radius: 11px;
  background: rgba(255, 117, 95, .08);
  color: #ff9b89;
  font-size: 13px;
  font-weight: 700;
}

.matchcenter-loading,
.matchcenter-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.matchcenter-loading i {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: matchcenter-spin .8s linear infinite;
}

.matchcenter-empty svg { color: var(--lime); }
.matchcenter-empty h2 { margin: 0; }
.matchcenter-empty p { margin: 0; color: var(--muted); }

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

.matchcenter-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}

.matchcenter-control > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.matchcenter-control > div:first-child span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.matchcenter-control > div:first-child strong {
  font-size: 22px;
}

.matchday-scroll {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.matchday-scroll button {
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.matchday-scroll button:hover,
.matchday-scroll button.active {
  border-color: var(--lime);
  background: var(--lime);
  color: #11181f;
}

.matchcenter-season-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.matchcenter-season-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.matchcenter-season-status.active i {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199, 246, 91, .08);
}

.matchcenter-grid {
  display: grid;
  grid-template-columns: minmax(460px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.fixture-board,
.match-detail {
  padding: 22px;
}

.matchcenter-panel-head,
.match-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.matchcenter-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.matchcenter-panel-head > b {
  color: var(--muted);
  font-size: 11px;
}

.matchcenter-fixtures {
  display: grid;
  gap: 9px;
}

.matchcenter-fixture {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(110px, .75fr) minmax(130px, 1fr) 64px minmax(130px, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.matchcenter-fixture:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--surface-3);
}

.matchcenter-fixture.selected {
  border-color: rgba(199, 246, 91, .65);
  box-shadow: inset 3px 0 0 var(--lime);
}

.matchcenter-fixture.own {
  background: linear-gradient(90deg, rgba(199, 246, 91, .06), var(--surface-2) 48%);
}

.matchcenter-fixture-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.matchcenter-fixture-meta time {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.matchcenter-fixture-meta span {
  width: max-content;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(199, 246, 91, .12);
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.matchcenter-club {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.matchcenter-club.away {
  justify-content: flex-end;
  text-align: right;
}

.matchcenter-club i,
.match-detail-score i {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #11181f;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.matchcenter-club strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchcenter-score {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 9px;
  background: #121a22;
  font-size: 18px;
}

.matchcenter-score em {
  color: var(--muted);
  font-style: normal;
}

.fixture-state {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(163, 175, 187, .09);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.fixture-state.finished {
  background: rgba(199, 246, 91, .1);
  color: var(--lime);
}

.fixture-state.released {
  background: rgba(91, 167, 255, .11);
  color: var(--blue);
}

.match-detail {
  position: sticky;
  top: 88px;
}

.match-detail-head strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.match-detail-head time {
  color: var(--muted);
  font-size: 11px;
}

.match-detail-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.match-detail-score > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-detail-score > div:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.match-detail-score > div strong {
  font-size: 13px;
}

.match-detail-score > b {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 34px;
}

.match-detail-score > b em {
  color: var(--muted);
  font-style: normal;
}

.match-stat-list {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.match-stat-list p {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  margin: 0 0 6px;
  text-align: center;
}

.match-stat-list p b:first-child { text-align: left; }
.match-stat-list p b:last-child { text-align: right; }
.match-stat-list p span { color: var(--muted); font-size: 10px; }

.match-stat-list > div > i {
  height: 3px;
  display: flex;
  gap: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-3);
}

.match-stat-list > div > i span { margin-left: auto; background: var(--lime); }
.match-stat-list > div > i em { background: var(--blue); }

.match-timeline {
  padding-top: 20px;
}

.match-timeline h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 32px 25px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 37px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}

.timeline-event time {
  transform: translateX(-16px);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.timeline-event > i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateX(-13px);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.timeline-event.goal > i { border-color: var(--lime); color: var(--lime); }
.timeline-event.yellow > i { color: var(--gold); }
.timeline-event.injury > i { color: var(--coral); }
.timeline-event p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.timeline-event.goal p { color: var(--text); font-weight: 700; }

.match-preview {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.match-preview > div {
  padding: 14px;
  border: 1px solid rgba(91, 167, 255, .2);
  border-radius: 11px;
  background: rgba(91, 167, 255, .06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.match-preview ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.simulate-button,
.match-reset-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #11181f;
  cursor: pointer;
  font-weight: 900;
}

.simulate-button:disabled,
.match-reset-button:disabled {
  opacity: .55;
  cursor: wait;
}

.match-reset-button {
  margin-top: 18px;
  border: 1px solid rgba(255, 117, 95, .28);
  background: rgba(255, 117, 95, .07);
  color: var(--coral);
}

.matchcenter-no-fixtures {
  padding: 48px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .matchcenter-grid { grid-template-columns: 1fr; }
  .match-detail { position: static; }
}

@media (max-width: 760px) {
  .matchcenter-control { grid-template-columns: 1fr; }
  .matchcenter-season-status { justify-self: start; }
  .matchcenter-fixture { grid-template-columns: 1fr 58px 1fr; }
  .matchcenter-fixture-meta,
  .fixture-state { grid-column: 1 / -1; }
  .matchcenter-fixture-meta { flex-direction: row; align-items: center; }
  .matchcenter-grid { display: block; }
  .match-detail { margin-top: 18px; }
}

@media (max-width: 520px) {
  .fixture-board,
  .match-detail { padding: 16px; }
  .matchcenter-club strong { font-size: 10px; }
  .match-detail-score { gap: 8px; }
  .match-detail-score > div,
  .match-detail-score > div:last-child {
    flex-direction: column;
    text-align: center;
  }
  .match-detail-score > b { font-size: 27px; }
}

.cf-fixture-admin-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.cf-fixture-run {
  border: 1px solid rgba(199, 246, 91, .28);
  border-radius: 10px;
  background: rgba(199, 246, 91, .08);
  color: #c7f65b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.cf-fixture-run:hover {
  background: #c7f65b;
  color: #11181f;
}

.cf-fixture-run.reset {
  border-color: rgba(255, 117, 95, .28);
  background: rgba(255, 117, 95, .07);
  color: #ff755f;
}

.cf-fixture-run.reset:hover {
  background: #ff755f;
  color: #11181f;
}

@media (max-width: 720px) {
  .cf-fixture-admin-wrap { grid-template-columns: 1fr; }
  .cf-fixture-run { min-height: 38px; }
}
