:root {
  --today-bg: #12c96b;
  --yesterday-bg: #111a2d;
  --tomorrow-bg: #0ea85a;
  --block-head-bg: var(--gray-1);
  --block-title-bg: var(--dark-color);
  --match-bg: #eceef2;
}

html[data-theme="dark"] {
  --block-head-bg: #121a23;
  --match-bg: var(--gray-1);
}

.container {
  width: min(100% - 24px, 1024px);
  margin-inline: auto;
}

#SiteContent {
  position: relative;
}

.tmz-name {
  display: flex;
  height: 26px;
  overflow: hidden;
  padding: 3px 8px 0;
  justify-content: flex-end;
}

.tmz-name span {
  min-height: 24px;
  padding: 3px 12px 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.AY_Block {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--theme-radius);
  background: var(--light-color);
  box-shadow: 0 0 4px var(--theme-shadow);
}

.AYb_Head {
  min-height: 54px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--block-head-bg);
}

.aya-btn,
.date-btn {
  position: relative;
  min-height: 30px;
  padding: 4px 10px 5px;
  border: 0;
  border-radius: var(--theme-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--block-title-bg);
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.AYb_Head h2 {
  margin: 0;
  font-size: 16px;
}

.AYb_Head strong {
  font-weight: 500;
}

.AY-Dtab {
  display: flex;
  gap: 5px;
}

.date-btn {
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
}

#btn-yesterday {
  background: var(--yesterday-bg);
}

#btn-today {
  background: var(--today-bg);
}

#btn-tomorrow {
  background: var(--tomorrow-bg);
}

.date-btn:not(.active) {
  opacity: .94;
}

