/* Live media hub — YouTube + Instagram (shared across Shanghai fair pages) */
.media-hub {
  padding: 80px 5%;
  background: #ffffff;
}
.media-hub__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.media-hub__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}
.media-hub__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.15;
}
.media-hub__title span { color: var(--media-accent, #0072ff); }
.media-hub--hub { --media-accent: #0072ff; }
.media-hub__desc {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}
.media-hub__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.media-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
}
.media-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.media-block__head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.media-block__head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--media-accent, #0072ff);
  text-decoration: none;
}
.media-block__head a:hover { text-decoration: underline; }
.yt-featured {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.yt-featured iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.yt-card {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.yt-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ig-embed-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ig-embed-wrap iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}
.ig-embed-wrap iframe.lazy-embed:not([src]) {
  min-height: 200px;
  background: #f1f5f9;
}
.ig-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 14px;
  background: #fff;
  z-index: 1;
}
.media-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
  text-align: center;
}

/* Fair accent colors */
.media-hub--cmef { --media-accent: #0056b3; }
.media-hub--cbe { --media-accent: #7a0000; }
.media-hub--iwf { --media-accent: #059669; }
.media-hub--intertextile { --media-accent: #3b82f6; }
.media-hub--aluminium { --media-accent: #00599c; }
.media-hub--bauma { --media-accent: #ca8a04; }
.media-hub--woca { --media-accent: #ea580c; }

@media (max-width: 1024px) {
  .media-hub__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .media-hub { padding: 64px 16px; }
  .ig-embed-wrap, .ig-embed-wrap iframe { min-height: 400px; }
  .yt-grid { grid-template-columns: 1fr; }
}
