*, *::before, *::after {
  box-sizing: border-box;
}


.filter-btn {
  color: #000 !important;
  background: #f5f5f5;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 80px;
  text-align: center;
}

.filter-btn:hover {
  background: #e2e2e2;
}

.filter-btn.active {
  background: #e91e63;
  color: #fff !important;
  font-weight: bold;
}

aside.widget .textwidget .filter-group .filter-btn.active,
.widget_text .filter-group .filter-btn.active,
.filter-section .filter-btn.active {
  background: #e91e63 !important;
  color: #fff !important;
  font-weight: bold !important;
}

.filter-btn img {
  width: 16px;
  height: 12px;
  vertical-align: middle;
  margin-right: 6px;
}
.cbt-roulette-button-wrapper {
  margin-top: 20px;
  text-align: center;
}

.load-roulette-btn {
  background-color: #d50000 !important; /* Vegas Red */
  color: #fff !important;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  animation: vegas-glow 1.2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-roulette-btn:hover {
  transform: scale(1.05);
}

@keyframes vegas-glow {
  0% {
    box-shadow: 0 0 10px #ff003c, 0 0 20px #ff003c;
  }
  50% {
    box-shadow: 0 0 15px #ff1a4d, 0 0 30px #ff1a4d;
  }
  100% {
    box-shadow: 0 0 10px #ff003c, 0 0 20px #ff003c;
  }
}
.main-header-menu > li > a {
  color: #fff;
  font-weight: bold;
  padding: 12px 16px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.main-header-menu > li > a:hover {
  color: #ff0000;
  text-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff4d4d;
}
.main-header-menu .current-menu-item > a {
  color: #cc0000;
  font-weight: bold;
  border-bottom: 2px solid #cc0000;
}


/* Layout fix for Tags, Performer, and Grid Pages */
body.page-template-page-tags .ast-container,
body.performer-profile-template .ast-container,
body.page-template-page-live .ast-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0 !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.page-template-page-tags #secondary,
body.performer-profile-template #secondary,
body.page-template-page-live #secondary {
  width: 15% !important;
  padding: 0 20px !important;
  border-right: 1px solid #ccc !important;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

body.page-template-page-tags #primary,
body.performer-profile-template #primary,
body.page-template-page-live #primary {
  width: 85% !important;
  margin-top: 6px !important;
  border: none !important;
}

body.page-template-page-tags .site-main,
body.performer-profile-template .site-main,
body.page-template-page-live .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Astra layout fix for tags */
body.page-template-page-tags.ast-left-sidebar #primary {
  float: right !important;
}

body.page-template-page-tags.ast-left-sidebar #secondary {
  float: left !important;
}

body.page-template-page-tags.ast-left-sidebar.ast-two-container #content {
  display: flex !important;
  flex-direction: row-reverse !important;
}
body.performer-profile-template #primary {
  padding-left: 40px !important;
  margin-left: 0 !important;
}
/* === GLOBAL LAYOUT FIX FOR HEADER & WRAPPER === */
body.page-id-2 .ast-container {
  padding-left: 0 !important;
  margin-left: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

/* === SIDEBAR === */
body.page-id-2 #secondary {
  width: 15% !important;
  padding: 0 20px !important;
  border-right: 1px solid #ccc !important;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

/* === PRIMARY CONTENT === */
body.page-id-2 #primary {
  width: 85% !important;
  padding-left: 55px !important;
  margin-left: 0 !important;
  border: none !important;
}

/* === MAIN WRAPPER (CONTENT MARGIN) === */
body.page-id-2 .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* === FIX SEARCH BOX WIDTH === */
body.page-id-2 .wp-block-search__input {
  width: 100% !important;
}

/* === Default 5-column layout for all pages unless overridden === */
.cbt-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* === Scoped to homepage, category, country to guarantee 5 cols === */
body.home .cbt-grid-wrapper,
body.category .cbt-grid-wrapper,
body.page-template-default .cbt-grid-wrapper,
body.page-home .cbt-grid-wrapper,
body.page .cbt-grid-wrapper {
  grid-template-columns: repeat(5, 1fr);
}

