/* =========================================================
   此刻上海 · SHANGHAI NOW
   Zero-build static site. Design tokens first, then layout.
   ========================================================= */

:root {
  --bg: #070a0c;
  --bg-soft: #0a0f12;
  --panel: #0d1317;
  --panel-2: #111a1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f5f3;
  --muted: #8b9998;
  --muted-2: #5d6b6b;
  --accent: #8ef0c0;
  --accent-2: #67d7e8;
  --warm: #f3b36b;
  --rose: #e8a0b4;
  --blue: #9bb8ff;
  --violet: #c7a8ff;
  --danger: #ff8b8b;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "SimSun", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", "Menlo", monospace;

  --max: 1560px;
  --gut: clamp(18px, 3vw, 40px);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(103, 215, 232, 0.09), transparent 62%),
    radial-gradient(900px 520px at 8% 12%, rgba(142, 240, 192, 0.055), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

::selection {
  background: var(--accent);
  color: #08110d;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: #07100c;
  text-decoration: none;
  font-size: 12px;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--gut);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 12, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(142, 240, 192, 0.5);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
  background: rgba(142, 240, 192, 0.04);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.brand-copy b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand-copy i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 18px;
}
.nav a {
  position: relative;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  right: 0;
}

.clock {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock time {
  color: var(--text);
  letter-spacing: 0.04em;
}
.clock-zone {
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(142, 240, 192, 0.4);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 240, 192, 0.38);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(142, 240, 192, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 240, 192, 0);
  }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gut) 48px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px -36px rgba(0, 0, 0, 0.95);
  isolation: isolate;
}

.player-shell::before,
.player-shell::after {
  content: "";
  position: absolute;
  z-index: 8;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.4);
  border-style: solid;
}
.player-shell::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}
.player-shell::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

.player-shell video,
.player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.player-shell video {
  object-fit: contain;
  z-index: 1;
}
.player-shell iframe {
  z-index: 2;
  background: #f4f4f4;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: #050708;
  background-position: center;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.player-poster.is-hidden {
  opacity: 0;
}

.player-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0) 26%,
    rgba(0, 0, 0, 0) 54%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.player-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(4, 8, 7, 0.44);
  border: 1px solid rgba(142, 240, 192, 0.34);
  backdrop-filter: blur(8px);
}

.player-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.player-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 6;
  max-width: min(82%, 760px);
  padding: 20px 24px 22px;
  background: linear-gradient(90deg, rgba(4, 8, 7, 0.94) 0%, rgba(4, 8, 7, 0.72) 58%, transparent 100%);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.player-kicker {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.player-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.player-location {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.02em;
}

.player-actions {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 8, 7, 0.42);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(142, 240, 192, 0.55);
  background: rgba(4, 8, 7, 0.7);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#hero-full svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.text-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(4, 7, 8, 0.18);
  pointer-events: none;
  transition: opacity 0.3s;
}
.player-loading span {
  display: block;
  width: 3px;
  height: 18px;
  background: var(--accent);
  animation: bars 1s infinite ease-in-out;
}
.player-loading span:nth-child(2) {
  animation-delay: 0.14s;
}
.player-loading span:nth-child(3) {
  animation-delay: 0.28s;
}
.player-loading[hidden] {
  display: none;
}

@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 9, 11, 0.82);
  backdrop-filter: blur(6px);
}
.player-error[hidden] {
  display: none;
}
.error-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
}
.error-desc {
  max-width: 40ch;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.error-actions {
  display: flex;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #07110c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(4, 8, 7, 0.48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.player-play:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.05);
}
.player-play[hidden] {
  display: none;
}
.player-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  margin-left: 3px;
}

