:root {
  --accent: #ff385c;
  --accent-dark: #e61e4d;
  --text: #222222;
  --muted: #717171;
  --border: #dddddd;
  --surface: #ffffff;
  --background: #fafafa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

.site-header {
  z-index: 1030;
}

.top-brand-bar {
  color: #fff;
  background: linear-gradient(100deg, #8f102d 0%, #d51f45 48%, #ff385c 100%);
  box-shadow: 0 3px 12px rgba(143, 16, 45, 0.22);
}

.top-brand-bar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.top-page-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-page-links .dropdown {
  flex: 0 0 auto;
}

.top-dropdown-toggle {
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-dropdown-toggle:hover,
.top-dropdown-toggle:focus,
.top-dropdown-toggle.show {
  color: #fff;
}

.top-brand-bar .dropdown-menu {
  padding: 8px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(78, 0, 20, 0.22);
}

.top-brand-bar .dropdown-item {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
}

.top-brand-bar .dropdown-item:active {
  background: var(--accent);
}

.top-page-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.top-page-link:hover,
.top-page-link.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.top-brand-bar .navbar-brand {
  margin: 0;
  padding: 0;
}

.top-preferences {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.top-select {
  width: auto;
  min-width: 118px;
  padding: 7px 32px 7px 12px;
  color: #fff;
  background-color: rgba(95, 0, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.86rem;
}

.top-select:focus {
  color: #fff;
  background-color: rgba(95, 0, 24, 0.38);
  border-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.top-select option {
  color: #222;
}

.navbar {
  min-height: 72px;
}

.navbar-brand {
  color: var(--accent);
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 12px;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
}

.brand-name {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

@media (max-width: 1199.98px) {
  .top-brand-bar-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .top-brand-bar .navbar-brand {
    grid-row: 1;
    justify-self: center;
  }

  .top-page-links {
    grid-row: 2;
    justify-content: center;
    overflow-x: auto;
  }

  .top-preferences {
    grid-row: 3;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .top-brand-bar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .top-brand-bar .navbar-brand {
    grid-row: 1;
    justify-self: center;
  }

  .top-page-links {
    grid-row: 2;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
  }

  .top-preferences {
    grid-row: 3;
    justify-content: center;
  }

  .top-select {
    min-width: 132px;
  }

  .brand-logo {
    height: 50px;
  }
}

.nav-link {
  color: var(--text);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.search-pill {
  display: flex;
  align-items: center;
  max-width: 850px;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.search-field {
  flex: 1;
  min-width: 0;
  padding: 10px 24px;
  border-right: 1px solid var(--border);
}

.search-label,
.search-value {
  display: block;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.search-value,
.search-field input {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-field input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 8px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 1.35rem;
}

.search-button:hover {
  background: var(--accent-dark);
}

.filter-panel {
  padding: 22px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.filter-group {
  padding: 20px 0;
  border-top: 1px solid #eeeeee;
}

.filter-group:first-of-type {
  border-top: 0;
}

.filter-group h2 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.filter-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.filter-group-heading .btn {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  color: #484848;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.results-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sort-select {
  width: auto;
  min-width: 165px;
  border-radius: 12px;
}

.cam-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
}

.cam-card {
  min-width: 0;
  cursor: pointer;
}

.cam-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #e9e9e9;
}

.cam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.25s ease, opacity 0.25s ease;
}

.cam-preview-video,
.cam-preview-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cam-image-wrap.preview-loading .cam-image {
  animation: preview-blur-cycle 3.6s linear infinite;
}

.cam-image-wrap.preview-ready .cam-preview-video,
.cam-image-wrap.preview-ready .cam-preview-image {
  opacity: 1;
}

@keyframes preview-blur-cycle {
  0% {
    filter: blur(0) saturate(1);
    transform: scale(1);
  }

  12.5%,
  87.5% {
    filter: blur(2px) saturate(0.96);
    transform: scale(1.015);
  }

  25%,
  75% {
    filter: blur(5px) saturate(0.9);
    transform: scale(1.04);
  }

  37.5%,
  62.5% {
    filter: blur(12px) saturate(0.76);
    transform: scale(1.09);
  }

  50% {
    filter: blur(16px) saturate(0.66);
    transform: scale(1.12);
  }

  100% {
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cam-image-wrap.preview-loading .cam-image {
    animation: none;
    filter: blur(9px) saturate(0.85);
    transform: scale(1.07);
  }
}

.cam-card:hover .cam-image {
  transform: scale(1.035);
}

.live-badge,
.viewer-badge,
.favorite-button {
  position: absolute;
  z-index: 2;
}

.live-badge {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.viewer-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.favorite-button {
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.favorite-button.active {
  color: var(--accent);
}

.cam-info {
  padding-top: 10px;
}

.cam-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cam-name {
  overflow: hidden;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-rating {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.cam-meta,
.cam-tags {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
  white-space: normal;
}

.cam-tag-link {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--muted);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cam-tag-link:hover,
.cam-tag-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.load-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
  color: var(--muted);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

@media (max-width: 1500px) {
  .cam-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .cam-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .filter-panel {
    position: static !important;
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    padding: 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .filter-panel .filter-group {
    flex: 0 0 min(280px, 78vw);
    min-width: 0;
    max-height: 245px;
    padding: 10px 16px;
    overflow-y: auto;
    border-top: 0;
    border-left: 1px solid #eeeeee;
  }

  .filter-panel .filter-group:first-child {
    border-left: 0;
  }

  .filter-panel .filter-option {
    margin-block: 7px;
  }

  .filter-panel .language-flag-filters,
  .filter-panel .ethnicity-toggle-list {
    max-height: 135px;
  }

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

@media (max-width: 767.98px) {
  .filter-panel .filter-group:nth-child(1),
  .filter-panel .filter-group:nth-child(2),
  .filter-panel .filter-group:nth-child(3) {
    flex: 0 0 max-content;
    width: max-content;
    max-width: 82vw;
    padding-inline: 10px;
  }

  .filter-panel .filter-group:nth-child(2) .filter-option,
  .filter-panel .filter-group:nth-child(3) .language-toggle {
    font-size: 0.72rem;
  }

  .filter-panel .filter-group:nth-child(3) .language-toggle {
    gap: 6px;
    padding-inline: 2px;
  }

  .search-pill {
    min-height: 54px;
  }

  .search-field {
    padding: 8px 16px;
    border-right: 0;
  }

  .search-button {
    width: 42px;
    height: 42px;
    margin: 6px;
  }

  .cam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

@media (max-width: 420px) {
  .cam-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared buttons and links */
a { color: inherit; }
.taxonomy-flag-link { display: inline-flex; line-height: 1; text-decoration: none; vertical-align: middle; }
.language-flag-filters { display: grid; grid-template-columns: 1fr; gap: 4px; max-height: 190px; margin-top: 10px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.language-toggle { display: flex; gap: 8px; align-items: center; padding: 5px 7px; border-radius: 7px; color: var(--muted); font-size: .76rem; cursor: pointer; }
.language-toggle:hover { color: var(--text); background: rgba(255,56,92,.06); }
.language-toggle input { flex: 0 0 auto; accent-color: var(--accent); }
.language-flag-filters img { flex: 0 0 auto; object-fit: cover; }
.filter-inline-flag { margin-left: 4px; object-fit: cover; vertical-align: middle; }
.ethnicity-toggle-list { display: grid; gap: 5px; max-height: 180px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tag-directory-page { max-width: 1100px; min-height: 65vh; }
.tag-directory-page h1 { margin: 5px 0 8px; letter-spacing: -.04em; }
.tag-directory-page > p { margin-bottom: 24px; color: var(--muted); }
.tag-directory-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: stretch; }
.tag-directory-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); text-decoration: none; }
.tag-directory-item:hover { color: var(--accent); border-color: var(--accent); background: rgba(255,56,92,.045); }
.tag-directory-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-directory-item strong { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }
.tag-size-1 span { font-size: .78rem; }
.tag-size-2 span { font-size: .86rem; }
.tag-size-3 span { font-size: .96rem; font-weight: 600; }
.tag-size-4 span { font-size: 1.08rem; font-weight: 700; }
.tag-size-5 span { font-size: 1.2rem; font-weight: 800; }
@media (max-width: 767.98px) { .tag-directory-list { grid-template-columns: 1fr; } }

.provider-index { max-width: 980px; min-height: 62vh; }
.provider-index h1 { margin: 5px 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.provider-index-intro { margin-bottom: 28px; color: var(--muted); }
.provider-directory { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 34px rgba(23,18,20,.07); }
.provider-directory-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 16px; align-items: center; min-height: 86px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.provider-directory-row:last-child { border-bottom: 0; }
.provider-directory-row:hover { color: var(--text); background: rgba(255,56,92,.045); }
.provider-directory-logo { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: -.02em; }
.provider-logo-chaturbate { background: #f68b1f; }
.provider-logo-stripchat { background: #8b3dff; }
.provider-logo-cam4 { background: #ef3340; }
.provider-logo-bongacams { background: #ff2f71; }
.provider-directory-row strong, .provider-directory-row small { display: block; }
.provider-directory-row strong { margin-bottom: 3px; font-size: 1rem; }
.provider-directory-row small { color: var(--muted); }
.provider-directory-arrow { color: var(--accent); font-size: 1.45rem; transition: transform .18s ease; }
.provider-directory-row:hover .provider-directory-arrow { transform: translateX(4px); }
.btn-accent { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-accent:hover, .btn-accent:focus { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.section-title { font-size: 1.35rem; font-weight: 700; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Live room page */
.room-content { max-width: 1600px; margin-inline: auto; }

@media (max-width: 1199.98px) {
  .room-body .top-preferences { display: none; }
  .room-body .top-brand-bar-inner { grid-template-rows: auto auto; }
}

@media (max-width: 575.98px) {
  .room-body .top-brand-bar-inner {
    display: flex;
    justify-content: center;
    min-height: 64px;
    padding-block: 7px;
  }
  .room-body .top-page-links { display: none; }
}

.room-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1440px;
  max-height: calc(100svh - 175px);
  margin-inline: auto;
  aspect-ratio: var(--stream-aspect-ratio, 16 / 9);
  border-radius: 22px;
  background: #111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.room-player video { width: 100%; height: 100%; object-fit: contain; background: #111; cursor: pointer; }
.room-embed, .room-embed iframe { display: block; width: 100%; height: 100%; border: 0 !important; }
.room-player-embed { min-height: min(70vw, 760px); }
.room-stream-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  opacity: 1;
  pointer-events: none;
  transition: opacity .3s ease;
}
.room-player.stream-loading .room-stream-poster {
  animation: preview-blur-cycle 3.6s linear infinite;
}
.room-player.stream-ready .room-stream-poster {
  opacity: 0;
  animation: none;
}
.room-player::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.25)); pointer-events: none; }
.room-player-overlay { position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.room-live-badge { position: static; }
.room-viewers { padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.58); font-size: .8rem; backdrop-filter: blur(8px); }
.room-play-button { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,56,92,.92); font-size: 1.7rem; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .2s ease; }
.room-play-button:hover { transform: translate(-50%,-50%) scale(1.07); }
.room-player.stream-ready .room-play-button { display: none !important; }
.room-player-notice { position: absolute; z-index: 5; inset: 50% auto auto 50%; display: flex; width: min(520px, calc(100% - 40px)); padding: 26px; transform: translate(-50%,-50%); flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; color: #fff; background: rgba(15,12,14,.88); box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: center; backdrop-filter: blur(12px); }
.room-player-notice strong { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.room-player-notice span { color: rgba(255,255,255,.78); line-height: 1.55; }
.room-player-notice a { align-self: center; margin-top: 5px; padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--accent); font-weight: 700; text-decoration: none; }
.room-player.is-group .room-stream-poster, .room-player.is-away .room-stream-poster, .room-player.is-offline .room-stream-poster, .room-player.stream-unavailable .room-stream-poster { filter: blur(12px) brightness(.55); transform: scale(1.04); }
.room-player.is-private .room-stream-poster {
  opacity: 1 !important;
  object-fit: cover;
  filter: blur(30px) brightness(.52) saturate(1.25);
  animation: private-poster-curiosity 9s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform, filter;
}
@keyframes private-poster-curiosity {
  0% { transform: scale(1.62) rotate(-15deg); }
  50% { transform: scale(1.48) rotate(0deg); }
  100% { transform: scale(1.62) rotate(15deg); }
}
.room-player.is-private .room-live-badge { background: #8b5cf6; }
.room-player.is-group .room-live-badge { background: #7c3aed; }
.room-player.is-away .room-live-badge { background: #d97706; }
.room-affiliate-cta {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 24px));
  min-height: 76px;
  margin: 28px auto 4px;
  padding: 18px 32px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(105deg, #a70f35, #ff385c 48%, #ff7390);
  box-shadow:
    0 0 18px rgba(255, 56, 92, 0.65),
    0 12px 34px rgba(196, 21, 63, 0.35);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: affiliate-glow 2s ease-in-out infinite alternate;
}
.room-affiliate-cta span { margin: 0 .35em; }
.room-affiliate-cta::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -35%;
  width: 20%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-20deg);
  animation: affiliate-shine 3.6s ease-in-out infinite;
}
.room-affiliate-cta:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 30px rgba(255,56,92,.85), 0 16px 40px rgba(196,21,63,.45);
}
@keyframes affiliate-glow {
  from { box-shadow: 0 0 14px rgba(255,56,92,.5), 0 10px 28px rgba(196,21,63,.3); }
  to { box-shadow: 0 0 30px rgba(255,56,92,.9), 0 14px 38px rgba(196,21,63,.45); }
}
@keyframes affiliate-shine {
  0%, 58% { left: -35%; }
  78%, 100% { left: 125%; }
}

@media (max-width: 767.98px) {
  .room-player {
    max-height: calc(100svh - 150px);
    aspect-ratio: var(--stream-aspect-ratio, 16 / 9);
  }

  .room-player video {
    object-fit: contain;
  }

  .room-stream-poster {
    object-fit: contain;
  }
}
.room-heading h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.verified-badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--accent); font-size: .75rem; font-weight: 700; }
#favoriteRoom.active { color: var(--accent); border-color: var(--accent); }
.room-about h2 { font-size: 1.2rem; font-weight: 700; }
.room-topic { padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255,56,92,.06); overflow-wrap: anywhere; }
.room-description details { margin-top: 1rem; }
.room-description pre { max-height: 20rem; overflow: auto; white-space: pre-wrap; }
.room-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.room-tags a { padding: 6px 10px; border-radius: 999px; color: var(--accent-dark); background: rgba(255,56,92,.09); font-size: .8rem; font-weight: 600; text-decoration: none; }
.detail-label { display: block; margin-bottom: 3px; color: var(--muted); }
.chat-panel { top: 96px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid #eee; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 4px rgba(35,165,90,.12); }
.chat-messages { height: 460px; overflow-y: auto; padding: 16px; background: #fcfcfc; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; font-size: .86rem; }
.chat-message strong { margin-bottom: 3px; font-size: .75rem; }
.chat-message span { max-width: 90%; padding: 9px 11px; border-radius: 4px 14px 14px; background: #f0f0f0; }
.chat-message.own-message { align-items: flex-end; }
.chat-message.own-message span { color: #fff; background: var(--accent); border-radius: 14px 4px 14px 14px; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid #eee; }
.chat-notice { padding: 0 14px 14px; color: var(--muted); font-size: .7rem; text-align: center; }
.related-cam-grid { display: grid; width: 100%; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.related-cam-card { color: var(--text); text-decoration: none; }
.related-image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 15px; background: #eee; }
.related-image-wrap > .cam-image { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease, opacity .25s ease; }
.related-cam-card:hover .related-image-wrap > .cam-image { transform: scale(1.035); }

/* Cohesive model detail layout */
.room-page { background: linear-gradient(180deg, rgba(255,56,92,.035), transparent 360px); }
.room-content { max-width: 1480px; }
.room-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: stretch; }
.room-stage .room-player { max-height: none; margin: 0; border-radius: 18px; box-shadow: 0 14px 42px rgba(23,18,20,.14); }
.room-stage .room-player-embed { min-height: 620px; }
.room-profile-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 34px rgba(23,18,20,.07); }
.room-profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.room-avatar { flex: 0 0 auto; width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.room-profile-title { min-width: 0; }
.room-profile-title h1 { overflow: hidden; margin: 0; font-size: 1.45rem; font-weight: 750; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.room-profile-title p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.room-profile-title #roomMetaTags { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.room-facts { display: grid; gap: 0; margin: 10px 0 22px; }
.room-facts > div { padding: 13px 0; border-bottom: 1px solid var(--border); }
.room-facts strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.room-status.is-online::before { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #20b26b; box-shadow: 0 0 0 3px rgba(32,178,107,.13); content: ""; }
.room-status.is-offline::before { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,.13); content: ""; }
.room-profile-card .room-affiliate-cta { width: 100%; min-height: 56px; margin: auto 0 10px; padding: 14px 18px; border: 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(255,56,92,.25); font-size: 1rem; animation: none; }
.room-profile-card .room-affiliate-cta::before { display: none; }
.room-provider-note { margin: 0 8px 16px; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: center; }
.room-favorite { width: 100%; padding: 11px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: transparent; font-weight: 650; }
.room-favorite:hover, .room-favorite.active { color: var(--accent); border-color: var(--accent); background: rgba(255,56,92,.05); }
.room-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 40px; align-items: center; margin: 22px 0 42px; padding: 28px 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: none; }
.room-about h2 { margin: 3px 0 12px; font-size: 1.35rem; }
.room-eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.room-about .room-topic { margin: 0; padding: 0; border: 0; color: var(--muted); background: transparent; line-height: 1.65; }
.room-about .room-tags { justify-content: flex-end; margin: 0; }
.room-related { padding-bottom: 38px; }
.room-related .section-title { font-size: 1.5rem; }
.related-cam-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-tags-panel, .room-details-panel { margin-top: 22px; padding: 28px 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.room-tags-panel h2, .room-details-panel h2 { margin: 3px 0 18px; font-size: 1.4rem; letter-spacing: -.025em; }
.room-tags-panel .room-tags { margin: 0; }
.room-tags-panel .room-tags a { padding: 8px 12px; transition: color .18s ease, background .18s ease; }
.room-tags-panel .room-tags a:hover { color: #fff; background: var(--accent); }
.room-details-panel { margin-bottom: 42px; }
.room-details-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.room-details-heading h2 { margin-bottom: 0; }
.room-details-heading > p { margin: 0; color: var(--muted); font-size: .8rem; }
.room-detail-topic { margin: 24px 0 6px; padding: 18px 20px; border-radius: 13px; background: rgba(255,56,92,.055); }
.room-detail-topic span, .room-preferences span { display: block; margin-bottom: 6px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.room-detail-topic p, .room-preferences p { margin: 0; line-height: 1.65; overflow-wrap: anywhere; }
.room-details-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 22px 0 0; }
.room-details-grid > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.room-details-grid > div:nth-child(4n) { border-right: 0; }
.room-details-grid dt { margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.room-details-grid dd { margin: 0; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.room-preferences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.room-preferences > div { padding: 18px 20px; border: 1px solid var(--border); border-radius: 13px; }

@media (max-width: 1099.98px) {
  .room-stage { grid-template-columns: 1fr; }
  .room-stage .room-player-embed { min-height: min(66vw, 680px); }
  .room-profile-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .room-profile-head, .room-facts { grid-column: 1; }
  .room-profile-card .room-affiliate-cta { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
  .room-provider-note, .room-favorite { grid-column: 2; }
  .room-favorite { align-self: start; }
  .room-details-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .room-details-grid > div:nth-child(4n) { border-right: 1px solid var(--border); }
  .room-details-grid > div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 767.98px) {
  .room-page { padding-inline: 10px !important; }
  .room-stage { gap: 14px; }
  .room-stage .room-player-embed { min-height: 62vw; }
  .room-profile-card { display: flex; padding: 18px; }
  .room-profile-card .room-affiliate-cta { margin-top: 4px; }
  .room-about { grid-template-columns: 1fr; gap: 20px; margin: 14px 0 34px; padding: 22px 20px; }
  .room-about .room-tags { justify-content: flex-start; }
  .room-tags-panel, .room-details-panel { padding: 22px 20px; }
  .room-details-heading { display: block; }
  .room-details-heading > p { margin-top: 7px; }
  .room-details-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .room-details-grid > div:nth-child(3n) { border-right: 1px solid var(--border); }
  .room-details-grid > div:nth-child(2n) { border-right: 0; }
  .room-preferences { grid-template-columns: 1fr; }
}

/* Editorial / blog content page */
.article-hero { border-bottom: 1px solid #eee; background: #fff; }
.article-hero .container { max-width: 1080px; }
.article-category { display: inline-block; margin: 10px 0 14px; padding: 7px 11px; border-radius: 999px; color: var(--accent-dark); background: #fff0f3; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-hero h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.03; font-weight: 700; letter-spacing: -.055em; }
.article-lead { max-width: 780px; color: var(--muted); font-size: 1.2rem; line-height: 1.7; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.author-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--text); font-size: .8rem; font-weight: 700; }
.article-body { max-width: 820px; }
.article-cover { width: 100%; margin-bottom: 35px; border-radius: 22px; aspect-ratio: 16/9; object-fit: cover; }
.article-body p { color: #444; font-size: 1.05rem; line-height: 1.85; }
.article-body .article-intro { color: var(--text); font-size: 1.2rem; font-weight: 500; }
.article-body h2 { margin: 48px 0 16px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; scroll-margin-top: 105px; }
.article-body h3 { margin: 30px 0 12px; font-size: 1.25rem; font-weight: 700; }
.article-body blockquote { margin: 34px 0; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 15px 15px 0; background: #fff; font-size: 1.2rem; font-weight: 600; line-height: 1.6; }
.article-callout { margin: 32px 0; padding: 22px; border-radius: 18px; background: #fff0f3; }
.article-callout strong { display: block; margin-bottom: 7px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 25px; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.article-cta h3 { margin: 0 0 5px; }
.article-sidebar { top: 100px; }
.sidebar-card { margin-bottom: 20px; padding: 22px; border: 1px solid #e8e8e8; border-radius: 18px; background: #fff; }
.sidebar-card h2 { margin-bottom: 15px; font-size: 1rem; font-weight: 700; }
.article-toc { display: flex; flex-direction: column; gap: 2px; }
.article-toc a { padding: 9px 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.article-toc a:hover { color: var(--accent); }
.guide-link { display: flex; flex-direction: column; gap: 3px; padding: 13px 0; border-top: 1px solid #eee; text-decoration: none; }
.guide-link:first-of-type { border-top: 0; }
.guide-link strong { font-size: .88rem; }
.guide-link span { color: var(--muted); font-size: .75rem; }

@media (max-width: 991.98px) {
  .chat-panel, .article-sidebar { position: static !important; }
  .chat-messages { height: 300px; }
  .related-cam-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .room-player { border-radius: 15px; }
  .room-play-button { width: 60px; height: 60px; }
  .article-hero h1 { font-size: 2.35rem; }
  .article-cta { align-items: flex-start; flex-direction: column; }
}


/* Live tag discovery strip */
.live-strip-wrap {
  background: var(--surface);
}

.live-tag-strip-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-tag-strip {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  padding: 4px 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.live-tag-strip::-webkit-scrollbar { display: none; }

.live-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.live-tag-item:hover,
.live-tag-item:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}

.live-tag-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: .72rem;
}

.live-strip-arrow,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.live-strip-arrow {
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
}

.live-strip-arrow:hover,
.theme-toggle:hover {
  background: var(--background);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

/* Color theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #f5f5f5;
  --muted: #a9a9ad;
  --border: #3a3a3d;
  --surface: #202023;
  --background: #141416;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .bg-white,
:root[data-theme="dark"] .navbar,
:root[data-theme="dark"] .article-hero,
:root[data-theme="dark"] .filter-panel,
:root[data-theme="dark"] .chat-panel,
:root[data-theme="dark"] .sidebar-card,
:root[data-theme="dark"] .article-cta,
:root[data-theme="dark"] .room-about,
:root[data-theme="dark"] .card {
  background-color: var(--surface) !important;
  color: var(--text);
}

:root[data-theme="dark"] .btn-light,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .form-control {
  color: var(--text);
  background-color: #29292d;
  border-color: var(--border);
}

:root[data-theme="dark"] .top-brand-bar .top-select {
  color: #fff;
  background-color: rgba(95, 0, 24, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

:root[data-theme="dark"] .btn-outline-dark {
  color: var(--text);
  border-color: #777;
}

:root[data-theme="dark"] .btn-outline-dark:hover {
  color: #111;
  background: #f5f5f5;
}

:root[data-theme="dark"] .navbar-toggler {
  border-color: var(--border);
  filter: invert(1);
}

:root[data-theme="dark"] .filter-option,
:root[data-theme="dark"] .article-body p,
:root[data-theme="dark"] .link-dark,
:root[data-theme="dark"] .related-cam-card {
  color: var(--text) !important;
}

:root[data-theme="dark"] .filter-group,
:root[data-theme="dark"] .chat-header,
:root[data-theme="dark"] .chat-form,
:root[data-theme="dark"] .guide-link,
:root[data-theme="dark"] .article-hero,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-bottom {
  border-color: var(--border) !important;
}

:root[data-theme="dark"] .chat-messages {
  background: #18181b;
}

:root[data-theme="dark"] .chat-message span {
  background: #303034;
}

:root[data-theme="dark"] .article-body blockquote,
:root[data-theme="dark"] .article-callout {
  background: #29292d;
}

:root[data-theme="dark"] .article-category {
  color: #ff8ca1;
  background: #3a2028;
}

@media (max-width: 767.98px) {
  .live-strip-arrow { display: none; }
  .live-tag-strip { gap: 8px; }
}
.country-flag, .language-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
}

/* Friends links above the site footer */
.friends-section {
  margin-top: 2.5rem;
  padding: 2.25rem 0;
  background: var(--surface);
}

.friends-title {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.friends-list {
  margin: 0;
  padding-left: 1.6rem;
  columns: 5;
  column-gap: 2.5rem;
}

.friends-list li {
  margin-bottom: .65rem;
  padding-left: .15rem;
  break-inside: avoid;
  color: var(--muted);
  font-size: .875rem;
}

.friends-list a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.friends-list a:hover,
.friends-list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .friends-list { columns: 3; }
}

@media (max-width: 575.98px) {
  .friends-section { padding: 1.75rem 0; }
  .friends-list { columns: 2; column-gap: 1.5rem; }
}

/* Shared footer and contact page */
.site-footer { background: var(--surface); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-weight: 500; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); text-decoration: underline; }
.contact-page { display: grid; place-items: center; min-height: 65vh; }
.contact-card { width: min(100%, 680px); padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 16px 45px rgb(0 0 0 / 8%); }
.contact-eyebrow { margin-bottom: .5rem; color: var(--accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card h1 { margin-bottom: .75rem; font-weight: 700; letter-spacing: -.04em; }
.contact-intro { margin-bottom: 2rem; color: var(--muted); line-height: 1.7; }
.contact-form { display: grid; gap: 1.25rem; }
.contact-form label { display: block; margin-bottom: .45rem; font-weight: 600; }
.contact-form .form-control { padding: .8rem .9rem; border-color: var(--border); border-radius: 12px; background: var(--background); }
.contact-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgb(255 56 92 / 15%); }
.contact-submit { justify-self: start; padding: .75rem 1.6rem; border-radius: 999px; color: #fff; background: var(--accent); font-weight: 700; }
.contact-submit:hover, .contact-submit:focus-visible { color: #fff; background: var(--accent-dark); }
