:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #e7ecf5;
  --border: #cad3e1;
  --text: #18202f;
  --text-soft: #5f6a7f;
  --primary: #143a9f;
  --primary-strong: #0f2f84;
  --primary-glow: rgba(20, 58, 159, 0.18);
  --success: #0f9f73;
  --warning: #e79a1c;
  --danger: #d93f3f;
  --shadow: 0 20px 50px rgba(11, 27, 68, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1240px;
  --transition: 180ms ease;
}

body[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #101a2d;
  --surface: rgba(15, 24, 40, 0.92);
  --surface-strong: #13203a;
  --surface-muted: #1b2a49;
  --border: #2c3c60;
  --text: #edf3ff;
  --text-soft: #9eb0d2;
  --primary: #8aa7ff;
  --primary-strong: #b6c7ff;
  --primary-glow: rgba(138, 167, 255, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(55, 94, 200, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f9fbff 100%);
  color: var(--text);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(138, 167, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0b1220 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

html,
body {
  overflow-x: hidden;
}

main,
.hero-copy,
.hero-card,
.detail-main,
.detail-sidebar,
.camera-body {
  min-width: 0;
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(202, 211, 225, 0.8);
}

body[data-theme="dark"] .topbar {
  background: rgba(11, 18, 32, 0.8);
  border-bottom-color: rgba(44, 60, 96, 0.85);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.brand-logo {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo-dark,
body[data-theme="dark"] .brand-logo-light {
  display: none;
}

body[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: rgba(20, 58, 159, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.theme-icon-dark,
body[data-theme="dark"] .theme-icon-light {
  display: none;
}

body[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 24px var(--primary-glow);
}

.button-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.button-block {
  width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 58, 159, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.section-heading p,
.feature-content p,
.news-item p,
.site-footer p {
  color: var(--text-soft);
  line-height: 1.7;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 58, 159, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--bg);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field-compact {
  min-width: 320px;
  min-height: 48px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.search-icon {
  font-size: 1.25rem;
  color: var(--text-soft);
}

.quick-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--text-soft);
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(20, 58, 159, 0.08);
  color: var(--text);
}

.quick-chip {
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
}

.quick-chip:hover {
  transform: translateY(-1px);
  background: var(--primary);
  color: #fff;
}

.chip-primary {
  background: var(--primary);
  color: #fff;
}

.hero-card,
.summary-card,
.sidebar-card,
.feature-story,
.camera-card,
.map-panel,
.news-item,
.stream-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 58, 159, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 58, 159, 0.06), rgba(20, 58, 159, 0.01)),
    var(--surface);
}

body[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(138, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(138, 167, 255, 0.08), rgba(138, 167, 255, 0.02)),
    var(--surface);
}

.hero-card-header,
.sidebar-head,
.camera-meta,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-title span {
  display: block;
  font-weight: 600;
}

.hero-card-title small,
.metric-hint {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero-card-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 159, 115, 0.12);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(217, 63, 63, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 63, 63, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(217, 63, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 63, 63, 0);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.metric-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(202, 211, 225, 0.76);
}

.metric-card-link {
  align-content: center;
  gap: 6px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.metric-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px var(--primary-glow);
}

.metric-card.metric-card-link strong {
  margin-top: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.18;
}

.metric-card.metric-card-link strong.is-long-name {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}

.metric-card-link .metric-label,
.metric-card-link .metric-hint {
  font-size: 0.78rem;
  line-height: 1.35;
}

body[data-theme="dark"] .metric-card {
  background: rgba(19, 32, 58, 0.72);
  border-color: rgba(44, 60, 96, 0.9);
}

.metric-card strong,
.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.metric-label,
.metric-unit,
.inline-link,
.feature-content .text-link,
.text-link,
.news-item time {
  color: var(--text-soft);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(20, 58, 159, 0.08);
  border: 1px solid rgba(20, 58, 159, 0.12);
}

.hero-card-footer p {
  margin: 5px 0 0;
}

.hero-card-footer .text-link {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--primary);
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(20, 58, 159, 0.04), transparent);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered p {
  max-width: 640px;
  margin: 12px auto 0;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.map-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 520px;
}

.map-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.map-pin span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #10213f;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.map-pin:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.pin-low {
  background: var(--success);
}

.pin-medium {
  background: var(--warning);
}

.pin-heavy {
  background: var(--danger);
}

.gate-groups {
  display: grid;
  gap: 42px;
}

.country-gate-group {
  display: grid;
  gap: 18px;
}

.country-gate-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.country-gate-flag {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-strong);
  font-size: 1.65rem;
  box-shadow: 0 8px 20px rgba(11, 27, 68, 0.06);
}

.country-gate-heading h3,
.country-gate-heading p {
  margin: 0;
}

.country-gate-heading h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.country-gate-heading p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.camera-empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  color: var(--text-soft);
  text-align: center;
}

