/* Sky — airport cameras with the planes marked (sky-cams.js).
   The video is YouTube's player, untouched; everything here sits around it. */
#sgCv{ display:none }
#sgCv.show{
  display:flex; flex-direction:column; align-items:center; position:fixed; top:0; right:0; bottom:0; left:0; z-index:80;
  background:#07080B; color:#F7F8FA; overflow:auto; padding:12px 12px 16px; box-sizing:border-box;
  font-family:"Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; font-variant-numeric:tabular-nums;
}
:root.sg-cam-on #sgAp{ visibility:hidden }

#sgCv .cv-top{ display:flex; align-items:center; gap:8px; width:100%; max-width:1600px; margin-bottom:10px }
#sgCv .cv-back, #sgCv .cv-delay{ height:42px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); color:#F7F8FA }
#sgCv .cv-back{ padding:0 14px; font-weight:600; font-size:14px; line-height:1; font-family:inherit; cursor:pointer }
#sgCv .cv-title{ flex:1; min-width:0; display:flex; align-items:baseline; gap:10px }
#sgCv .cv-title b{ font-size:20px; font-weight:800 }
#sgCv .cv-title span{ font-size:13px; color:#9AA3B2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
#sgCv .cv-delay{ display:flex; align-items:center; padding:0 4px; font-size:13px }
#sgCv .cv-delay button{ width:32px; height:32px; border:0; border-radius:8px; background:none; color:#F7F8FA; font-size:18px; cursor:pointer }
#sgCv .cv-delay button:hover{ background:rgba(255,255,255,.1) }
#sgCv .cv-delay span{ padding:0 6px; color:#C9CFD8; white-space:nowrap }

/* the stage: player top-left, a rail to its right, a rail below */
#sgCv .cv-stage{ position:relative; flex:none }
#sgCv .cv-player{ position:absolute; left:0; top:0; width:var(--pw); height:var(--ph); background:#000; border-radius:8px; overflow:hidden }
#sgCv .cv-player iframe{ width:100%; height:100%; border:0; display:block }
#sgCv .cv-rail{ position:absolute; overflow:visible }
#sgCv .cv-rail-b{ left:0; top:calc(var(--ph) + 4px); width:var(--pw); height:calc(var(--rh) - 4px);
  border-top:1px solid rgba(255,255,255,.18) }
#sgCv .cv-rail-r{ left:calc(var(--pw) + 4px); top:0; width:calc(var(--rw) - 4px); height:var(--ph);
  border-left:1px solid rgba(255,255,255,.18) }

/* a tick: a short pointer touching the picture's edge, and the name */
#sgCv .cv-tick{ position:absolute; --c:#C9CFD8; white-space:nowrap; font-size:11px; line-height:1.15; pointer-events:none }
#sgCv .cv-arr{ --c:#FF6A97 } #sgCv .cv-dep{ --c:#2FE6D0 } #sgCv .cv-ground{ --c:#FFD37A }
#sgCv .cv-rail-b .cv-tick{ top:-5px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center }
#sgCv .cv-rail-b .cv-tick i{ display:block; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:9px solid var(--c) }
#sgCv .cv-rail-b .cv-tick b{ margin-top:3px; font-weight:700; color:var(--c) }
#sgCv .cv-rail-b .cv-tick em{ font-style:normal; color:#9AA3B2 }
#sgCv .cv-rail-r .cv-tick{ left:-5px; transform:translateY(-50%); display:flex; align-items:center; gap:4px }
#sgCv .cv-rail-r .cv-tick i{ display:block; width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-right:9px solid var(--c) }
#sgCv .cv-rail-r .cv-tick b{ font-weight:700; color:var(--c) }

/* what is in shot, under it all */
#sgCv .cv-foot{ width:100%; max-width:1600px; margin-top:8px }
#sgCv .cv-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px }
#sgCv .cv-list li{ --c:#C9CFD8; display:flex; gap:8px; align-items:baseline; padding:7px 10px; border-radius:9px;
  background:rgba(255,255,255,.06); box-shadow:inset 3px 0 0 var(--c); font-size:13px }
#sgCv .cv-list li.cv-arr{ --c:#FF6A97 } #sgCv .cv-list li.cv-dep{ --c:#2FE6D0 } #sgCv .cv-list li.cv-ground{ --c:#FFD37A }
#sgCv .cv-list li span{ color:#9AA3B2; font-size:12px }
#sgCv .cv-list li em{ font-style:normal; font-size:11px; color:#9AA3B2; text-transform:uppercase; letter-spacing:.06em }
#sgCv .cv-list li.cv-none{ box-shadow:none; color:#9AA3B2 }
#sgCv .cv-note{ font-size:11px; color:#7E8796; margin:10px 0 0; line-height:1.4 }
#sgCv .cv-note a{ color:#9DBBFF }
@media (max-width:700px){
  #sgCv .cv-title span{ display:none }
  #sgCv .cv-rail-b .cv-tick em{ display:none }
}

/* the way in: a button in the airport view's top bar, only where a camera exists */
#sgAp .ap-cam{ height:44px; padding:0 14px; border-radius:12px; border:1px solid rgba(255,255,255,.14);
  background:#FF3D77; color:#fff; font-weight:700; font-size:14px; font-family:inherit; cursor:pointer; white-space:nowrap }
#sgAp .ap-cam::before{ content:"\25CF "; color:#fff; animation:cvPulse 1.6s ease-in-out infinite }
@keyframes cvPulse{ 50%{ opacity:.35 } }
#sgCv [hidden]{ display:none !important }
/* camera switcher (airports with more than one camera) */
#sgCv .cv-switch{ display:flex; gap:2px; padding:3px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14) }
#sgCv .cv-switch button{ border:0; background:none; color:#C9CFD8; font-weight:600; font-size:13px; font-family:inherit; padding:8px 12px; border-radius:9px; cursor:pointer; white-space:nowrap }
#sgCv .cv-switch button[aria-pressed="true"]{ background:rgba(255,255,255,.14); color:#fff }
