.seplato-epg__list { list-style: none; margin: 0; padding: 0; }
.seplato-class { 
    display: flex; 
    align-items: center; 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    gap: 12px;
}

.seplato-class:first-child { 
    padding-top: 0px !important; 
}

/* Bild */
.seplato-show-image {
  width: 100px !important;
  height: 75px;
  border-radius: 4px;
  margin-right: 8px;
  max-height: 90px;
  object-fit: cover;
}
.seplato-show-image-wrap { display: block; }

/* Inner flex without display:flex as requested */
.seplato-class__inner-flex { gap: 6px; align-items: center; }

/* Titel */
.seplato-class__title { font-size: 1.1rem; margin: 0; }


/* Container: zwei Spalten (Hosts | Time). Zentriert vertikal, robust bei mehrzeiligem Hosts-Text */
.seplato-class__time-duration {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5rem;
  align-items: center; /* sorgt für vertikale Zentrierung der Zellen */
  align-content: center;
}


/* Button */
.seplato-btn--action {
    background: linear-gradient(90deg, var(--secondary-color) 2%, var(--secondary-color) 200%);
    color:#fff;
    padding:8px 10px;
    text-decoration:none !important;
    font-size: smaller;
    border-radius:5px; 
    
}
.seplato-btn--action:hover, .seplato-btn--action:focus {
    color:#fff;
    text-decoration:none !important;
}

.seplato-class__action {
    margin-left: 2%;
    min-width: 80px;
}

/* Blinkende Trennzeichen */
.seplato-addons--blink { animation: blink 1s steps(5, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Loading state */
/* .seplato-class--loading .seplato-class__title { color: #999; font-style: italic; } */

/* Aktion Wrapper */
.seplato-class__action .seplato-class__inner-flex { gap: 6px; align-items: center; }

/* Hosts darf umbrechen; kein extra margin nötig */
.seplato-hosts {
      white-space: normal;
      word-break: break-word;
  /* max-width: 60%; */
}

/* Dekorativer Präfix "mit: " nur anzeigen, wenn Hosts nicht leer sind */
.seplato-hosts:not(:empty)::before {
  content: "mit ";
  display: inline-block;
  margin-right: 0.25rem;
  color: inherit;
  white-space: nowrap;
}

/* Punkt nur anzeigen, wenn Hosts nicht leer ist (adjacent selector) */
.seplato-hosts:not(:empty) + .seplato-time-range::before {
  content: "•";
  display: inline-block;
  margin-right: 0.5rem;
  color: #6b6b6b;
  font-size: 0.9em;
  line-height: 1;
  vertical-align: middle;
  font-weight: 600;
}

/* Falls Hosts leer sind, keine zusätzliche Lücke */
.seplato-hosts:empty {
  margin-right: 0;
}

/* Optional: falls Hosts leer ist, entferne linken Abstand der Zeit */
.seplato-hosts:empty + .seplato-time-range {
  margin-left: 0;
}



/* markiere das Widget als Container und gib ihm einen Namen */
.seplato-epg-onair-container {
  container-type: inline-size;
  container-name: seplatoWidget;
}

/* Wenn Container Queries unterstützt werden: benutze benannten Container */
@supports (container-type: inline-size) {
  /* Container Query: wenn der benannte Container schmaler ist, Bild ausblenden */
  @container seplatoWidget (max-width: 300px) {
    .seplato-epg-onair-container .seplato-show-image { display: none; }
  }

  /* Container Query: wenn der benannte Container schmaler ist, nur Icon zeigen */
  @container seplatoWidget (max-width: 400px) {
    .seplato-btn__text { display: none; }
    .seplato-class__action { min-width: 30px; }
    .seplato-btn--info { padding: 6px 8px; gap: 6px; }
  }

  /* Container Query: ab 400px Text anzeigen */
  @container seplatoWidget (min-width: 400px) {
    .seplato-btn__text { display: inline-block; }
  }
}

/* Fallback für Browser ohne Container Queries: Viewport-basiert */
@supports not (container-type: inline-size) {
  @media (max-width: 1024px) {
    .seplato-btn__text { display: none; }
    .seplato-class__action { min-width: 30px; }
  }

  @media (min-width: 1025px) {
    .seplato-btn__text { display: inline-block; }
    .seplato-class__action { min-width: 80px; }
  }

  /* Bild-Fallback: falls gewünscht, Bild bei sehr schmalen Viewports ausblenden */
  @media (max-width: 480px) {
    .seplato-epg-onair-container .seplato-show-image { display: none; }
  }
}