.camera-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.05rem;
}

.camera-empty-state p {
  margin: 0;
}

.direction-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
}

.direction-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.direction-tab-count {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.direction-tab:hover {
  transform: translateY(-1px);
  color: var(--primary);
}

.direction-tab.is-active {
  background: var(--primary);
  color: #fff;
}

.direction-tab.is-active .direction-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.camera-selector-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-soft);
  text-align: center;
}

.camera-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-strong);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body[data-theme="dark"] .camera-card {
  background: rgba(19, 32, 58, 0.82);
}

.camera-card:hover,
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(11, 27, 68, 0.12);
  border-color: rgba(20, 58, 159, 0.3);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.camera-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.camera-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 25, 0) 48%, rgba(4, 10, 25, 0.32) 100%);
}

.camera-media img,
.camera-media video,
.camera-media .video-js,
.camera-media .vjs-tech {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 260ms ease, filter 260ms ease;
}

.camera-media .video-js {
  position: absolute;
  inset: 0;
}

.camera-media .vjs-control-bar,
.camera-media .vjs-error-display,
.camera-media .vjs-loading-spinner,
.camera-media .vjs-big-play-button {
  display: none !important;
}

.camera-card:hover .camera-media img,
.camera-card:hover .camera-media video {
  transform: scale(1.04);
}

#camera-grid .camera-media img,
#camera-grid .camera-media video {
  filter: blur(5px) saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

#camera-grid .camera-card:hover .camera-media img,
#camera-grid .camera-card:hover .camera-media video {
  transform: scale(1.09);
}

.badge-live {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(218, 33, 45, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.badge-live-solid {
  position: static;
  background: #ed3434;
}

.quality-badge {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(10, 18, 32, 0.75);
  color: #fff;
  font-weight: 600;
}

.camera-body {
  display: grid;
  gap: 12px;
  flex: 1;
  padding: 18px;
}

.camera-body h3,
.camera-body h4,
.feature-content h3,
.news-item h3,
.sidebar-card h2,
.stream-title h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.camera-body h3,
.camera-body h4 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.camera-body h4 {
  margin: 0;
  letter-spacing: -0.04em;
}

.camera-route-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.camera-meta {
  margin-top: 14px;
}

#camera-grid .camera-meta {
  align-items: center;
  margin-top: 0;
}

#camera-grid .status-pill {
  padding: 8px 10px;
  font-size: 0.86rem;
  white-space: nowrap;
}

#camera-grid .inline-link {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(20, 58, 159, 0.08);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

body[data-theme="dark"] #camera-grid .inline-link {
  background: rgba(96, 165, 250, 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  background: rgba(20, 58, 159, 0.08);
  color: var(--primary);
}

.status-pill.is-low {
  background: rgba(15, 159, 115, 0.12);
  color: var(--success);
}

.status-pill.is-medium {
  background: rgba(231, 154, 28, 0.13);
  color: #b76a00;
}

.status-pill.is-heavy {
  background: rgba(217, 63, 63, 0.14);
  color: var(--danger);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
}

.feature-story {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
}

.feature-story > img,
.feature-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-story > img {
  object-fit: cover;
}

.feature-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(12, 25, 53, 0.72) 100%);
}

.feature-content {
  position: absolute;
  inset: auto 28px 28px 28px;
  z-index: 1;
  color: #fff;
}

.feature-content p,
.feature-content .text-link {
  color: rgba(255, 255, 255, 0.88);
}

.feature-content h3 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-item img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
}

.site-footer {
  margin-top: auto;
  padding: 0;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(20, 58, 159, 0.04), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
}

