/* Anasayfa maç host — header altı / slider üstü */
.mh-host {
  --mh-ink: #0f111a;
  --mh-panel: #171a28;
  --mh-line: rgba(255, 216, 91, 0.16);
  --mh-text: #f2f0ea;
  --mh-muted: #9aa3b5;
  --mh-gold: var(--hb-maincolor, #ffd85b);
  --mh-live: #ff4d3a;
  margin: 8px 0 12px;
  padding: 0;
  font-family: var(--hb-fontf, inherit);
  color: var(--mh-text);
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.mh-host__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.mh-host__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mh-host__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mh-gold);
  box-shadow: 0 0 0 0 rgba(255, 216, 91, 0.55);
  animation: mh-pulse 1.8s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes mh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 216, 91, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 216, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 216, 91, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-host__pulse { animation: none; }
}

.mh-host__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.mh-host__all {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  color: var(--mh-gold);
  text-decoration: none;
  white-space: nowrap;
}
.mh-host__all:hover { color: #fff; }

.mh-host__scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 216, 91, 0.35) transparent;
}
.mh-host__scroller::-webkit-scrollbar { height: 5px; }
.mh-host__scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 216, 91, 0.35);
  border-radius: 999px;
}

.mh-card {
  flex: 0 0 auto;
  width: min(88vw, 260px);
  scroll-snap-align: start;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 216, 91, 0.08), transparent 55%),
    linear-gradient(165deg, var(--mh-panel) 0%, var(--mh-ink) 100%);
  border: 1px solid var(--mh-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mh-card:hover {
  border-color: rgba(255, 216, 91, 0.4);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .mh-card:hover { transform: none; }
}

.mh-card.is-live {
  border-color: rgba(255, 77, 58, 0.45);
  box-shadow: 0 10px 28px rgba(255, 77, 58, 0.12);
}

.mh-card__link {
  display: block;
  padding: 12px 12px 14px;
  color: inherit;
  text-decoration: none;
}
.mh-card__link:hover { color: inherit; text-decoration: none; }

.mh-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.mh-card__liga {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62%;
}

.mh-card__clock {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--mh-gold);
  background: rgba(255, 216, 91, 0.1);
  border: 1px solid rgba(255, 216, 91, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  flex: 0 0 auto;
}
.mh-card__clock.is-live {
  color: #fff;
  background: var(--mh-live);
  border-color: transparent;
  animation: mh-liveblink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .mh-card__clock.is-live { animation: none; }
}
@keyframes mh-liveblink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.mh-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.mh-card__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.mh-card__badge {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}
.mh-card__badge--empty {
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.mh-card__name {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 1px;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 750;
  line-height: 1.2;
  color: #fff;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.mh-card__name.is-long { font-size: clamp(9px, 2.4vw, 11px); }
.mh-card__name.is-xlong { font-size: clamp(8px, 2.1vw, 10px); line-height: 1.15; }

.mh-card__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  min-width: 44px;
  max-width: 58px;
}

.mh-card__score {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--mh-gold);
  letter-spacing: -0.02em;
}

.mh-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(135deg, var(--mh-gold), #ffe6a0);
  box-shadow: 0 4px 14px rgba(255, 216, 91, 0.28);
}

.mh-card--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(42vw, 130px);
  min-height: 132px;
  text-decoration: none;
  color: var(--mh-gold);
  background: rgba(255, 216, 91, 0.05);
  border-style: dashed;
}
.mh-card--more:hover {
  color: #fff;
  background: rgba(255, 216, 91, 0.1);
  text-decoration: none;
}
.mh-card__more-ico {
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
}
.mh-card__more-txt {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .mh-host { margin: 10px 0 14px; }
  .mh-host__title { font-size: 16px; }
  .mh-card { width: 248px; }
  .mh-card__badge { width: 44px; height: 44px; }
  .mh-card__name { font-size: 12px; }
  .mh-card__name.is-long { font-size: 11px; }
  .mh-card__name.is-xlong { font-size: 10px; }
  .mh-host__scroller {
    scroll-snap-type: x proximity;
  }
}

@media (max-width: 480px) {
  .mh-host { margin: 6px -2px 10px; }
  .mh-card { width: min(84vw, 240px); border-radius: 12px; }
}
