/* 01 Variables */
#mcfav-root{
  --mc-bg:#07070d;
  --mc-panel:#11131c;
  --mc-panel-2:#171925;
  --mc-card:#1d202c;
  --mc-line:rgba(255,255,255,.08);
  --mc-text:#fff;
  --mc-muted:#9ca0af;
  --mc-primary:#7d55ff;
  --mc-primary-2:#f157ff;
  --mc-gradient:linear-gradient(135deg,#f157ff,#7d55ff);
  --mc-radius:12px;
  --mc-row:64px;
  --mc-league:40px;
  --mc-icon-search:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M15.7 13.58h-1.38a6.96 6.96 0 0 0 1.7-4.57C16.02 5.14 12.88 2 9.01 2S2 5.14 2 9.01s3.14 7.01 7.01 7.01c1.75 0 3.34-.64 4.57-1.7v1.38l6.3 6.3L22 19.88zm-6.69.44C6.25 14.02 4 11.77 4 9.01S6.25 4 9.01 4s5.01 2.25 5.01 5.01-2.25 5.01-5.01 5.01'/%3E%3C/svg%3E");
  font-family:Lato,Arial,sans-serif;
}

#mcfav-root button,
#mcfav-root input,
#mcfav-root label{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Lato,Arial,sans-serif;
}

#mcfav-root button{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:none;
  box-shadow:none;
  text-transform:none;
  line-height:1;
}

/* 02 Reset */
#mcfav-root *,
#mcfav-root *:before,
#mcfav-root *:after{
    box-sizing:border-box;
}

#mcfav-root button,
#mcfav-root input{
  font-family:inherit;
}

/* 03 Layout */
.mcfav-shell{
    width:100%;
    display:grid;
    grid-template-columns:520px minmax(0,1fr);
    gap:16px;
}

.mcfav-left,
.mcfav-detail-card{
  background:var(--mc-panel);
  border:1px solid var(--mc-line);
  border-radius:16px;
  overflow:hidden;
}

/* 04 Header */
.mcfav-sofa-header{
  min-height:116px;
  height:auto;
  padding:8px;
  display:flex;
  flex-direction:column;
  background:var(--mc-panel);
}

.mcfav-sofa-row-main{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    padding-bottom:10px;
}

.mcfav-sofa-row-status{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 12px 10px;
  border-top:1px solid var(--mc-line);
}

.mcfav-list{
  padding:8px;
}

/* Search */
.mcfav-search{
  position:relative;
  flex:1;
  min-width:0;
}

.mcfav-search:before{
  content:"";
  position:absolute;
  left:16px;
  top:50%;
  width:20px;
  height:20px;
  transform:translateY(-50%);
  background:#c7cbd6;
  z-index:2;
  pointer-events:none;
  -webkit-mask:var(--mc-icon-search) center/contain no-repeat;
  mask:var(--mc-icon-search) center/contain no-repeat;
}

#mcfav-root .mcfav-search input{
  width:100%;
  height:40px;
  border:0;
  border-radius:8px;
  background:#252a31;
  color:#fff;
  padding:0 14px 0 46px!important;
  outline:0;
  font-size:14px;
  font-weight:600;
  box-shadow:none;
  text-align:left!important;
}

#mcfav-root .mcfav-search input::placeholder{
  color:#a8afbc;
}

/* Date */
.mcfav-date-nav{
  flex:0 0 168px;
  height:36px;
  display:flex;
  overflow:hidden;
  border:1px solid var(--mc-line);
  border-radius:10px;
  background:#1b202a;
}

#mcfav-root .mcfav-date-nav button{
  height:36px;
  margin:0!important;
  padding:0!important;
  border:0;
  background:transparent;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:36px;
}

#mcfav-root .mcfav-date-arrow{
  width:40px;
  flex:0 0 40px;
  color:#b8bfd0;
}

.mcfav-date-current{
  flex:1;
  border-left:1px solid var(--mc-line)!important;
  border-right:1px solid var(--mc-line)!important;
}