body[data-theme="dark"] .site-footer {
  background:
    linear-gradient(180deg, rgba(138, 167, 255, 0.08), rgba(11, 18, 32, 0.82)),
    rgba(11, 18, 32, 0.76);
}

.footer-shell {
  padding-top: 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(430px, 1.15fr);
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
}

.footer-main {
  max-width: 410px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.footer-brand .brand-logo {
  width: 54px;
  height: 54px;
}

.footer-main p {
  max-width: 380px;
  margin: 0;
  line-height: 1.65;
}

.footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.footer-nav-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav-group strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav-group a {
  width: fit-content;
  padding: 3px 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color var(--transition), transform var(--transition);
}

.footer-nav-group a:hover {
  transform: translateX(3px);
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.footer-bottom span:last-child {
  text-align: right;
}

.top-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.65fr);
  gap: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text-soft);
}

.breadcrumb strong {
  color: var(--text);
}

.stream-panel {
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
}

.stream-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  -webkit-clip-path: inset(0 round 28px 28px 0 0);
  clip-path: inset(0 round 28px 28px 0 0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: #0f1830;
}

.stream-player,
.stream-player iframe,
.stream-player img,
.stream-player video,
.stream-player .video-js {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.stream-player iframe,
.stream-player img,
.stream-player video,
.stream-player .video-js,
.stream-player .vjs-tech {
  display: block;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: #0f1830;
}

.stream-player .vjs-control-text,
.stream-player .vjs-time-control,
.stream-player .vjs-live-control,
.stream-player .vjs-seek-to-live-control,
.stream-player .vjs-title-bar,
.stream-player .vjs-menu,
.stream-player .vjs-modal-dialog,
.stream-player .vjs-text-track-display,
.stream-player .vjs-loading-spinner span {
  display: none !important;
}

.stream-player .vjs-control-bar {
  gap: 4px;
}

.stream-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.stream-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.1rem;
}

.stream-placeholder p {
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

.stream-manual-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.stream-overlay {
  display: none;
}

.stream-badges {
  display: flex;
  gap: 12px;
}

.stream-title {
  max-width: 440px;
}

.stream-title h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.52);
}

body[data-theme="dark"] .metric-grid {
  background: rgba(10, 18, 32, 0.4);
}

.summary-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  min-height: 132px;
  padding: 18px;
  border-radius: 18px;
}

.summary-card strong {
  align-self: center;
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1;
}

.summary-card .metric-unit {
  display: inline-block;
  min-height: 18px;
  margin-top: 0;
}

.summary-card .status-row {
  align-self: center;
  justify-content: flex-start;
}

.summary-card .status-pill {
  min-width: 88px;
  justify-content: center;
  text-align: center;
}

.detail-sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-card {
  border-radius: 26px;
  overflow: hidden;
}

.reports-card {
  display: flex;
  flex-direction: column;
  height: 360px;
}

