.fifa-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}

.fifa-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
  color: #fff;
}

.fifa-yt-btn--sm {
  padding: 5px 10px;
  font-size: 10px;
  gap: 5px;
}

.fifa-yt-btn-icon {
  width: 16px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}

.fifa-yt-btn-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  border-style: solid;
  border-width: 3px 0 3px 6px;
  border-color: transparent transparent transparent #ff0000;
}

.fifa-yt-btn--sm .fifa-yt-btn-icon {
  width: 14px;
  height: 10px;
}

.fifa-yt-btn--sm .fifa-yt-btn-icon::after {
  left: 4px;
  top: 1px;
  border-width: 3px 0 3px 5px;
}

/* Match page — dedicated Goals table */
.match-goals-card {
  margin-bottom: 20px;
}

.match-goals-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: -12px 0 16px;
}

.match-goals-empty {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.match-goals-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.match-goals-head,
.match-goals-row {
  display: grid;
  grid-template-columns: 52px 1fr minmax(88px, auto) minmax(120px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.match-goals-head {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.match-goals-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.match-goals-row:last-child {
  border-bottom: none;
}

.match-goals-row--clip {
  background: rgba(255, 0, 0, 0.03);
}

.match-goals-row--pending {
  background: rgba(239, 68, 68, 0.04);
}

.match-goals-min {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

.match-goals-scorer {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.35;
}

.match-goals-scorer .flag-img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
}

.match-goals-scorer .flag-missing {
  width: 20px;
  height: 15px;
  font-size: 9px;
}

.match-goals-scorer strong {
  font-weight: 800;
}

.match-goals-assist {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.match-goals-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.match-goals-score {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.match-goals-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.match-goals-row--highlights {
  background: rgba(251, 191, 36, 0.05);
}

.match-goals-banner {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: -8px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.match-goals-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.match-goals-highlights-note {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #fbbf24;
  white-space: nowrap;
}

.fifa-yt-btn--highlights {
  background: #c2410c;
}

.fifa-yt-btn--highlights:hover {
  background: #9a3412;
}

.match-goals-pending {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #ef4444;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

@media (max-width: 640px) {
  .match-goals-head {
    display: none;
  }

  .match-goals-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      'min scorer'
      'min score'
      'min action';
    gap: 6px 10px;
    padding: 12px 12px;
  }

  .match-goals-min {
    grid-area: min;
  }

  .match-goals-scorer {
    grid-area: scorer;
  }

  .match-goals-score {
    grid-area: score;
    font-size: 10px;
  }

  .match-goals-action {
    grid-area: action;
    justify-content: flex-start;
  }
}
