/* Single Match Block — Retnews theme style (light card, orange accent) */
:root {
  --retnews-match-primary: var(--primary, #ff8200);
  --retnews-match-bg: #fff;
  --retnews-match-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --retnews-match-border: #e9ecef;
  --retnews-match-muted: #6c757d;
}

.wp-block-retnews-single-match-block .retnews-single-match-wrapper {
  padding: 1.5rem 0;
}

.wp-block-retnews-single-match-block .retnews-single-match-block {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__container {
  position: relative;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__loading,
.wp-block-retnews-single-match-block .retnews-single-match-block__error {
  text-align: center;
  padding: 1.5rem;
  color: #333;
  font-size: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--retnews-match-border);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__match {
  position: relative;
  background: var(--retnews-match-bg);
  border: 1px solid var(--retnews-match-border);
  border-radius: 12px;
  box-shadow: var(--retnews-match-card-shadow);
  padding: 1.5rem 1.25rem;
  overflow: hidden;
}

/* Header */
.wp-block-retnews-single-match-block .retnews-single-match-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--retnews-match-border);
  position: relative;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--retnews-match-primary);
  border-radius: 2px;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(255, 130, 0, 0.12);
  border: 1px solid rgba(255, 130, 0, 0.3);
  color: var(--retnews-match-primary);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__league-title {
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__trophy-icon,
.wp-block-retnews-single-match-block .retnews-single-match-block__chevron-icon {
  color: var(--retnews-match-primary);
  font-size: 1rem;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__chevron-icon {
  color: var(--retnews-match-muted);
}

/* Main counter */
.wp-block-retnews-single-match-block .retnews-single-match-block__main {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid var(--retnews-match-border);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__match-time {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__counter {
  margin: 0.5rem 0 0;
}

.wp-block-retnews-single-match-block .counter__list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
  direction: ltr;
  padding: 0;
  margin: 0;
  list-style: none;
}

.wp-block-retnews-single-match-block .counter.retnews-single-match-block__counter .counter__list {
  margin: 0;
}

.wp-block-retnews-single-match-block .counter__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 56px;
  padding: 0 0.4rem;
}

.wp-block-retnews-single-match-block .counter__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 1px;
  background: var(--retnews-match-border);
  border-radius: 1px;
}

.wp-block-retnews-single-match-block .counter-item__number {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-block-retnews-single-match-block .counter-item__text {
  font-size: 0.7rem;
  color: var(--retnews-match-muted);
  text-transform: lowercase;
  font-weight: 500;
}

/* Teams */
.wp-block-retnews-single-match-block .retnews-single-match-block__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
  padding: 0.75rem 0;
  flex-wrap: nowrap;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 180px;
  min-width: 0;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-name {
  margin: 0.5rem 0 0;
  text-align: center;
  order: 2;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-name span {
  display: block;
  color: #333;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: color 0.2s;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team:hover .retnews-single-match-block__team-name span {
  color: var(--retnews-match-primary);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-picture {
  width: 3rem;
  height: 3rem;
  order: 1;
  background: #f8f9fa;
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--retnews-match-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-picture:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__team-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__match-date {
  color: #333;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  background: #f0f0f0;
  border-radius: 10px;
  border: 1px solid var(--retnews-match-border);
  white-space: nowrap;
}

/* Finished match */
.wp-block-retnews-single-match-block .retnews-single-match-block__finished {
  text-align: center;
  margin: 1rem 0;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__score-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  min-width: 1.2em;
  text-align: center;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__score-separator {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--retnews-match-muted);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__finished-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--retnews-match-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Probabilities */
.wp-block-retnews-single-match-block .retnews-single-match-block__probabilities {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid var(--retnews-match-border);
  text-align: center;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__probabilities-title {
  color: var(--retnews-match-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__probabilities-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__prob-item {
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--retnews-match-border);
  transition: all 0.2s;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__prob-item:hover {
  border-color: var(--retnews-match-primary);
  color: var(--retnews-match-primary);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__prob-item--victory {
  color: #2e7d32;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__prob-item--draw {
  color: var(--retnews-match-muted);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__prob-item--lose {
  color: #333;
}

/* Actions — theme primary button */
.wp-block-retnews-single-match-block .retnews-single-match-block__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__actions a {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

/* Buttons: same style as topbar APK (.btn.btn-sm.topbar-apk-btn) */
.wp-block-retnews-single-match-block .retnews-single-match-block .risk-free-bet-button {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  color: #fff !important;
  background-color: #ff8200 !important;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.wp-block-retnews-single-match-block .retnews-single-match-block .risk-free-bet-button::before {
  display: none;
}

.wp-block-retnews-single-match-block .retnews-single-match-block .risk-free-bet-button:hover {
  background-color: #e67500 !important;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

.wp-block-retnews-single-match-block .retnews-single-match-block .risk-free-bet-button__container {
  color: #fff !important;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__btn {
  width: 100%;
  max-width: 14em;
  margin: 0;
}

/* Results link */
.wp-block-retnews-single-match-block .retnews-single-match-block__results {
  text-align: center;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__results-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--retnews-match-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s, opacity 0.2s;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__results-link:hover {
  color: #e67500;
  opacity: 0.9;
}

.wp-block-retnews-single-match-block .retnews-single-match-block__results-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--retnews-match-card-shadow);
}

.wp-block-retnews-single-match-block .retnews-single-match-block__results-text {
  display: block;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 768px) {
  .wp-block-retnews-single-match-block .retnews-single-match-block__match {
    padding: 1rem;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__teams {
    gap: 0.4rem;
    padding: 0.5rem 0;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__match-date {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__team {
    max-width: none;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__team-picture {
    width: 2.5rem;
    height: 2.5rem;
  }

  .counter-item__number {
    font-size: 1.6rem;
  }

  .counter-item__text {
    font-size: 0.6rem;
  }

  .counter__item {
    min-width: 48px;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__probabilities {
    padding: 0.75rem;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__actions {
    flex-direction: column;
    align-items: center;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__btn {
    width: 100%;
    max-width: 14em;
  }
}

@media (max-width: 480px) {
  .wp-block-retnews-single-match-block .retnews-single-match-block__match {
    padding: 0.75rem;
  }

  .counter-item__number {
    font-size: 1.4rem;
  }

  .counter__item {
    min-width: 42px;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__team-picture {
    width: 2rem;
    height: 2rem;
  }

  .wp-block-retnews-single-match-block .retnews-single-match-block__team-name span {
    font-size: 0.8rem;
  }
}

/* Editor */
.wp-block-retnews-single-match-block .retnews-single-match-block-editor {
  padding: 1rem;
  border: 1px dashed #dee2e6;
  background: #f8f9fc;
  border-radius: 8px;
}

.wp-block-retnews-single-match-block .retnews-single-match-block-preview {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
