/**
 * Kitchens Restaurant Home — vertical 9:16 profile cards, 2 cols mobile / 3 cols desktop.
 * Cloudflare Stream: responsive 16:9 iframe (padding-top hack) inside top pane.
 */

.khrh-wrap {
  width: 100%;
  margin: 0 auto;
}

.khrh-empty {
  padding: 2rem 1rem;
  text-align: center;
  opacity: 0.8;
}

.khrh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: min(1200px, 100%);
  margin-inline: auto;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
  .khrh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.khrh-card-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: #0f1419;
}

.khrh-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.khrh-card-wrapper:focus-within {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.khrh-split {
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  min-height: 0;
  width: 100%;
}

.khrh-split__broadcast {
  flex: 7 1 0;
  min-height: 0;
  position: relative;
  background: #0a0d12;
}

/* Cloudflare-style responsive iframe (matches Stream embed snippets) */
.khrh-split__broadcast .khrh-embed-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

.khrh-embed-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.khrh-embed-aspect .khrh-live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  height: 100%;
  width: 100%;
  display: block;
  background: #000;
}

/* Raw HLS <video> fallback — fill pane */
.khrh-split__broadcast > .khrh-live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

.khrh-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
}

.khrh-placeholder--broadcast {
  background: linear-gradient(160deg, #1c252e 0%, #12161d 55%, #0a0d12 100%);
  color: rgba(232, 234, 237, 0.88);
}

.khrh-placeholder--live {
  border: 2px dashed rgba(26, 127, 55, 0.45);
  background: linear-gradient(160deg, #132818 0%, #101510 60%, #0a120d 100%);
}

.khrh-placeholder__text {
  font-size: clamp(0.75rem, 2.3vw, 0.875rem);
  font-weight: 600;
  line-height: 1.35;
}

.khrh-split__lower {
  flex: 5 1 0;
  min-height: 0;
  background: repeating-linear-gradient(-45deg, #171c24, #171c24 8px, #131820 8px, #131820 16px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.65rem 0.85rem;
}

.khrh-card__profilelink {
  color: #e8eaed;
  font-size: clamp(0.8rem, 2.6vw, 0.9375rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.khrh-card__profilelink:hover {
  color: #fff;
  text-decoration: underline;
}
