/* معلومات اللقاء — متناسق مع match-league-rank / match-board */

.match-info-block .section-title {
  margin-bottom: 10px;
}

.match-info-block .match-info-card {
  padding: 2px 12px;
  border-radius: var(--mb-radius, 8px);
  background: var(--mb-row-bg, #191d2d);
  border: 1px solid var(--mb-row-line, rgba(255, 255, 255, 0.05));
  overflow: hidden;
}

.match-info-block .match-info-item,
.match-info-block .match-info-collapse .collapse-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 2px;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--mb-row-line, rgba(255, 255, 255, 0.06));
  font-size: 13px;
  font-weight: 600;
  color: var(--mb-text-muted, #b8bfd4);
}

.match-info-block .match-info-card > .match-info-item:last-child,
.match-info-block .match-info-card > .match-info-collapse:last-child .collapse-header,
.match-info-block .match-info-card > .match-info-collapse .collapse-content .match-info-item.sub:last-child {
  border-bottom: 0;
}

.match-info-block .match-info-item .title,
.match-info-block .match-info-collapse .collapse-header .title {
  flex: 0 0 132px;
  max-width: 40%;
  width: auto !important;
  margin: 0;
  color: var(--mb-text-dim, #707488) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.match-info-block .match-info-item .content,
.match-info-block .match-info-collapse .collapse-header .content {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--mb-text-strong, #fff);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
}

.match-info-block .match-info-item .content a,
.match-info-block .match-info-collapse .collapse-header .content a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.match-info-block .match-info-item .content a:hover,
.match-info-block .match-info-collapse .collapse-header .content a:hover,
.match-info-block .match-info-item.sub .title a:hover {
  color: var(--mb-accent, #39dbbf);
}

.match-info-block .match-info-item.match-info-referees {
  align-items: flex-start;
}

.match-info-block .match-info-referees .match-info-referees__content {
  flex: 1 1 auto;
  min-width: 0;
}

.match-info-block .match-info-referees__more {
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(57, 219, 191, 0.1);
  border: 1px solid rgba(57, 219, 191, 0.24);
}

.match-info-block .match-info-referees__more:hover {
  background: rgba(57, 219, 191, 0.16);
  color: var(--mb-accent, #39dbbf);
}

.match-info-block .match-info-referees__crew {
  margin-top: 8px;
  padding-top: 8px;
}

/* قسم القنوات المتعددة */
.match-info-block--commentators .match-info-collapse {
  margin: 0;
}

.match-info-block .match-info-collapse .collapse-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-inline-end: 28px;
  transition: background-color 0.15s ease;
}

.match-info-block .match-info-collapse .collapse-header::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid var(--mb-text-dim, #707488);
  border-bottom: 2px solid var(--mb-text-dim, #707488);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.match-info-block .match-info-collapse .collapse-header.active::after {
  transform: translateY(-35%) rotate(-135deg);
  border-color: var(--mb-accent, #39dbbf);
}

.match-info-block .match-info-collapse .collapse-header:hover .title,
.match-info-block .match-info-collapse .collapse-header.active .title {
  color: var(--mb-accent, #39dbbf) !important;
}

.match-info-block .match-info-collapse .collapse-content {
  padding: 0 !important;
}

.match-info-block .match-info-item.sub {
  padding-inline-start: 8px;
}

.match-info-block .match-info-item.sub .title {
  color: var(--mb-text-muted, #9aa0b5) !important;
}

/* الوضع الفاتح */
html.light:not(.dark) .match-info-block .match-info-card {
  background: #f8f9fc;
  border-color: #e3e5f0;
}

html.light:not(.dark) .match-info-block .match-info-item,
html.light:not(.dark) .match-info-block .match-info-collapse .collapse-header {
  border-bottom-color: #e8ebf3;
  color: #5c6478;
}

html.light:not(.dark) .match-info-block .match-info-item .title,
html.light:not(.dark) .match-info-block .match-info-collapse .collapse-header .title {
  color: #7a8299 !important;
}

html.light:not(.dark) .match-info-block .match-info-item .content,
html.light:not(.dark) .match-info-block .match-info-collapse .collapse-header .content {
  color: #1a1f33;
}

html.light:not(.dark) .match-info-block .match-info-item .content a:hover,
html.light:not(.dark) .match-info-block .match-info-collapse .collapse-header .content a:hover,
html.light:not(.dark) .match-info-block .match-info-item.sub .title a:hover {
  color: #10816e;
}

html.light:not(.dark) .match-info-block .match-info-referees__more {
  color: #10816e;
  background: rgba(22, 174, 148, 0.1);
  border-color: rgba(22, 174, 148, 0.24);
}

html.light:not(.dark) .match-info-block .match-info-referees__more:hover {
  color: #10816e;
  background: rgba(22, 174, 148, 0.16);
}

@media (max-width: 575px) {
  .match-info-block .match-info-card {
    padding-inline: 10px;
  }

  .match-info-block .match-info-item,
  .match-info-block .match-info-collapse .collapse-header {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 2px;
  }

  .match-info-block .match-info-item .title,
  .match-info-block .match-info-collapse .collapse-header .title {
    flex: 0 0 100%;
    max-width: 100%;
    font-size: 11px;
  }

  .match-info-block .match-info-item .content,
  .match-info-block .match-info-collapse .collapse-header .content {
    flex: 0 0 100%;
    font-size: 12px;
  }
}