/* Filter tabs */
.mcfav-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}

.mcfav-tabs::-webkit-scrollbar{
  display:none;
}

#mcfav-root .mcfav-tabs button{
  height:30px;
  margin:0!important;
  padding:0 14px!important;
  border:0;
  border-radius:999px;
  background:#202633;
  color:#c4cad6;
  font-size:12px;
  font-weight:800;
  line-height:30px;
  white-space:nowrap;
}

#mcfav-root .mcfav-tabs button.active{
  background:var(--mc-gradient);
  color:#fff;
}

/* Odds */
.mcfav-odds-toggle{
  flex:0 0 auto;
  height:30px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#c4cad6;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.mcfav-odds-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:0;
  height:0;
}

.mcfav-odds-toggle i{
  flex:0 0 34px;
  width:34px;
  height:18px;
  border-radius:999px;
  background:#303747;
  position:relative;
  display:block;
}

.mcfav-odds-toggle i:before{
  content:"";
  position:absolute;
  top:2px;
  left:16px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--mc-primary);
}

/* 05 League + Match List */
.mcfav-list{
  padding:0;
  background:#151a1f;
}

.mcfav-league{
  margin:0;
  background:#151a1f;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.10);
  border-radius:0;
  overflow:hidden;
}

.mcfav-league-head{
  height:48px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto 44px;
  align-items:center;
  gap:8px;
  padding:0 8px;
  border-bottom:0;
}

.mcfav-league-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.mcfav-league-logo img{
  width:24px;
  height:24px;
  object-fit:contain;
}

.mcfav-league-info{
  min-width:0;
}

.mcfav-league-info strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:16px;
}

.mcfav-league-info span{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#8f98a8;
  font-size:11px;
  font-weight:700;
  line-height:14px;
}

.mcfav-league-count{
  height:22px;
  min-width:30px;
  padding:0 8px;
  border-radius:999px;
  background:#0e1218;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  font-size:11px;
  font-weight:900;
}

.mcfav-league-count b{
  color:#ff315d;
}

.mcfav-league-count span,
.mcfav-league-count em{
  color:#fff;
  font-style:normal;
}

.mcfav-league-toggle{
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#aeb6c5;
  background:rgba(255,255,255,.04)!important;
  cursor:pointer;
}

.mcfav-league-toggle svg{
  width:20px;
  height:20px;
  fill:currentColor;
  transition:transform .18s ease;
}

.mcfav-league.collapsed .mcfav-league-toggle svg{
  transform:rotate(-180deg);
}

.mcfav-league.collapsed .mcfav-league-matches{
  display:none;
}

/* Match row - SofaScore style */
.mcfav-match{
    width:100%;
    min-height:54px;
    display:grid;
    grid-template-columns:54px minmax(0,1fr) 126px 26px 48px;
    column-gap:12px;
    align-items:center;
    padding:6px 16px 6px 8px;   /* 右边从8改16(或18、20) */
    border:0;
    border-top:1px solid rgba(255,255,255,.06);
    background:transparent;
    color:#fff;
    text-align:left;
    cursor:pointer;
}

.mcfav-match:hover,
.mcfav-match.active{
  background:rgba(255,255,255,.045);
}

.mcfav-match-timebox{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#93a0b2;
  font-size:12px;
  font-weight:700;
  line-height:14px;
}

.mcfav-match-timebox b{
  color:#ff315d;
  font-size:11px;
  font-weight:900;
}

.mcfav-match-main{
  min-width:0;
  display:grid;
  grid-template-rows:18px 18px 14px;
  gap:1px;
}

.mcfav-match-team{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:18px;
}

.mcfav-match-team img{
  width:18px;
  height:18px;
  flex:0 0 18px;
  object-fit:contain;
}

.mcfav-match-team span{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mcfav-match-meta mark{
  padding:0 3px;
  border-radius:2px;
  background:#fff000;
  color:#111;
  font-size:10px;
  font-weight:900;
}

.mcfav-match-meta small{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#8791a1;
  font-size:10px;
  font-weight:700;
}

.mcfav-match-odds{
  display:grid;
  grid-template-columns:repeat(3,36px);
  gap:5px;
  align-items:center;
  justify-content:end;
}

.mcfav-match-odds div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}