/* iframe mode: the source page is the UI */
.player-shell[data-mode="iframe"] .player-shade,
.player-shell[data-mode="iframe"] .player-content,
.player-shell[data-mode="iframe"] .player-actions,
.player-shell[data-mode="iframe"] .player-loading,
.player-shell[data-mode="iframe"] .player-error,
.player-shell[data-mode="iframe"] .player-play {
  display: none;
}
.player-shell[data-mode="iframe"] .player-topline {
  padding: 10px 12px;
}
.player-shell[data-mode="iframe"] .player-poster {
  opacity: 0;
}

/* Hero side */
.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.eyebrow span:last-child {
  text-align: right;
}

.hero-intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(50px, 4.1vw, 66px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero-intro h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats b {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.link-btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(142, 240, 192, 0.35);
  background: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.link-btn:hover {
  border-color: var(--accent);
}

.camera-strip {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-top: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  overscroll-behavior: contain;
}
.camera-strip::-webkit-scrollbar {
  width: 4px;
}
.camera-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
}

.strip-item {
  display: grid;
  grid-template-columns: 22px 56px minmax(0, 1fr) 8px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.strip-item:hover {
  background: rgba(255, 255, 255, 0.035);
}
.strip-item.is-active {
  background: rgba(142, 240, 192, 0.055);
  box-shadow: inset 2px 0 0 var(--accent);
}
.strip-num {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.strip-thumb {
  width: 56px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.7) brightness(0.78);
  transition: filter 0.2s;
}
.strip-item:hover .strip-thumb,
.strip-item.is-active .strip-thumb {
  filter: none;
}
.strip-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.strip-name {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.strip-meta {
  overflow: hidden;
  font-size: 8px;
  color: var(--muted-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.strip-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}
.strip-status[data-state="live"] {
  background: var(--accent);
}
.strip-status[data-state="error"] {
  background: var(--danger);
}
.strip-status[data-state="official"] {
  background: var(--violet);
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 68px var(--gut);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}
.section-kicker {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.section-note {
  max-width: 360px;
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted-2);
  text-align: right;
}

/* ---------------------------------------------------------
   Map
   --------------------------------------------------------- */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 18px;
  align-items: stretch;
}

.map-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 52% 46%, rgba(103, 215, 232, 0.07), transparent 70%),
    linear-gradient(180deg, #0a1013, #070b0d);
}

.map {
  width: 100%;
  height: 100%;
  min-height: 430px;
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.district {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.3s;
}
.district:nth-child(3n + 1) {
  fill: rgba(255, 255, 255, 0.032);
}
.district:nth-child(3n + 2) {
  fill: rgba(103, 215, 232, 0.018);
}

.river {
  fill: none;
  stroke: rgba(103, 215, 232, 0.38);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(103, 215, 232, 0.28));
}
.river-core {
  fill: none;
  stroke: rgba(180, 244, 250, 0.6);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.district-label {
  fill: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.pin {
  cursor: pointer;
  outline: none;
  color: var(--accent);
}
.pin[data-category="bridge"] {
  color: var(--warm);
}
.pin[data-category="landmark"] {
  color: var(--rose);
}
.pin[data-category="traffic"] {
  color: var(--blue);
}
.pin[data-category="waterfront"] {
  color: var(--accent-2);
}
.pin[data-category="multi"] {
  color: var(--violet);
}

.pin-halo {
  fill: currentColor;
  opacity: 0.14;
  transition: opacity 0.2s;
}
.pin-dot {
  fill: currentColor;
  stroke: #070a0c;
  stroke-width: 1.6;
}
.pin-caption {
  fill: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-anchor: middle;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pin:hover .pin-halo,
.pin:focus-visible .pin-halo {
  opacity: 0.34;
}
.pin.is-active .pin-halo {
  opacity: 0.5;
  animation: pinPulse 2.4s infinite;
}
.pin.is-active .pin-caption {
  opacity: 1;
}
.pin.is-active .pin-dot {
  stroke-width: 2.2;
}

@keyframes pinPulse {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.62;
  }
}

.map-tooltip {
  position: absolute;
  z-index: 6;
  padding: 7px 9px;
  transform: translate(-50%, -100%);
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 12, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}
.map-tooltip[hidden] {
  display: none;
}

.map-legend {
  position: absolute;
  left: 14px;
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 70%;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.map-credit {
  position: absolute;
  left: 14px;
  bottom: 10px;
  margin: 0;
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.24);
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%), var(--panel);
  min-height: 430px;
}
.info-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.info-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.info-loc {
  margin: -6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.info-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.info-tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.info-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.info-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-meta dt {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.info-meta dd {
  margin: 0;
  font-size: 10px;
  color: var(--text);
}
.info-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.info-actions .btn {
  flex: 1;
  min-width: 110px;
}
.info-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.info-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}
.info-status[data-state="live"] .dot {
  background: var(--accent);
}
.info-status[data-state="error"] .dot {
  background: var(--danger);
}
.info-status[data-state="official"] .dot {
  background: var(--violet);
}

/* ---------------------------------------------------------
   Toolbar + grid
   --------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.chip.is-active {
  color: #07110c;
  background: var(--accent);
  border-color: var(--accent);
}
.chip span {
  font-family: var(--font-mono);
  font-size: 8px;
  opacity: 0.6;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.6;
}
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}
.search input::placeholder {
  color: var(--muted-2);
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.camera-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.camera-card:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 240, 192, 0.38);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.9);
}
.camera-card[data-type="iframe"]:hover {
  border-color: rgba(199, 168, 255, 0.5);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.8);
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.camera-card:hover .card-media img {
  transform: scale(1.045);
  filter: saturate(1) brightness(0.95);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 32%, transparent 62%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.card-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 11px;
}
.card-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: rgba(4, 8, 7, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}
.card-status .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}
.card-status[data-state="live"] {
  color: var(--accent);
  border-color: rgba(142, 240, 192, 0.28);
}
.card-status[data-state="live"] .dot {
  background: var(--accent);
}
.card-status[data-state="error"] {
  color: var(--danger);
  border-color: rgba(255, 139, 139, 0.3);
}
.card-status[data-state="error"] .dot {
  background: var(--danger);
}
.card-status[data-state="official"] {
  color: var(--violet);
  border-color: rgba(199, 168, 255, 0.3);
}
.card-status[data-state="official"] .dot {
  background: var(--violet);
}

.card-open {
  position: absolute;
  right: 11px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.camera-card:hover .card-open,
.camera-card:focus-visible .card-open {
  opacity: 1;
  transform: none;
}

.card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 15px;
}
.card-name {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.card-meta {
  margin: 0;
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.card-tag {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.empty {
  padding: 60px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   About + footer
   --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
}
.about-copy p {
  max-width: 64ch;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}
.about-copy p:last-child {
  margin-bottom: 0;
}
.about-list {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 0;
}
.about-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.about-list div:last-child {
  border-bottom: 1px solid var(--line);
}
.about-list dt {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.about-list dd {
  margin: 0;
  font-size: 11px;
  color: var(--text);
}
.about-list a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 215, 232, 0.3);
}

.site-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr auto;
  gap: 32px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gut) 56px;
  border-top: 1px solid var(--line);
}
.footer-mark {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.footer-mark span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}
.footer-meta p {
  margin: 0 0 5px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-2);
}
.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.to-top {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */

dialog.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
}
dialog.lightbox::backdrop {
  background: rgba(4, 6, 8, 0.88);
  backdrop-filter: blur(12px);
}
dialog.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, calc(100vw - 48px));
  margin: auto;
  padding: 0;
}
.lightbox-close {
  position: absolute;
  right: 0;
  top: -46px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 12, 0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
}
.lightbox-player video,
.lightbox-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.lightbox-player video {
  object-fit: contain;
  z-index: 1;
}
.lightbox-player iframe {
  z-index: 2;
  background: #f4f4f4;
}
.lightbox-player .player-poster {
  z-index: 3;
}
.lightbox-player .player-loading {
  z-index: 4;
}
.lightbox-player .player-error {
  z-index: 6;
}
.lightbox-player .player-play {
  z-index: 7;
}

.lightbox-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 12px;
}
.lightbox-meta h2 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
}
.lightbox-meta p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lightbox-nav button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.lightbox-nav button:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 23, 0.96);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}
.toast[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1320px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .hero-intro h1 {
    font-size: clamp(52px, 4.6vw, 72px);
  }
  .camera-strip {
    max-height: none;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    align-items: start;
  }
  .hero-intro {
    grid-column: 1;
  }
  .strip-head {
    grid-column: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .camera-strip {
    grid-column: 2;
    grid-row: 2;
    flex: none;
    max-height: 300px;
  }
  .hero-intro h1 {
    font-size: 62px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-panel,
  .map {
    min-height: 380px;
  }
  .map-info {
    min-height: 0;
  }
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 68px var(--gut);
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 60px;
    gap: 16px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
  .brand-copy b {
    font-size: 13px;
  }
  .brand-copy i {
    display: none;
  }
  .nav {
    display: none;
  }
  .clock {
    font-size: 11px;
  }
  .clock-zone {
    display: none;
  }
  .hero {
    padding-top: 18px;
    padding-bottom: 36px;
  }
  .hero-side {
    display: flex;
    flex-direction: column;
  }
  .hero-intro h1 {
    font-size: clamp(46px, 13vw, 64px);
  }
  .lede {
    font-size: 12px;
  }
  .strip-head {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .camera-strip {
    flex: none;
    max-height: 320px;
  }
  .player-content {
    padding: 14px 15px;
    max-width: 86%;
  }
  .player-title {
    font-size: 25px;
  }
  .player-kicker {
    font-size: 8px;
  }
  .player-location {
    font-size: 10px;
  }
  .player-actions {
    right: 10px;
    bottom: 10px;
    gap: 5px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .text-btn {
    height: 32px;
    font-size: 8px;
  }
  .player-topline {
    padding: 10px 11px;
  }
  .player-shell::before,
  .player-shell::after {
    display: none;
  }
  .section {
    padding: 52px var(--gut);
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }
  .section-note {
    max-width: none;
    text-align: left;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .map-panel,
  .map {
    min-height: 300px;
  }
  .map-legend {
    display: none;
  }
  .map-credit {
    font-size: 6px;
  }
  .map-info {
    padding: 18px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .search {
    min-width: 0;
  }
  .camera-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .footer-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .footer-mark {
    grid-column: 1;
    grid-row: 1;
  }
  .to-top {
    grid-column: 2;
    grid-row: 1;
  }
  .lightbox-inner {
    width: 100vw;
  }
  .lightbox-close {
    right: 8px;
    top: 8px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
  }
  .lightbox-meta {
    padding: 12px 14px;
  }
  .lightbox-nav {
    padding: 10px 14px 16px;
  }
  .toast {
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-intro h1 {
    font-size: 46px;
  }
  .hero-stats b {
    font-size: 17px;
  }
  .player-location {
    display: none;
  }
  .chip {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   Small additions / states
   --------------------------------------------------------- */

.icon-btn {
  position: relative;
}
.icon-btn.is-muted::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  opacity: 0.9;
  pointer-events: none;
}
.icon-btn:disabled {
  cursor: not-allowed;
}

.live-badge.is-error {
  color: var(--danger);
  border-color: rgba(255, 139, 139, 0.4);
}
.live-badge.is-error .live-dot {
  background: var(--danger);
  animation: none;
}
.live-badge.is-official {
  color: var(--violet);
  border-color: rgba(199, 168, 255, 0.35);
}
.live-badge.is-official .live-dot {
  background: var(--violet);
  animation: none;
}

.player-shell[data-mode="iframe"] .player-topline {
  display: none;
}

.pin.is-dim {
  opacity: 0.22;
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 430px;
  margin: 0;
  padding: 24px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

.info-note {
  margin: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(199, 168, 255, 0.5);
  background: rgba(199, 168, 255, 0.04);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

body.is-locked {
  overflow: hidden;
}

/* Anchor offset for the sticky header */
section[id],
#live,
#signal-map,
#cameras,
#about {
  scroll-margin-top: 88px;
}
@media (max-width: 760px) {
  section[id],
  #live,
  #signal-map,
  #cameras,
  #about {
    scroll-margin-top: 72px;
  }
}

.nojs {
  margin: 0;
  padding: 14px var(--gut);
  border-bottom: 1px solid rgba(243, 179, 107, 0.3);
  background: rgba(243, 179, 107, 0.06);
  color: var(--warm);
  font-size: 12px;
}

/* =========================================================
   Layout v2 — full-width live view
   The video is the page. Title/status/controls live below it.
   ========================================================= */

.live {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gut) 0;
}

.live .player-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 110px -52px rgba(0, 0, 0, 0.95);
}

.live .player-topline {
  padding: 16px 18px;
}
.live .live-badge {
  padding: 5px 9px;
  font-size: 8px;
}

.now-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
}
.now-copy {
  min-width: 0;
}
.now-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.now-index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.now-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.now-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.now-location {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.now-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.now-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.now-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.now-status[data-state="error"] .dot {
  background: var(--danger);
}
.now-status[data-state="official"] .dot {
  background: var(--violet);
}
.now-status em {
  font-style: normal;
  color: var(--muted-2);
}
.now-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.now-actions .icon-btn {
  width: 32px;
  height: 32px;
  border-color: var(--line);
  background: transparent;
  backdrop-filter: none;
}
.now-actions .icon-btn:hover {
  border-color: var(--accent);
  background: rgba(142, 240, 192, 0.04);
}
.now-actions .text-btn {
  height: 32px;
  border-color: var(--line);
  color: var(--muted);
}
.now-actions .text-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.strip-head b {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}

.feed-strip-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.strip-arrow {
  flex: 0 0 26px;
  width: 26px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.strip-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.feed-strip {
  flex: 1 1 auto;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  padding-bottom: 2px;
}
.feed-strip::-webkit-scrollbar {
  height: 3px;
}
.feed-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
}

.feed-strip .strip-item {
  flex: 0 0 164px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 6px;
  gap: 8px;
  align-items: center;
  width: auto;
  height: 52px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.feed-strip .strip-item:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  box-shadow: none;
}
.feed-strip .strip-item.is-active {
  border-color: rgba(142, 240, 192, 0.55);
  background: rgba(142, 240, 192, 0.06);
  box-shadow: none;
}
.feed-strip .strip-num {
  display: none;
}
.feed-strip .strip-thumb {
  width: 64px;
  height: 36px;
  border: 1px solid var(--line);
  filter: saturate(0.8) brightness(0.85);
}
.feed-strip .strip-item.is-active .strip-thumb,
.feed-strip .strip-item:hover .strip-thumb {
  filter: none;
}
.feed-strip .strip-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.feed-strip .strip-name {
  overflow: hidden;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feed-strip .strip-meta {
  overflow: hidden;
  font-size: 8px;
  color: var(--muted-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feed-strip .strip-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}
.feed-strip .strip-status[data-state="live"] {
  background: var(--accent);
}
.feed-strip .strip-status[data-state="error"] {
  background: var(--danger);
}
.feed-strip .strip-status[data-state="official"] {
  background: var(--violet);
}

/* Section sizing v2 */
.section {
  padding: 54px var(--gut);
}
.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(30px, 2.8vw, 40px);
}
.section-note {
  font-size: 10px;
}

/* Map v2 */
.map-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
.map-panel,
.map {
  min-height: 380px;
}
.map-info {
  min-height: 0;
  padding: 18px;
  gap: 10px;
}
.info-title {
  font-size: 26px;
}
.info-desc {
  font-size: 11px;
  line-height: 1.75;
}
.info-tags,
.info-meta {
  display: none;
}
.info-actions {
  margin-top: 4px;
}
.info-actions .btn {
  min-width: 0;
}

/* Grid v2 */
.camera-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.card-state {
  display: none;
}

@media (max-width: 1100px) {
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .live {
    padding: 0;
  }
  .live .player-shell {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .live .player-topline {
    padding: 10px 12px;
  }
  .live .live-badge {
    padding: 4px 7px;
    font-size: 8px;
  }
  .now-bar {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 10px;
  }
  .now-line {
    margin-bottom: 3px;
  }
  .now-kicker {
    display: none;
  }
  .now-title {
    font-size: 22px;
  }
  .now-location {
    font-size: 10px;
  }
  .now-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .now-status {
    font-size: 7px;
  }
  .now-status em {
    display: none;
  }
  .now-actions .icon-btn {
    width: 30px;
    height: 30px;
  }
  .now-actions .text-btn {
    height: 30px;
    font-size: 8px;
  }
  .strip-head {
    margin: 10px 16px 6px;
  }
  .feed-strip-wrap {
    padding: 0 16px;
  }
  .strip-arrow {
    display: none;
  }
  .feed-strip .strip-item {
    flex-basis: 148px;
  }
  .section {
    padding: 38px 16px;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .section-note {
    font-size: 9px;
  }
  .map-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .map-panel,
  .map {
    min-height: 280px;
  }
  .map-info {
    padding: 14px;
  }
  .info-title {
    font-size: 22px;
  }
  .info-desc {
    font-size: 11px;
  }
  .toolbar {
    gap: 10px;
  }
  .chips {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: 0 0 auto;
  }

  /* Compact camera list on phones */
  main {
    display: flex;
    flex-direction: column;
  }
  .live {
    order: 1;
  }
  .cameras-section {
    order: 2;
  }
  .map-section {
    order: 3;
  }
  .camera-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .camera-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .camera-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
  }
  .camera-card .card-media {
    width: 104px;
    height: 58px;
    aspect-ratio: auto;
    border: 1px solid var(--line);
  }
  .camera-card .card-top,
  .camera-card .card-open,
  .camera-card .card-tag {
    display: none;
  }
  .camera-card .card-body {
    display: block;
    padding: 0;
  }
  .card-name {
    margin-bottom: 2px;
    font-size: 14px;
  }
  .card-meta {
    font-size: 9px;
  }
  .card-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
  }
  .card-state .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
  }
  .card-state[data-state="live"] .dot {
    background: var(--accent);
  }
  .card-state[data-state="error"] .dot {
    background: var(--danger);
  }
  .card-state[data-state="official"] .dot {
    background: var(--violet);
  }

  .site-footer {
    padding: 30px 16px 36px;
  }
}

@media (max-width: 420px) {
  .now-title {
    font-size: 20px;
  }
  .now-location {
    font-size: 9px;
  }
  .now-actions .text-btn {
    display: none;
  }
}

/* Prevent the horizontal filmstrip from expanding the mobile layout viewport. */
@media (max-width: 760px) {
  main,
  main > .live,
  main > .section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .live,
  .now-bar,
  .feed-strip-wrap,
  .strip-head,
  .section,
  .section-head,
  .toolbar,
  .camera-grid,
  .map-layout,
  .map-panel,
  .map,
  .site-footer {
    min-width: 0;
  }
  .feed-strip-wrap {
    overflow: hidden;
  }
}

/* Layout v2.1 — tighten the first screen and make the strip readable */
.site-header {
  height: 64px;
}
.live {
  padding-top: 14px;
}
.now-bar {
  padding: 10px 0;
}
.now-line {
  margin-bottom: 4px;
}
.now-title {
  font-size: clamp(22px, 2.1vw, 30px);
}
.strip-head {
  margin: 10px 0 4px;
}
.feed-strip .strip-item {
  flex-basis: 184px;
}
.section {
  padding: 48px var(--gut);
}

@media (max-width: 760px) {
  .site-header {
    height: 56px;
  }
  .now-bar {
    padding: 10px 16px 8px;
  }
  .now-title {
    font-size: 21px;
  }
  .live .live-badge {
    gap: 5px;
    padding: 3px 6px;
    font-size: 7px;
  }
  .live .live-badge .live-dot {
    width: 4px;
    height: 4px;
  }
  .chips {
    flex-wrap: wrap;
    overflow: visible;
    width: auto;
  }
  .strip-head {
    margin: 8px 16px 4px;
  }
  .feed-strip {
    gap: 8px;
  }
  .feed-strip .strip-item {
    position: relative;
    flex: 0 0 116px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: auto;
    padding: 4px;
  }
  .feed-strip .strip-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
  }
  .feed-strip .strip-copy {
    padding: 0 1px;
  }
  .feed-strip .strip-name {
    font-size: 10px;
  }
  .feed-strip .strip-meta {
    display: none;
  }
  .feed-strip .strip-status {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .feed-strip-wrap {
    padding-bottom: 2px;
  }
}

/* Footer v2 — no repeated wordmark */
.site-footer {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 32px var(--gut) 40px;
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 26px 16px 32px;
  }
  .site-footer .footer-meta {
    grid-column: 1;
    grid-row: 1;
  }
  .site-footer .to-top {
    grid-column: 2;
    grid-row: 1;
  }
  .feed-strip {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
}

/* Keep the filmstrip in the first screen on common laptop heights. */
.site-header {
  height: 60px;
}
.live {
  padding-top: 8px;
}
.now-bar {
  padding: 8px 0;
}
.strip-head {
  margin: 6px 0 2px;
}
@media (min-width: 761px) {
  .live {
    max-width: min(var(--max), calc((100vh - 240px) * 16 / 9 + 80px));
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 56px;
  }
  .live {
    padding-top: 0;
  }
  .now-bar {
    padding: 9px 16px 8px;
  }
  .strip-head {
    margin: 6px 16px 2px;
  }
}

/* Fullscreen affordance on phones — obvious, not gigantic */
.full-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  #hero-full {
    display: flex;
    width: auto;
    height: 34px;
    padding: 0 11px;
    gap: 6px;
  }
  .full-label {
    display: inline;
    font-size: 9px;
  }
}

/* Play fallback: clear pill, only shown when autoplay is blocked */
.player-play {
  width: auto;
  height: 44px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-play svg {
  width: 18px;
  height: 18px;
  margin: 0;
}
.player-play span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: inherit;
}

/* In-fullscreen exit control: the now-bar is outside the fullscreen element. */
.player-exit-full {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(4, 8, 7, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.player-exit-full span {
  font-size: 16px;
  line-height: 1;
}
.player-shell:fullscreen .player-exit-full,
.player-shell:-webkit-full-screen .player-exit-full,
.player-shell.is-fullscreen .player-exit-full,
.lightbox-player:fullscreen .player-exit-full,
.lightbox-player:-webkit-full-screen .player-exit-full,
.lightbox-player.is-fullscreen .player-exit-full {
  display: inline-flex;
}
@media (max-width: 760px) {
  .player-exit-full {
    top: 8px;
    right: 8px;
    height: 34px;
    padding: 0 10px;
  }
}

/* City switch — Shanghai / Nanjing */
.city-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.city-tab {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.city-tab:hover {
  color: var(--text);
}
.city-tab.is-active {
  background: var(--accent);
  color: #07110c;
  font-weight: 700;
}
@media (max-width: 760px) {
  .site-header {
    gap: 10px;
  }
  .city-switch {
    padding: 2px;
  }
  .city-tab {
    height: 30px;
    padding: 0 11px;
    font-size: 10px;
  }
}