/* === Medium screens (992–1399px) – 4 columns */
@media (min-width: 992px) and (max-width: 1399px) {
  .cbt-grid-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === Tablets (768–991px) – 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
  .cbt-grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Mobile (< 768px) – 2 columns */
@media (max-width: 767px) {
  .cbt-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Prevent 6-column overflow on ultra-wide screens */
@media (min-width: 1400px) {
  .cbt-grid-wrapper {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* === Gender filter styles for country pages === */
.cbt-gender-filter {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.cbt-gender-filter .cbt-gender-link {
  margin-right: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.cbt-gender-filter .cbt-gender-link.active {
  font-weight: 700;
  color: #d60000;
}


@media (max-width: 600px) {
  .cbt-thumbnail img {
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }

  .cbt-info {
    padding: 6px;
  }

  .cbt-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 3px;
    object-fit: cover;
  }

  .cbt-name {
    font-size: 14px;
  }

  .cbt-country {
    font-size: 11px;
  }

  .verified-badge {
    width: 12px !important;
    height: 12px !important;
  }

  .cbt-viewers,
  .cbt-online {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .cbt-grid-wrapper {
    row-gap: 24px;
  }

  .blinking-dot {
    width: 6px;
    height: 6px;
  }

  .performer-profile-wrapper {
    padding: 20px;
  }
}

/* Sidebar layout */
body.ast-left-sidebar .site-content > .ast-container > #secondary {
  flex: 0 0 260px !important;
  align-self: flex-start !important;
  height: auto !important;
  border-right: 1px solid #ddd !important;
  padding-right: 2em !important;
  margin-right: 0 !important;
  background-color: #f8f8f8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Match the style of 'Gender', 'Country', etc. */
#secondary label.wp-block-search__label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #222;
  margin-bottom: 0.4em;
}

body.ast-left-sidebar .site-content > .ast-container > #primary {
  flex: 1 1 auto !important;
  padding-left: 2em !important;
  border-left: none !important;
}

body.home.ast-left-sidebar .ast-container,
body.page.ast-left-sidebar .ast-container,
body.single-performer.ast-left-sidebar .ast-container,
body.tax-cbt_tag.ast-left-sidebar .ast-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
}

/* Spacing between filter sections */
.filter-section {
  margin-bottom: 1.5em;
}

/* Filter group: 2 per row */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.6em;
}

/* Filter buttons */
.filter-btn {
  flex: 0 0 calc(50% - 0.5em);
  max-width: calc(50% - 0.5em);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4em 0.6em;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background-color: #eee;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover state */
.filter-btn:hover {
  background-color: #ddd;
}

/* Active filter (like Trans) */
.filter-btn.active {
  background-color: #f60076;
  color: white;
}

/* Flag inside button */
.filter-btn img {
  vertical-align: middle;
  margin-right: 6px;
  height: 14px;
}

/* Fix flag + text alignment */
.filter-group .filter-btn img + span {
  display: inline-block;
}

/* 🔧 Container with Sidebar (Left) + Primary (Main Content) */
body.ast-left-sidebar.single-performer .site-content > .ast-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2em; /* ⬅️ Clean left & right spacing */
  gap: 2em;
}

/* 🧱 Primary Content Area */
body.ast-left-sidebar.single-performer #primary {
  flex: 1 1 auto;
  max-width: 100%;
  padding-left: 2em;
  padding-right: 2em;
}

/* 📦 Main Profile Wrapper — FIXED SELECTOR */
body.ast-left-sidebar.single-performer #cbt-performer-wrapper {
  max-width: 1440px;              /* Matches your example visually */
  margin: 0 auto;
  margin-top: 24px;
  padding-left: 1em;             /* Minimal space from sidebar */
  padding-right: 1em;
  box-sizing: border-box;
}

/* === Sidebar === */
body.ast-left-sidebar.single-performer #secondary {
  flex: 0 0 260px;
  margin-left: 1em;  
  padding-right: 2em;
  border-right: 1px solid #ddd;
  align-self: flex-start;
}

