:root {
  color-scheme: dark;
  --bg: #101012;
  --surface: #18181c;
  --surface-2: #202127;
  --text: #f4f4f5;
  --muted: #a7a7ad;
  --line: #30313a;
  --accent: #ff3f72;
  --accent-2: #f5b64c;
  --accent-soft: rgba(255, 63, 114, .12);
  --maxw: 1180px;
  --pad: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.text-link {
  color: #ffd0dc;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 63, 114, .45);
  text-underline-offset: 3px;
}

.text-link:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(var(--pad), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(16, 16, 18, .88);
  backdrop-filter: blur(12px);
}

.brand {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.home-hero,
.detail-hero,
.content-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--pad);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 26px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

.lead,
.summary {
  color: var(--muted);
  font-size: 16px;
  margin: 14px 0 0;
}

.site-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-pill,
.tag {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.site-pill span {
  color: var(--accent-2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.video-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.video-card,
.panel,
.site-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.video-card {
  overflow: hidden;
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050505;
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}

.video-card:hover .video-card__media img {
  transform: scale(1.025);
}

.video-card__body {
  padding: 12px;
}

.video-card__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.video-card__title:hover {
  color: var(--accent);
}

.video-card__meta {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-hero > *,
.detail-layout > *,
.video-card,
.panel {
  min-width: 0;
}

.detail-hero__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.detail-hero__media img,
.detail-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: var(--accent-soft);
  color: #ffdce6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #ff5b86;
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent-2);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

.detail-table {
  border-collapse: collapse;
  margin-top: 12px;
  width: 100%;
  table-layout: fixed;
}

.detail-table th,
.detail-table td {
  border-top: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  color: var(--muted);
  font-weight: 700;
  padding-right: 16px;
  width: 112px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
}

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

.site-block {
  margin-top: 18px;
  padding: 18px;
}

.media-placeholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  height: 100%;
  justify-content: center;
}

.footer {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 24px var(--pad) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13px;
}

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

  .site-strip {
    justify-content: flex-start;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 12px;
  }

  .site-header,
  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-grid,
  .video-grid--compact {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .detail-hero,
  .content-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .detail-hero {
    gap: 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 19px;
  }

  .summary,
  .lead {
    font-size: 14px;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .panel {
    padding: 14px;
  }

  .detail-table th {
    width: 92px;
  }

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