﻿/*
   matches.css    Matches page styles
    */

/*  Layout  */
body.last-matches-page {
  padding-top: 72px;
}

.matches-main {
  min-height: 100vh;
  padding: 0 0 80px 0;
  background: transparent;
}

.matches-main.is-search {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 90px;
}

.matches-main.is-search #matchesContainer {
  width: 100%;
}

#matchesContainer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/*  Loading / Error / Empty  */
.matches-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  color: rgba(232,242,255,0.82);
  font-size: 1rem;
  gap: 16px;
}

.matches-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: ms-spin 0.8s linear infinite;
}

@keyframes ms-spin {
  to { transform: rotate(360deg); }
}

.matches-error,
.matches-empty {
  text-align: center;
  padding: 48px 16px;
  color: rgba(199,216,238,0.72);
  font-size: 1rem;
}

.matches-error {
  color: #f87171;
}

/* 
   SEARCH PAGE
    */
.matches-search-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 44px 0 28px;
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(51, 57, 64, 0.9), rgba(40, 45, 52, 0.88));
  border: 1px solid rgba(183, 189, 196, 0.28);
  border-radius: 20px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.05) inset;
  backdrop-filter: blur(4px);
  padding-left: 18px;
  padding-right: 18px;
}

/* Hero */
.ms-hero {
  text-align: center;
  margin-bottom: 8px;
}

.ms-hero-icon {
  margin-bottom: 10px;
  line-height: 1;
}
.ms-hero-icon .ms-battle-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ms-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #eaf3ff;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.ms-hero-sub {
  font-size: 0.95rem;
  color: rgba(226,232,239,0.78);
  margin: 0;
}

/* Saved account card */
.ms-saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(73, 80, 89, 0.9), rgba(60, 66, 74, 0.88));
  border: 1px solid rgba(178, 185, 193, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}

.ms-saved-card:hover {
  background: linear-gradient(135deg, rgba(80, 87, 97, 0.92), rgba(66, 72, 80, 0.9));
}

.ms-saved-icon {
  flex-shrink: 0;
  line-height: 1;
}
.ms-saved-icon .ms-battle-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ms-saved-info {
  flex: 1;
  min-width: 0;
}

.ms-saved-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-saved-tag {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-family: monospace;
}

.ms-saved-btn {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s;
}

.ms-saved-btn:hover {
  filter: brightness(1.08);
}

/* Search box */
.ms-search-section {
  display: flex;
  gap: 8px;
  width: 100%;
  background: linear-gradient(145deg, rgba(55, 61, 69, 0.92), rgba(45, 50, 57, 0.9));
  border: 1px solid rgba(180, 186, 194, 0.28);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 22px -16px rgba(0,0,0,0.7);
}

.ms-input-wrap {
  flex: 1;
  position: relative;
}

.ms-tag-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(178, 184, 193, 0.34);
  background: rgba(33, 37, 42, 0.85);
  color: #e9f4ff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.ms-tag-input::placeholder {
  color: rgba(204, 210, 218, 0.78);
}

.ms-tag-input:focus {
  border-color: #c0c6ce;
  background: rgba(42, 47, 54, 0.92);
  box-shadow: 0 0 0 2px rgba(196, 203, 212, 0.16);
}

.ms-go-btn {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: #1f2937;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s;
}

.ms-go-btn:hover {
  filter: brightness(1.08);
}

/* Autocomplete dropdown */
.ms-suggest-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #2b3037;
  border: 1px solid rgba(175,184,194,0.35);
  border-radius: 14px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-height: 320px;
  overflow-y: auto;
}

.ms-suggest-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.ms-suggest-item button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.ms-suggest-item button:hover,
.ms-suggest-item.is-active button {
  background: rgba(197,205,216,0.18);
}

.ms-sg-name {
  font-weight: 600;
  flex: 1;
}

.ms-sg-clan {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.ms-sg-tag {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
}

.ms-suggest-empty {
  padding: 12px 16px;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.ms-suggest-box .rp-suggest-loading {
  color: rgba(255,255,255,0.85);
}

.ms-suggest-box .rp-suggest-spinner {
  border-color: rgba(255,255,255,0.25);
  border-top-color: #60a5fa;
}

/* 
   RESULTS PAGE
    */
.matches-page-wrap {
  padding-top: 20px;
}

/* Top bar */
.matches-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(178,186,194,0.24);
  background: linear-gradient(150deg, rgba(56, 62, 70, 0.84), rgba(44, 49, 56, 0.82));
}

.matches-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(182,190,198,0.3);
  background: rgba(107,114,128,0.28);
  transition: background 0.18s, transform 0.18s;
}

.matches-back-btn:hover {
  background: rgba(147,197,253,0.14);
  transform: translateX(-2px);
}

.matches-player-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.mpi-exp-badge {
  width: 68px;
  height: 68px;
  min-width: 68px;
  background: url('/assets/images/experience.webp') center/contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'ClashBold', Arial, sans-serif;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

/* İsim + tag kolonu */
.mpi-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

/* Klan + kupa kolonu — sağda */
.mpi-meta-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(178,186,194,0.20);
}

