/**
 * Host Control — Design Law pilot (Item 3)
 * Calm work surfaces · cinematic comm/live strip · HMC EDU brand
 * Reference: VISUAL TARGET NANO BANANA (1-l7rdxVSBsRly3g1l2s218ol0PhREnrJ)
 */
body.hc-host-pilot {
  --hc-brand-gold: #f4c030;
  --hc-brand-gold-dim: #cf9f22;
  --hc-cyan: #3dd9f0;
  --hc-cyan-dim: rgba(61, 217, 240, 0.35);
  --hc-glass: rgba(9, 20, 37, 0.72);
  --hc-glass-border: rgba(61, 217, 240, 0.22);
  --hc-work-bg: rgba(17, 31, 58, 0.98);
  --hc-work-border: rgba(244, 192, 48, 0.18);
}

body.hc-host-pilot #host-control-root {
  padding: 16px 14px 28px;
}

/* ── Brand lockup ── */
.hc-brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 31, 58, 0.95), rgba(5, 11, 20, 0.98));
  border: 1px solid var(--hc-work-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hc-brand-bar img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.hc-brand-bar .hc-brand-copy h1 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--hc-brand-gold);
  text-transform: uppercase;
}

.hc-brand-bar .hc-brand-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Cinematic live / comm strip ── */
.hc-cinematic {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--hc-glass);
  border: 1px solid var(--hc-glass-border);
  box-shadow:
    0 0 0 1px rgba(61, 217, 240, 0.06) inset,
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(61, 217, 240, 0.06);
  backdrop-filter: blur(12px);
}

.hc-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(61, 217, 240, 0.08), transparent 55%);
}

.hc-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hc-puck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hc-cyan-dim);
  background: linear-gradient(135deg, rgba(61, 217, 240, 0.12), rgba(9, 20, 37, 0.9));
  color: var(--text);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(61, 217, 240, 0.12);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.hc-puck:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 22px rgba(61, 217, 240, 0.22);
  transform: translateY(-1px);
}

.hc-puck.gold-puck {
  border-color: rgba(244, 192, 48, 0.45);
  background: linear-gradient(135deg, #f4c030, #cf9f22);
  color: #111;
  box-shadow: 0 0 18px rgba(244, 192, 48, 0.25);
}

.hc-puck.gold-puck.live-on {
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
  border-color: #22c55e;
}

.hc-video-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
}

.hc-video-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--hc-cyan-dim);
  background: radial-gradient(circle at 30% 20%, rgba(61, 217, 240, 0.15), rgba(9, 20, 37, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(61, 217, 240, 0.15);
}

.hc-video-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hc-cyan);
  font-family: Orbitron, Inter, sans-serif;
}

.hc-timer {
  font-family: Orbitron, Inter, sans-serif;
  font-size: 20px;
  color: var(--hc-brand-gold);
  letter-spacing: 0.08em;
  margin-left: auto;
}

.hc-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.hc-live-status {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.hc-video-status {
  color: var(--hc-cyan);
  font-size: 12px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

/* ── Comm hub: holo + card stack ── */
.hc-comm-hub {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 12px;
  margin-bottom: 14px;
  min-height: 120px;
  position: relative;
  z-index: 1;
}

.hc-holo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 110px;
  border: 1px solid rgba(61, 217, 240, 0.12);
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(61, 217, 240, 0.06), rgba(5, 11, 20, 0.92));
}

.hc-holo-canvas {
  display: block;
  width: 100%;
  height: 110px;
}

.hc-message-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow: hidden;
  pointer-events: none;
}

.hc-msg-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 20, 37, 0.88);
  border: 1px solid rgba(61, 217, 240, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 12px rgba(61, 217, 240, 0.06);
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.hc-msg-card.hc-msg-enter {
  transform: translateX(24px);
  opacity: 0;
}

.hc-msg-meta {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-cyan);
  font-family: Orbitron, Inter, sans-serif;
  margin-bottom: 4px;
}

.hc-msg-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hc-brand-gold);
  margin-bottom: 2px;
}

.hc-msg-body {
  font-size: 11px;
  color: var(--text);
  line-height: 1.35;
}