.mcfav-match-odds span{
  color:#9ca5b5;
  font-size:10px;
  font-weight:800;
  line-height:10px;
}

.mcfav-match-odds b{
  width:34px;
  height:16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:4px;
  background:#151a1f;
  color:#f8c24e;
  font-size:11px;
  font-weight:900;
  line-height:14px;
  text-align:center;
}

.mcfav-match-score{
  grid-column:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#ff315d;
  font-size:14px;
  font-weight:900;
  line-height:16px;
}

.mcfav-match-score b:empty{
  visibility:hidden;
}

/* Stats button */
.mcfav-match-stats{
    grid-column:5;
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    background:#1b202a;
    justify-self:start;
}

.mcfav-match-stats:hover{
    background:#262d39;
    border-color:rgba(125,85,255,.45);
}

.mcfav-match-stats svg{
    width:16px;
    height:16px;

    display:block;
}

.mcfav-match-stats svg path{
    fill:#8e97a8;
    transition:fill .18s;
}

.mcfav-match-stats:hover svg path{
    fill:var(--mc-primary);
}

.mcfav-match.active .mcfav-match-stats{
    border-color:var(--mc-primary);
    background:rgba(125,85,255,.10);
}

.mcfav-match.active .mcfav-match-stats svg path{
    fill:var(--mc-primary);
}

/* 06 Detail */
.mcfav-detail{
  min-width:0;
}

.mcfav-detail-hero{
  min-height:150px;
  padding:16px;
  background:linear-gradient(135deg,rgba(241,87,255,.24),rgba(125,85,255,.18));
}

.mcfav-crumb{
  color:var(--mc-muted);
  font-size:12px;
  font-weight:700;
  margin-bottom:18px;
}

.mcfav-scoreboard{
  display:grid;
  grid-template-columns:1fr 120px 1fr;
  gap:16px;
  align-items:center;
  text-align:center;
}

.mcfav-scoreboard img{
  width:48px;
  height:48px;
  object-fit:contain;
}

.mcfav-scoreboard strong{
  display:block;
  margin-top:6px;
  font-size:13px;
}

.mcfav-big-score{
  font-size:34px;
  font-weight:800;
}

.mcfav-big-score em{
  display:block;
  margin-top:4px;
  color:var(--mc-muted);
  font-size:12px;
  font-style:normal;
}

.mcfav-detail-tabs{
  height:48px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border-bottom:1px solid var(--mc-line);
  overflow-x:auto;
}

.mcfav-detail-tabs button{
  height:34px;
  border:0;
  border-radius:999px;
  padding:0 14px;
  background:var(--mc-card);
  color:var(--mc-text);
  font-size:13px;
  font-weight:700;
}

.mcfav-detail-tabs button.active{
  background:var(--mc-gradient);
}

.mcfav-block{
  padding:14px;
  border-bottom:1px solid var(--mc-line);
}

.mcfav-block h3{
  margin:0 0 10px;
  font-size:14px;
}

/* 08 Mobile */
/* 08 Mobile */
@media (max-width:900px){
  .mcfav-shell{
    grid-template-columns:1fr;
  }

  .mcfav-sofa-header{
    height:auto;
    min-height:0;
  }

  .mcfav-sofa-row-main{
    display:flex;
    flex-wrap:nowrap;
    height:auto;
    padding:12px;
  }

  .mcfav-search{
    order:0;
    flex:1 1 auto;
    min-width:0;
  }

  .mcfav-date-nav{
    margin-left:0;
    flex:0 0 132px;
  }

  .mcfav-sofa-row-status{
    padding:8px 12px 10px;
  }

  .mcfav-tabs{
    flex:1 1 auto;
  }

  #mcfav-root .mcfav-tabs button{
    min-width:auto;
    padding:0 12px!important;
  }
}