.matches-player-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8f2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.matches-player-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  display: block;
  line-height: 1.2;
}

.matches-player-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.matches-player-tag {
  font-size: 0.88rem;
  color: rgba(203,223,247,0.55);
  font-family: monospace;
  font-weight: 600;
  line-height: 1.2;
}

.mpi-clan-row {
  line-height: 1;
}

.mpi-clan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  color: rgba(167,210,255,0.80);
  text-decoration: none;
  font-weight: 600;
}

.mpi-clan-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.mpi-clan-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  color: rgba(203,223,247,0.60);
  font-weight: 600;
}

.mpi-clan-badge {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.matches-player-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mpi-stat {
  font-size: 0.80rem;
  color: rgba(203,223,247,0.80);
  font-weight: 600;
  white-space: nowrap;
}

.mpi-best {
  color: rgba(203,223,247,0.50);
}

/* Top 3 decks summary */
.matches-top-decks {
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(59, 66, 75, 0.9), rgba(46, 52, 60, 0.9));
  border: 1px solid rgba(175, 183, 192, 0.28);
  border-radius: 14px;
  padding: 12px;
}

.matches-top-decks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.matches-top-decks-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #e8f2ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matches-top-decks-note {
  font-size: 0.72rem;
  color: rgba(189, 211, 237, 0.78);
}

.matches-top-decks-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.matches-top-deck {
  border: 1px solid rgba(181, 189, 198, 0.26);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(74, 81, 90, 0.86), rgba(58, 64, 72, 0.84));
  padding: 8px;
}

.matches-top-deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.matches-top-deck-rank {
  color: #ffe08a;
  font-weight: 800;
}

.matches-top-deck-count {
  color: rgba(207, 226, 248, 0.84);
  font-weight: 700;
}