/* ── Five circular video tiles ── */
.hc-video-ring-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 10px;
  position: relative;
  z-index: 2;
}

.hc-vtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 92px;
}

.hc-vtile-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--hc-cyan-dim);
  background: radial-gradient(circle at 30% 20%, rgba(61, 217, 240, 0.14), rgba(9, 20, 37, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(61, 217, 240, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 0;
  color: var(--hc-cyan);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hc-vtile-ring:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 24px rgba(61, 217, 240, 0.22);
}

.hc-vtile-live .hc-vtile-ring {
  border-color: rgba(61, 217, 240, 0.65);
  box-shadow: 0 0 28px rgba(61, 217, 240, 0.28);
}

.hc-vtile-initial {
  z-index: 1;
}

.hc-vtile-meter {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
  pointer-events: none;
}

.hc-vtile-meter i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--hc-cyan);
  opacity: 0.2;
  transform-origin: bottom center;
  transition: opacity 0.12s, transform 0.12s;
}

.hc-vtile-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hc-cyan);
  font-family: Orbitron, Inter, sans-serif;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.hc-vtile-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hc-pill {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(61, 217, 240, 0.25);
  background: rgba(9, 20, 37, 0.85);
  color: var(--text);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Orbitron, Inter, sans-serif;
  transition: border-color 0.15s, background 0.15s;
}

.hc-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hc-pill:not(:disabled):hover {
  border-color: var(--hc-cyan);
}

.hc-pill-off {
  border-color: rgba(247, 135, 135, 0.45);
  color: #f78787;
}

.hc-pill-on {
  border-color: rgba(61, 217, 240, 0.65);
  background: rgba(61, 217, 240, 0.15);
  color: var(--hc-cyan);
}

.hc-announce-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hc-announce-row input {
  flex: 1;
  min-width: 200px;
}

/* ── Puck launch pulse (real action, brief visual only) ── */
.hc-puck.launching {
  animation: hc-puck-launch 0.55s ease;
  pointer-events: none;
}

@keyframes hc-puck-launch {
  0% { box-shadow: 0 0 12px rgba(61, 217, 240, 0.2); transform: scale(1); }
  40% { box-shadow: 0 0 36px rgba(61, 217, 240, 0.45); transform: scale(1.03); }
  100% { box-shadow: 0 0 16px rgba(61, 217, 240, 0.15); transform: scale(1); }
}

.hc-puck.gold-puck.launching {
  animation-name: hc-puck-launch-gold;
}

@keyframes hc-puck-launch-gold {
  0% { box-shadow: 0 0 16px rgba(244, 192, 48, 0.3); transform: scale(1); }
  40% { box-shadow: 0 0 40px rgba(244, 192, 48, 0.55); transform: scale(1.03); }
  100% { box-shadow: 0 0 18px rgba(244, 192, 48, 0.25); transform: scale(1); }
}

/* ── Work surfaces (readable tables/lists) ── */
body.hc-host-pilot .hc-work.card {
  background: var(--hc-work-bg) !important;
  border: 1px solid var(--hc-work-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: none;
}

body.hc-host-pilot .hc-work h3 {
  color: var(--hc-brand-gold);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.hc-host-pilot .hc-work .item {
  background: #091425;
  border-color: #355278;
  color: var(--text);
}

body.hc-host-pilot .hc-work select,
body.hc-host-pilot .hc-work input {
  background: #091425 !important;
  color: var(--text) !important;
}

body.hc-host-pilot #classFeedBanner {
  border-radius: 12px;
  border: 1px solid rgba(244, 192, 48, 0.4);
}

body.hc-host-pilot .grid {
  grid-template-columns: 1.1fr 1fr 1fr;
}

@media (max-width: 1100px) {
  body.hc-host-pilot .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hc-comm-hub {
    grid-template-columns: 1fr;
  }

  .hc-holo-canvas {
    height: 88px;
  }

  .hc-video-ring-row {
    gap: 8px;
  }

  .hc-vtile-ring {
    width: 60px;
    height: 60px;
    font-size: 9px;
  }

  .hc-vtile {
    min-width: 76px;
  }

  .hc-pill {
    font-size: 7px;
    padding: 2px 5px;
  }
}