/* === Tablet & Mobile: Stack Layout === */
@media (max-width: 1199px) {
  body.ast-left-sidebar.single-performer .site-content > .ast-container {
    flex-direction: column;
  }

  body.ast-left-sidebar.single-performer #primary,
  body.ast-left-sidebar.single-performer #secondary {
    flex: unset;
    padding: 0 1em;
    margin-left: 0;
    border: none;
  }
}

/* 🔧 Force proper height and full-width display for performer iframe */
/* Align entire profile content */
.cbt-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cbt-iframe-align-left {
  display: block;
  text-align: left;        /* ✅ Breaks out of center if inherited */
  width: 100%;
  max-width: 1200px;        /* ✅ Cap width */
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Iframe container fix */
.cbt-iframe-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

/* Iframe itself */
.cbt-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Chat button spacing */
.cbt-iframe-and-button {
  display: block;
  max-width: 1200px;   /* Match iframe max width */
  width: 100%;
  margin-left: 0 !important;
  margin-right: auto !important;
  margin-bottom: 1.5em;
}

/* Optional tuning for different screen widths */
@media (min-width: 1200px) {
  .cbt-iframe-and-button {
    gap: 0.8em;
  }
}

@media (max-width: 768px) {
  .cbt-iframe-and-button {
    gap: 0.6em;
  }
}
  body.ast-left-sidebar.single-performer main.site-main {
    padding: 0 !important;
  }

  #cbt-performer-main-top {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ✅ Only one definition */
.cbt-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Optional wrapper override */
#primary .cbt-grid-wrapper {
  padding: 0;
}

.cbt-iframe-wrapper {
  position: relative;
  z-index: 0;
}
.animated-play {
  width: 72px;
  height: 72px;
  background: #007bff; /* Bright blue */
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}
.animated-play svg {
  width: 34px;         /* Resize the icon inside */
  height: 34px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,123,255, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0,123,255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0,123,255, 0); }
}

/* 🔓 Unlock full width for related cams on performer page */
body.ast-left-sidebar.single-performer .site-content,
body.ast-left-sidebar.single-performer .site-content > .ast-container,
body.ast-left-sidebar.single-performer #primary,
body.ast-left-sidebar.single-performer .cbt-profile-container,
body.ast-left-sidebar.single-performer .cbt-grid-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
/* ✅ Apply margin-bottom only to the grid */
body.ast-left-sidebar.single-performer .cbt-grid-wrapper {
  margin-bottom: 60px !important;
}
/* 🔴 Chat Button aligned with IFRAME — stronger targeting */
a.cbt-chat-button {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.5em;
  margin-bottom: 2em;
  background-color: #ff4d4f !important;
  color: #fff !important;
  padding: 1.2em 2em;
  font-size: 1.2em !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

a.cbt-chat-button:hover {
  background-color: #e04344 !important;
  transform: translateY(-2px);
}
/* === OFFLINE STYLES OVERRIDE === */
.cbt-offline-thumbnail img {
    filter: grayscale(100%) brightness(70%);
    opacity: 0.7;
    transition: filter 0.2s ease;
}

.cbt-offline-thumbnail:hover img {
    filter: grayscale(60%) brightness(80%);
}

.cbt-lastseen {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

.cbt-offline {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #666;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}
.cbt-tag {
  display: inline-block;
  background: #eee;
  padding: 4px 10px;
  border-radius: 12px;
  margin: 2px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cbt-tag:hover {
  background: #ddd;
  color: #000;
}
.cbt-fav-btn {
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transition: transform 0.15s ease;
}

/* Optional: slight scale on hover, but no layout shift */
.cbt-fav-btn:hover {
  transform: scale(1.1);
}

/* When favorited: switch to 💖 */
.cbt-fav-btn.favorited::before {
  content: "💖";
}

/* Default: ❤️ (not favorited) */
.cbt-fav-btn::before {
  content: "❤️";
}

.cbt-thumbnail {
  position: relative;
}
.cbt-thumbnail.offline img {
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.6;
}

.cbt-offline-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  background-color: #e74c3c;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  gap: 8px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cbt-offline-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.cbt-roulette-wrapper {
  text-align: center;
  margin-top: 20px;
}

.cbt-iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cbt-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

