:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-2: #151b24;
  --panel: rgba(21, 27, 36, 0.86);
  --panel-solid: #171f2a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #9ea8b7;
  --teal: #25d0b1;
  --rose: #ff4f88;
  --gold: #f7c86a;
  --blue: #5fa8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.52), #0d1117 42rem),
    radial-gradient(circle at 10% 10%, rgba(37, 208, 177, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 0%, rgba(255, 79, 136, 0.14), transparent 26rem),
    var(--bg);
  color: var(--text);
}

body:not(.age-confirmed) main,
body:not(.age-confirmed) .topbar,
body:not(.age-confirmed) footer {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
}

.age-gate[hidden] {
  display: none;
}

.age-panel {
  width: min(34rem, 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 31, 42, 0.96), rgba(13, 17, 23, 0.96));
  box-shadow: var(--shadow);
}

.age-panel h2,
.intro-content h1,
.content-hero h1,
.section-heading h2,
.setup-band h2 {
  margin: 0;
  letter-spacing: 0;
}

.age-panel h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.age-panel p,
.intro-content p,
.content-hero p,
.content-body p,
.setup-band li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  color: #fff;
  font-weight: 800;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #101827;
  color: var(--teal);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
nav a,
.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
}

nav a {
  text-decoration: none;
}

.language-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.language-menu a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.language-menu a[aria-current="true"] {
  border-color: rgba(37, 208, 177, 0.32);
  background: rgba(37, 208, 177, 0.11);
  color: var(--teal);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: 2rem 0 3rem;
}

.intro-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}

.intro-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.intro-content h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.92;
}

.intro-content p {
  max-width: 42rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.metrics div,
.control-band,
.provider-card,
.setup-band,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metrics div {
  padding: 1rem;
}

.metrics strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(18rem, 1.2fr);
  gap: 1rem;
  padding: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0b1018;
  color: var(--text);
  padding: 0 0.8rem;
  outline: none;
}

input:focus,
select:focus,
.button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 208, 177, 0.18);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.toggle-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.toggle-row label {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 16, 24, 0.78);
  padding: 0 0.75rem;
  color: var(--text);
}

.toggle-row input {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--teal);
}

.notice {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  color: #ffe6aa;
}

.notice[hidden] {
  display: none;
}

.grid-section,
.provider-band,
.content-band,
.setup-band {
  padding: 3rem 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2,
.setup-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.cam-grid,
.provider-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cam-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0b1018;
}

.thumb,
.fallback-thumb {
  width: 100%;
  height: 100%;
}

.thumb {
  display: block;
  object-fit: cover;
}

.fallback-thumb {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(37, 208, 177, 0.2), transparent),
    linear-gradient(315deg, rgba(255, 79, 136, 0.24), transparent),
    #111827;
  color: rgba(255, 255, 255, 0.76);
  font-size: 3.2rem;
  font-weight: 900;
}

.fallback-thumb[hidden],
.thumb[hidden] {
  display: none;
}

.live-pill,
.network-pill,
.tag-row span,
.provider-card > span {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-pill {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 79, 136, 0.92);
}

.cam-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.cam-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cam-title-row h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.network-pill {
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  background: rgba(37, 208, 177, 0.12);
  color: var(--teal);
}

.headline {
  min-height: 3rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-row span {
  padding: 0.28rem 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  color: #d7dde7;
}

.cam-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.visit-button {
  width: 100%;
}

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

.provider-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.content-card {
  display: grid;
  gap: 0.65rem;
  min-height: 12rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 31, 42, 0.92), rgba(13, 17, 23, 0.78));
  padding: 1rem;
  text-decoration: none;
}

.content-card span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 79, 136, 0.13);
  color: var(--rose);
  padding: 0.32rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.content-card strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.content-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.provider-card h3 {
  margin: 0;
  font-size: 1rem;
}

.provider-card p,
.provider-card small {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.provider-card small {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.provider-card > span {
  width: fit-content;
  padding: 0.35rem 0.6rem;
  background: rgba(247, 200, 106, 0.14);
  color: var(--gold);
}

.provider-card.is-ready > span {
  background: rgba(37, 208, 177, 0.13);
  color: var(--teal);
}

.setup-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.25rem;
  margin: 3rem 0;
  padding: 1.5rem;
}

.setup-band ol {
  margin: 0;
  padding-left: 1.4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
}

.content-page {
  padding: 2.5rem 0 0;
}

.content-hero {
  max-width: 54rem;
  padding: 2rem 0 2.5rem;
}

.content-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.32fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 3rem;
}

.content-body,
.content-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.content-body {
  display: grid;
  gap: 0;
}

.content-body section {
  padding: 1.25rem;
}

.content-body section + section {
  border-top: 1px solid var(--line);
}

.content-body h2,
.content-aside h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.content-body p {
  margin: 0;
}

.content-aside {
  padding: 1rem;
}

.related-list {
  display: grid;
  gap: 0.6rem;
}

.related-list a {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1rem, 5vw, 4rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.skeleton {
  min-height: 20rem;
  padding: 1rem;
}

.skeleton div,
.skeleton span {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #17202c, #202a37, #17202c);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton div {
  height: 11rem;
}

.skeleton span {
  height: 1rem;
  margin-top: 1rem;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 920px) {
  .intro-shell,
  .control-band,
  .setup-band,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .intro-shell {
    min-height: auto;
  }

  .intro-content h1 {
    max-width: 15ch;
  }

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

@media (max-width: 640px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .metrics,
  .filter-grid,
  .cam-grid,
  .provider-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .intro-media {
    aspect-ratio: 16 / 12;
  }
}
