/* ============================================================
   MUNHU — Platform mirrors (live embeds) + Live section
   ============================================================ */

/* ---- Platform tabs ---- */
.platform-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.platform-tab {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-soft);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.platform-tab svg { width: 18px; height: 18px; fill: currentColor; }
.platform-tab:hover { color: var(--text); border-color: var(--tab-color, var(--accent)); }
.platform-tab.active { color: #fff; background: var(--tab-color, var(--accent)); border-color: transparent; }
.platform-tab .tab-count { font-family: var(--font-mono); font-size: var(--fs-xs); opacity: .85; }

/* ---- Embed stage ---- */
.platform-stage[hidden] { display: none; }
.platform-stage {
  position: relative;
  min-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; justify-content: center;
  overflow: hidden;
}
.platform-stage iframe { border: 0; width: 100%; max-width: 560px; border-radius: var(--r-md); }
.platform-stage .yt-embed { width: 100%; max-width: 880px; aspect-ratio: 16/9; }
.platform-stage blockquote { margin: 0 auto; }
.platform-loading {
  position: absolute; inset: 0; display: grid; place-items: center; gap: var(--sp-3);
  color: var(--text-soft); font-size: var(--fs-sm);
}
.platform-loading .spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.platform-fallback { text-align: center; align-self: center; max-width: 360px; color: var(--text-soft); }
.platform-fallback h3 { color: var(--text); }

/* ---- Live section ---- */
.live-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-5); align-items: start; }
.live-stage {
  position: relative; background: #000; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 16/9;
}
.live-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-offline {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--sp-3); text-align: center; padding: var(--sp-6);
  background: var(--grad-aurora), var(--night-800);
}
.live-offline .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .15em; text-transform: uppercase; color: var(--text-soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 14px; }
.live-offline .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.live-offline h3 { margin: var(--sp-2) 0 0; font-size: var(--fs-lg); color: var(--paper); }
.live-offline p { margin: 0 auto; max-width: 42ch; color: var(--text-soft); font-size: var(--fs-sm); }
.live-offline-cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-3); }
.live-offline-cta .btn { color: #fff; }

.live-badge { display: inline-flex; align-items: center; gap: 8px; background: #ff2d55; color: #fff; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.4s infinite; }
.live-badge-float { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 3; box-shadow: var(--shadow-md); }

.live-channels { display: grid; gap: var(--sp-3); }
.live-channel {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); transition: all var(--dur) var(--ease);
}
.live-channel:hover { transform: translateX(4px); border-color: var(--lc-color, var(--accent)); }
.live-channel svg { width: 26px; height: 26px; fill: var(--lc-color, var(--text)); flex-shrink: 0; }
.live-channel .lc-body { flex: 1; min-width: 0; }
.live-channel .lc-title { font-weight: 700; }
.live-channel .lc-sub { font-size: var(--fs-xs); color: var(--text-soft); }
.live-channel .lc-go { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; }

.live-note { margin-top: var(--sp-4); color: var(--text-soft); font-size: var(--fs-sm); }
.live-note strong { color: var(--text); }

@media (max-width: 860px) {
  .live-wrap { grid-template-columns: 1fr; }
}
