.pro-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.pro-modal.open {
  display: block;
}

.pro-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(3px);
}

.pro-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 52px);
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15,23,42,.30);
  overflow: hidden;
}

.pro-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}

.pro-match-content {
  max-height: calc(100vh - 52px);
  overflow: auto;
  padding: 28px;
}

.pro-loading,
.pro-error,
.pro-empty {
  padding: 42px 20px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.pro-error {
  color: #ef4444;
}

.pro-head {
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 46px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.pro-team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  color: #0f172a;
}

.pro-team.right {
  justify-content: flex-end;
}

.pro-flag {
  font-size: 28px;
}

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

.pro-score strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  color: #0f172a;
  letter-spacing: 1px;
}

.pro-score span {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-weight: 800;
  font-size: 13px;
}

.pro-subinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
}

.pro-subinfo span {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
}

.pro-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 16px;
  margin: 4px 0 18px;
}

.pro-tab {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  font-weight: 900;
  cursor: pointer;
}

.pro-tab.active {
  background: #16c784;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(22,199,132,.24);
}

.pro-tab-body {
  display: none;
}

.pro-tab-body.active {
  display: block;
}

.pro-events {
  display: grid;
  gap: 10px;
}

.pro-event {
  display: grid;
  grid-template-columns: 58px 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.pro-minute {
  color: #0f172a;
  font-weight: 900;
}

.pro-event-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}

.pro-event p {
  margin: 4px 0;
  color: #334155;
  font-weight: 700;
}

.pro-event small {
  color: #64748b;
}

.pro-stat-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.pro-stat-head b:first-child {
  text-align: left;
}

.pro-stat-head b:last-child {
  text-align: right;
}

.pro-stats {
  display: grid;
  gap: 8px;
}

.pro-stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.pro-stat-row span {
  font-weight: 900;
  color: #0f172a;
}

.pro-stat-row span:last-child {
  text-align: right;
}

.pro-stat-row b {
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.pro-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pro-lineup-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.pro-lineup-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.pro-lineup-card h4 {
  margin: 16px 0 8px;
  color: #0f172a;
}

.pro-formation {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.pro-player-grid {
  display: grid;
  gap: 6px;
}

.pro-player-grid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
}

.pro-player-grid em {
  font-style: normal;
  color: #94a3b8;
}

.pro-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pro-info-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.pro-info-grid b {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
  font-size: 13px;
}

.pro-info-grid span {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 768px) {
  .pro-match-content {
    padding: 20px 14px;
  }

  .pro-head {
    grid-template-columns: 1fr;
    padding: 10px 34px 18px;
    text-align: center;
  }

  .pro-team,
  .pro-team.right {
    justify-content: center;
  }

  .pro-score strong {
    font-size: 34px;
  }

  .pro-tabs {
    overflow-x: auto;
  }

  .pro-tab {
    min-width: 92px;
  }

  .pro-event {
    grid-template-columns: 46px 36px 1fr;
  }

  .pro-stat-row {
    grid-template-columns: 72px 1fr 72px;
  }

  .pro-lineups,
  .pro-info-grid {
    grid-template-columns: 1fr;
  }
}

.pro-real-flag {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08);
  font-size: 26px;
}

.pro-team-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pro-team-text small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}

.pro-team-text b {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.pro-event b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
}