.sidebar-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.camera-selector,
.report-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.reports-card .report-list {
  flex: 1;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.reports-card .button-block {
  width: calc(100% - 36px);
  margin: auto 18px 18px;
  flex-shrink: 0;
}

.camera-option {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.camera-option:hover,
.camera-option.is-active {
  border-color: rgba(20, 58, 159, 0.2);
  background: rgba(20, 58, 159, 0.08);
  transform: translateY(-1px);
}

.camera-option img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.camera-option span {
  display: block;
}

.camera-option strong {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.camera-option-meta {
  color: var(--text-soft);
  font-size: 0.84rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.camera-option-mark {
  font-size: 1.1rem;
  color: var(--primary);
}

.report-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.report-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.report-card > span {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 58, 159, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.report-button-note {
  padding: 0 18px 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.is-hidden {
  display: none !important;
}

.trust-section {
  background: var(--surface-strong);
}

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

.trust-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(20, 58, 159, 0.06), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}

.trust-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.trust-card p,
.method-note p,
.gate-guide p,
.source-panel p,
.content-article p,
.content-article li,
.contact-topic-grid p {
  color: var(--text-soft);
  line-height: 1.75;
}

.trust-card p,
.method-note p {
  margin: 0;
}

.method-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(20, 58, 159, 0.18);
  border-radius: 22px;
  background: rgba(20, 58, 159, 0.06);
}

.method-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.method-note .button {
  flex: 0 0 auto;
}

.ad-slot {
  display: none;
}

.ad-slot[data-ad-state="ready"] {
  display: grid;
  min-height: 116px;
  place-items: center;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  overflow: hidden;
}

.ad-slot[data-ad-state="ready"]::before {
  content: "Reklam";
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  width: 100%;
}

.gate-guide {
  margin-top: 32px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gate-guide-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.gate-guide-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.data-transparency-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(15, 159, 115, 0.12);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
}

.gate-guide-intro {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.gate-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.gate-fact {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-strong);
}

.gate-fact span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gate-fact strong {
  font-size: 1rem;
  line-height: 1.45;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 30px;
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-soft);
}

.source-panel-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-panel h3 {
  margin: 7px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.source-panel p {
  margin: 0;
}

.camera-source-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.camera-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-strong);
}

.camera-source-copy {
  min-width: 0;
}

.camera-source-copy strong,
.camera-source-copy span {
  display: block;
}

.camera-source-copy span {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.camera-source-item a,
.guide-disclaimer a,
.content-callout a,
.inline-text-link {
  color: var(--primary);
  font-weight: 600;
}

.camera-source-item a {
  flex: 0 0 auto;
  font-size: 0.86rem;
}

.camera-source-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 15px;
  color: var(--text-soft);
}

.guide-disclaimer {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 4px solid var(--warning);
  border-radius: 0 18px 18px 0;
  background: rgba(231, 154, 28, 0.08);
}

.guide-disclaimer p {
  margin: 5px 0 8px;
}

.content-page {
  padding: 58px 0 84px;
}

.content-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.content-nav {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-nav strong {
  padding: 8px 10px 14px;
  color: var(--primary);
}

.content-nav a {
  padding: 10px;
  border-radius: 11px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.content-nav a:hover,
.content-nav a.is-active {
  background: rgba(20, 58, 159, 0.08);
  color: var(--primary);
}

.content-article {
  min-width: 0;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-article h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.content-lead {
  margin: 0;
  font-size: 1.08rem;
}

.content-article section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.content-article h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.content-article p {
  margin: 0 0 14px;
}

.content-card-grid,
.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-mini-card,
.contact-topic-grid article {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-strong);
}

.content-mini-card p,
.contact-topic-grid p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.content-list,
.content-steps {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.content-list li,
.content-steps li {
  padding-left: 5px;
}

.content-callout,
.contact-primary {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid rgba(20, 58, 159, 0.18);
  border-radius: 20px;
  background: rgba(20, 58, 159, 0.06);
}

.content-callout p {
  margin: 6px 0 8px;
}

.content-updated {
  margin-top: 34px !important;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.source-directory {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.source-directory article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-strong);
}

.source-directory span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.source-directory a {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.privacy-summary div {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
}

.privacy-summary span,
.privacy-summary strong {
  display: block;
}

.privacy-summary span {
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.privacy-summary strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.82rem;
}

.data-table td {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.contact-primary > span,
.contact-primary > a {
  display: block;
}

.contact-primary > span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-primary > a {
  margin: 8px 0;
  color: var(--primary);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.contact-primary p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-grid,
  .news-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    padding: 72px 0 56px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .section-heading.split,
  .hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    gap: 40px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .content-nav strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar-inner {
    min-height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  body[data-page="camera"] .topbar-inner {
    flex-wrap: wrap;
  }

  body[data-page="camera"] .top-search {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .top-search .search-field-compact {
    min-width: 100%;
    min-height: 46px;
  }

  .topbar-actions {
    width: auto;
    margin-left: auto;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .button-small {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-section {
    padding: 48px 0 42px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .eyebrow,
  .section-kicker {
    padding: 7px 11px;
    font-size: 0.74rem;
  }

  .search-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 19px;
  }

  .search-field {
    min-height: 52px;
    padding: 0 14px;
  }

  .search-panel .button {
    width: 100%;
    min-height: 48px;
  }

  .quick-links {
    gap: 8px;
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .chip {
    padding: 8px 12px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-stats {
    gap: 10px;
    margin: 18px 0;
  }

  .metric-card {
    min-height: 108px;
    padding: 14px;
  }

  .metric-card.metric-card-link strong {
    font-size: 1.15rem;
  }

  .metric-card.metric-card-link strong.is-long-name {
    font-size: 1.02rem;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .section-heading p {
    line-height: 1.6;
  }

  .direction-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .direction-tab {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .camera-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gate-groups {
    gap: 34px;
  }

  .country-gate-heading {
    gap: 12px;
    margin-bottom: 14px;
  }

  .country-gate-flag {
    width: 44px;
    height: 44px;
  }

  .country-gate-heading h3 {
    font-size: 1.15rem;
  }

  .camera-body {
    gap: 10px;
    padding: 16px;
  }

  #camera-grid .camera-meta {
    flex-wrap: wrap;
  }

  #camera-grid .status-pill,
  #camera-grid .inline-link {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .map-panel {
    min-height: 380px;
  }

  .stream-media,
  .stream-player,
  .stream-player iframe,
  .stream-player img,
  .stream-player video,
  .stream-player .video-js,
  .stream-placeholder {
    min-height: 0;
  }

  .breadcrumb {
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    font-size: 0.82rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .detail-layout {
    gap: 18px;
  }

  .stream-panel,
  .sidebar-card {
    border-radius: 20px;
  }

  .stream-media {
    border-radius: 20px 20px 0 0;
    -webkit-clip-path: inset(0 round 20px 20px 0 0);
    clip-path: inset(0 round 20px 20px 0 0);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .summary-card {
    min-height: 112px;
    padding: 14px;
    border-radius: 15px;
  }

  .summary-card strong {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .detail-sidebar {
    gap: 16px;
  }

  .sidebar-head {
    padding: 18px 18px 14px;
  }

  .camera-selector,
  .report-list {
    gap: 10px;
    padding: 12px;
  }

  .camera-option {
    grid-template-columns: 56px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .camera-option img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .camera-option strong {
    font-size: 0.94rem;
    overflow-wrap: anywhere;
  }

  .camera-option-meta {
    font-size: 0.74rem;
  }

  .reports-card {
    height: auto;
    min-height: 320px;
    max-height: 440px;
  }

  .site-footer {
    padding: 0;
  }

  .footer-shell {
    padding-top: 34px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main {
    max-width: 520px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: 180px;
  }

  .trust-grid,
  .gate-facts,
  .source-panel,
  .privacy-summary {
    grid-template-columns: 1fr;
  }

  .trust-card {
    min-height: 0;
    padding: 22px;
  }

  .method-note,
  .gate-guide-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .method-note .button {
    width: 100%;
  }

  .gate-guide {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
  }

  .source-panel {
    gap: 20px;
    padding: 20px;
  }

  .content-page {
    padding: 34px 0 58px;
  }

  .content-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    border-radius: 16px;
    scrollbar-width: none;
  }

  .content-nav::-webkit-scrollbar {
    display: none;
  }

  .content-nav strong {
    display: none;
  }

  .content-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .content-article {
    padding: 26px;
    border-radius: 22px;
  }

  .content-article h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .content-card-grid,
  .contact-topic-grid {
    grid-template-columns: 1fr;
  }

  .source-directory article {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.24rem;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .topbar-actions {
    gap: 8px;
  }

  body[data-page="camera"] .button-small {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .hero-section {
    padding: 40px 0 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 2.6rem);
  }

  .hero-card-header {
    align-items: flex-start;
  }

  .hero-card-badge {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 94px;
  }

  .direction-tab {
    font-size: 0.78rem;
  }

  .direction-tab-count {
    min-width: 22px;
    min-height: 22px;
    margin-left: 3px;
    padding: 0 5px;
  }

  .camera-meta {
    gap: 6px;
  }

  .footer-shell {
    padding-top: 30px;
  }

  .footer-nav-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-nav-group {
    gap: 8px;
  }

  .footer-nav-group a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    padding-bottom: 20px;
  }

  .camera-source-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-article {
    padding: 20px;
  }

  .privacy-summary {
    gap: 8px;
  }
}

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

  .direction-tabs {
    display: inline-grid;
    width: auto;
    grid-template-columns: repeat(2, max-content);
  }
}
