/* The Overcoming Women TV — Rumble grid widget (GitHub Pages) */

.rw-root { width: 100%; }

.rw-status {
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: 0.8;
  padding: 8px 0;
}

.rw-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.rw-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.rw-thumbWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.rw-thumbWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--rw-thumb-bg, none);
  background-position: center;
  background-size: cover;
  filter: blur(16px);
  opacity: 0;
  transform: scale(1.08);
}

.rw-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rw-card--short .rw-thumbWrap {
  background: #111;
}

.rw-card--short .rw-thumbWrap::before {
  opacity: 0.55;
}

.rw-card--short .rw-thumb {
  object-fit: contain;
}

.rw-meta {
  padding: 10px 10px 12px 10px;
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.rw-title {
  font-weight: 650;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rw-date {
  opacity: 0.75;
  font-size: 13px;
}

.rw-card:hover { filter: brightness(0.98); }
.rw-card:active { filter: brightness(0.96); }

@media (max-width: 380px) {
  .rw-grid { grid-template-columns: 1fr; }
}

/* Rumble overlay player — portal to document.body (above site .fixed-top z-index: 2300) */
#rumbleModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#rumbleModal .rumbleModalContent {
  background: #0b0b0b;
  border-radius: 10px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.rumbleModalBar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 8px;
  background: #0b0b0b;
  position: relative;
  z-index: 2;
}

#rumbleModalClose {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
}

#rumblePlayerWrap {
  width: 100%;
  background: #000;
  min-height: 420px;
}

@media (max-width: 600px) {
  #rumblePlayerWrap { min-height: 280px; }
}
