/* Rail-Kopf */
.hndb-rail { margin: clamp(16px, 4vw, 48px) 0; }
.hndb-rail-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 10px;
}
.hndb-rail-title { margin:0; font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.hndb-rail-link { font-size:.95rem; text-decoration:none; color:#0a58ca; }
.hndb-rail-link:hover { text-decoration:underline; }

/* Slider */
/*
.hndb-match-swiper { overflow: visible; padding: 4px 8px; }
*/
/* Match-Slider Container */
.hndb-match-swiper {
  position: relative;
  width: 100%;
  max-width: 100%;   /* kein 100vw → verhindert iOS-Overflow */
  overflow: hidden;  /* keine horizontale Scrollbar */
  padding: 0;        /* Abstände übernimmt Swiper (spaceBetween) */
}

.hndb-match-swiper .swiper-wrapper { align-items: stretch; }
.hndb-match-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.hndb-match-swiper .swiper-slide > a.hndb-card {
  display: flex;
  flex-direction: column;
  width: 100%;          /* <<< WICHTIG */
}

/* Karten (2:1 Querformat) */
.hndb-card.hndb-card--match {
  width: 100%;
  position: relative; display:block; color:#000; text-decoration:none;
  border-radius: 14px; overflow:hidden;
  background: #0b0b0b; box-shadow: 0 7px 20px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hndb-match-card-media{ 
  width:100%;
  /* aspect-ratio: 2 / 1; */
  background:#f6f6f6;
  display:block;
  overflow:hidden; }

/* Media-Fläche bleibt 2:1, aber ohne Vollbild-Foto */
.hndb-match-card-media-inner{
  position: relative;
  height: 100%;
  width:100%;
  aspect-ratio: 16 / 9;
  /* neutraler Hintergrund, damit das runde Logo „schwebt“ */
  display:flex;
  /* align-items:center; */
  justify-content:center;
  padding-top: 2%;
}

/* Gegner-Logo mittig, rund, mit leichter Polsterung */
._hndb-opponent-logo{
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;     /* weißer Teller hinter dem Logo */
  padding: 6px;         /* „Badge“-Rahmenwirkung */
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  display:block;
}

.hndb-opponent-logo {
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  display: block;
}

.hndb-card-thumb { width:auto; height:auto; object-fit:contain; display:block; }
._hndb-card-thumb--ph { width:10%; height:10%; background:linear-gradient(135deg,#2a2a2a,#1a1a1a); }

/* Overlay */
.hndb-card-overlay {
  position:absolute; inset:auto 0 0 0;
  padding: 12px 12px 14px;
  background: linear-gradient(to top,  rgba(99, 29, 39, 0.894), rgba(200,50,10,0.3));
}
.hndb-card-title { margin:0 0 4px; font-weight:600; font-size: 1.05rem; line-height: 90%; }
.hndb-match-card-meta  { font-size:.9rem; opacity:.9; color: white;}

/* Pfeile */
/*
.hndb-match-swiper .swiper-button-prev,
.hndb-match-swiper .swiper-button-next {
  color:#fff; text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
*/

/* Globaler Hover-Effekt kommt schon aus deiner generischen .hndb-card-Regel */

/* Pfeile am sichtbaren Sliderrand */
.hndb-match-swiper .swiper-button-prev,
.hndb-match-swiper .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  color:#fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hndb-match-swiper .swiper-button-prev { left: 8px; }
.hndb-match-swiper .swiper-button-next { right: 8px; }

/* Gegnerlogo mittig im Score-Badge */
._score.score--logo {
  background: var(--gradient-score);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-score);
  min-width: 64px;
  min-height: 48px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Kleinere Icons */
.icon.small {
  width: 14px;
  height: 14px;
}

/* Meta-Zeile: Datum/Uhrzeit links, Badge rechts */
.hndb-card-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:4px;
}

.hndb-meta-left{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.9rem;
  opacity:.9;
  color:#fff;
}

.hndb-meta-right{ display:flex; align-items:center; }

.hndb-badge{
  background: rgba(255,255,255,.18);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  line-height:1;
  white-space:nowrap;
  margin:0; /* überschreibt evtl. ältere Margins */
}

/* kleiner Punkt zwischen Datum und Uhrzeit */
.meta-sep{ opacity:.7; }