/* ClutchHub v186 — maç sonrası merkezi ve ClutchBot öncelik özeti */
.postmatch-center-backdrop {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(7, 18, 34, .64);
  backdrop-filter: blur(7px);
}

.postmatch-center {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  border: 1px solid #d6e1ec;
  border-radius: 22px 22px 6px 22px;
  background:
    linear-gradient(135deg, rgba(255, 83, 24, .065), transparent 38%),
    #fff;
  color: #12233d;
  box-shadow: 0 32px 90px rgba(4, 14, 30, .38);
  animation: postmatchCenterIn .22s ease-out;
}

.postmatch-center::before,
.postmatch-center::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.postmatch-center::before {
  top: -1px;
  left: -1px;
  border-top: 4px solid #ff4f16;
  border-left: 4px solid #ff4f16;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.postmatch-center::after {
  right: -1px;
  bottom: -1px;
  border-right: 4px solid #ff4f16;
  border-bottom: 4px solid #ff4f16;
}

.postmatch-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  background: #fff;
  color: #223550;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.postmatch-close:hover,
.postmatch-close:focus-visible {
  border-color: #ff7040;
  color: #e94511;
  outline: 0;
}

.postmatch-hero {
  padding: 28px 64px 22px 28px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  border-bottom: 1px solid #dce5ee;
}

.postmatch-game-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101d32;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 35, 62, .18);
}

.postmatch-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.postmatch-hero-copy {
  min-width: 0;
}

.postmatch-hero-copy > span {
  color: #f04a15;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
}

.postmatch-hero-copy h2 {
  margin: 4px 0 4px;
  color: #0d1d37;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.08;
}

.postmatch-hero-copy p {
  margin: 0;
  color: #708098;
  font-size: 11px;
}

.postmatch-body {
  padding: 20px 24px 24px;
}

.postmatch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.postmatch-summary article {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fbfdff;
  display: grid;
  align-content: center;
  gap: 3px;
}

.postmatch-summary small {
  color: #7b899e;
  font-size: 9px;
  font-weight: 800;
}

.postmatch-summary strong {
  color: #10213c;
  font-size: 16px;
}

.postmatch-players {
  margin-top: 17px;
}

.postmatch-section-title {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #172943;
  font-size: 11px;
  font-weight: 900;
}

.postmatch-section-title small {
  color: #7988a0;
  font-size: 9px;
}

.postmatch-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.postmatch-player {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e0e8f0;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}

.postmatch-player img,
.postmatch-player > span:first-child {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #e8edf3;
  color: #263a56;
  font-size: 10px;
  font-weight: 900;
}

.postmatch-player div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.postmatch-player strong,
.postmatch-player small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postmatch-player strong {
  font-size: 10px;
}

.postmatch-player small {
  color: #718099;
  font-size: 9px;
}

.postmatch-bot-note {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #ffd2c2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7f3;
}

.postmatch-bot-note img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.postmatch-bot-note div {
  display: grid;
  gap: 2px;
}

.postmatch-bot-note strong {
  color: #e84511;
  font-size: 10px;
}

.postmatch-bot-note span {
  color: #5e6f88;
  font-size: 10px;
  line-height: 1.4;
}

.postmatch-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.postmatch-action {
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #d4e0eb;
  border-radius: 10px;
  background: #fff;
  color: #172943;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.postmatch-action.primary {
  border-color: #ff541b;
  background: linear-gradient(135deg, #ff6429, #f0440e);
  color: #fff;
}

.postmatch-action:hover,
.postmatch-action:focus-visible {
  border-color: #ff7040;
  outline: 0;
  transform: translateY(-1px);
}

.postmatch-status {
  margin: 10px 0 0;
  color: #14734a;
  font-size: 9px;
  text-align: center;
}

.clutchbot-priority-card {
  margin: 0 0 18px;
  padding: 15px 17px;
  border: 1px solid #d8e3ed;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(255, 80, 24, .07), transparent 42%),
    #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  box-shadow: 0 10px 28px rgba(16, 38, 68, .07);
}

.clutchbot-priority-card > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.clutchbot-priority-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.clutchbot-priority-copy small {
  color: #f04a15;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .09em;
}

.clutchbot-priority-copy strong {
  color: #10213b;
  font-size: 13px;
}

.clutchbot-priority-copy span {
  color: #697991;
  font-size: 10px;
}

.clutchbot-priority-stats {
  display: flex;
  gap: 7px;
}

.clutchbot-priority-stats button {
  min-width: 76px;
  padding: 8px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  background: #fbfdff;
  color: #172943;
  display: grid;
  gap: 2px;
  text-align: center;
  font: inherit;
  cursor: pointer;
}

.clutchbot-priority-stats button:first-child {
  border-color: #ffc2ae;
  background: #fff4ef;
}

.clutchbot-priority-stats strong {
  color: #f04a15;
  font-size: 16px;
}

.clutchbot-priority-stats small {
  font-size: 8px;
  font-weight: 900;
}

@keyframes postmatchCenterIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .postmatch-center-backdrop {
    padding: 8px;
  }

  .postmatch-center {
    max-height: calc(100vh - 16px);
    border-radius: 17px 17px 4px 17px;
  }

  .postmatch-hero {
    padding: 22px 53px 18px 18px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .postmatch-game-icon {
    width: 52px;
    height: 52px;
  }

  .postmatch-body {
    padding: 16px;
  }

  .postmatch-player-list,
  .postmatch-actions {
    grid-template-columns: 1fr;
  }

  .clutchbot-priority-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .clutchbot-priority-card > img {
    width: 48px;
    height: 48px;
  }

  .clutchbot-priority-stats {
    grid-column: 1 / -1;
  }

  .clutchbot-priority-stats button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .postmatch-center {
    animation: none;
  }
}
