:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #111111;
  --text: #ffffff;
  --muted: #c9c9c9;
  --accent: #ed5c78;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 8px 28px;
}

.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 4px 12px 12px;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(100%, 360px);
  max-height: 88px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-wordmark span {
  color: var(--accent);
}

.brand-tagline {
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.top-banner {
  width: min(100%, 1000px);
  margin: 0 auto 18px;
}

.banner-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.banner-image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.provider-ad-slot {
  display: flex;
  width: min(100%, 1000px);
  min-height: 100px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 0 8px 18px;
  overflow: hidden;
}

.provider-ad-slot ins {
  display: block;
  max-width: 100%;
}

.age-gate {
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
}

.age-question {
  padding: 14px 12px;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid #111111;
}

.age-answer {
  padding: 6px 10px;
  text-align: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.age-answer:first-child {
  color: var(--accent);
  border-right: 2px solid #111111;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background: var(--surface);
}

.profile-link {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--text);
  text-decoration: none;
}

.profile-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.profile-play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0 0 0 3px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.profile-play-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.profile-play-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.profile-play-button[hidden] {
  display: none;
}

.profile-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 28px 6px 6px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.92));
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}

.profile-flag {
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-banner {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e0e0e;
}

.inline-banner .banner-link {
  height: 100%;
}

.inline-banner .banner-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.generic-promo {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background: #ffffff;
  color: #111111;
  text-align: center;
}

.generic-promo-content {
  width: min(100%, 640px);
}

.generic-promo-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.generic-promo-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 28px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-error {
  width: min(100% - 24px, 680px);
  margin: 60px auto;
  padding: 18px;
  border: 1px solid #8f3447;
  background: #2b1117;
  color: #ffffff;
  text-align: center;
}

@media (min-width: 720px) {
  .page-shell {
    padding: 20px 20px 40px;
  }

  .site-header {
    min-height: 120px;
  }

  .brand-wordmark {
    font-size: 64px;
  }

  .brand-tagline {
    font-size: 20px;
  }

  .top-banner {
    width: 50%;
    margin-bottom: 34px;
  }

  .provider-ad-slot {
    min-height: 250px;
    margin-bottom: 34px;
    padding-inline: 20px;
  }

  .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-meta {
    gap: 8px;
    padding: 46px 12px 12px;
    font-size: 20px;
  }

  .profile-flag {
    width: 30px;
    height: 20px;
    flex-basis: 30px;
  }

  .inline-banner,
  .generic-promo {
    min-height: 260px;
  }

  .generic-promo-title {
    font-size: 42px;
  }
}

@media (min-width: 380px) and (max-width: 719px) {
  .profile-meta {
    gap: 5px;
    padding: 30px 7px 7px;
    font-size: 15px;
  }

  .profile-flag {
    width: 22px;
    height: 15px;
    flex-basis: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-video {
    animation: none;
  }
}
