/* Maç merkezi — site renkleri (--m-*) */

.mac-merkezi-panel {
  background: var(--m-elev-2, #f0eee9);
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: var(--m-radius, 14px);
  padding: 16px 18px 18px;
  box-shadow: var(--m-shadow, 0 8px 24px rgba(20, 20, 20, .06));
}

.mac-merkezi-alt {
  margin: -4px 0 14px;
  color: var(--m-dim, #5c5c60);
  font-size: 13px;
}

/* Görünüm: maçlar / puan */
.mac-merkezi-gorunumler {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}
.mac-merkezi-gorunum {
  appearance: none;
  background: var(--m-elev, #fff);
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 8px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--m-dim, #5c5c60);
  cursor: pointer;
}
.mac-merkezi-gorunum:hover { color: var(--m-text, #1c1c1e); }
.mac-merkezi-gorunum.aktif {
  background: var(--m-gradient, linear-gradient(135deg, #cb0f0f 0%, #b8202c 60%, #8a1620 100%));
  border-color: transparent;
  color: #fff;
}

.mm-pt-baslik {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--m-text, #1c1c1e);
  margin: 0 0 10px;
}
.mm-pt-sar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 10px;
  background: var(--m-elev, #fff);
}
.mm-pt-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 480px;
}
.mm-pt-tablo th,
.mm-pt-tablo td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--m-border, #e4e1da);
  color: var(--m-text, #1c1c1e);
}
.mm-pt-tablo th {
  font-size: 11px;
  font-weight: 800;
  color: var(--m-faint, #9a978f);
  background: var(--m-elev-2, #f0eee9);
  position: sticky;
  top: 0;
}
.mm-pt-tablo td.mm-pt-ad,
.mm-pt-tablo th:nth-child(2) {
  text-align: left;
}
.mm-pt-s { color: var(--m-faint, #9a978f); font-weight: 700; width: 36px; }
.mm-pt-p { font-weight: 800; }
.mm-pt-grup td {
  text-align: left;
  font-weight: 800;
  font-size: 11.5px;
  color: var(--m-dim, #5c5c60);
  background: var(--m-elev-2, #f0eee9);
}

.mm-ist-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.mm-ist-blok {
  background: var(--m-elev, #fff);
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 10px;
  padding: 10px 12px 12px;
}
.mm-ist-baslik {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--m-dim, #5c5c60);
  border-bottom: 1px solid var(--m-border, #e4e1da);
  padding-bottom: 6px;
  text-transform: lowercase;
}
.mm-ist-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-ist-satir {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--m-border, #e4e1da);
  font-size: 12.5px;
}
.mm-ist-satir:last-child { border-bottom: 0; }
.mm-ist-s {
  color: var(--m-faint, #9a978f);
  font-weight: 700;
  text-align: center;
}
.mm-ist-kim {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.mm-ist-oyuncu {
  font-weight: 700;
  color: var(--m-text, #1c1c1e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-ist-takim {
  font-size: 11px;
  color: var(--m-faint, #9a978f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-ist-deger {
  font-weight: 800;
  color: var(--m-gold, #b8830a);
  font-variant-numeric: tabular-nums;
}

.mm-fx-hafta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 12px;
}
.mm-fx-hafta-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 8px;
  background: var(--m-elev, #fff);
  color: var(--m-text, #1c1c1e);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mm-fx-hafta-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.mm-fx-hafta-etiket {
  min-width: 110px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--m-dim, #5c5c60);
}
.mm-fx-meta {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--m-faint, #9a978f);
}
.mm-fx-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 10px;
  overflow: hidden;
  background: var(--m-elev, #fff);
}
.mm-fx-mac {
  display: grid;
  grid-template-columns: 72px 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--m-border, #e4e1da);
  font-size: 13px;
}
.mm-fx-mac:last-child { border-bottom: 0; }
.mm-fx-mac.canli { background: rgba(184, 131, 10, 0.06); }
.mm-fx-oturum {
  display: block;
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--m-dim, #5c5c60);
  text-align: center;
}
.mm-fx-zaman {
  color: var(--m-faint, #9a978f);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.mm-fx-ev { text-align: right; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-fx-dep { text-align: left; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-fx-skor {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: center;
  color: var(--m-text, #1c1c1e);
}
.mm-fx-durum {
  font-size: 11px;
  color: var(--m-faint, #9a978f);
  min-width: 36px;
  text-align: right;
}
.mm-fx-durum.canli { color: var(--m-gold, #b8830a); font-weight: 800; }

@media (max-width: 560px) {
  .mm-fx-mac {
    grid-template-columns: 56px 1fr auto 1fr;
    gap: 6px;
  }
  .mm-fx-durum {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }
}

.mac-merkezi-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* Canlı / Bugün — sidebar sekmeleri gibi */
.mac-merkezi-sekmeler {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--m-border, #e4e1da);
}
.mac-merkezi-sekme {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--m-dim, #5c5c60);
  cursor: pointer;
}
.mac-merkezi-sekme:hover {
  color: var(--m-text, #1c1c1e);
}
.mac-merkezi-sekme.aktif {
  color: var(--m-red, #cb0f0f);
  border-bottom-color: var(--m-red, #cb0f0f);
}
.mac-merkezi-rozet {
  display: inline-block;
  min-width: 1.15em;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--m-red, #cb0f0f);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  vertical-align: 1px;
}

/* Spor + gün — lig-sekme dili */
.mac-merkezi-sporlar,
.mac-merkezi-gun-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.mac-merkezi-spor,
.mac-merkezi-gun-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  background: var(--m-elev, #fff);
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 8px;
  padding: 6px 11px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m-dim, #5c5c60);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.mac-merkezi-spor:hover,
.mac-merkezi-gun-btn:hover {
  color: var(--m-text, #1c1c1e);
  border-color: var(--m-hover-border, #d8d4c9);
  text-decoration: none;
}
.mac-merkezi-spor.aktif {
  background: var(--m-gradient, linear-gradient(135deg, #cb0f0f 0%, #b8202c 60%, #8a1620 100%));
  border-color: transparent;
  color: #fff;
}
.mac-merkezi-gun-nav {
  margin-left: auto;
  position: relative;
}
.mac-merkezi-gun-nav[hidden],
.mac-merkezi-lig-satir[hidden],
.mac-merkezi-liste[hidden],
.mac-merkezi-puan[hidden],
.mac-merkezi-fav-yonet[hidden],
.mac-merkezi-sekme[hidden] {
  display: none !important;
}
.mac-merkezi-gun-tarih {
  min-width: 72px;
  justify-content: center;
}
.mac-merkezi-gun-input {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.mac-merkezi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.mac-merkezi-lig-satir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mac-merkezi-lig-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--m-dim, #5c5c60);
}
.mac-merkezi-lig {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 100%;
  appearance: none;
  background-color: var(--m-elev, #fff);
  border: 1px solid var(--m-border, #e4e1da);
  border-radius: 8px;
  padding: 7px 32px 7px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--m-text, #1c1c1e);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a978f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.mac-merkezi-lig:focus {
  outline: none;
  border-color: var(--m-red, #cb0f0f);
}

.mac-merkezi-durum {
  font-size: 12.5px;
  color: var(--m-faint, #9a978f);
  margin: 0 0 10px;
}

.mac-merkezi-fav-yonet {
  margin: 0 0 12px;
}
.mm-fav-bos {
  margin: 0;
  font-size: 13px;
  color: var(--m-dim, #5c5c60);
}
.mm-fav-bos a { color: var(--m-gold, #b8830a); }
.mm-fav-liste { display: flex; flex-direction: column; gap: 8px; }
.mm-fav-grup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mm-fav-grup-baslik {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--m-faint, #9a978f);
  margin-right: 4px;
  text-transform: lowercase;
}
.mm-fav-chip {
  appearance: none;
  border: 1px solid var(--m-border, #e4e1da);
  background: var(--m-elev, #fff);
  color: var(--m-dim, #5c5c60);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mm-fav-chip.aktif {
  border-color: rgba(203, 15, 15, .35);
  color: var(--m-red, #cb0f0f);
  background: var(--m-elev, #fff);
}

.mm-fav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--m-faint, #9a978f);
  padding: 0 4px 0 0;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.mm-fav-btn:hover { color: var(--m-gold, #b8830a); }
.mm-fav-btn.aktif { color: var(--m-gold, #b8830a); }

.mm-grup-ad { flex: 1; min-width: 0; }
.mm-takim-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
}
.mm-takim-ad {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-mac-link {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 12px;
  color: var(--m-faint, #9a978f);
  text-decoration: none;
  padding: 0 4px;
}
.mm-mac-link:hover { color: var(--m-gold, #b8830a); }

/* Lig grupları */
.mm-grup {
  margin: 0 0 16px;
}
.mm-grup:last-child {
  margin-bottom: 0;
}
.mm-grup-baslik {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 2px;
  padding: 4px 2px 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--m-dim, #5c5c60);
  border-bottom: 1px solid var(--m-border, #e4e1da);
  text-transform: none;
}

/* Maç satırı — lig-mac */
.mm-maclar {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-mac {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 56px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--m-border, #e4e1da);
  color: inherit;
  text-decoration: none;
  background: transparent;
}
.mm-mac:last-child {
  border-bottom: 0;
}
a.mm-mac:hover {
  background: var(--m-elev, #fff);
  border-radius: 8px;
  text-decoration: none;
}
.mm-zaman {
  font-size: 12px;
  font-weight: 700;
  color: var(--m-faint, #9a978f);
  font-variant-numeric: tabular-nums;
}
.mm-mac.mm-canli .mm-zaman {
  color: var(--m-red, #cb0f0f);
}
.mm-ev,
.mm-dep {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--m-text, #1c1c1e);
}
.mm-ev { text-align: right; }
.mm-dep { text-align: left; }
.mm-skor {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--m-text, #1c1c1e);
  letter-spacing: .02em;
}
.mm-mac.mm-canli .mm-skor {
  color: var(--m-red, #cb0f0f);
}
.mm-durum {
  font-size: 11.5px;
  color: var(--m-faint, #9a978f);
  text-align: right;
  white-space: nowrap;
  min-width: 48px;
}
.mm-durum.canli {
  color: var(--m-red, #cb0f0f);
  font-weight: 700;
}
.mm-durum.canli::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--m-red, #cb0f0f);
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(203, 15, 15, .45);
  animation: mm-pulse 1.6s ease-out infinite;
}
@keyframes mm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(203, 15, 15, .45); }
  70% { box-shadow: 0 0 0 6px rgba(203, 15, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 15, 15, 0); }
}

@media (max-width: 640px) {
  .mac-merkezi-panel { padding: 12px 12px 14px; }
  .mac-merkezi-gun-nav { margin-left: 0; }
  .mac-merkezi-lig { flex-basis: 100%; }
  .mm-mac {
    grid-template-columns: 1fr 54px 1fr;
    grid-template-areas:
      "zaman zaman durum"
      "ev skor dep";
    gap: 4px 8px;
    padding: 10px 2px;
  }
  .mm-zaman { grid-area: zaman; }
  .mm-ev { grid-area: ev; }
  .mm-skor { grid-area: skor; }
  .mm-dep { grid-area: dep; }
  .mm-durum { grid-area: durum; }
}
