/* Match App UI — tabs + Dinamika / Notikumi / Statistika / Zonu */

.match-app {
  --ma-lime: #acdd00;
  --ma-lime-soft: #c6ef5a;
  --ma-navy: #060b1b;
  --ma-navy-mid: #1d2d44;
  --ma-navy-soft: #3d4f66;
  --ma-orange: #f27121;
  --ma-pink: #e85a8b;
  --ma-pink-soft: rgba(232, 90, 139, 0.45);
  --ma-gold: #e8b84a;
  --ma-blue: #5b8def;
  --ma-muted: #9ca3af;
  --ma-text: #0a0a0a;
  --ma-line: rgba(0, 0, 0, 0.06);
  --ma-bg: #ffffff;
  --ma-font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --ma-font-body: Montserrat, Inter, system-ui, sans-serif;
  margin-top: 1.25rem;
  font-family: var(--ma-font-body);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  overflow: visible;
}

/* —— Tabs (profile / pdash style) —— */
.match-app-tabs {
  display: flex;
  gap: 0.15rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--ma-line);
  background: var(--ma-bg);
  scrollbar-width: none;
  margin-bottom: 0.85rem;
  padding: 0.55rem 1rem 0;
  list-style: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.04);
  border: 1px solid var(--ma-line);
  border-bottom: 1px solid var(--ma-line);
}
.match-app-tabs::-webkit-scrollbar { display: none; }
.match-app-tabs .nav-item { list-style: none; }
.match-app-tabs .nav-link {
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ma-muted) !important;
  font-family: var(--ma-font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.1rem 0.7rem !important;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}
.match-app-tabs .nav-link:hover {
  color: var(--ma-text) !important;
}
.match-app-tabs .nav-link.active {
  color: var(--ma-text) !important;
}
.match-app-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ma-lime);
  border-radius: 0;
}
.match-app-pane {
  background: transparent;
  padding: 0;
}
@media (min-width: 768px) {
  .match-app-pane { padding: 0; }
}

.match-app-title {
  font-family: var(--ma-font-display);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-text);
  margin: 0 0 1.15rem;
  line-height: 0.95;
}
.match-app-title--sm {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  margin-bottom: 0.25rem;
}
.match-app-subtitle {
  color: var(--ma-muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

/* —— Overview layout (profile-style blocks) —— */
.ma-overview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ma-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 767.98px) {
  .ma-overview__grid { grid-template-columns: 1fr; }
}

.ma-block {
  background: #fff;
  border: 1px solid var(--ma-line);
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ma-block__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem 0.9rem;
  border-bottom: 1px solid var(--ma-line);
  background: #fff;
  flex-shrink: 0;
}
.ma-block__icon {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: var(--ma-text);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: none;
  border: 0;
}
.ma-block__icon i {
  color: inherit;
}
.ma-block__head-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.ma-block__tag {
  font-family: var(--ma-font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8bb100;
}
.ma-block__title {
  margin: 0;
  font-family: var(--ma-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-text);
  line-height: 1.05;
}
.ma-block__sub {
  font-family: var(--ma-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ma-muted);
}
.ma-block__legend {
  margin-left: auto;
}
.ma-block__body {
  padding: 1rem;
  flex: 1 1 auto;
  min-height: 0;
}
.ma-block__body--flush { padding: 0; }
.ma-block__body--scroll,
.ma-block__body--fill {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ma-block--statistika .ma-block__body,
.ma-block--notikumi .ma-block__body {
  max-height: none;
}
.ma-block--dinamika {
  height: auto;
}
.ma-block--dinamika .ma-block__body { padding-top: 0.75rem; flex: 0 0 auto; }

.ma-dinamika-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  color: var(--ma-muted);
  font-size: 0.85rem;
  background: #f7f8fa;
  border-radius: 10px;
  border: 1px dashed var(--ma-line);
}
.ma-dinamika-placeholder i { opacity: 0.5; }
.ma-block--dinamika.is-loaded .ma-dinamika-placeholder { display: none; }

/* —— Dinamika —— */
.ma-dinamika {
  position: relative;
}
.ma-dinamika__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.ma-dinamika__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.ma-dinamika__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-text);
}
.ma-dinamika__swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ma-dinamika__swatch--home { background: var(--ma-lime-soft); }
.ma-dinamika__swatch--away { background: var(--ma-navy-mid); }
.ma-dinamika__body {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 0.75rem 0.5rem 0.5rem;
  border: 1px solid var(--ma-line);
}
.ma-dinamika__logos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 0.15rem 1.6rem;
  width: 42px;
  flex-shrink: 0;
}
.ma-dinamika__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: none;
}
.ma-dinamika__logo--home { background: transparent; }
.ma-dinamika__logo--away { background: transparent; }
.ma-dinamika__logo img,
.ma-dinamika__logo .avatar {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50% !important;
  object-fit: cover;
}
.ma-dinamika__chart-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  min-height: 220px;
}
.ma-dinamika__chart-wrap canvas {
  width: 100% !important;
  max-height: 280px;
}
#attackMomentumCard.ma-dinamika-card {
  display: none;
  border: 0;
  box-shadow: none !important;
  background: transparent;
}
#attackMomentumCard.ma-dinamika-card .card-body {
  padding: 0;
  background: transparent;
  min-height: 0;
}

