/* Öffentliche Webinar-Mediathek — Grid, Karten, Kategorie-Filter (Sky/Grün) */
.nxw-med {
  --m-ink: #0f172a; --m-muted: #64748b; --m-line: rgba(15,23,42,0.10);
  --m-sky: #0284c7; --m-sky2: #0ea5e9; --m-green: #22c55e; --m-soft: #f8fafc;
  width: min(1180px, 100%); margin: 0 auto; padding: 8px 0 48px;
  font-family: inherit; color: var(--m-ink);
}
.nxw-med *, .nxw-med *::before, .nxw-med *::after { box-sizing: border-box; }

.nxw-med-empty {
  text-align: center; padding: 56px 20px;
  background: var(--m-soft); border: 1px solid var(--m-line); border-radius: 18px;
}
.nxw-med-empty h3 { margin: 0 0 6px; font-size: 1.25rem; }
.nxw-med-empty p { margin: 0; color: var(--m-muted); }

/* Filter */
.nxw-med-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 26px; }
.nxw-med-pill {
  border: 1px solid var(--m-line); background: #fff; color: var(--m-muted);
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .14s ease;
}
.nxw-med-pill:hover { border-color: var(--m-sky); color: var(--m-sky); }
.nxw-med-pill.is-active {
  background: linear-gradient(135deg, var(--m-sky2), var(--m-sky));
  color: #fff; border-color: transparent;
}

/* Grid */
.nxw-med-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.nxw-med-card {
  background: #fff; border: 1px solid var(--m-line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 30px rgba(15,23,42,0.07);
  display: flex; flex-direction: column;
}

/* Thumb / Player */
.nxw-med-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; cursor: pointer; background: #0b1220; overflow: hidden;
}
.nxw-med-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease, opacity .2s ease;
}
.nxw-med-thumb:hover img { transform: scale(1.05); opacity: .85; }
.nxw-med-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(2,132,199,0.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; padding-left: 4px;
  box-shadow: 0 6px 20px rgba(2,132,199,0.5); transition: transform .15s ease;
}
.nxw-med-thumb:hover .nxw-med-play { transform: translate(-50%, -50%) scale(1.08); }
.nxw-med-iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* Body */
.nxw-med-body { padding: 16px 18px 20px; display: flex; flex-direction: column; }
.nxw-med-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nxw-med-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(14,165,233,0.12); color: var(--m-sky);
  padding: 3px 9px; border-radius: 999px;
}
.nxw-med-title { margin: 0 0 4px; font-size: 1.12rem; font-weight: 800; line-height: 1.28; }
.nxw-med-date { font-size: 0.82rem; color: var(--m-muted); font-weight: 600; margin-bottom: 8px; }
.nxw-med-desc { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--m-muted); }
.nxw-med-guests { margin-top: 8px; font-size: 0.82rem; color: var(--m-sky); font-weight: 600; }

.nxw-med-noresult {
  text-align: center; padding: 44px 20px; margin-top: 6px;
  background: var(--m-soft); border: 1px dashed var(--m-line); border-radius: 16px;
  color: var(--m-muted); font-size: 0.98rem; line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .nxw-med-thumb img, .nxw-med-play, .nxw-med-pill { transition: none; }
  .nxw-med-thumb:hover img { transform: none; }
}
