/* ===================== NEWSTRO 3D NEWSROOM ===================== */
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --red: #d3111b;
  --red-hot: #ec1c24;
  --cobalt: #1d4ed8;
  --bg: #dce5f2;
  --panel: rgba(248, 250, 255, 0.88);
  --panel-solid: #f4f7fc;
  --border: rgba(15, 23, 42, 0.14);
  --border-strong: rgba(15, 23, 42, 0.24);
  --text: #0f172a;
  --muted: #475569;
  --head: "Anton", Impact, "Arial Narrow", sans-serif;
  --label: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#newsroom-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
}

#newsroom-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#newsroom-canvas:active { cursor: grabbing; }
#newsroom-canvas.is-hovering { cursor: pointer; }

.hud-panel {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 10px var(--red-hot);
  animation: pulseDot 1.5s ease-in-out infinite;
  flex: none;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* -------------------- LOADING SPLASH -------------------- */
.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #dbe6f5 60%, #c8d8ee 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loading-screen.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-card {
  width: min(440px, 100%);
  padding: 28px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  text-align: center;
}
.loading-logo-plate {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(115deg, #390506 0%, #a30d0a 62%, #e11d14 100%);
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(211, 17, 27, 0.25);
}
.loading-logo-plate img { height: 42px; width: auto; display: block; }
.loading-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  margin-bottom: 6px;
}
.loading-card h1 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.loading-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.loading-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
#loading-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--red));
  transition: width 0.25s ease;
}

/* -------------------- TOP-LEFT MASTHEAD HUD -------------------- */
.hud-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(440px, calc(100vw - 28px));
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hud-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hud-brand-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(115deg, #390506 0%, #a30d0a 62%, #e11d14 100%);
  box-shadow: 0 2px 10px rgba(211, 17, 27, 0.35);
  transition: transform 0.15s ease;
}
.hud-brand-link:hover { transform: translateY(-1px); }
.hud-brand-link img { height: 28px; width: auto; display: block; }
.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(211, 17, 27, 0.1);
  border: 1px solid rgba(211, 17, 27, 0.38);
  font-family: var(--label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #b91c1c;
}
.hud-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hud-stats strong { color: var(--text); font-weight: 700; }
.hud-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

/* -------------------- TOP-RIGHT CONTROLS -------------------- */
.hud-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100vw - 480px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hud-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 11px;
  flex-wrap: wrap;
}
.tool-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #1e293b;
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.tool-btn:hover {
  background: rgba(29, 78, 216, 0.09);
  color: var(--cobalt);
}
.tool-btn.is-active {
  background: var(--red);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 12px rgba(211, 17, 27, 0.32);
}