/* —— Notikumi —— */
.ma-notikumi {
  max-width: none;
  margin: 0;
}
.ma-notikumi__head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.ma-notikumi__sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.ma-notikumi__side {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ma-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-notikumi__side--home { text-align: left; color: #8ab800; }
.ma-notikumi__side--away { text-align: right; color: #5b8def; }

.ma-timeline {
  position: relative;
  padding: 0.35rem 0 1rem;
}
.ma-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #e2e6eb 8%, #e2e6eb 92%, transparent);
  transform: translateX(-50%);
}
.ma-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0.45rem;
  align-items: start;
  margin-bottom: 1.1rem;
  min-height: 48px;
}
.ma-tl-side {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.ma-tl-side--home { justify-content: flex-end; text-align: right; }
.ma-tl-side--away { justify-content: flex-start; text-align: left; }
.ma-tl-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 0.35rem;
}
.ma-tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c5ccd6;
  box-shadow: 0 0 0 3px #fff;
}
.ma-tl-item.has-home .ma-tl-dot { border-color: var(--ma-lime); }
.ma-tl-item.has-away .ma-tl-dot { border-color: var(--ma-blue); }
.ma-tl-min {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ma-muted);
  font-variant-numeric: tabular-nums;
}
.ma-tl-system {
  grid-column: 1 / -1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0.35rem 0;
}
.ma-tl-system span {
  display: inline-block;
  background: #f3f4f6;
  padding: 0.35rem 0.75rem;
  font-family: var(--ma-font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ma-muted);
  border-radius: 2px;
}
.ma-tl-event {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  box-shadow: none;
}
.ma-tl-side--home .ma-tl-event {
  flex-direction: row-reverse;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  border-right: 2px solid #acdd00;
}
.ma-tl-side--away .ma-tl-event {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  border-left: 2px solid #1d2d44;
}
.ma-tl-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: #eceff3;
}
.ma-tl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.ma-tl-avatar-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #acdd00;
  font-family: var(--ma-font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 0;
}
.ma-tl-meta { min-width: 0; }
.ma-tl-name {
  display: block;
  line-height: 1.2;
  color: var(--ma-text);
  text-decoration: none !important;
}
.ma-tl-name__first {
  display: block;
  font-family: var(--ma-font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.ma-tl-name__last {
  display: block;
  font-family: var(--ma-font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-text);
}
.ma-tl-assist {
  margin-top: 0.15rem;
  font-family: var(--ma-font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ma-muted);
}
.ma-tl-assist__a {
  display: inline-block;
  min-width: 1rem;
  padding: 0 0.15rem;
  margin-right: 0.2rem;
  background: #0a0a0a;
  color: #acdd00;
  font-weight: 800;
  font-size: 0.58rem;
  line-height: 1.15;
  text-align: center;
  border-radius: 0;
}
.ma-tl-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ma-tl-icon img { display: block; }
.ma-tl-card {
  width: 14px;
  height: 18px;
  border-radius: 2px;
  display: inline-block;
}
.ma-tl-card--yellow { background: #f5c518; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.ma-tl-card--red { background: #e53935; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }

/* —— Statistika —— */
.ma-statistika {
  max-width: none;
  margin: 0;
}
.ma-statistika--waves {
  padding: 0.15rem 0 0.25rem;
}
.ma-statistika__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 1rem;
}
.ma-statistika__team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.ma-statistika__team--home { justify-content: flex-start; }
.ma-statistika__team--away { justify-content: flex-end; }
.ma-statistika__team-name { display: none; }
.ma-statistika__team-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-statistika__team-logo img,
.ma-statistika__team-logo .avatar,
.ma-statistika__team-logo .avatar-placeholder {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  background: transparent !important;
  box-shadow: none !important;
}
.ma-statistika__heading { display: none; }
.ma-stat-row {
  margin-bottom: 0;
  padding: 0.85rem 0 0.65rem;
  border-bottom: 1px solid #eceff3;
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.ma-stat-row:last-child { border-bottom: 0; }
.ma-stat-row:hover {
  background: transparent;
  border-color: #eceff3;
}
.ma-stat-row__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.ma-stat-row__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ma-stat-row__val--home { text-align: left; }
.ma-stat-row__val--away { text-align: right; }
.ma-stat-row--home-lead .ma-stat-row__val--home,
.ma-stat-row--away-lead .ma-stat-row__val--away { color: #0a0a0a; }
.ma-stat-row__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: center;
  padding: 0 0.25rem;
}
.ma-stat-bar { display: none; }
.ma-stat-wave {
  display: block;
  width: 100%;
  height: 26px;
}
.ma-stat-wave__home { fill: url(#maWaveHome); }
.ma-stat-wave__away { fill: url(#maWaveAway); }

/* —— Compact analytics (heatmap + PPDA inside Analītika) —— */
.ma-analytics {
  background: transparent;
}
.ma-analytics .match-analytics-container {
  background: transparent !important;
}
.ma-analytics .analytics-loading {
  padding: 1.25rem 0.5rem;
}
.ma-analytics .analytics-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent !important;
}
.ma-analytics .analytics-live-indicator {
  align-self: flex-start;
}
.ma-analytics .heatmap-section {
  order: 1;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.ma-analytics .ppda-section {
  order: 2;
  margin: 0 !important;
  padding: 0.85rem 0.9rem 0.95rem !important;
  border: 1px solid var(--ma-line) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
}
.ma-analytics .ppda-section .section-header {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.ma-analytics .ppda-section .section-icon-wrapper {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ma-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: none;
  border: 0;
}
.ma-analytics .ppda-section .section-title {
  font-family: var(--ma-font-display);
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 !important;
  color: var(--ma-text) !important;
}
.ma-analytics .ppda-comparison {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem !important;
  flex-direction: unset !important;
}
.ma-analytics .ppda-team-card {
  padding: 0.65rem 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--ma-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.ma-analytics .ppda-team-card .team-header-premium,
.ma-analytics .ppda-team-card .team-info {
  margin-bottom: 0.35rem !important;
}
.ma-analytics .ppda-team-card .team-name {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}
.ma-analytics .ppda-value-large {
  font-size: 1.55rem !important;
  line-height: 1 !important;
  margin: 0.15rem 0 !important;
}
.ma-analytics .ppda-label-premium {
  font-size: 0.68rem !important;
  margin-bottom: 0.35rem !important;
}
.ma-analytics .ppda-bar-premium {
  height: 8px !important;
  margin-top: 0.35rem !important;
}
.ma-analytics .ppda-bar-label {
  font-size: 0.58rem !important;
  margin-top: 0.25rem !important;
}
.ma-analytics .ppda-comparison-info-premium {
  margin-top: 0.65rem !important;
  padding: 0.5rem 0.65rem !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
}
.ma-analytics .ppda-badge-premium {
  font-size: 0.58rem !important;
  padding: 0.15rem 0.4rem !important;
}

/* —— Sastāvi switcher + split layout —— */
.ma-sastavi__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.ma-sastavi__switch-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ma-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
}
.ma-sastavi__switch-btn:hover {
  border-color: rgba(172, 221, 0, 0.55);
}
.ma-sastavi__switch-btn.is-active {
  border-color: #acdd00;
  background: rgba(172, 221, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(172, 221, 0, 0.25);
}
.ma-sastavi__switch-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-sastavi__switch-logo img,
.ma-sastavi__switch-logo .avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover;
}
.ma-sastavi__switch-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ma-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-sastavi__panel[hidden] { display: none !important; }
.ma-sastavi__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.15rem;
  align-items: start;
}
.ma-pitch-team--split {
  border: 1px solid var(--ma-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.04);
  padding: 0.85rem;
}
.ma-sastavi__pitch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.ma-sastavi__list {
  min-width: 0;
}
.ma-sastavi__list-section {
  margin-bottom: 0.85rem;
}
.ma-sastavi__list-section:last-child { margin-bottom: 0; }
.ma-sastavi__list-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ma-muted);
  margin-bottom: 0.5rem;
}
.ma-pitch-team--split .ma-pitch-field-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0.5rem 0.35rem;
}
.ma-pitch-team--split .ma-pitch-field {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}
.ma-pitch-team--split .ma-pitch-pos {
  width: 88px;
}
.ma-pitch-team--split .ma-pitch-card__avatar {
  width: 58px;
  height: 58px;
}
.ma-pitch-team--split .ma-pitch-card__name {
  max-width: 88px;
  font-size: 0.72rem;
}
.ma-pitch-team--split .ma-pitch-card__num,
.ma-pitch-team--split .ma-pitch-card__rating {
  min-width: 20px;
  height: 20px;
  font-size: 0.62rem;
}
.ma-pitch-team--split .ma-pitch-card__stats {
  width: 24px;
  height: 24px;
  font-size: 0.62rem;
}

@media (max-width: 991.98px) {
  .ma-sastavi__layout {
    grid-template-columns: 1fr;
  }
  .ma-pitch-team--split .ma-pitch-field {
    width: min(96%, 480px);
    max-width: 480px;
  }
}

@media (max-width: 767.98px) {
  .ma-analytics .ppda-comparison {
    grid-template-columns: 1fr;
  }
  .ma-sastavi__switch {
    gap: 0.4rem;
  }
  .ma-sastavi__switch-btn {
    padding: 0.45rem 0.55rem;
  }
  .ma-sastavi__switch-name {
    font-size: 0.75rem;
  }
  .ma-pitch-team--split {
    padding: 0.55rem;
  }
  .ma-pitch-team--split .ma-pitch-field {
    width: min(100%, 380px);
    max-width: 380px;
  }
  .ma-pitch-team--split .ma-pitch-pos {
    width: 68px;
  }
  .ma-pitch-team--split .ma-pitch-card__avatar {
    width: 48px;
    height: 48px;
  }
  .ma-pitch-team--split .ma-pitch-card__name {
    max-width: 68px;
    font-size: 0.62rem;
  }
}

/* —— Sastāvi pitch (fantasy-like) —— */
.ma-sastavi__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ma-sastavi__motm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7e0, #ffe8a3);
  color: #7a5a00;
  font-size: 0.78rem;
  font-weight: 700;
}
.ma-sastavi__motm i { color: #d4a017; }

.ma-pitch-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.ma-pitch-team {
  background: #fff;
  border: 1px solid var(--ma-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.04);
}
.ma-pitch-team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ma-line);
  background: linear-gradient(180deg, #fbfbfc, #fff);
}
.ma-pitch-team__identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.ma-pitch-team__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-pitch-team__logo img,
.ma-pitch-team__logo .avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover;
}
.ma-pitch-team__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ma-text);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-pitch-team__count {
  display: block;
  font-size: 0.68rem;
  color: var(--ma-muted);
  margin-top: 0.15rem;
}
.ma-pitch-team__lir {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--ma-navy-mid);
}

