.imdtm{
  width:min(1320px,calc(100% - 24px));
  margin:18px auto;
  font-family:inherit;
}

.imdtm [hidden]{
  display:none !important;
}

.imdtm__loading,
.imdtm__error{
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  background:linear-gradient(120deg,#160727,#260b3c 55%,#420b28);
  color:rgba(255,255,255,.78);
  font-size:14px;
}

.imdtm__card{
  position:relative;
  overflow:hidden;
  display:block;
  min-height:0;
  padding:22px 28px 24px;
  border-radius:26px;
  color:#fff!important;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 14% 15%,rgba(111,38,255,.34),transparent 30%),
    radial-gradient(circle at 91% 85%,rgba(255,29,77,.27),transparent 30%),
    linear-gradient(120deg,#10051e 0%,#1b082f 58%,#29091f 100%);
  box-shadow:0 17px 42px rgba(22,5,37,.20);
  transition:transform .18s ease,box-shadow .18s ease;
}

.imdtm__card::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-42px;
  height:88px;
  opacity:.12;
  background:
    linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px);
  background-size:34px 34px;
  transform:perspective(260px) rotateX(62deg) scale(1.2);
  pointer-events:none;
}

.imdtm__card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 50px rgba(22,5,37,.26);
}

.imdtm__topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.imdtm__tag{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.78);
  font-size:11px;
  font-weight:900;
  letter-spacing:.10em;
  white-space:nowrap;
}

.imdtm__dot{
  width:7px;height:7px;border-radius:50%;
  background:#ff244f;
  box-shadow:0 0 0 5px rgba(255,36,79,.14);
}

.imdtm__date{
  color:#fff;
  font-size:16px;
  font-weight:800;
  white-space:nowrap;
}

/* Desktopta takım alanı bilerek büyütüldü */
.imdtm__main{
  display:grid;
  grid-template-columns:minmax(560px,2.2fr) minmax(340px,1.12fr) minmax(190px,.68fr);
  gap:20px;
  align-items:center;
}

.imdtm__left{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding-right:4px;
}

.imdtm__team{
  min-width:0;
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}

.imdtm__team--away{
  flex-direction:row-reverse;
}

.imdtm__team img,
.imdtm__team > span{
  width:58px;
  height:58px;
  flex:0 0 58px;
  object-fit:contain;
}

.imdtm__team > span{
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  font-size:22px;
  line-height:1;
}

.imdtm__team strong{
  min-width:0;
  flex:1 1 auto;
  display:block;
  font-size:30px;
  line-height:1;
  letter-spacing:-.035em;
  font-weight:900;
  white-space:nowrap;
}

.imdtm__team--away strong{
  text-align:right;
}

.imdtm__vs{
  display:grid;
  place-items:center;
  width:42px;height:42px;
  border-radius:50%;
  background:#fff;
  color:#1a0929;
  font-size:12px;
  font-weight:1000;
}

.imdtm__middle{
  padding-inline:16px;
  border-left:1px solid rgba(255,255,255,.12);
  border-right:1px solid rgba(255,255,255,.12);
  text-align:center;
}

.imdtm__count-title{
  margin-bottom:10px;
  color:#ffb6c6;
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
}

.imdtm__count{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
}

.imdtm__count > div{
  min-width:66px;
  padding:8px 2px;
}

.imdtm__count b{
  display:block;
  font-size:38px;
  line-height:1;
  font-weight:1000;
  font-variant-numeric:tabular-nums;
}

.imdtm__count small{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.60);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
}

.imdtm__count i{
  font-style:normal;
  color:rgba(255,255,255,.46);
  font-size:26px;
  font-weight:900;
  transform:translateY(-8px);
}

.imdtm__right{
  text-align:right;
}

.imdtm__sales-title{
  font-size:20px;
  font-weight:900;
  line-height:1.08;
}

.imdtm__sales-sub{
  margin:7px 0 14px;
  color:rgba(255,255,255,.67);
  font-size:12px;
  line-height:1.35;
}

.imdtm__button{
  display:inline-block;
  padding:12px 15px;
  border-radius:13px;
  background:#ff1748;
  box-shadow:0 10px 22px rgba(255,23,72,.24);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.035em;
}

@media(max-width:1180px) and (min-width:901px){
  .imdtm__main{
    grid-template-columns:minmax(500px,2fr) minmax(310px,1fr) minmax(175px,.62fr);
    gap:14px;
  }

  .imdtm__team img,
  .imdtm__team > span{
    width:52px;
    height:52px;
    flex-basis:52px;
  }

  .imdtm__count b{
    font-size:34px;
  }

  .imdtm__count > div{
    min-width:58px;
  }

  .imdtm__sales-title{
    font-size:18px;
  }
}

@media(max-width:900px){
  .imdtm{
    width:min(1180px,calc(100% - 24px));
  }

  .imdtm__topline{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .imdtm__main{
    grid-template-columns:1fr;
    gap:18px;
  }

  .imdtm__middle{
    border-left:0;
    border-right:0;
    border-top:1px solid rgba(255,255,255,.12);
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:16px 0;
  }

  .imdtm__right{
    text-align:center;
  }

  .imdtm__team strong{
    width:auto !important;
    max-width:none !important;
    font-size:inherit !important;
  }
}

/* Mobil taraf v1.2 ile aynı bırakıldı */
@media(max-width:620px){
  .imdtm{
    width:calc(100% - 16px);
    margin:12px auto;
  }

  .imdtm__card{
    padding:17px 15px 18px;
    border-radius:20px;
  }

  .imdtm__tag{
    font-size:9px;
  }

  .imdtm__date{
    font-size:13px;
  }

  .imdtm__left{
    grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);
    gap:5px;
  }

  .imdtm__team,
  .imdtm__team--away{
    flex-direction:column;
    text-align:center;
    gap:7px;
  }

  .imdtm__team img,
  .imdtm__team > span{
    width:54px;
    height:54px;
    flex-basis:54px;
  }

  .imdtm__team strong,
  .imdtm__team--away strong{
    font-size:15px !important;
    text-align:center;
    white-space:normal;
    width:auto !important;
    max-width:none !important;
  }

  .imdtm__vs{
    width:34px;height:34px;
    font-size:10px;
  }

  .imdtm__count{
    gap:2px;
  }

  .imdtm__count > div{
    min-width:0;
    flex:1;
    padding:5px 2px;
  }

  .imdtm__count b{
    font-size:24px;
  }

  .imdtm__count small{
    font-size:8px;
  }

  .imdtm__count i{
    font-size:18px;
    transform:translateY(-4px);
  }

  .imdtm__sales-title{
    font-size:17px;
  }

  .imdtm__sales-sub{
    font-size:12px;
  }

  .imdtm__button{
    width:100%;
    box-sizing:border-box;
    text-align:center;
  }
}
