/* Ren24 Sports UI 2.0.1 match centre — isolated stylesheet */
body.single-joomsport_match .entry-header,
body.single-joomsport_match .post-title,
body.single-joomsport_match .entry-title,
body.single-joomsport_match .bs-blog-meta,
body.single-joomsport_match .post-meta,
body.single-joomsport_match .author-details,
body.single-joomsport_match .single-post-meta,
body.single-joomsport_match .post-share {
  display: none !important;
}

body.single-joomsport_match .entry-content,
body.single-joomsport_match .single-content,
body.single-joomsport_match article {
  max-width: none !important;
}

.ren24-match-centre {
  --r24-dark: var(--ren24-dark, #071827);
  --r24-accent: var(--ren24-accent, #19b5fe);
  --r24-line: #d8e3eb;
  --r24-text: #102133;
  width: 100%;
  max-width: 1160px;
  margin: 22px auto;
  color: var(--r24-text);
}

.ren24-match-hero {
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--r24-dark), #12344c);
  color: #fff;
  box-shadow: 0 18px 45px rgba(7, 24, 39, .18);
}

.ren24-match-competition {
  text-align: center;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
}

.ren24-match-status {
  width: max-content;
  margin: 12px auto 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--r24-accent);
  color: #071827;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ren24-match-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 48px);
}

.ren24-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.ren24-match-team h2 {
  margin: 14px 0 0 !important;
  color: #fff !important;
  font-size: clamp(18px, 3vw, 30px) !important;
  line-height: 1.15 !important;
}

.ren24-match-logo {
  display: grid;
  place-items: center;
  width: clamp(82px, 12vw, 132px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .22);
  color: #071827;
  font-size: 26px;
  font-weight: 900;
  box-sizing: border-box;
}

.ren24-match-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.ren24-match-centre-value {
  min-width: 110px;
  text-align: center;
}

.ren24-match-centre-value strong {
  display: block;
  color: #fff;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}

.ren24-match-centre-value strong span { margin: 0 .12em; opacity: .65; }
.ren24-match-centre-value > span {
  display: block;
  max-width: 220px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ren24-match-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.ren24-match-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
}
.ren24-match-meta b { color: var(--r24-accent); }

.ren24-match-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 18px 0;
  padding: 7px;
  border-radius: 16px;
  background: var(--r24-dark);
}
.ren24-match-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 11px;
  color: #d8e2ea !important;
  font-weight: 800;
  text-decoration: none !important;
}
.ren24-match-tabs a.is-active { background: var(--r24-accent); color: #071827 !important; }

.ren24-match-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.ren24-match-fact {
  padding: 18px;
  border: 1px solid var(--r24-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.ren24-match-fact span {
  display: block;
  color: #657786;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ren24-match-fact strong { display: block; margin-top: 5px; font-size: 18px; }

.ren24-match-details {
  overflow: hidden;
  border: 1px solid var(--r24-line);
  border-radius: 22px;
  background: #fff;
}
.ren24-match-details > header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--r24-line);
  background: #eaf7fd;
}
.ren24-match-details > header h2 { margin: 0 !important; font-size: 22px !important; }
.ren24-match-details__body { padding: 18px; }

/* Remove only JoomSport's duplicate top scoreboard. Keep tabs, H2H and all other data. */
.ren24-original-joomsport-match #jsMatchViewID > .jsMatchResultSection {
  display: none !important;
}
.ren24-original-joomsport-match #jsMatchViewID,
.ren24-original-joomsport-match .jsMatchContentSection {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}
.ren24-original-joomsport-match .jsMatchContentSection {
  display: block !important;
}
.ren24-original-joomsport-match img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
  .ren24-match-centre { margin: 12px 0; }
  .ren24-match-hero { padding: 20px 12px; border-radius: 20px; }
  .ren24-match-scoreboard { grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr); gap: 7px; }
  .ren24-match-logo { width: 66px; padding: 7px; border-radius: 14px; }
  .ren24-match-team h2 { margin-top: 8px !important; font-size: 14px !important; }
  .ren24-match-centre-value { min-width: 0; }
  .ren24-match-centre-value strong { font-size: 24px; }
  .ren24-match-centre-value > span { font-size: 9px; line-height: 1.25; }
  .ren24-match-meta { margin-top: 18px; }
  .ren24-match-meta span { padding: 6px 8px; font-size: 10px; }
  .ren24-match-overview { grid-template-columns: 1fr; gap: 8px; }
  .ren24-match-fact { padding: 12px; }
  .ren24-match-details__body { padding: 10px; }
}

/* v2.0.2 — prevent duplicated JoomSport match information */
.ren24-original-joomsport-match .jsMatchResultSection,
.ren24-original-joomsport-match #jsMatchViewID > .jsMatchResultSection,
.ren24-original-joomsport-match .jsMatchHeader,
.ren24-original-joomsport-match .jsMatchResults {
  display: none !important;
}

/* JoomSport keeps multiple analytics panes in the HTML. Only the selected pane
   should be visible, otherwise previous meetings and totals appear twice. */
.ren24-original-joomsport-match .tab-content > .tab-pane,
.ren24-original-joomsport-match .tab-content > [role="tabpanel"],
.ren24-original-joomsport-match .jsTabContent > .jsTabPane {
  display: none !important;
}
.ren24-original-joomsport-match .tab-content > .active,
.ren24-original-joomsport-match .tab-content > .show,
.ren24-original-joomsport-match .tab-content > [aria-hidden="false"],
.ren24-original-joomsport-match .jsTabContent > .jsTabActive {
  display: block !important;
}

/* Avoid repeating the same match title and author block from the Newsup post shell. */
body.ren24-match-page .entry-header,
body.ren24-match-page .bs-blog-meta,
body.ren24-match-page .post-meta,
body.ren24-match-page .author-details,
body.ren24-match-page .single-post-meta,
body.ren24-match-page .post-share,
body.ren24-match-page .single-post-share {
  display: none !important;
}