.ma-pitch-field-wrap {
  padding: 0.65rem;
  background: transparent;
  display: flex;
  justify-content: center;
}
.ma-pitch-field {
  position: relative;
  width: min(50%, 280px);
  max-width: 280px;
  aspect-ratio: 2200 / 2500;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.ma-pitch-field__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ma-pitch-field__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}

.ma-pitch-pos {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 52px;
}
.ma-pitch-pos--goalkeeper { bottom: 8%; z-index: 2; }
.ma-pitch-pos--defender { bottom: 35%; z-index: 3; }
.ma-pitch-pos--left-wing {
  top: 44%;
  left: 16%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.ma-pitch-pos--right-wing {
  top: 44%;
  left: 84%;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.ma-pitch-pos--forward { top: 11%; z-index: 5; }

.ma-pitch-card {
  position: relative;
  text-align: center;
}
.ma-pitch-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
}
.ma-pitch-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #acdd00, #1d2d44);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-pitch-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ma-pitch-card__initials {
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
}
.ma-pitch-card__num {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-115%);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #acdd00;
  font-size: 0.55rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ma-pitch-card__rating {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(40%);
  min-width: 18px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.55rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ma-pitch-card__rating.is-excellent { background: #acdd00; }
.ma-pitch-card__rating.is-very-good { background: #c6ef5a; }
.ma-pitch-card__rating.is-good { background: #fff; }
.ma-pitch-card__rating.is-average { background: #ffe08a; }
.ma-pitch-card__rating.is-poor { background: #ffb4b4; }
.ma-pitch-card__name {
  margin-top: 0.2rem;
  max-width: 52px;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-pitch-card__stats {
  margin-top: 0.15rem;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.ma-pitch-card__stats:hover { background: rgba(172, 221, 0, 0.85); color: #0a0a0a; }

.ma-pitch-bench {
  padding: 0.85rem 0.85rem 1rem;
  background: #f7f8fa;
  border-top: 1px solid var(--ma-line);
}
.ma-pitch-bench__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ma-muted);
  margin-bottom: 0.65rem;
}
.ma-pitch-bench__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.ma-pitch-bench-card {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--ma-line);
  border-radius: 10px;
  padding: 0.4rem 0.45rem;
}
.ma-pitch-bench-card__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  text-decoration: none !important;
  color: inherit;
}
.ma-pitch-bench-card__num {
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0a0a0a;
  color: #acdd00;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ma-pitch-bench-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #acdd00, #1d2d44);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-pitch-bench-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ma-pitch-bench-card__initials {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.ma-pitch-bench-card__meta {
  min-width: 0;
  flex: 1;
}
.ma-pitch-bench-card__name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ma-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-pitch-bench-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.ma-pitch-bench-card__tag--in { color: #28a745; }
.ma-pitch-bench-card__tag--out { color: #dc3545; }
.ma-pitch-bench-card__rating {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ma-navy-mid);
  margin-left: auto;
}
.ma-pitch-bench-card__stats {
  border: 0;
  background: #f3f4f6;
  color: #5b8def;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.ma-pitch-bench-card__stats:hover { background: #e8f0ff; }

.ma-pitch-panels {
  padding: 0 0.75rem;
  background: #f7f8fa;
}
.ma-pitch-panels:empty { display: none; }
.ma-pitch-panels .player-stats-premium,
.ma-pitch-bench .player-stats-premium,
.ma-sastavi__list .player-stats-premium {
  border-radius: 0;
  overflow: hidden;
}
.ma-pitch-panels .premium-stats-container,
.ma-pitch-bench .premium-stats-container,
.ma-sastavi__list .premium-stats-container {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  border: 1px solid var(--ma-line) !important;
  padding: 0.75rem !important;
}
.ma-sastavi__list .premium-kpi-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0a0a0a !important;
  border: 1px solid #0a0a0a !important;
}
.ma-sastavi__list .kpi-icon-wrapper {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #acdd00 !important;
}
.ma-sastavi__list .kpi-label {
  font-family: var(--ma-font-body) !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
.ma-sastavi__list .kpi-value {
  font-family: var(--ma-font-display) !important;
  font-weight: 400 !important;
  color: #acdd00 !important;
}
.ma-sastavi__list .premium-stats-section,
.ma-sastavi__list .stat-row-item,
.ma-sastavi__list .goal-event-item,
.ma-sastavi__list .stat-progress-bar,
.ma-sastavi__list .stat-progress-fill {
  border-radius: 0 !important;
}
.ma-sastavi__list .stat-progress-fill {
  background: #acdd00 !important;
}
.ma-sastavi__list .stat-progress-fill.stat-progress-negative {
  background: #e53935 !important;
}

@media (max-width: 991.98px) {
  .ma-pitch-lineups { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .ma-statistika__team-name { max-width: 5.5rem; font-size: 0.68rem; }
  .ma-statistika__heading { font-size: 1.25rem; }
}

/* —— Zonu aktivitāte (app style) —— */
.ma-zone {
  background: #fff;
  border: 1px solid var(--ma-line);
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
  margin-bottom: 1rem;
}
.ma-zone__head { margin-bottom: 1rem; }
.ma-zone__team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.ma-zone__team-name {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-text);
}
.ma-zone__badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: #fde4ec;
  color: #c2185b;
  white-space: nowrap;
}
.ma-zone__badge[data-style="attack_focused"] { background: #fde8e8; color: #c62828; }
.ma-zone__badge[data-style="defense_focused"] { background: #e3f2fd; color: #1565c0; }
.ma-zone__badge[data-style="midfield_focused"] { background: #fde4ec; color: #c2185b; }
.ma-zone__badge[data-style="balanced"] { background: #e8f5e9; color: #2e7d32; }
.ma-zone__pitch-wrap {
  border: 1px solid var(--ma-line);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fafbfc;
  margin-bottom: 1rem;
}
.ma-zone__pitch {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}
.ma-zone__heat {
  pointer-events: none;
}
.ma-zone__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 0.85rem;
}
.ma-zone__stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ma-muted);
  margin-bottom: 0.2rem;
}
.ma-zone__stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ma-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ma-zone__foot {
  border-top: 1px solid var(--ma-line);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ma-muted);
  margin: 0;
}
.ma-zone-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 992px) {
  .ma-zone-grid { grid-template-columns: 1fr 1fr; }
}

/* PPDA under analitika — quieter */
.match-app .ppda-section .section-header {
  background: transparent !important;
  padding: 0.75rem 0 0.5rem !important;
}
.match-app .ppda-section .section-title {
  color: var(--ma-text) !important;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.match-app .game-analytics-card,
.match-app .game-analytics-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.match-app .game-analytics-header { display: none; }
.match-app .game-analytics-body { background: transparent !important; }
.match-app .match-analytics-container .analytics-section {
  margin: 0 0 1rem !important;
  box-shadow: none !important;
  border: 1px solid var(--ma-line) !important;
  border-radius: 14px !important;
}
.match-app .heatmap-section .section-header { display: none; }

/* Lineups inside tab */
.match-app .ma-sastavi .card {
  border-radius: 12px;
  overflow: hidden;
}

/* Empty state */
.ma-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ma-muted);
}
.ma-empty i { font-size: 1.75rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* ═══════════════════════════════════════════
   MOBILE ADAPTATION
   ═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .match-app {
    margin-top: 0.65rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }
  .ma-goal-moments {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }

  .match-app-tabs {
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 0 1rem;
    padding: 0.4rem 0.75rem 0;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-snap-type: x proximity;
    border-radius: 0;
  }
  .match-app-tabs .nav-link {
    font-size: 1.05rem;
    padding: 0.45rem 0.05rem 0.65rem !important;
    scroll-snap-align: start;
  }
  .match-app-pane {
    padding: 0 !important;
  }

  .match-app-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  .match-app-title--sm { font-size: 1.25rem; }
  .match-app-subtitle {
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
  }

  /* Overview cards */
  .ma-overview {
    gap: 0.75rem;
  }
  .ma-overview__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .ma-block {
    height: auto;
    border-radius: 0;
  }
  .ma-block__head {
    padding: 0.85rem 0.85rem 0.75rem;
    gap: 0.55rem;
  }
  .ma-block__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 0.95rem;
    background: transparent;
  }
  .ma-block__title {
    font-size: 1.2rem;
  }
  .ma-block__sub {
    font-size: 0.65rem;
  }
  .ma-block__tag {
    font-size: 0.58rem;
  }
  .ma-block__legend {
    margin-left: 0;
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }
  .ma-block__body {
    padding: 0.75rem;
  }
  .ma-block--dinamika .ma-block__body {
    padding: 0.55rem 0.65rem 0.75rem;
  }
  .ma-block--statistika,
  .ma-block--notikumi {
    height: auto;
  }
  .ma-block--statistika .ma-block__body,
  .ma-block--notikumi .ma-block__body {
    overflow: visible;
    max-height: none;
  }

  /* Dinamika */
  .ma-dinamika__legend {
    gap: 0.5rem;
    width: 100%;
  }
  .ma-dinamika__legend-item {
    font-size: 0.62rem;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ma-dinamika__body {
    padding: 0.45rem 0.2rem 0.3rem;
    border-radius: 10px;
    gap: 0.2rem;
  }
  .ma-dinamika__logos {
    width: 28px;
    padding: 0.65rem 0 1rem;
  }
  .ma-dinamika__logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
  .ma-dinamika__chart-wrap {
    min-height: 160px;
  }
  .ma-dinamika-placeholder {
    padding: 1rem 0.75rem;
    font-size: 0.78rem;
    text-align: center;
    flex-direction: column;
  }

  /* Notikumi timeline — keep sides, compact */
  .ma-notikumi { max-width: none; }
  .ma-notikumi__sides {
    margin-bottom: 0.65rem;
  }
  .ma-notikumi__side {
    font-size: 0.6rem;
  }
  .ma-timeline { padding-left: 0; padding-right: 0; }
  .ma-timeline::before { left: 50%; }
  .ma-tl-item {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.75rem;
  }
  .ma-tl-side--home {
    justify-content: flex-end;
    text-align: right;
  }
  .ma-tl-side--away {
    justify-content: flex-start;
    text-align: left;
  }
  .ma-tl-side--home .ma-tl-event { flex-direction: row-reverse; }
  .ma-tl-side--away .ma-tl-event { flex-direction: row; }
  .ma-tl-event {
    padding: 0.28rem 0.32rem;
    gap: 0.28rem;
    border-radius: 0;
    max-width: 100%;
  }
  .ma-tl-avatar {
    width: 26px;
    height: 26px;
    border-radius: 0;
  }
  .ma-tl-name__first {
    font-size: 0.52rem;
    display: none; /* last name only on phone */
  }
  .ma-tl-name__last { font-size: 0.78rem; }
  .ma-tl-assist { display: none; }
  .ma-tl-min { font-size: 0.6rem; }
  .ma-tl-dot { width: 9px; height: 9px; }
  .ma-tl-item:not(.has-home) .ma-tl-side--home { visibility: hidden; }
  .ma-tl-item:not(.has-away) .ma-tl-side--away { visibility: hidden; }
  .ma-tl-system span {
    font-size: 0.58rem;
    padding: 0.28rem 0.55rem;
  }
  .ma-tl-icon img {
    max-width: 16px;
    height: auto;
  }

  /* Statistika waves */
  .ma-statistika__teams {
    margin-bottom: 0.75rem;
    gap: 0.35rem;
  }
  .ma-statistika__team-logo {
    width: 32px;
    height: 32px;
  }
  .ma-statistika__team-logo img,
  .ma-statistika__team-logo .avatar,
  .ma-statistika__team-logo .avatar-placeholder {
    width: 32px !important;
    height: 32px !important;
  }
  .ma-stat-row {
    padding: 0.65rem 0 0.5rem;
  }
  .ma-stat-row__head {
    gap: 0.3rem;
    margin-bottom: 0.3rem;
  }
  .ma-stat-row__val { font-size: 1.05rem; }
  .ma-stat-row__label {
    font-size: 0.52rem;
    letter-spacing: 0.03em;
    line-height: 1.15;
    max-width: 7.5rem;
  }
  .ma-stat-wave { height: 20px; }

  /* Sastāvi / pitch */
  .ma-sastavi__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }
  .ma-sastavi__motm {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }
  .ma-pitch-lineups {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .ma-pitch-team__head { padding: 0.65rem 0.7rem; }
  .ma-pitch-team__name { font-size: 0.88rem; }
  .ma-pitch-team__count { font-size: 0.62rem; }
  .ma-pitch-field-wrap { padding: 0.55rem; }
  .ma-pitch-field {
    width: min(72%, 260px);
    max-width: 260px;
  }
  .ma-pitch-pos { width: 48px; }
  .ma-pitch-card__avatar {
    width: 34px;
    height: 34px;
    border-width: 2px;
  }
  .ma-pitch-card__name {
    max-width: 48px;
    font-size: 0.52rem;
  }
  .ma-pitch-card__num,
  .ma-pitch-card__rating {
    min-width: 15px;
    height: 15px;
    font-size: 0.5rem;
  }
  .ma-pitch-card__stats {
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
  }
  .ma-pitch-pos--left-wing { left: 15%; }
  .ma-pitch-pos--right-wing { left: 85%; }
  .ma-pitch-bench { padding: 0.65rem; }
  .ma-pitch-bench__label { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .ma-pitch-bench-card {
    padding: 0.35rem 0.4rem;
  }
  .ma-pitch-bench-card__name { font-size: 0.78rem; }
  .ma-pitch-bench-card__avatar {
    width: 30px;
    height: 30px;
  }

  /* Zonu */
  .ma-zone {
    padding: 0.85rem 0.7rem 0.75rem;
    border-radius: 10px;
  }
  .ma-zone__team-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .ma-zone__team-name { font-size: 0.75rem; }
  .ma-zone__badge {
    font-size: 0.55rem;
    padding: 0.22rem 0.4rem;
  }
  .ma-zone__pitch-wrap { padding: 0.45rem; }
  .ma-zone__stat-val { font-size: 1.15rem; }
  .ma-zone__foot { font-size: 0.72rem; }

  /* Analytics */
  .match-app .match-analytics-container .analytics-section {
    border-radius: 10px !important;
  }
  .match-app .ppda-section .section-title {
    font-size: 0.9rem !important;
  }
  .match-app .ppda-comparison {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .match-app .ppda-team-card {
    width: 100% !important;
  }
}

@media (max-width: 399.98px) {
  .match-app-tabs {
    gap: 0 0.75rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    border-radius: 8px;
  }
  .match-app-tabs .nav-link { font-size: 0.92rem; }

  .ma-block__head { padding: 0.6rem 0.6rem; }
  .ma-block__body { padding: 0.6rem; }
  .ma-block__title { font-size: 1.15rem; }

  .ma-dinamika__chart-wrap { min-height: 140px; }
  .ma-dinamika__legend-item { font-size: 0.55rem; }

  .ma-stat-row__val { font-size: 0.95rem; }
  .ma-stat-row__label {
    font-size: 0.48rem;
    max-width: 6.2rem;
  }
  .ma-stat-wave { height: 16px; }

  .ma-tl-item {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  }
  .ma-tl-avatar { width: 24px; height: 24px; border-radius: 0; }
  .ma-tl-name__last { font-size: 0.72rem; }
  .ma-tl-event { padding: 0.22rem 0.25rem; border-radius: 0; }

  .ma-pitch-field {
    width: min(92%, 300px);
    max-width: 300px;
  }
  .ma-pitch-pos { width: 52px; }
  .ma-pitch-card__avatar { width: 38px; height: 38px; }
  .ma-pitch-team--split .ma-pitch-field {
    width: min(100%, 340px);
    max-width: 340px;
  }
  .ma-pitch-team--split .ma-pitch-pos { width: 62px; }
  .ma-pitch-team--split .ma-pitch-card__avatar {
    width: 44px;
    height: 44px;
  }
  .ma-pitch-team--split .ma-pitch-card__name {
    max-width: 62px;
    font-size: 0.58rem;
  }
}

/* —— Vārtu gūšanas brīdis —— */
.ma-goal-moments {
  margin-top: 1.25rem;
}
.ma-goal-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ma-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ma-text) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--ma-line);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ma-goal-edit:hover {
  background: #f7f7f8;
  border-color: rgba(0, 0, 0, 0.14);
}
.ma-goal-list {
  max-height: 640px;
  overflow-y: auto;
}
.ma-goal-item {
  border-bottom: 1px solid var(--ma-line);
}
.ma-goal-item:last-child {
  border-bottom: 0;
}
.ma-goal-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: #fff;
}
.ma-goal-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}
.ma-goal-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  background: #0a0a0a;
  color: #acdd00;
  font-family: var(--ma-font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ma-goal-item__time {
  font-family: var(--ma-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ma-muted);
}
.ma-goal-item__score {
  font-family: var(--ma-font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ma-text);
  line-height: 1;
}
.ma-goal-item__type {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}
.ma-goal-item__type--scored { background: #0a0a0a; color: #acdd00; }
.ma-goal-item__type--conceded { background: #dc3545; color: #fff; }
.ma-goal-item__players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ma-line);
  background: #fafafa;
}
.ma-goal-side {
  padding: 0.75rem 1.15rem;
  min-width: 0;
}
.ma-goal-side--home {
  border-right: 1px solid var(--ma-line);
  border-left: 2px solid #acdd00;
}
.ma-goal-side--away {
  border-left: 2px solid #1d2d44;
}
.ma-goal-side__label {
  margin-bottom: 0.45rem;
  font-family: var(--ma-font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ma-muted);
}
.ma-goal-side__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ma-goal-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.ma-goal-player__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.2rem;
  background: #0a0a0a;
  color: #acdd00;
  font-family: var(--ma-font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.ma-goal-player--conceded .ma-goal-player__num {
  background: #9ca3af;
  color: #fff;
}
.ma-goal-player__name {
  font-family: var(--ma-font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ma-text);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-goal-empty {
  color: #c4c4c4;
  font-size: 0.8rem;
}
@media (max-width: 767.98px) {
  .ma-goal-moments { margin-top: 0.85rem; }
  .ma-goal-item__head { padding: 0.65rem 0.85rem; }
  .ma-goal-side { padding: 0.65rem 0.85rem; }
  .ma-goal-item__players { grid-template-columns: 1fr; }
  .ma-goal-side--home {
    border-right: 0;
    border-bottom: 1px solid var(--ma-line);
  }
  .ma-goal-player__name { font-size: 0.88rem; }
}

/* —— Square containers (no rounded blocks) —— */
.match-app-tabs,
.ma-block,
.ma-dinamika-placeholder,
.ma-dinamika__body,
.ma-dinamika__swatch,
.ma-tl-system span,
.ma-tl-event,
.ma-tl-card,
.ma-tl-assist__a,
.ma-analytics .ppda-section,
.ma-analytics .ppda-team-card,
.ma-analytics .ppda-bar-premium,
.ma-sastavi__switch-btn,
.ma-sastavi__motm,
.ma-pitch-team,
.ma-pitch-team--split,
.ma-pitch-team--split .ma-pitch-field-wrap,
.ma-pitch-bench-card,
.ma-pitch-bench-card__num,
.ma-pitch-bench-card__stats,
.ma-pitch-panels .player-stats-premium,
.ma-pitch-bench .player-stats-premium,
.ma-zone,
.ma-zone__badge,
.ma-zone__pitch-wrap,
.match-app .match-analytics-container .analytics-section,
.match-app .ma-sastavi .card,
.match-app .game-analytics-card,
.ma-goal-edit,
.ma-goal-item__num,
.ma-goal-item__type,
.ma-goal-player,
.ma-goal-player__num {
  border-radius: 0 !important;
}