.date-btn:hover,
.date-btn:focus-visible {
  opacity: .8;
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.albaflex {
  position: relative;
  width: 100%;
  min-height: var(--matches-reserved-height, clamp(280px, 34vw, 432px));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.albaflex.is-loading {
  cursor: progress;
}

.AY_Match {
  position: relative;
  order: 3;
  min-height: 132px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: var(--theme-radius);
  background: var(--match-bg);
  color: inherit;
  text-align: center;
  contain: layout;
  --status-bg: #263545;
}

.AY_Match.is-live {
  order: 1;
  --status-bg: #d00000;
}

.AY_Match.is-soon {
  order: 2;
  --status-bg: #0f6f37;
}

.AY_Match.is-finished {
  order: 4;
  --status-bg: #474747;
}

.AY_Inner {
  display: flex;
  align-items: center;
}

.AY_Inner > div {
  width: 33.333333%;
  flex: 0 0 auto;
}

.MT_Team {
  display: flex;
  align-items: center;
  flex: 1;
}

.MT_Team.TM2 {
  flex-direction: row-reverse;
}

.TM_Logo {
  width: 50%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.TM_Logo img {
  width: 70px;
  height: 50px;
  max-width: 70px;
  max-height: 50px;
  margin: 10px auto;
  display: block;
  object-fit: contain;
}

.TM_Logo img.logo-national {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.TM_Name {
  min-width: 0;
  margin: 8px auto;
  padding-inline: 6px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.MT_Data {
  margin: 12px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.MT_Time {
  font-size: 16px;
  direction: ltr;
}

.MT_Stat {
  min-width: 60px;
  height: 25px;
  margin: 6px auto 0;
  padding: 4px 10px 5px;
  border-radius: var(--theme-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--status-bg);
  color: #fff;
  font-size: 14px;
}

.AY_Match.is-live .MT_Stat {
  animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
  50% { opacity: .72; }
}

.MT_Info {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--gray-2);
}

.MT_Info ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  list-style: none;
}

.MT_Info li {
  min-width: 0;
  flex: 1;
  padding: 5px 5px 7px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.MT_Info li::before {
  content: "🎤";
  margin-inline-end: 7px;
}

.MT_Info li:first-child::before {
  content: "📺";
}

.MT_Info li:last-child::before {
  content: "🏆";
}

.MT_Mask {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: 0;
  background: rgba(0, 0, 0, .6);
  transition: opacity .3s;
}

.AY_Match:hover .MT_Mask {
  opacity: 1;
}

.MT_MaskText {
  position: absolute;
  inset: 0;
  width: 45px;
  height: 45px;
  margin: auto;
  background: no-repeat center/contain url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M256 0a256 256 0 1 0 0 512 256 256 0 0 0 0-512Zm88.5 269.6-128 80A16 16 0 0 1 192 336V176a16 16 0 0 1 24.5-13.6l128 80a16 16 0 0 1 0 27.2Z'/%3E%3C/svg%3E");
}

.loading,
.no-matches,
.error {
  flex: 1;
  min-height: clamp(220px, 28vw, 360px);
  margin-bottom: 0;
  padding: 24px 12px;
  border-radius: var(--theme-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--match-bg);
  color: inherit;
  text-align: center;
  font-size: 15px;
}

.AYb_Inner {
  padding: 12px 12px 0;
  overflow: hidden;
}

.news-box .AYb_Head {
  justify-content: flex-start;
}

.news-box .WTa {
  display: none !important;
}

.AYaGrid {
  --post-width: 220px;
  position: relative;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--post-width), 1fr));
  gap: 12px;
}

.news-box .AYaGrid {
  min-height: 444px;
}

.gr-item {
  min-width: 0;
}

.gr-inner {
  height: 100%;
  overflow: hidden;
  border-radius: var(--theme-radius);
  display: block;
  background: var(--match-bg);
  color: inherit;
}

.gr-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: block;
  background: var(--gray-1);
}

.gr-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.gr-info {
  padding: 10px;
}

.gr-info h3 {
  height: 50px;
  max-height: 90px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.LoadMOreNews {
  min-width: 170px;
  height: 40px;
  margin: 8px auto 13px;
  padding: 8px 15px;
  border: 1px solid var(--gray-2);
  border-radius: 20px;
  display: block;
  background: var(--gray-1);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 91%;
}

.LoadMOreNews:hover {
  background: var(--main-color);
  color: #fff;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 16px);
  }

  .AYb_Head {
    padding: 8px;
    flex-wrap: wrap;
  }

  .AY-Fixture .AYb_Head h2 {
    width: 100%;
    margin-bottom: 6px;
  }

  .AY-Dtab {
    width: 100%;
  }

  .date-btn {
    flex: 1;
    padding-inline: 3px;
    font-size: 13px;
  }

  .MT_Team {
    min-width: 0;
    flex-direction: column !important;
    text-align: center;
  }

  .TM_Logo {
    width: 100%;
    min-height: 55px;
    margin-bottom: 2px;
  }

  .TM_Logo img {
    max-width: 50px;
    max-height: 48px;
  }

  .TM_Name {
    max-width: 100%;
    margin: 0 auto 5px;
    font-size: 13px;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
  }

  .MT_Data {
    margin: 13px auto;
  }

  .MT_Time {
    font-size: 12px;
  }

  .MT_Stat {
    min-width: 50px;
    height: 22px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .MT_Info li {
    width: 50%;
    font-size: 12px;
  }

  .MT_Info li:nth-child(2) {
    display: none;
  }

  .PS_1 .AYaGrid {
    --post-width: 280px;
    min-height: 704px;
  }

  .PS_1 .gr-inner {
    display: flex;
    gap: 2px;
  }

  .PS_1 .gr-img {
    width: 125px;
    min-width: 125px;
    height: 85px;
  }

  .gr-info h3 {
    height: 55px;
    line-height: 18px;
  }
}

@media (max-width: 350px) {
  .container {
    width: calc(100% - 10px);
  }

  .AYb_Head {
    padding: 5px;
  }

  .date-btn {
    font-size: 11px;
  }

  .TM_Name {
    font-size: 11px;
  }

  .MT_Info li {
    font-size: 10px;
  }

  .PS_1 .gr-img {
    width: 105px;
    min-width: 105px;
    height: 72px;
  }

  .gr-info h3 {
    height: 42px;
    font-size: 12px;
    line-height: 15px;
  }
}
