:root {
  --bg-900: #101214;
  --bg-800: #16191c;
  --bg-700: #1e2125;
  --fg-100: #e6e7e8;
  --fg-200: #c9cbce;
  --line: #2ba4b4;
  --muted: #8b9096;
  --card: #15181b;
  --card-2: #121417;
  --radius: 1em;
  --gap: 1em;
  --shadow: 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-2: 0 6px 18px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-900);
  color: var(--fg-100);
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.container {
  max-width: 68.75em;
  margin: 0 auto;
  padding: 1.5em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(0deg, rgba(16, 18, 20, .6), rgba(16, 18, 20, .95));
  border-bottom: 1px solid rgba(43, 164, 180, .35);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625em;
  font-weight: 700;
  letter-spacing: .4px;
  color: rgba(20, 162, 176, .95);
  text-decoration: none;
}

.site-header .brand-logo {
  height: 2.75em;
  width: auto;
  display: block;
}

.site-header .brand-text {
  font-weight: 700;
  letter-spacing: .4px;
}

.site-header .brand-textwrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header .brand-title {
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: .2px;
}

.site-header .brand-subtitle {
  font-size: 1em;
  font-weight: 600;
  color: var(--muted);
  margin-top: .125em;
}

.nav a {
  color: var(--fg-200);
  text-decoration: none;
}

.nav a.accent {
  border-bottom: 2px solid var(--line);
  padding-bottom: .125em;
}

.site-header .nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav .nav-list {
  display: flex;
  align-items: center;
  gap: .75em;
}

.site-header .nav a {
  display: inline-block;
  padding: .5em .625em;
  text-decoration: none;
  color: var(--fg-200);
}

.site-header .nav .nav-form select {
  padding: .125em .5em;
  background: var(--fg-200);
  color: var(--card);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: .5em;
}

.site-header .nav .dropdown {
  position: relative;
}

.site-header .nav .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border-radius: .5em;
  padding: .375em;
  min-width: 10em;
  box-shadow: var(--shadow-2);
  z-index: 30;
}

.site-header .nav .dropdown:hover .dropdown-menu,
.site-header .nav .dropdown:focus-within .dropdown-menu {
  display: block;
}

.site-header .nav .dropdown .dropdown-menu li {
  margin: 0;
}

.site-header .nav .dropdown .dropdown-menu a {
  display: block;
  padding: .125em .25em;
  white-space: nowrap;
  color: var(--fg-100);
  text-decoration: none;
}

.site-header .nav .lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .375em;
  padding: .25em .375em;
}

.site-header .nav .lang-switcher .flag {
  line-height: 1;
}

.site-header .nav .lang-switcher .flag img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
  border-radius: 2px;
}

.site-header .nav .lang-switcher .lang-code {
  font-size: 1em;
  opacity: .9;
}

.site-header .nav .lang-switcher .caret {
  width: 0;
  height: 0;
  border-left: .3125em solid transparent;
  border-right: .3125em solid transparent;
  border-top: .375em solid currentColor;
}

.site-header .nav .dropdown-right {
  right: 0;
  left: auto;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.25em, 1fr));
  gap: var(--gap);
}

.filters {
  margin-bottom: 1.5em;
}

.filters .select,
.filters .input {
  margin-right: .5em;
}

.card {
  margin: 0;
  background: var(--card);
  border: 1px solid rgba(43, 164, 180, .25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(43, 164, 180, .5);
  box-shadow: 0 0 .75em rgba(181, 223, 229, .85), var(--shadow);
}

.card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.card-head {
  background: var(--card-2);
  padding: .5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  font-size: 1.15em;
  font-weight: normal;
}

.card-meta {
  background: var(--card-2);
  padding: 0 .5em;
  color: var(--muted);
  font-size: .75em;
  display: flex;
  gap: .625em;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: .625em;
}

.card-actions.age-pane {
  padding: 1.5em;
}

.status {
  font-size: .75em;
  padding: .125em .5em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.status.on {
  color: #20d474;
  border-color: rgba(32, 212, 116, .35);
}

.status.off {
  color: #d0a5a5;
  border-color: rgba(212, 32, 62, .25);
}

.badge {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: .375rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
}

.badge-good {
  background: rgba(16, 185, 129, .15);
  color: #10b981;
}

.badge-ok {
  background: rgba(245, 158, 11, .15);
  color: #f59e0b;
}

.badge-bad {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
}

.pager {
  margin-top: 1em;
}

.pager-info {
  margin-right: .75em;
}

.age-gate .age-pane {
  padding: 1em;
  background: var(--card-2);
}

.age-gate .btn-age-confirm {
  display: inline-block;
  padding: .75em 1.125em;
  line-height: 1.25;
  border-radius: .5em;
  margin: .5em 0 0 .5em;
}

.cam-detail .card {
  padding-bottom: .625em;
  background: var(--card-2);
}

.cam-detail .btn-open-newtab {
  margin: .5em .5em auto;
}

.btn {
  display: inline-block;
  padding: .25em .75em;
  border-radius: .625em;
  text-decoration: none;
  color: var(--fg-100);
  background: transparent;
  border: 1px solid rgba(43, 164, 180, .45);
}

.btn:hover {
  border-color: var(--line);
}
