.mc-team-root{
  max-width:1080px;
  margin:0 auto 28px;
  font-family:"Roboto Condensed",Arial,sans-serif;
  color:#111827;
}

.mc-team-page{
  background:#eef2f7;
  padding:12px;
  border-radius:14px;
}

.mc-team-box,
.mc-team-right{
  background:#fff;
  border-radius:14px;
  border:1px solid #e5e7eb;
}

.mc-team-header{
  position:relative;
  width:100%;
  min-height:236px;
  display:grid;
  grid-template-columns:430px 240px 240px;
  gap:16px;
  align-items:center;
  background:#fff;
  border:1px solid #edf0f5;
  border-radius:14px;
  padding:16px;
  margin-bottom:12px;
  box-sizing:border-box;
}

.mc-team-info-area{
  height:100%;
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}

.mc-team-logo-wrap{
  width:120px;
  height:120px;
  flex:0 0 120px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mc-team-logo{
  width:120px;
  height:120px;
  object-fit:contain;
  display:block;
}

.mc-team-info-main{
  height:120px;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mc-team-name-row h1{
  margin:0 0 14px;
  color:#111827;
  font-size:28px;
  line-height:34px;
  font-weight:600;
  letter-spacing:-.2px;
}

.mc-team-main-meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.mc-team-flag{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 30px;
}

.mc-team-main-meta strong{
  font-size:16px;
  line-height:20px;
  font-weight:600;
  color:#111827;
}

.mc-team-coach-img{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 30px;
}

.mc-team-coach{
  display:flex;
  flex-direction:column;
  line-height:1.12;
}

.mc-team-coach b{
  color:#111827;
  font-size:14px;
  line-height:16px;
  font-weight:600;
}

.mc-team-coach small{
  color:#8b95a5;
  font-size:12px;
  line-height:14px;
  font-weight:500;
}

.mc-team-bottom-meta{
  position:absolute;
  left:16px;
  bottom:24px;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:18px;
  color:#8b95a5;
  font-size:12px;
  line-height:16px;
  font-weight:700;
}

.mc-team-meta-item{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
}

.mc-team-meta-item img,
.mc-team-meta-icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  object-fit:contain;
  color:#8b95a5;
  fill:currentColor;
}

.mc-team-header-actions{
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  gap:10px;
  z-index:2;
}

.mc-team-compare-btn{
  height:36px;
  border:0;
  border-radius:6px;
  background:#3157ff;
  color:#fff;
  padding:0 14px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.mc-team-star-btn{
  width:36px;
  height:36px;
  border:0;
  border-radius:6px;
  background:#f1f4f8;
  color:#3157ff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
}

.mc-team-header-matches{
  position:absolute;
  right:16px;
  bottom:56px;
  display:grid;
  gap:12px;
  align-items:end;
}

.mc-team-header-matches{
  position:absolute;
  right:16px;
  bottom:56px;
  display:grid;
  gap:12px;
  align-items:end;
}

.mc-team-header-matches.two{
  grid-template-columns:260px 260px;
}

.mc-team-header-matches.one{
  grid-template-columns:260px;
}

.mc-mini-wrap{
  width:260px;
}

.mc-mini-title{
  height:18px;
  margin-bottom:4px;
  color:#111827;
  font-size:12px;
  line-height:18px;
  font-weight:900;
}

.mc-mini-match{
  width:260px;
  height:116px;
  background:#f4f5f8;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.mc-mini-league-row{
  height:36px;
  padding:6px 24px 0;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid #e4e7ec;
  box-sizing:border-box;
}

.mc-mini-league-row img{
  width:16px;
  height:16px;
  object-fit:contain;
}

.mc-mini-league-row strong{
  font-size:12px;
  line-height:16px;
  font-weight:700;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mc-mini-body{
  flex:1;
  display:grid;
  grid-template-columns:58px 1fr 20px;
  align-items:center;
  column-gap:10px;
  padding:0 12px;
  box-sizing:border-box;
}

.mc-mini-date{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#9aa0ad;
  font-size:11px;
  line-height:14px;
  font-weight:500;
}

.mc-mini-date span,
.mc-mini-date b{
  display:block;
}

.mc-mini-date b{
  color:#8d94a6;
  font-size:11px;
  font-weight:600;
}

.mc-mini-teams{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.mc-mini-team-row{
  display:grid;
  grid-template-columns:16px 1fr;
  align-items:center;
  column-gap:8px;
  min-width:0;
}

.mc-mini-team-row img{
  width:16px;
  height:16px;
  object-fit:contain;
}

.mc-mini-team-row span{
  min-width:0;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mc-mini-score{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
}

.mc-mini-score span{
  height:16px;
  font-size:16px;
  line-height:16px;
  font-weight:700;
  color:#111827;
}

.mc-team-grid{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:12px;
}

.mc-team-box-title{
  padding:14px;
  font-size:16px;
  font-weight:900;
  border-bottom:1px solid #e5e7eb;
}

.mc-team-match-row{
  display:grid;
  grid-template-columns:54px 1fr 28px;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #edf0f5;
}

.mc-team-match-time{
  text-align:center;
  font-size:11px;
  color:#6b7280;
}

.mc-team-match-time b,
.mc-team-match-time span{
  display:block;
}

.mc-team-match-teams div{
  display:grid;
  grid-template-columns:22px 1fr 24px;
  align-items:center;
  gap:7px;
  height:25px;
  font-size:13px;
}

.mc-team-match-teams img,
.mc-team-table img{
  width:20px;
  height:20px;
  object-fit:contain;
}

.mc-result{
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.mc-result.win{background:#12b76a;}
.mc-result.loss{background:#d92d20;}
.mc-result.draw{background:#98a2b3;}

.mc-team-tabs{
  display:flex;
  border-bottom:1px solid #e5e7eb;
}

.mc-team-tabs button{
  flex:1;
  border:0;
  background:#fff;
  padding:14px 10px;
  color:#6366f1;
  font-weight:900;
  cursor:pointer;
}

.mc-team-tabs button.active{
  color:#c50864;
  border-bottom:2px solid #c50864;
}

.mc-team-panel{
  display:none;
  padding:12px;
}

.mc-team-panel.active{
  display:block;
}

.mc-team-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.mc-team-table th,
.mc-team-table td{
  padding:8px;
  text-align:center;
  border-bottom:1px solid #edf0f5;
}

.mc-team-table .team{
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
}

.mc-team-table tr.active td{
  background:#e9eef7;
  font-weight:900;
}

.mc-player-group h3{
  margin:14px 0 10px;
}

.mc-player-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.mc-player-card{
  background:#f8fafc;
  border-radius:10px;
  padding:12px;
  text-align:center;
}

.mc-player-card img{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:50%;
}

.mc-player-card strong,
.mc-player-card span{
  display:block;
}

.mc-player-card span{
  color:#6b7280;
  font-size:12px;
}

.mc-team-details{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.mc-detail-item{
  background:#f8fafc;
  border-radius:10px;
  padding:12px;
}

.mc-detail-item span{
  display:block;
  color:#6b7280;
  font-size:12px;
}

.mc-detail-item strong{
  display:block;
  margin-top:4px;
}

.mc-team-empty{
  padding:24px;
  text-align:center;
  color:#6b7280;
}

.mc-team-empty.small{
  padding:10px 0;
}

@media(max-width:768px){
  .mc-team-header{
    display:block;
    padding:16px 14px;
  }
  .mc-team-logo-wrap{
    width:72px;
    height:72px;
    flex:0 0 72px;
  }

  .mc-team-logo{
    width:72px;
    height:72px;
  }

  .mc-team-name-row h1{
    font-size:22px;
    line-height:26px;
  }

  .mc-team-main-meta{
    gap:8px;
    margin-bottom:18px;
    flex-wrap:wrap;
  }

  .mc-team-bottom-meta{
      position:static;
      margin-top:12px;
      display:flex;
      flex-direction:row;
      align-items:center;
      flex-wrap:nowrap;
      justify-content:flex-start;
      gap:14px;
      width:100%;
      left:-160px;
  }

  .mc-team-meta-item{
      display:flex;
      align-items:center;
      gap:5px;
      white-space:nowrap;
  }

  .mc-team-header-actions{
    display:none;
  }

  .mc-team-header-matches{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:14px;
  }

  .mc-team-grid{
    grid-template-columns:1fr;
  }

  .mc-player-grid,
  .mc-team-details{
    grid-template-columns:1fr;
  }

  .mc-team-tabs{
    overflow:auto;
  }

  .mc-team-tabs button{
    min-width:110px;
  }
}

@media(max-width:768px){

  .mc-team-header{
    min-height:auto;
    padding:14px 16px;
    display:block;
  }

  .mc-team-header-actions,
  .mc-team-header-matches{
    display:none !important;
  }

  .mc-team-info-area{
    display:grid;
    grid-template-columns:60px 1fr;
    grid-template-rows:auto auto;
    column-gap:12px;
    row-gap:32px;
    align-items:start;
  }

  .mc-team-logo-wrap{
    grid-column:1;
    grid-row:1;
    width:60px;
    height:60px;
    flex:none;
    display:flex;
    align-items:flex-start;
    justify-content:center;
  }

  .mc-team-logo{
    width:60px;
    height:60px;
    object-fit:contain;
  }

  .mc-team-info-main{
    grid-column:2;
    grid-row:1;
    height:auto;
    min-height:60px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-width:0;
  }

  .mc-team-name-row h1{
    margin:0 0 8px;
    font-size:20px;
    line-height:24px;
    font-weight:700;
  }

  .mc-team-main-meta{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:8px;
    margin:0;
    min-width:0;
  }

  .mc-team-flag{
    width:22px;
    height:22px;
    flex:0 0 22px;
  }

  .mc-team-main-meta strong{
    font-size:13px;
    line-height:16px;
    font-weight:700;
    white-space:nowrap;
  }

  .mc-team-coach-img{
    width:24px;
    height:24px;
    flex:0 0 24px;
  }

  .mc-team-coach{
    display:flex;
    flex-direction:column;
    line-height:1.1;
    min-width:0;
  }

  .mc-team-coach b{
    font-size:13px;
    line-height:15px;
    font-weight:700;
    white-space:nowrap;
  }

  .mc-team-coach small{
    font-size:11px;
    line-height:13px;
  }

  .mc-team-bottom-meta{
    grid-column:1 / 3;
    grid-row:2;
    position:static;
    margin:0;
    display:flex;
    flex-direction:row;
    align-items:center;
    flex-wrap:nowrap;
    gap:12px;
    width:100%;
    overflow:hidden;
    color:#8b95a5;
    font-size:12px;
    line-height:16px;
    font-weight:700;
  }

  .mc-team-meta-item{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    white-space:nowrap;
  }

  .mc-team-meta-item img,
  .mc-team-meta-icon{
    width:16px;
    height:16px;
    flex:0 0 16px;
  }
}

.mc-match-status-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  align-items:center;
  gap:10px;
  padding:0 14px 12px;
  border-bottom:1px solid #e5e7eb;
  overflow:hidden;
}

.mc-match-pager button:disabled{
  opacity:.35;
  cursor:not-allowed;
  color:#9ca3af;
}

.mc-match-month{
  min-width:92px;
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:#111827;
}

.mc-team-match-list{
  padding:12px 0;
}

.mc-match-league-group{
  padding:0 14px 12px;
}

.mc-match-league-group + .mc-match-league-group{
  padding-top:8px;
}

.mc-match-league-head{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:10px;
  align-items:center;
  margin-bottom:8px;
}

.mc-match-league-head > img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.mc-match-league-head strong{
  display:block;
  color:#111827;
  font-size:13px;
  line-height:16px;
  font-weight:900;
}

.mc-match-league-head span{
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:2px;
  color:#8b95a5;
  font-size:12px;
  line-height:14px;
  font-weight:600;
}

.mc-match-league-head span img{
  width:14px;
  height:14px;
  border-radius:50%;
  object-fit:cover;
}

.mc-team-match-row{
  display:grid;
  grid-template-columns:54px 1fr 24px 24px;
  gap:8px;
  align-items:center;
  min-height:48px;
  padding:4px 0;
  border-bottom:0;
}

.mc-team-match-time{
  text-align:center;
  color:#8b95a5;
  font-size:12px;
  line-height:16px;
  font-weight:500;
}

.mc-team-match-time b,
.mc-team-match-time span{
  display:block;
  font-weight:500;
}

.mc-team-match-teams{
  min-width:0;
}

.mc-team-match-club{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:7px;
  align-items:center;
  height:22px;
  min-width:0;
}

.mc-team-match-club img{
  width:18px;
  height:18px;
  object-fit:contain;
}

.mc-team-match-club span{
  min-width:0;
  color:#111827;
  font-size:13px;
  line-height:18px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mc-team-match-score{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}

.mc-team-match-score strong{
  height:18px;
  color:#111827;
  font-size:14px;
  line-height:18px;
  font-weight:800;
}

.mc-team-match-row .mc-result{
  width:22px;
  height:22px;
  justify-self:end;
}

/* ===============================
   Team Matches Controls Fix
   =============================== */

/* 1. Jogos + Todos 顶部行 */
.mc-matches-head{
  height:48px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-sizing:border-box;
  margin-bottom: 12px;
}

.mc-matches-head h2{
  margin:0;
  font-size:16px;
  line-height:20px;
  font-weight:900;
  color:#111827;
}

/* 2. Todos select 不要多余 padding */
.mc-match-filter{
  height:34px;
  flex:0 0 auto;
}

.mc-match-filter select{
  width:72px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;

  margin:0 !important;
  padding:0 22px 0 8px !important;
  box-sizing:border-box !important;

  border:1px solid #d8dde6 !important;
  border-radius:9px !important;
  background-color:#fff !important;

  color:#111827 !important;
  font-size:13px !important;
  line-height:32px !important;
  font-weight:600 !important;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}

/* 3. Lista / Calendário */
.mc-match-view-tabs{
  height:34px;
  margin:0 14px 16px;
  padding:2px;
  display:flex;
  align-items:center;
  gap:2px;
  background:#eef2f7;
  border-radius:999px;
  box-sizing:border-box;
}

.mc-match-view-tabs button,
.mc-match-view-tabs button[data-match-view]{
  flex:1;
  height:30px !important;
  min-height:30px !important;
  max-height:30px !important;

  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0 !important;
  border-radius:999px !important;
  background:transparent;

  color:#111827;
  font-size:12px;
  line-height:30px !important;
  font-weight:800;
  cursor:pointer;
}

.mc-match-view-tabs button.active{
  background:#1f2026 !important;
  color:#fff !important;
}

/* 4. Finalizados / Próximos + arrows */
.mc-match-status-row{
  height:40px;
  padding:6px 14px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  border-bottom:1px solid #e5e7eb;
  overflow:hidden;
}

.mc-match-status-tabs{
  height:32px;
  display:flex;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:0;
}

.mc-match-status-tabs button,
.mc-match-status-tabs button[data-match-status]{
  height:32px !important;
  min-height:32px !important;
  max-height:32px !important;

  margin:0 !important;
  padding:0 4px 0 4px !important;
  box-sizing:border-box !important;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0 !important;
  border-radius:999px !important;
  background:#eef2f7;

  color:#111827;
  font-size:12px;
  line-height:32px !important;
  font-weight:800;
  cursor:pointer;
}

.mc-match-status-tabs button.active{
  background:#1f2026 !important;
  color:#fff !important;
}

.mc-match-pager{
  width:72px !important;
  min-width:72px !important;
  height:32px;
  display:grid;
  grid-template-columns:32px 0 32px;
  gap:8px;
  overflow:visible;
}

.mc-match-pager button,
.mc-match-pager button[data-match-prev],
.mc-match-pager button[data-match-next]{
  width:32px !important;
  min-width:32px !important;
  max-width:32px !important;

  height:32px !important;
  min-height:32px !important;
  max-height:32px !important;

  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0 !important;
  border-radius:9px !important;
  background:#f1f4f8;

  color:#111827;
  font-size:22px;
  line-height:1 !important;
  font-weight:800;
  cursor:pointer;
}

.mc-match-pager button:disabled{
  opacity:.35;
  cursor:not-allowed;
  color:#9ca3af;
}

.mc-match-month{
  display:none;
}

.mc-calendar-mode .mc-match-status-tabs{
  display:none !important;
}

.mc-calendar-mode .mc-match-status-row{
    display:flex !important;
    justify-content:center;
    align-items:center;
    height:44px;
    padding:4px 14px 8px;
    border-bottom:0;
}

.mc-calendar-wrap{
  padding:12px;
}

.mc-calendar-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin-bottom:6px;
}

.mc-calendar-weekdays span{
  text-align:center;
  color:#8b95a5;
  font-size:12px;
  font-weight:600;
}

.mc-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:2px;
}

.mc-calendar-day{
  min-height:54px;
  background:#eef2f7;
  border-radius:4px;
  padding:4px;
  font-size:11px;
  color:#8b95a5;
}

.mc-calendar-day{
  position:relative;
  min-height:54px;
  background:#eef2f7;
  border-radius:4px;
  padding:4px;
  font-size:11px;
  color:#8b95a5;
  overflow:hidden;
}

.mc-calendar-day.is-empty{
  opacity:.45;
}

.mc-calendar-day-num{
  position:absolute;
  top:4px;
  left:5px;
  font-size:11px;
  line-height:12px;
  color:#8b95a5;
  font-weight:600;
}

.mc-calendar-match{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}

.mc-calendar-match + .mc-calendar-match{
  margin-top:3px;
}

.mc-calendar-match img{
  width:24px;
  height:24px;
  object-fit:contain;
  border-radius:50%;
}

.mc-calendar-match b{
  min-width:36px;
  height:16px;
  padding:0 6px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#12b76a;
  color:#fff;
  font-size:11px;
  line-height:16px;
  font-weight:700;
}

.mc-calendar-match.is-upcoming b{
  background:#1f2026;
}

.mc-cal-cell.home{
    background:#ffffff;
    border:1px solid #e5e7eb;
}

.mc-cal-cell.away{
    background:#20222a;
    color:#fff;
}

.mc-cal-cell.away .mc-cal-day,
.mc-cal-cell.away .mc-cal-time,
.mc-cal-cell.away .mc-cal-score{
    color:#fff;
}

.mc-cal-score{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:18px;
    padding:0 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:600;
    color:#fff;
}

.mc-cal-score.win{
    background:#16a34a;
}

.mc-cal-score.draw{
    background:#f59e0b;
}

.mc-cal-score.loss{
    background:#b42318;
}

.mc-cal-score.upcoming{
    background:#3157ff;
}

.mc-calendar-match{
  position:relative;
}

.mc-cal-ha{
  position:absolute;
  top:0;
  right:0;
  width:13px;
  height:13px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  line-height:13px;
  font-weight:900;
}

.mc-calendar-match.is-home .mc-cal-ha{
  background:#fff;
  color:#111827;
  border:1px solid #d8dde6;
}

.mc-calendar-match.is-away .mc-cal-ha{
  background:#1f2026;
  color:#fff;
}

.mc-calendar-mode .mc-match-controls{
  padding:0 14px 10px;
}

.mc-calendar-mode .mc-match-pager{
    width:100%;
    max-width:100%;
    display:grid;
    grid-template-columns:32px minmax(0,1fr) 32px;
    gap:10px;
    align-items:center;
}

.mc-calendar-mode .mc-match-month{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100%;
    height:32px;
    justify-self:stretch;
    border:1px solid #d8dde6;
    border-radius:9px;
    background:#fff;
    color:#111827;
    font-size:13px;
    font-weight:700;
}

.mc-calendar-legend{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:10px;
  padding:0 2px;
  color:#8b95a5;
  font-size:12px;
  font-weight:700;
}

.mc-calendar-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.mc-calendar-legend b{
  width:14px;
  height:14px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:8px;
  line-height:14px;
  font-weight:900;
}

.mc-calendar-legend b.home{
  background:#fff;
  color:#111827;
  border:1px solid #d8dde6;
}

.mc-calendar-legend b.away{
  background:#1f2026;
  color:#fff;
}

.mc-calendar-mode .mc-match-pager{
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:32px minmax(0,1fr) 32px !important;
  gap:10px !important;
  align-items:center;
}

.mc-calendar-mode .mc-match-month{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100% !important;
  min-width:0 !important;
  height:32px;
  padding:0 10px;
  box-sizing:border-box;

  border:1px solid #d8dde6;
  border-radius:9px;
  background:#fff;

  color:#111827;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

/* 整个控制区 */
.mc-match-controls{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;

    gap:10px;

    padding:6px 14px;
    min-height:44px;

    border-bottom:1px solid #e5e7eb;
}

/* 左边 Finalizados / Próximos */
.mc-match-status-tabs{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}

/* 右边箭头 */
.mc-match-pager{
    display:flex;
    align-items:center;
    gap:6px;
}

.mc-match-pager button{
    width:32px;
    height:32px;
    padding: 0 4px 0 4px;

    border:0;
    border-radius:8px;

    background:#f3f5f8;
    cursor:pointer;
}

.mc-match-pager button:disabled{
    opacity:.35;
    cursor:default;
}

/* List 模式不用月份 */
.mc-match-month{
    display:none;
}

/* ===============================
   Team Standings - Sofa style
   copy from League
   =============================== */

.mc-team-root .mc-team-standings-widget{
  background:#fff;
}

.mc-team-root .mc-team-standing-selectors{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 12px 0;
  background:#fff;
}

.mc-team-root .mc-team-standing-selectors select{
  appearance:none;
  -webkit-appearance:none;
  height:34px;
  border:1px solid #d8dde6;
  border-radius:10px;
  background:
    linear-gradient(#eef2f7,#eef2f7) right 4px center / 24px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4l3.5 4 3.5-4z'/%3E%3C/svg%3E") right 10px center / 12px 12px no-repeat,
    #fff;
  color:#111827;
  font-size:13px;
  font-weight:800;
  padding:0 34px 0 12px;
  outline:none;
  cursor:pointer;
}

.mc-team-root .mc-team-standing-selectors select:first-child{
  flex:1;
  min-width:0;
}

.mc-team-root .mc-team-standing-selectors select:last-child{
  width:118px;
  flex:0 0 118px;
}

.mc-team-root .mc-standings-br{
  background:#fff;
  text-align:center;
  overflow-x:auto;
}

.mc-team-root .mc-standings-topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 52px 12px 12px;
  border-bottom:1px solid #edf0f5;
  background:#fff;
}

.mc-team-root .mc-standings-filter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:3px;
  margin:0 auto;
  background:#f1f3f7;
  border-radius:999px;
}

.mc-team-root .mc-standings-filter button{
  margin:0 !important;
  border:0;
  height:30px;
  min-width:62px;
  padding:0 14px;
  border-radius:999px;
  background:transparent;
  color:#111827;
  font-size:13px;
  font-weight:800;
  line-height:30px;
  cursor:pointer;
}

.mc-team-root .mc-standings-filter button.active{
  background:#1f2026;
  color:#fff;
}

.mc-team-root .mc-standings-view-wrap{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  display:block;
  z-index:30;
}

.mc-team-root .mc-standings-view-btn{
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  margin:0 !important;
  padding:0 !important;
  border:0;
  border-radius:10px;
  background:#f1f3f7;
  color:#111827;
  font-size:18px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}

.mc-team-root .mc-standings-view-menu{
  display:none;
  position:absolute;
  top:42px;
  right:0;
  width:190px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  overflow:hidden;
  z-index:9999;
  text-align:left;
}

.mc-team-root .mc-standings-view-menu.active{
  display:block;
}

.mc-team-root .mc-menu-title{
  padding:12px 14px;
  color:#9ca3af;
  font-size:12px;
  font-weight:700;
}

.mc-team-root .mc-standings-view-menu button{
  width:100%;
  height:44px;
  margin:0 !important;
  padding:0 14px;
  border:0;
  background:#fff;
  text-align:left;
  color:#111827;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.mc-team-root .mc-standings-view-menu button.active{
  color:#3157ff;
  background:#f7f8fb;
}

.mc-team-root .mc-standing-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  background:#fff;
}

.mc-team-root .mc-standing-table th{
  height:34px;
  padding:6px 8px;
  color:#9ca3af;
  font-weight:500;
  text-align:center;
  border-bottom:1px solid #edf0f5;
  white-space:nowrap;
}

.mc-team-root .mc-standing-table td{
  height:38px;
  padding:6px 8px;
  text-align:center;
  border-bottom:0;
  color:#111827;
  font-weight:600;
  white-space:nowrap;
}

.mc-team-root .mc-standing-table .mc-col-rank{
  width:38px;
  text-align:center;
}

.mc-team-root .mc-standing-table .mc-col-team{
  text-align:left;
  min-width:180px;
}

.mc-team-root .mc-standing-team{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.mc-team-root .mc-standing-team img{
  width:24px;
  height:24px;
  object-fit:contain;
  flex:0 0 24px;
}

.mc-team-root .mc-standing-team span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
}

.mc-team-root .mc-rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#f1f3f7;
  color:#111827;
  font-weight:800;
  font-size:13px;
}

.mc-team-root .mc-col-form{
  min-width:120px;
}

.mc-team-root .mc-form-list{
  display:inline-flex;
  gap:3px;
  align-items:center;
}

.mc-team-root .mc-form-list span{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.mc-team-root .mc-form-w{
  background:#12b76a;
}

.mc-team-root .mc-form-d{
  background:#b8c0cc;
}

.mc-team-root .mc-form-l{
  background:#d92d20;
}

.mc-team-root .mc-col-pts{
  font-weight:900 !important;
}

.mc-team-root .mc-standings-groups{
  display:flex;
  flex-direction:column;
  gap:34px;
}

.mc-team-root .mc-standing-group-title{
  font-size:13px;
  font-weight:700;
  margin:14px 0 10px;
  color:#111827;
}

/* Desktop: hide view menu like league */
@media(min-width:769px){
  .mc-team-root .mc-standings-view-wrap{
    display:none !important;
  }

  .mc-team-root .mc-standings-topbar{
    padding:12px;
  }
}

/* Mobile */
@media(max-width:768px){
  .mc-team-root .mc-team-standing-selectors{
    padding:10px 10px 0;
    gap:6px;
  }

  .mc-team-root .mc-team-standing-selectors select{
    height:32px;
    font-size:12px;
    padding:0 30px 0 8px;
  }

  .mc-team-root .mc-team-standing-selectors select:last-child{
    width:96px;
    flex-basis:96px;
  }

  .mc-team-root .mc-standings-topbar{
    padding:10px 44px;
  }

  .mc-team-root .mc-standings-filter button{
    height:32px;
    min-width:58px;
    padding:0 14px;
    font-size:12px;
  }

  .mc-team-root .mc-standing-table{
    font-size:12px;
  }

  .mc-team-root .mc-standing-table th,
  .mc-team-root .mc-standing-table td{
    height:38px;
    padding:6px 5px;
  }

  .mc-team-root .mc-standing-table .mc-col-team{
    min-width:110px;
  }

  .mc-team-root .mc-standing-team img{
    width:24px;
    height:24px;
  }

  .mc-team-root .mc-standing-team span{
    max-width:95px;
    font-size:12.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mc-team-root .mc-rank-badge{
    width:24px;
    height:24px;
    font-size:12px;
  }

  .mc-team-root .mc-standing-complete .mc-col-form{
    display:none;
  }

  .mc-team-root .mc-standing-summary .mc-col-form{
    display:none;
  }

  .mc-team-root .mc-standing-form th:nth-child(n+3):not(.mc-col-form):not(:last-child),
  .mc-team-root .mc-standing-form td:nth-child(n+3):not(.mc-col-form):not(:last-child){
    display:none;
  }

  .mc-team-root .mc-col-form{
    min-width:96px;
  }

  .mc-team-root .mc-form-list span{
    width:18px;
    height:18px;
    font-size:11px;
  }
}

@media(max-width:768px){

  .mc-team-root .mc-team-standing-selectors{
    display:flex;
    gap:6px;
    padding:10px 10px 8px;
    background:#fff;
  }

  .mc-team-root .mc-team-standing-selectors select:first-child{
    flex:1;
    min-width:0;
  }

  .mc-team-root .mc-team-standing-selectors select:last-child{
    width:70px;
    flex:0 0 92px;
  }

  .mc-team-root .mc-standings-topbar{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:10px 52px 10px 12px;
    border-bottom:1px solid #edf0f5;
    background:#fff;
  }

  .mc-team-root .mc-standings-filter{
    display:inline-flex;
    gap:2px;
    padding:3px;
    margin:0 auto;
    background:#f1f3f7;
    border-radius:999px;
  }

  .mc-team-root .mc-standings-filter button{
    height:32px;
    min-width:58px;
    padding:0 14px;
    border:0;
    border-radius:999px;
    background:transparent;
    color:#111827;
    font-size:12px;
    font-weight:800;
  }

  .mc-team-root .mc-standings-filter button.active{
    background:#1f2026;
    color:#fff;
  }

  .mc-team-root .mc-standings-view-wrap{
    display:block !important;
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    z-index:50;
  }

  .mc-team-root .mc-standings-view-btn{
    width:34px;
    height:34px;
    min-width:34px;
    margin:0 !important;
    padding:0 !important;
    border:0;
    border-radius:10px;
    background:#f1f3f7;
    color:#111827;
    font-size:18px;
    font-weight:900;
    line-height:1;
  }

  .mc-team-root .mc-standings-view-menu{
    display:none;
    position:absolute;
    top:42px;
    right:0;
    width:190px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 28px rgba(15,23,42,.16);
    overflow:hidden;
    z-index:9999;
    text-align:left;
  }

  .mc-team-root .mc-standings-view-menu.active{
    display:block;
  }

  .mc-team-root .mc-standings-view-menu button{
    width:100%;
    height:44px;
    margin:0 !important;
    padding:0 14px;
    border:0;
    background:#fff;
    text-align:left;
    color:#111827;
    font-size:14px;
    font-weight:700;
  }

  .mc-team-root .mc-standings-view-menu button.active{
    color:#3157ff;
    background:#f7f8fb;
  }

  .mc-team-root .mc-standing-table{
    width:100%;
    table-layout:auto;
    font-size:12px;
  }

  .mc-team-root .mc-standing-table th,
  .mc-team-root .mc-standing-table td{
    height:38px;
    padding:6px 5px;
    white-space:nowrap;
  }

  .mc-team-root .mc-standing-table .mc-col-rank{
    width:36px;
  }

  .mc-team-root .mc-standing-table .mc-col-team{
    min-width:150px;
    max-width:150px;
  }

  .mc-team-root .mc-standing-team{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
  }

  .mc-team-root .mc-standing-team img{
    width:22px;
    height:22px;
    flex:0 0 22px;
    object-fit:contain;
  }

  .mc-team-root .mc-standing-team span{
    max-width:105px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    font-weight:700;
  }

  .mc-team-root .mc-rank-badge{
    width:24px;
    height:24px;
    font-size:12px;
  }

  /* Complete mobile：隐藏 últimos 5，跟 league 一样 */
  .mc-team-root .mc-standing-complete .mc-col-form{
    display:none;
  }

  /* Summary mobile：隐藏 form */
  .mc-team-root .mc-standing-summary .mc-col-form{
    display:none;
  }

  /* Forma mobile：只保留 # Time Forma PTS */
  .mc-team-root .mc-standing-form th:nth-child(n+3):not(.mc-col-form):not(:last-child),
  .mc-team-root .mc-standing-form td:nth-child(n+3):not(.mc-col-form):not(:last-child){
    display:none;
  }

  .mc-team-root .mc-col-form{
    min-width:96px;
  }

  .mc-team-root .mc-form-list span{
    width:18px;
    height:18px;
    font-size:11px;
  }
}

.mc-team-mobile-tabs,
.mc-team-mobile-panels{
  display:none;
}

@media(min-width:769px){
  .mc-team-desktop-grid{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:12px;
  }
}

@media(max-width:768px){
  .mc-team-desktop-grid{
    display:none;
  }

  .mc-team-mobile-tabs{
    display:flex;
    background:#fff;
    overflow:auto;
    border-bottom:1px solid #edf0f5;
  }

  .mc-team-mobile-tabs button{
    min-width:105px;
    border:0;
    background:#fff;
    padding:12px 10px;
    font-size:12px;
    font-weight:900;
    color:#6b7280;
    text-transform:uppercase;
  }

  .mc-team-mobile-tabs button.active{
    color:#c50864;
    border-bottom:2px solid #c50864;
  }

  .mc-team-mobile-panels{
    display:block;
    background:#fff;
    border:1px solid #edf0f5;
    border-top:0;
    overflow:hidden;
  }

  .mc-team-mobile-panel{
    display:none;
  }

  .mc-team-mobile-panel.active{
    display:block;
  }
}

.mc-team-root{
  max-width:1080px;
  margin:0 auto 28px;
}

@media(max-width:768px){
  .mc-team-root{
    max-width:100%;
    margin-bottom:22px;
  }

  .mc-team-mobile-panels{
    border:1px solid #edf0f5;
    border-top:0;
    background:#fff;
    overflow:hidden;
  }
}

@media (max-width:768px){

  .mc-team-mobile-tabs{
    background:#fff;
    border-radius:16px 16px 0 0;
    overflow:hidden;
  }

  .mc-team-mobile-panels{
    background:#fff;
    border-radius:0 0 16px 16px;
    overflow:hidden;
  }

}
.mc-team-tabs{
    background:#fff;
    border-radius:16px 16px 0 0;
    overflow:hidden;
}

.mc-team-panel{
    background:#fff;
}

.mc-team-panel.active{
    border-radius:0 0 16px 16px;
    overflow:hidden;
}

.mc-player-stats-widget{
  background:#fff;
}

.mc-player-stats-card{
  padding:18px 18px 14px;
  border-bottom:1px solid #edf0f5;
}

.mc-player-stat-season-row{
  display:flex;
  gap:8px;
  margin-bottom:18px;
}

.mc-player-stat-season-row select{
  height:34px;
  border:1px solid #d8dde6;
  border-radius:10px;
  background:#fff;
  padding:0 12px;
  font-size:13px;
  font-weight:800;
}

.mc-player-stat-season-row select:first-child{
  flex:1;
}

.mc-player-stat-season-row select:last-child{
  width:118px;
}

.mc-player-stat-title-row h3{
  margin:0 0 12px;
  font-size:20px;
  font-weight:900;
  color:#111827;
}

.mc-player-stat-group-row,
.mc-player-stat-position-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.mc-player-stat-group-row button,
.mc-player-stat-position-row button{
  height:32px;
  border:0;
  border-radius:999px;
  background:#f1f3f7;
  color:#111827;
  padding:0 14px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.mc-player-stat-group-row button.active,
.mc-player-stat-position-row button.active{
  background:#1f2026;
  color:#fff;
}

.mc-player-stats-table-wrap{
  width:100%;
  overflow-x:auto;
}

.mc-player-stats-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  background:#fff;
}

.mc-player-stats-table th{
  height:42px;
  padding:8px 8px;
  color:#9ca3af;
  font-weight:600;
  text-align:center;
  border-bottom:1px solid #e5e7eb;
  background:#f8fafc;
  white-space:nowrap;
}

.mc-player-stats-table td{
  height:42px;
  padding:7px 8px;
  text-align:center;
  border-bottom:1px solid #edf0f5;
  color:#111827;
  font-weight:600;
  white-space:nowrap;
}

.mc-player-stats-table tbody tr:nth-child(even){
  background:#f7f8fa;
}

.mc-stat-rank{
  width:34px;
}

.mc-stat-team{
  width:38px;
}

.mc-stat-team img{
  width:22px;
  height:22px;
  object-fit:contain;
}

.mc-stat-player{
  min-width:150px;
  text-align:left !important;
}

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

.mc-stat-player img{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
}

.mc-stat-player span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mc-stat-rating{
  font-size:15px;
  font-weight:900;
}

.mc-rating-box{
  display:inline-block;
  width:12px;
  height:12px;
  background:#12b76a;
  margin-right:6px;
  vertical-align:-1px;
}

@media(max-width:768px){
  .mc-player-stats-card{
    padding:14px 10px 12px;
  }

  .mc-player-stat-season-row{
    gap:6px;
    margin-bottom:14px;
  }

  .mc-player-stat-season-row select{
    height:32px;
    font-size:12px;
    padding:0 8px;
  }

  .mc-player-stat-season-row select:last-child{
    width:92px;
  }

  .mc-player-stat-title-row h3{
    font-size:16px;
    text-align:center;
  }

  .mc-player-stat-group-row,
  .mc-player-stat-position-row{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
  }

  .mc-player-stat-group-row button,
  .mc-player-stat-position-row button{
    flex:0 0 auto;
    height:30px;
    font-size:11px;
    padding:0 12px;
  }

  .mc-player-stats-table{
    min-width:720px;
    font-size:11px;
  }

  .mc-player-stats-table th,
  .mc-player-stats-table td{
    height:38px;
    padding:6px 6px;
  }

  .mc-stat-player{
    min-width:130px;
  }

  .mc-stat-player img{
    width:24px;
    height:24px;
  }
}

/* =========================
   Player Stats - Desktop 766px + Mobile 358px
   ========================= */

.mc-player-stats-widget{
  background:#fff;
}

.mc-player-stats-card{
  padding:14px 14px 12px;
  border-bottom:1px solid #edf0f5;
}

.mc-player-stat-season-row{
  display:flex;
  gap:8px;
  margin-bottom:16px;
}

.mc-player-stat-season-row select{
  height:34px;
  min-width:0;
  border:1px solid #d8dde6;
  border-radius:9px;
  background:#fff;
  padding:0 10px;
  font-size:12px;
  font-weight:800;
  color:#111827;
}

.mc-player-stat-season-row select:first-child{
  flex:1;
}

.mc-player-stat-season-row select:last-child{
  width:105px;
  flex:0 0 105px;
}

.mc-player-stat-title-row h3{
  margin:0 0 12px;
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.mc-player-stat-group-row,
.mc-player-stat-position-row{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.mc-player-stat-group-row button,
.mc-player-stat-position-row button{
  height:30px;
  border:0;
  border-radius:999px;
  background:#f1f3f7;
  color:#111827;
  padding:0 12px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.mc-player-stat-group-row button.active,
.mc-player-stat-position-row button.active{
  background:#1f2026;
  color:#fff;
}

/* Desktop compact table */
.mc-player-stats-table-wrap{
  width:100%;
  overflow-x:auto;
  border-top:1px solid #edf0f5;
}

.mc-player-stats-table{
  width:100%;
  min-width:690px;
  border-collapse:collapse;
  font-size:11px;
  background:#fff;
}

.mc-player-stats-table th{
  height:36px;
  padding:6px 5px;
  color:#9ca3af;
  font-weight:700;
  text-align:center;
  border-bottom:1px solid #e5e7eb;
  background:#f8fafc;
  white-space:normal;
  line-height:1.15;
}

.mc-player-stats-table td{
  height:38px;
  padding:6px 5px;
  text-align:center;
  border-bottom:1px solid #edf0f5;
  color:#111827;
  font-weight:700;
  white-space:nowrap;
}

.mc-player-stats-table tbody tr:nth-child(even){
  background:#f7f8fa;
}

.mc-stat-rank{
  width:26px;
}

.mc-stat-team{
  width:30px;
}

.mc-stat-team img{
  width:19px;
  height:19px;
  object-fit:contain;
}

.mc-stat-player{
  width:140px;
  min-width:140px;
  max-width:140px;
  text-align:left !important;
}

td.mc-stat-player{
  display:flex;
  align-items:center;
  gap:6px;
}

.mc-stat-player img{
  width:22px;
  height:22px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 22px;
}

.mc-stat-player span{
  display:block;
  max-width:104px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mc-stat-rating{
  font-size:13px;
  font-weight:900;
}

.mc-rating-box{
  display:inline-block;
  width:10px;
  height:10px;
  background:#12b76a;
  margin-right:4px;
  vertical-align:-1px;
}

/* Mobile: SofaScore-like cards, not giant table */
@media(max-width:768px){
  .mc-player-stats-mobile .mc-player-stats-table-wrap{
    display:none;
  }

  .mc-mobile-stat-cards{
    background:#eef2f7;
    padding:8px;
  }

  .mc-mobile-stat-card{
    background:#fff;
    border-radius:14px;
    padding:14px 16px;
    margin-bottom:8px;
  }

  .mc-mobile-stat-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
  }

  .mc-mobile-stat-card-head h4{
    margin:0;
    font-size:14px;
    font-weight:900;
    color:#222;
  }

  .mc-mobile-stat-card-head button{
    border:0;
    background:transparent;
    color:#3157ff;
    font-size:11px;
    font-weight:800;
    padding:0;
  }

  .mc-mobile-stat-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:7px 0;
  }

  .mc-mobile-stat-player{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }

  .mc-mobile-player-img{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
  }

  .mc-mobile-stat-player strong{
    display:block;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    color:#333;
  }

  .mc-mobile-stat-player span{
    display:flex;
    align-items:center;
    gap:4px;
    font-size:12px;
    color:#9ca3af;
  }

  .mc-mobile-stat-player span img{
    width:14px;
    height:14px;
    object-fit:contain;
  }

  .mc-mobile-stat-value{
    font-size:15px;
    font-weight:800;
    color:#111827;
  }

  .mc-mobile-stat-value.is-rating i{
    display:inline-block;
    width:12px;
    height:12px;
    background:#12b76a;
    margin-right:5px;
    vertical-align:-1px;
  }

  .mc-mobile-stat-note{
    display:flex;
    gap:10px;
    background:#f1f3f7;
    border-radius:10px;
    padding:10px;
    margin-top:8px;
    color:#4b5563;
  }

  .mc-mobile-stat-note p{
    margin:0;
    font-size:12px;
    line-height:1.3;
  }

  .mc-stat-sheet-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.58);
    z-index:9998;
  }

  .mc-stat-sheet-backdrop.active{
    display:block;
  }

  .mc-stat-sheet{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    max-height:78vh;
    background:#fff;
    border-radius:18px 18px 0 0;
    transform:translateY(105%);
    transition:transform .25s ease;
    z-index:9999;
    overflow:hidden;
  }

  .mc-stat-sheet.active{
    transform:translateY(0);
  }

  .mc-stat-sheet-handle{
    width:44px;
    height:4px;
    background:#cfd5df;
    border-radius:999px;
    margin:8px auto 4px;
  }

  .mc-stat-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 16px 12px;
  }

  .mc-stat-sheet-head h3{
    margin:0;
    font-size:18px;
    font-weight:900;
    color: #111;
  }

  .mc-stat-sheet-head button{
    border:0;
    background:transparent;
    font-size:28px;
    color:#3157ff;
    line-height:1;
  }

  .mc-stat-sheet-body{
    max-height:64vh;
    overflow:auto;
    padding:0 16px 18px;
  }

  .mc-stat-sheet-row{
    display:grid;
    grid-template-columns:24px 1fr auto;
    align-items:center;
    gap:10px;
    padding:9px 0;
  }

  .mc-stat-sheet-rank{
    font-size:12px;
    color:#4b5563;
  }

  .mc-stat-sheet-player{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }

  .mc-stat-sheet-player img,
  .mc-empty-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f1f3f7;
  }

  .mc-stat-sheet-player strong{
    display:block;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
  }

  .mc-stat-sheet-player small{
    color:#9ca3af;
    font-size:12px;
  }

  .mc-stat-sheet-value{
    font-size:15px;
    color:#111827;
  }

  body.mc-stat-sheet-open{
    overflow:hidden;
  }
}

/* =========================
   Team Players
   ========================= */

.mc-team-players{
  background:#fff;
}

.mc-player-subtabs{
  display:flex;
  gap:8px;
  padding:14px 14px 10px;
  border-bottom:1px solid #edf0f5;
  overflow-x:auto;
}

.mc-player-subtabs button{
  height:32px;
  border:0;
  border-radius:999px;
  background:#f1f3f7;
  color:#111827;
  padding:0 14px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.mc-player-subtabs button.active{
  background:#1f2026;
  color:#fff;
}

.mc-player-section{
  padding:12px 14px 4px;
}

.mc-player-section h3{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  color:#111827;
}

.mc-player-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mc-player-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  align-items:center;
  min-height:58px;
  padding:10px 12px;
  border:1px solid #edf0f5;
  border-radius:14px;
  background:#fff;
}

.mc-player-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.mc-player-number{
  width:26px;
  color:#9ca3af;
  font-size:12px;
  font-weight:900;
  text-align:center;
  flex:0 0 26px;
}

.mc-player-photo{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  background:#f1f3f7;
  flex:0 0 38px;
}

.mc-player-namebox{
  min-width:0;
}

.mc-player-namebox strong{
  display:block;
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
  color:#111827;
}

.mc-player-namebox span{
  display:block;
  margin-top:2px;
  font-size:11px;
  font-weight:800;
  color:#9ca3af;
}

.mc-player-cols{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  color:#374151;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.mc-player-cols span{
  display:flex;
  align-items:center;
  gap:5px;
}

.mc-player-cols img{
  width:16px;
  height:16px;
  border-radius:50%;
  object-fit:cover;
}

.mc-player-market-cols span{
  font-size:13px;
  font-weight:900;
  color:#16a34a;
}

.mc-player-contract-cols{
  gap:18px;
}

.mc-player-contract-cols span:first-child{
  color:#9ca3af;
}

/* Mobile */
@media(max-width:768px){

  .mc-player-subtabs{
    padding:10px 8px;
    gap:6px;
    scrollbar-width:none;
  }

  .mc-player-subtabs::-webkit-scrollbar{
    display:none;
  }

  .mc-player-subtabs button{
    flex:0 0 auto;
    height:30px;
    font-size:11px;
    padding:0 12px;
  }

  .mc-player-section{
    padding:10px 8px 2px;
    background:#eef2f7;
  }

  .mc-player-section h3{
    margin:0 0 8px;
    font-size:13px;
  }

  .mc-player-row{
    grid-template-columns:1fr;
    gap:8px;
    min-height:64px;
    padding:10px;
    border:0;
    border-radius:14px;
    background:#fff;
  }

  .mc-player-main{
    gap:9px;
  }

  .mc-player-number{
    width:24px;
    flex-basis:24px;
  }

  .mc-player-photo{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .mc-player-namebox strong{
    max-width:190px;
    font-size:13px;
  }

  .mc-player-cols{
    justify-content:flex-start;
    gap:12px;
    padding-left:73px;
    font-size:11px;
    flex-wrap:wrap;
  }

  .mc-player-general-cols span{
    min-width:auto;
  }

  .mc-player-market-cols{
    padding-left:73px;
  }

  .mc-player-market-cols span{
    font-size:13px;
  }

  .mc-player-contract-cols{
    padding-left:73px;
  }
}

.mc-team-details-v2{
  background:#fff;
}

.mc-detail-section{
  padding:14px 12px;
  border-bottom:1px solid #e5e7eb;
}

.mc-detail-section h2,
.mc-detail-card h2{
  margin:0 0 12px;
  font-size:15px;
  font-weight:800;
  text-align:center;
  color:#111827;
}

.mc-detail-overview{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.mc-detail-stat{
  text-align:center;
  min-width:0;
}

.mc-detail-stat-icon{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  opacity:.8;
}

.mc-detail-stat strong{
  display:block;
  margin-top:4px;
  font-size:14px;
  font-weight:800;
  color:#111827;
}

.mc-detail-stat span{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.25;
  color:#8b93a1;
}

.mc-detail-competitions{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.mc-detail-competition{
  position:relative;
  min-height:84px;
  padding:12px 8px;
  border-radius:7px;
  background:#f1f3f6;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.mc-detail-competition img{
  width:28px;
  height:28px;
  object-fit:contain;
  margin-bottom:8px;
}

.mc-detail-competition strong{
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  color:#111827;
}

.mc-detail-two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}

.mc-detail-card{
  padding:0 12px;
}

.mc-detail-card + .mc-detail-card{
  border-left:1px solid #e5e7eb;
}

.mc-detail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  font-size:13px;
}

.mc-detail-row span{
  color:#111827;
}

.mc-detail-row strong{
  font-weight:500;
  color:#2444ff;
  text-align:right;
}

@media(max-width:640px){
  .mc-detail-overview{
    grid-template-columns:repeat(2,1fr);
  }

  .mc-detail-competitions{
    grid-template-columns:repeat(2,1fr);
  }

  .mc-detail-two-cols{
    grid-template-columns:1fr;
  }

  .mc-detail-card{
    padding:0;
  }

  .mc-detail-card + .mc-detail-card{
    margin-top:14px;
    padding-top:14px;
    border-left:0;
    border-top:1px solid #e5e7eb;
  }
}

.mc-team-mobile-tabs{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  white-space:nowrap;
}

.mc-team-mobile-tabs::-webkit-scrollbar{
  display:none;
}

.mc-team-mobile-tabs button{
  flex:0 0 auto;
  min-width:110px;
  white-space:nowrap;
}

@media (min-width: 769px){
  .mc-team-mobile-tabs,
  .mc-team-mobile-panels{
    display:none !important;
  }
}

@media (max-width: 768px){
  .mc-team-desktop-grid{
    display:none !important;
  }
}