.matches-top-deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.mc-tower-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-tower-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(200, 220, 244, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mc-tower-card {
  width: 24px;
  aspect-ratio: 0.76;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(186, 214, 246, 0.28);
}

.mc-tower-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.mc-tower-name {
  font-size: 0.66rem;
  color: rgba(208, 225, 245, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.mc-tower-row-top {
  justify-content: center;
}

.mc-tower-row-top .mc-tower-name {
  display: none;
}

.mc-copy-deck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(150, 201, 255, 0.42);
  background: rgba(35, 84, 132, 0.34);
  color: #d9ecff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.mc-copy-deck-btn:hover {
  background: rgba(44, 104, 163, 0.46);
  border-color: rgba(176, 217, 255, 0.62);
  transform: translateY(-1px);
}

.mc-copy-deck-btn-left {
  align-self: flex-start;
}

.mc-copy-deck-btn-right {
  align-self: flex-end;
}

.mc-copy-deck-btn-top {
  width: 100%;
  margin-top: 8px;
}

.matches-top-deck-card {
  position: relative;
  aspect-ratio: 0.76;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.matches-top-deck-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Stats bar */
.matches-stats-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(150deg, rgba(63, 70, 78, 0.88), rgba(49, 55, 62, 0.86));
  border: 1px solid rgba(175,183,192,0.26);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #eef6ff;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.7rem;
  color: rgba(190,212,240,0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-item.win .stat-num { color: #4ade80; }
.stat-item.loss .stat-num { color: #f87171; }
.stat-item.draw .stat-num { color: #94a3b8; }
.stat-item.wr .stat-num { color: #fbbf24; }

.stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Matches list */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/*  Match Card  */
.match-card {
  background: linear-gradient(155deg, rgba(66, 73, 82, 0.9), rgba(52, 58, 65, 0.88));
  border: 1px solid rgba(176, 184, 193, 0.24);
  border-left: 4px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.18s;
}

.match-card:hover {
  background: linear-gradient(155deg, rgba(72, 80, 89, 0.92), rgba(58, 64, 72, 0.9));
}

.match-card.win  { border-left-color: #22c55e; }
.match-card.loss { border-left-color: #ef4444; }
.match-card.draw { border-left-color: #64748b; }

/* Card header */
.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 7px;
  border-bottom: 1px solid rgba(185,194,203,0.18);
}

.mc-mode-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(200,207,216,0.16);
  color: #e5edf6;
  border-radius: 50px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

.mc-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.mc-time-date {
  font-size: 0.72rem;
  color: rgba(223,229,236,0.88);
  line-height: 1;
}

.mc-time-ago {
  font-size: 0.66rem;
  color: rgba(201,209,218,0.86);
  line-height: 1;
}

/* Card body */
.match-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 10px 9px;
  align-items: start;
}

/* Player sides */
.mc-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-side.mc-enemy {
  align-items: flex-end;
  text-align: right;
}

.mc-side.mc-enemy .mc-tower-row {
  flex-direction: row-reverse;
}

.mc-side.mc-enemy .mc-tower-name {
  text-align: right;
}

.mc-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-player-row.right {
  flex-direction: row-reverse;
}

.mc-player-link,
.mc-player-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ebf4ff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.mc-player-link:hover {
  color: #93c5fd;
}

.mc-crowns {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mc-crown-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.mc-clan-row {
  font-size: 0.75rem;
}

.mc-clan-link,
.mc-clan-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(193,216,244,0.74);
  text-decoration: none;
  font-size: 0.75rem;
}

.mc-clan-badge {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.mc-clan-link:hover {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.mc-trophies {
  font-size: 0.72rem;
  color: rgba(196,216,241,0.72);
}

.mc-delta {
  font-size: 0.75rem;
  font-weight: 700;
}

.mc-delta.pos { color: #4ade80; }
.mc-delta.neg { color: #f87171; }

/* VS column */
.mc-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  min-width: 60px;
}

.mc-vs-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

.mc-result-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.mc-result-badge.win  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.mc-result-badge.loss { background: rgba(239,68,68,0.15);  color: #f87171; }
.mc-result-badge.draw { background: rgba(100,116,139,0.15); color: #94a3b8; }

/*  Deck  */
.mc-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 4px;
}

.mc-deck-wrap {
  display: flex;
  flex-direction: column;
}

.mc-card {
  position: relative;
  aspect-ratio: 0.76;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.mc-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.mc-card.slot-evo {
  outline: 1px solid rgba(168,85,247,0.8);
  box-shadow: 0 0 4px rgba(168,85,247,0.35);
}

.mc-card.slot-hero {
  outline: 1px solid rgba(245,158,11,0.82);
  box-shadow: 0 0 4px rgba(245,158,11,0.34);
}

.mc-slot-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.46rem;
  line-height: 1;
  padding: 1px 2px;
  border-radius: 3px 0 0 0;
  pointer-events: none;
}

.evo-badge  { background: rgba(168,85,247,0.75); }
.hero-badge { background: rgba(245,158,11,0.75); }

.mc-level-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 0.46rem;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 0 3px 0 0;
  background: rgba(0,0,0,0.72);
  color: #ffd700;
  font-weight: 700;
  pointer-events: none;
}

.mc-no-clan {
  color: rgba(203,223,247,0.40);
  font-style: italic;
}

/* 
   MOBILE  (max-width: 600px)
    */
@media (max-width: 900px) {
  body.last-matches-page {
    padding-top: 52px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .matches-main.is-search {
    min-height: calc(100vh - 52px - 60px - env(safe-area-inset-bottom, 0px));
    padding: 12px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .matches-search-page {
    padding: 30px 14px 22px;
  }

  .ms-hero-title {
    font-size: 1.55rem;
  }

  .ms-search-section {
    flex-direction: column;
    gap: 10px;
  }

  .ms-go-btn {
    width: 100%;
    padding: 11px 0;
    border-radius: 10px;
    font-size: 1rem;
  }

  .matches-top-decks-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .matches-top-deck {
    padding: 7px;
  }

  /* Match card body stacks vertically on very small screens */
  .match-card-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px;
    padding: 8px 8px;
  }

  .mc-vs-col {
    flex-direction: row;
    justify-content: center;
    border-top: 1px solid rgba(138,183,237,0.2);
    border-bottom: 1px solid rgba(138,183,237,0.2);
    padding: 6px 0;
  }

  .mc-side.mc-enemy {
    align-items: flex-start;
    text-align: left;
  }

  .mc-player-row.right {
    flex-direction: row;
  }

  .mc-clan-row.right {
    text-align: left;
  }

  .mc-deck {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }

  .mc-side.mc-enemy .mc-tower-row {
    flex-direction: row;
  }

  .mc-tower-name {
    max-width: 78px;
    font-size: 0.62rem;
  }

  .mc-copy-deck-btn {
    width: 100%;
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .matches-stats-bar {
    gap: 4px;
    padding: 8px 10px;
  }

  .stat-item {
    padding: 0 6px;
  }

  .stat-num {
    font-size: 0.95rem;
  }

  .mc-player-link,
  .mc-player-name {
    max-width: 118px;
    font-size: 0.82rem;
  }

  .mc-crowns,
  .mc-trophies,
  .mc-clan-link,
  .mc-clan-name {
    font-size: 0.68rem;
  }

  .mc-clan-badge {
    width: 13px;
    height: 13px;
  }

  .match-card {
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  #matchesContainer {
    padding: 0 10px;
  }

  .matches-top-bar {
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    align-items: center;
  }

  .matches-back-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    align-self: center;
  }

  .mpi-exp-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.05rem;
  }

  .matches-player-link {
    font-size: 1rem;
    max-width: 160px;
  }

  .matches-player-tag {
    font-size: 0.76rem;
  }

  .mpi-meta-col {
    padding-left: 10px;
  }

  .mpi-stat {
    font-size: 0.74rem;
  }

  .match-card-header {
    padding: 7px 9px 6px;
  }

  .mc-mode-badge {
    font-size: 0.66rem;
    padding: 2px 8px;
  }

  .mc-time {
    gap: 1px;
  }

  .mc-time-date {
    font-size: 0.62rem;
  }

  .mc-time-ago {
    font-size: 0.58rem;
  }

  .mc-player-link,
  .mc-player-name {
    max-width: 100px;
    font-size: 0.78rem;
  }

  .mc-result-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .mc-vs-col {
    min-width: 0;
    gap: 4px;
  }
}
