.directory-data-note {
  max-width: 920px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: .92rem;
}

.taxonomy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.taxonomy-nav a {
  display: grid;
  min-width: 34px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  font-weight: 800;
}

.taxonomy-nav a:hover,
.taxonomy-nav a:focus-visible {
  border-color: var(--accent);
}

.taxonomy-groups {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.taxonomy-group {
  scroll-margin-top: 90px;
  padding-top: 4px;
}

.taxonomy-group > h2 {
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  color: var(--accent);
}

.directory-grid--taxonomy {
  margin-top: 10px;
}

.countries-index {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 13px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.directory-page--countries .countries-index > h2 {
  margin: 0;
  font-size: 1.1rem;
}

.countries-index__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}

.country-chip {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 7px;
  background: var(--surface-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.country-chip:hover,
.country-chip:focus-visible {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.country-chip__flag {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
}

.country-chip__name {
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-chip__count {
  display: inline-flex;
  min-height: 18px;
  flex: none;
  align-items: center;
  border-radius: 999px;
  padding: 3px 4px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.special-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.special-section-heading h2 {
  margin-top: 0;
}

.special-section-heading > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 800;
}

.roulette-embed {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
}

.roulette-embed [hidden] {
  display: none !important;
}

.roulette-consent,
.roulette-stage {
  min-height: 630px;
}

.roulette-consent {
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.roulette-consent > div {
  max-width: 560px;
}

.roulette-consent h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.roulette-consent p,
.roulette-consent small {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.roulette-consent .primary-cta {
  margin-top: 20px;
  border: 0;
  cursor: pointer;
}

.roulette-stage {
  position: relative;
  background: #f4f6fb;
}

#coomeet_container,
#coomeet_container > iframe {
  width: 100%;
  min-height: 630px;
  border: 0;
}

#coomeet_container > iframe {
  display: block;
  height: 630px !important;
  min-height: 630px !important;
}

.roulette-status,
.roulette-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f4f6fb;
  color: #29313d;
  text-align: center;
  font-weight: 800;
}

.roulette-error > button {
  margin-top: 12px;
  border: 1px solid #bcc4d0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: #19202a;
  cursor: pointer;
  font-weight: 800;
}

.roulette-overview {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-strong);
}

.roulette-overview h2 {
  margin-top: 0;
}

.roulette-overview p {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.roulette-overview a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.world-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  margin-top: 18px;
}

.world-map-card,
.world-map-snapshot,
.world-map-details > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface-strong);
}

.world-map-card .special-section-heading {
  margin-top: 0;
}

.world-map-svg-shell {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e8f1f5;
  aspect-ratio: 95 / 62;
}

.world-map-inline,
.world-map-inline svg,
.world-map-svg-shell > img {
  display: block;
  width: 100%;
  height: 100%;
}

.world-map-inline svg {
  object-fit: contain;
}

.world-map-inline svg path[id] {
  fill: #fff;
  stroke: rgba(15, 31, 36, .18);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.world-map-inline .forfap-reviewed-country {
  cursor: pointer;
  transition: filter .16s ease, stroke .16s ease;
}

.world-map-inline svg path.forfap-map-level-0 { fill: #fce7f3; }
.world-map-inline svg path.forfap-map-level-1 { fill: #f9c8df; }
.world-map-inline svg path.forfap-map-level-2 { fill: #f5a1c8; }
.world-map-inline svg path.forfap-map-level-3 { fill: #ed75ad; }
.world-map-inline svg path.forfap-map-level-4 { fill: #e64c94; }
.world-map-inline svg path.forfap-map-level-5 { fill: #db2777; }

.world-map-inline .forfap-reviewed-country:hover,
.world-map-inline .forfap-reviewed-country:focus {
  filter: brightness(.88) saturate(1.12);
  stroke: #fff;
  stroke-width: 3;
  outline: none;
}

.world-map-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  margin: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(15, 31, 36, .82);
  color: #fff;
  font-size: .72rem;
}

.world-map-snapshot > h2 {
  margin-top: 0;
}

.world-map-snapshot h3 {
  margin-top: 22px;
  font-size: 1rem;
}

.world-map-snapshot dl,
.world-map-snapshot ul,
.region-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.world-map-snapshot dl > div,
.world-map-snapshot li,
.region-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.world-map-snapshot dt,
.world-map-snapshot li span,
.region-list span {
  color: var(--ink-soft);
}

.world-map-snapshot dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.world-map-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.world-map-details h2 {
  margin-top: 0;
}

.world-country-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

@media (min-width: 1100px) {
  .roulette-consent,
  .roulette-stage,
  #coomeet_container,
  #coomeet_container > iframe {
    min-height: 790px;
  }

  #coomeet_container > iframe {
    height: 790px !important;
    min-height: 790px !important;
  }
}

@media (min-width: 641px) and (max-width: 1099px) {
  .roulette-consent,
  .roulette-stage,
  #coomeet_container,
  #coomeet_container > iframe {
    min-height: 700px;
  }

  #coomeet_container > iframe {
    height: 700px !important;
    min-height: 700px !important;
  }
}

@media (max-width: 900px) {
  .world-map-layout,
  .world-map-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .countries-index {
    padding: 12px;
  }

  .countries-index__list {
    gap: 6px;
  }

  .country-chip {
    min-height: 40px;
    padding: 10px 7px;
    font-size: 12px;
  }

  .country-chip__name {
    max-width: 110px;
  }

  .directory-page--world-map-of-sex-cams,
  .directory-page--sex-chat-roulette {
    margin-inline: -10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding-inline: 10px;
  }

  .roulette-consent,
  .roulette-stage,
  #coomeet_container,
  #coomeet_container > iframe {
    min-height: 630px;
  }

  .world-country-grid {
    grid-template-columns: 1fr;
  }

  .special-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Static hub parity with the reference Next layouts. */
.static-page-hero {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 0;
}

.static-page-hero--merged {
  position: relative;
  z-index: 45;
  margin-bottom: -1px;
  border-bottom-width: 0;
}

.static-page-hero h1 {
  max-width: 34ch;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.static-page-stack,
.static-hub-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.static-hub-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin: -1px -10px 0;
  overflow: visible;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.static-hub-sidebar {
  padding-top: 0;
}

.static-hub-main {
  padding: 0 10px 10px;
}

.static-hub-section {
  min-width: 0;
  padding: 12px;
  border-radius: 0;
}

.static-hub-section > h2,
.static-section-heading h2,
.static-info-card h2,
.static-overview h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.012em;
  line-height: 1.35;
}

.static-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.static-section-heading > a {
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.static-section-lead,
.static-data-note,
.static-info-card p,
.static-overview p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.65;
}

.static-data-note {
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: .78rem;
}

.static-card-grid {
  display: grid;
  gap: 10px;
}

.static-info-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.static-chip-list,
.language-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.static-chip-list .chip,
.language-chip-list .chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink-soft);
  background: var(--surface-strong);
  font-size: .82rem;
  font-weight: 700;
}

.static-chip-list .chip:hover,
.language-chip-list .chip:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.static-chip-list--compact {
  gap: 5px;
  margin-top: 10px;
}

.static-chip-list--compact .chip {
  min-height: 28px;
  border-radius: 0;
  padding: 4px 8px;
  font-size: .72rem;
}

.static-chip-list--compact small {
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 800;
}

.language-chip-list .chip strong {
  color: var(--ink);
  font-size: .75rem;
}

.static-sitemap-section {
  padding: 12px;
}

.static-sitemap-section .static-card-grid {
  margin-top: 12px;
}

.static-model-section .model-grid {
  margin-top: 10px;
}

.category-sort {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.category-sort a {
  min-height: 32px;
  padding: 7px 11px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
}

.category-sort a.is-active {
  color: var(--accent-contrast);
  background: var(--accent);
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 9px;
}

.category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 128px;
  overflow: hidden;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 10px;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(6, 14, 18, .14);
}

.category-card--sensual { background: linear-gradient(135deg, #667f89, #79929f 52%, #8ca5b3); }
.category-card--chat { background: linear-gradient(135deg, #6a738b, #7f8aa5 52%, #939eb9); }
.category-card--fetish { background: linear-gradient(135deg, #6d6688, #81799a 52%, #948cad); }
.category-card--beauty { background: linear-gradient(135deg, #6f7d7d, #849393 52%, #99a8a8); }
.category-card--energy { background: linear-gradient(135deg, #6b7480, #808b97 52%, #939eaa); }
.category-card--classic { background: linear-gradient(135deg, #6a7b86, #7d909b 52%, #91a5b0); }

.category-card__art {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border: 10px double rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.category-card__topline,
.category-card__copy,
.category-card__providers {
  position: relative;
  display: flex;
}

.category-card__topline {
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
}

.category-card__monogram {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.category-card__copy {
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.category-card__copy small {
  align-self: flex-start;
  margin-bottom: 2px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 1px 5px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-card__copy strong {
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card__copy > span,
.category-card__detail {
  color: rgba(255, 255, 255, .82);
  font-size: .66rem;
  line-height: 1.45;
}

.category-card__open {
  flex: none;
  border-radius: 6px;
  padding: 3px 6px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 5px 10px rgba(255, 90, 61, .35);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.category-card__detail {
  position: relative;
  min-height: 30px;
}

.category-card__detail strong { color: #fff; }

.category-card__providers {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.category-card__providers span {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 1px 5px;
  color: #26363d;
  background: rgba(255, 255, 255, .82);
  font-size: .55rem;
  font-weight: 800;
}

.country-chip-scroll {
  max-height: 240px;
  margin-top: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.countries-index__list {
  margin-top: 0;
}

.static-count-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: var(--surface-strong);
  font-size: .72rem;
  font-weight: 800;
}

.world-map-primary,
.world-map-secondary {
  display: grid;
  gap: 10px;
}

.world-map-snapshot-column {
  display: grid;
  gap: 10px;
  padding: 0;
}

.dialog-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dialog-card h3 { margin: 0; font-size: 1rem; }
.dialog-card dl { margin: 10px 0 0; }
.dialog-card dl > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: .82rem; }
.dialog-card dt { color: var(--ink-soft); }
.dialog-card dd { margin: 0; text-align: right; font-weight: 800; }

.world-country-card-grid {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.world-country-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.world-country-card:hover { background: var(--bg-soft); }
.world-country-card > span { display: grid; min-width: 0; }
.world-country-card > span:first-child { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 7px; }
.world-country-card img { grid-row: 1 / span 2; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.world-country-card strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.world-country-card small { color: var(--ink-soft); font-size: .66rem; }
.world-country-card > span:last-child { text-align: right; }

.region-bars {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.region-bar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.region-bar > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; }
.region-bar > div span { color: var(--ink-soft); }
.region-bar progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(15,31,36,.08);
  color: var(--accent);
}

.region-bar progress::-webkit-progress-bar { border-radius: inherit; background: rgba(15,31,36,.08); }
.region-bar progress::-webkit-progress-value { border-radius: inherit; background: var(--accent); }
.region-bar progress::-moz-progress-bar { border-radius: inherit; background: var(--accent); }

.static-overview {
  margin: 12px -10px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 14px;
}

.static-overview a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

@media (min-width: 640px) {
  .static-page-hero {
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: var(--php-radius);
  }

  .static-page-hero--merged {
    margin-bottom: -1px;
    border-radius: var(--php-radius) var(--php-radius) 0 0;
  }

  .static-page-hero h1 { font-size: 1.58rem; }

  .static-hub-shell {
    margin-inline: 0;
    border-right: 1px solid var(--line);
    border-radius: 0 0 var(--php-radius) var(--php-radius);
  }

  .static-hub-main { padding: 0 12px 12px; }
  .static-hub-section { padding: 16px; border-radius: var(--php-radius); }
  .static-hub-section > h2,
  .static-section-heading h2 { font-size: 1.25rem; }
  .static-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .static-info-card { padding: 16px; }
  .static-sitemap-section { padding: 16px; }
  .category-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-country-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .static-overview { margin-inline: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--php-radius); padding: 18px 20px; }
}

@media (min-width: 1024px) {
  .static-page-hero h1 { font-size: 1.8rem; }
  .static-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .static-hub-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .world-map-secondary { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); }
}

@media (min-width: 1280px) {
  .category-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world-map-primary { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (min-width: 1600px) {
  .category-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 639.98px) {
  .static-page-hero { margin-inline: -10px; border-right: 0; border-left: 0; }
  .static-page-stack { margin-inline: -10px; }
  .static-page-stack .static-hub-section,
  .static-sitemap-section { border-right: 0; border-left: 0; }
  .static-section-heading { align-items: flex-start; }
  .static-section-heading .category-sort { flex: none; }
  .category-card { min-height: 118px; padding: 8px; }
  .category-card__monogram { width: 24px; height: 24px; }
  .category-card__detail { min-height: 27px; }
  .world-map-snapshot-column { grid-template-columns: 1fr; }
}