.hud-restore-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--label);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* -------------------- HOVER TOOLTIP -------------------- */
.hover-tooltip {
  position: absolute;
  z-index: 35;
  pointer-events: none;
  width: min(330px, calc(100vw - 32px));
  padding: 12px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.tooltip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tooltip-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tooltip-titles strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.tooltip-titles span {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #15803d;
  margin-top: 2px;
}
.tooltip-headline {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}
.tooltip-cta {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

/* -------------------- SITE LOGO PLATES (matching footer-sites.css) -------------------- */
.site-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 8px;
  background: #101012;
  flex: none;
}
.site-logo-plate img {
  display: block;
  width: 78px;
  height: 30px;
  object-fit: contain;
}
.site-logo-plate[data-site="newstro"]      { background: linear-gradient(115deg, #390506 0%, #a30d0a 62%, #e11d14 100%); }
.site-logo-plate[data-site="celebrity"]    { background: #0b0b0d; }
.site-logo-plate[data-site="gaming"]       { background: #13101a; }
.site-logo-plate[data-site="iowa"]         { background: linear-gradient(180deg, #ffffff 0%, #dfe9f7 100%); }
.site-logo-plate[data-site="nyc"]          { background: linear-gradient(180deg, #ffffff 0%, #e4e6e9 100%); }
.site-logo-plate[data-site="politics"]     { background: #ead4a0; }
.site-logo-plate[data-site="rp"]           { background: #0d0716; }
.site-logo-plate[data-site="tcg"]          { background: #141011; }
.site-logo-plate[data-site="tech"]         { background: #070a14; }
.site-logo-plate[data-site="aliensreport"] { background: #070b08; }
.site-logo-plate[data-site="dorkverse"]    { background: #0d0518; }
.site-logo-plate[data-site="pwsignal"]     { background: #0a0a0a; }
.site-logo-plate[data-site="scannersquad"] { background: #08090d; }
.site-logo-plate[data-site="tvnerve"]      { background: #f4f4f6; }
.site-logo-plate[data-site="weblug"]       { background: #f2f7fa; }

/* -------------------- INSPECTOR DRAWER -------------------- */
.inspector-drawer {
  position: absolute;
  top: 68px;
  right: 14px;
  bottom: 92px;
  z-index: 28;
  width: min(410px, calc(100vw - 28px));
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.inspector-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.drawer-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  flex: none;
}
.drawer-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.drawer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover { background: rgba(15, 23, 42, 0.12); }
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-brand .site-logo-plate {
  padding: 8px 11px;
}
.drawer-brand .site-logo-plate img {
  width: 112px;
  height: 44px;
}
.drawer-brand-copy {
  min-width: 0;
  flex: 1;
}
.drawer-brand-copy h2 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.drawer-brand-copy p {
  margin: 0 0 7px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}
.drawer-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cobalt);
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(29, 78, 216, 0.1);
  text-decoration: none;
}
.drawer-visit-link:hover { background: rgba(29, 78, 216, 0.18); }

.drawer-search-wrap {
  margin-top: 10px;
}
.drawer-search-wrap input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-family: var(--ui);
  font-size: 13.5px;
  outline: none;
}
.drawer-search-wrap input:focus {
  border-color: var(--cobalt);
}

.drawer-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
  flex: 1;
  user-select: text;
}
.drawer-featured {
  padding: 13px 14px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.08), rgba(211, 17, 27, 0.06));
  border: 1px solid rgba(29, 78, 216, 0.22);
  margin-bottom: 16px;
}
.drawer-featured-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #15803d;
  margin-bottom: 6px;
}
.drawer-featured h3 {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.drawer-featured p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.drawer-meta-line {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 11px;
}
.drawer-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--label);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.16s ease, transform 0.16s ease;
}
.drawer-read-btn:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
}

.drawer-section-title {
  margin: 0 0 10px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.headline-item a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.headline-item a:hover {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.34);
  transform: translateX(2px);
}
.headline-item-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.headline-item-title {
  display: block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text);
}
.headline-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* -------------------- PRESS DISPATCH FEED -------------------- */
.dispatch-feed {
  position: absolute;
  left: 14px;
  bottom: 92px;
  z-index: 18;
  width: min(350px, calc(100vw - 28px));
  padding: 9px 11px;
  border-radius: 11px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dispatch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.dispatch-header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dispatch-jump {
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.dispatch-jump:hover { color: var(--red); }
.dispatch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dispatch-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11.5px;
  line-height: 1.3;
}
.dispatch-row a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dispatch-row a:hover { text-decoration: underline; }
.dispatch-site-pill {
  flex: none;
  font-family: var(--label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--text);
}

/* -------------------- BOTTOM SITE DOCK -------------------- */
.site-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 22;
  padding: 7px 9px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dock-item {
  appearance: none;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dock-item:hover {
  background: #ffffff;
  border-color: rgba(29, 78, 216, 0.35);
  transform: translateY(-2px);
}
.dock-item.is-active {
  background: rgba(211, 17, 27, 0.12);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(211, 17, 27, 0.2);
}
.dock-item .site-logo-plate {
  padding: 4px 6px;
}
.dock-item .site-logo-plate img {
  width: 68px;
  height: 28px;
}
.dock-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}
.dock-copy strong {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dock-copy span {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* -------------------- HIDE HUD MODE & STAGE MODE -------------------- */
body.is-stage-mode .dispatch-feed {
  display: none;
}
body.hud-hidden .hud-top-left,
body.hud-hidden .hud-top-right,
body.hud-hidden .dispatch-feed,
body.hud-hidden .stage-director-bar,
body.hud-hidden .site-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* -------------------- WEBGL FALLBACK -------------------- */
.webgl-fallback {
  position: absolute;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  background: #edf2f9;
  color: var(--text);
  padding: 28px 20px;
}
.fallback-wrap { max-width: 1180px; margin: 0 auto; }
.fallback-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.fallback-header img {
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(115deg, #390506 0%, #a30d0a 62%, #e11d14 100%);
}
.fallback-header h1 { margin: 0 0 4px; font-family: var(--head); text-transform: uppercase; font-weight: 400; color: var(--text); }
.fallback-header p { margin: 0; color: var(--muted); font-size: 14px; }
.fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.fallback-card {
  padding: 15px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.fallback-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.fallback-card-head h2 { margin: 0; font-size: 16px; }
.fallback-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fallback-card a { color: #0f172a; text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.fallback-card a:hover { text-decoration: underline; color: var(--red); }
.fallback-soon { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--cobalt); }

/* -------------------- STREAMER STAGE SET SWITCHER -------------------- */
.stage-set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.stage-set-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 6px 6px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.stage-set-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.4);
  background: #f4f8ff;
}
.stage-set-btn.is-active {
  border-color: var(--red);
  background: rgba(211, 17, 27, 0.08);
  box-shadow: 0 4px 12px rgba(211, 17, 27, 0.18);
}
.stage-set-btn .site-logo-plate {
  width: 100%;
  padding: 4px 6px;
}
.stage-set-btn .site-logo-plate img {
  width: 100%;
  height: 28px;
}
.stage-set-btn span.stage-set-label {
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
}
.stage-set-btn small {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stage-set-btn.is-soon small { color: var(--cobalt); }
.stage-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fef08a;
  color: #713f12;
  font-family: var(--label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage-story-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.stage-ots-btn {
  appearance: none;
  border: 1px solid rgba(29, 78, 216, 0.3);
  background: rgba(29, 78, 216, 0.08);
  color: var(--cobalt);
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.stage-ots-btn:hover {
  background: var(--cobalt);
  color: #ffffff;
}

/* -------------------- STAGE BROADCAST DIRECTOR BAR -------------------- */
.stage-director-bar {
  position: absolute;
  left: 14px;
  bottom: 92px;
  z-index: 21;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  max-width: calc(100vw - 28px);
  transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease;
}
.stage-director-bar[hidden] {
  display: none !important;
}
body.drawer-open .stage-director-bar {
  max-width: calc(100vw - 446px);
}
.director-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.director-tag {
  font-family: var(--label);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  padding: 0 5px 0 3px;
  white-space: nowrap;
}
.director-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
}
.director-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #1e293b;
  font-family: var(--label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}
.director-btn:hover {
  background: #ffffff;
  color: var(--cobalt);
  border-color: rgba(29, 78, 216, 0.36);
}
.director-btn.is-active {
  background: var(--cobalt);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.28);
}
.director-btn.is-paused {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.42);
}
.director-btn.stinger-trigger-btn {
  background: linear-gradient(120deg, #b91c1c 0%, #e11d14 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(211, 17, 27, 0.32);
}
.director-btn.stinger-trigger-btn:hover {
  background: linear-gradient(120deg, #991b1b 0%, #ec1c24 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(211, 17, 27, 0.46);
}

/* Drawer Stage Camera & Stinger Controls */
.stage-cam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}
.stage-cam-grid .director-btn {
  width: 100%;
  text-align: center;
  padding: 6px 5px;
}
.stage-stinger-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}
.stage-stinger-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 6px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.stage-stinger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.stage-stinger-btn[data-stinger-trigger="breaking"] {
  background: linear-gradient(125deg, #7f1d1d 0%, #d3111b 100%);
  box-shadow: 0 3px 12px rgba(211, 17, 27, 0.28);
}
.stage-stinger-btn[data-stinger-trigger="special"] {
  background: linear-gradient(125deg, #0f172a 0%, #1d4ed8 100%);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 3px 12px rgba(29, 78, 216, 0.28);
}
.stage-stinger-btn[data-stinger-trigger="update"] {
  background: linear-gradient(125deg, #1e293b 0%, #334155 100%);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
}

/* -------------------- BREAKING NEWS STINGER OVERLAY -------------------- */
.stage-stinger-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
  --stinger-accent: #e11d14;
}
.stage-stinger-overlay[hidden] {
  display: none;
}
.stinger-slash {
  position: absolute;
  top: -20%;
  left: -35%;
  width: 24%;
  height: 140%;
  opacity: 0;
  transform: skewX(-22deg) translateX(-140vw);
  will-change: transform, opacity;
}
.stinger-slash-a {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 38%, var(--stinger-accent) 72%, transparent 100%);
}
.stinger-slash-b {
  width: 14%;
  background: linear-gradient(90deg, transparent 0%, rgba(250, 204, 21, 0.85) 45%, #ffffff 85%, transparent 100%);
}
.stage-stinger-overlay.is-active .stinger-slash-a {
  animation: stingerSlashSweep 0.78s cubic-bezier(0.18, 0.88, 0.28, 1) forwards;
}
.stage-stinger-overlay.is-active .stinger-slash-b {
  animation: stingerSlashSweep 0.78s 0.09s cubic-bezier(0.18, 0.88, 0.28, 1) forwards;
}
@keyframes stingerSlashSweep {
  0% { opacity: 0; transform: skewX(-22deg) translateX(-40vw); }
  22% { opacity: 0.78; }
  80% { opacity: 0.52; }
  100% { opacity: 0; transform: skewX(-22deg) translateX(175vw); }
}

.stinger-banner {
  position: absolute;
  left: 50%;
  bottom: 146px;
  transform: translateX(-50%) scale(0.92);
  opacity: 0;
  display: flex;
  align-items: stretch;
  max-width: min(760px, calc(100vw - 44px));
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 48px rgba(7, 10, 18, 0.52), 0 0 36px rgba(211, 17, 27, 0.42);
  background: rgba(9, 13, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: left 0.25s ease;
}
body.drawer-open .stinger-banner {
  left: calc((100vw - 424px) / 2);
  max-width: min(680px, calc(100vw - 456px));
}
.stage-stinger-overlay.is-active .stinger-banner {
  animation: stingerBannerInOut 3.35s cubic-bezier(0.16, 0.9, 0.24, 1) forwards;
}
@keyframes stingerBannerInOut {
  0% { opacity: 0; transform: translateX(-50%) skewX(-10deg) translateY(16px) scale(0.9); }
  10% { opacity: 1; transform: translateX(-50%) skewX(0deg) translateY(0) scale(1); }
  84% { opacity: 1; transform: translateX(-50%) skewX(0deg) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) skewX(8deg) translateY(12px) scale(0.95); }
}
.stinger-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(125deg, #7f1d1d 0%, #d3111b 60%, #ef4444 100%);
  color: #ffffff;
  font-family: var(--head);
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.stinger-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
  flex: none;
}
.stinger-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 18px;
  min-width: 0;
}
.stinger-site {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #facc15;
}
.stinger-headline {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.stage-stinger-overlay[data-stinger-type="breaking"] {
  --stinger-accent: #e11d14;
}
.stage-stinger-overlay[data-stinger-type="special"] {
  --stinger-accent: #facc15;
}
.stage-stinger-overlay[data-stinger-type="special"] .stinger-badge {
  background: linear-gradient(125deg, #0f172a 0%, #1d4ed8 100%);
  border-right: 3px solid #facc15;
}
.stage-stinger-overlay[data-stinger-type="special"] .stinger-banner {
  border-color: #facc15;
  box-shadow: 0 20px 48px rgba(7, 10, 18, 0.56), 0 0 36px rgba(29, 78, 216, 0.45);
}
.stage-stinger-overlay[data-stinger-type="update"] .stinger-badge {
  background: var(--stinger-accent);
  border-right: 2px solid rgba(255, 255, 255, 0.45);
}
.stage-stinger-overlay[data-stinger-type="update"] .stinger-banner {
  border-color: var(--stinger-accent);
  box-shadow: 0 18px 42px rgba(7, 10, 18, 0.45), 0 0 26px rgba(34, 211, 238, 0.25);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 980px) {
  .hud-top-right {
    max-width: calc(100vw - 28px);
    top: auto;
    bottom: 84px;
    right: 14px;
    left: 14px;
    justify-content: flex-start;
  }
  .dispatch-feed { display: none; }
  .stage-director-bar,
  body.drawer-open .stage-director-bar {
    bottom: 138px;
    max-width: calc(100vw - 28px);
  }
  body.drawer-open .stinger-banner {
    left: 50%;
    max-width: calc(100vw - 28px);
  }
  .inspector-drawer {
    top: 14px;
    bottom: 84px;
  }
}

@media (max-width: 640px) {
  .hud-hint { display: none; }
  .hud-top-left { padding: 8px 10px; }
  .hud-brand-link img { height: 22px; }
  .tool-btn { font-size: 11px; padding: 6px 8px; }
  .dock-copy { display: none; }
  .dock-item { padding: 4px; }
  .dock-item .site-logo-plate img { width: 58px; height: 24px; }
  .stinger-badge { font-size: 18px; padding: 9px 12px; }
  .stinger-headline { font-size: 13px; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .inspector-drawer, .loading-screen { transition: none; }
  .stage-stinger-overlay.is-active .stinger-slash-a,
  .stage-stinger-overlay.is-active .stinger-slash-b,
  .stage-stinger-overlay.is-active .stinger-banner {
    animation: none;
    opacity: 1;
    transform: translateX(-50%);
  }
  .stage-stinger-overlay.is-active .stinger-slash {
    opacity: 0;
  }
}
