.am-live-chat[hidden] {
  display: none;
}

.am-live-chat-placement {
  width: 100%;
  min-width: 0;
  margin: 28px 0 40px;
}

.am-live-chat-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px auto;
  overflow: visible;
  text-align: center;
}

.am-live-chat-ad > * {
  max-width: 100%;
}

.am-live-chat-placement .am-live-chat {
  margin: 28px 0;
}

.am-live-chat {
  margin: 32px 0 36px;
}

.am-live-chat__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.am-live-chat__title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: var(--thumb-text-color);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.am-live-chat__live-badge {
  flex: 0 0 auto;
  padding: 4px 7px 3px;
  border-radius: 4px;
  background: #d92f3b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .07em;
}

.am-live-chat__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 0;
  margin: 0 -8px;
  padding: 0;
  list-style: none;
}

.am-live-card {
  min-width: 0;
  padding: 0 8px 14px;
}

.am-live-card__link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.am-live-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--thumb-placeholder-bg);
}

.am-live-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.am-live-card__onair,
.am-live-card__quality {
  position: absolute;
  bottom: 5px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}

.am-live-card__onair {
  left: 5px;
  gap: 5px;
}

.am-live-card__onair-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3843;
  box-shadow: 0 0 0 3px rgba(255, 56, 67, .22);
}

.am-live-card__quality {
  right: 5px;
}

.am-live-card__name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 7px;
  color: var(--thumb-text-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: color .2s ease;
}

.am-live-card__username {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-live-card__flag {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.am-live-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--thumb-info-color);
  font-size: 12px;
  line-height: 17px;
}

.am-live-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.am-live-card__meta-item:first-child {
  overflow: hidden;
}

.am-live-card__meta-item:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-live-card__meta-item .svg-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.am-live-card__new {
  color: var(--btn-bg-act);
  font-weight: 700;
}

.am-live-chat__footer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.am-live-chat__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--btn-bg-act);
  border-radius: 7px;
  color: var(--thumb-text-color);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.am-live-chat__cta .svg-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.am-live-card__link:focus-visible,
.am-live-chat__cta:focus-visible {
  outline: 2px solid var(--btn-bg-act);
  outline-offset: 3px;
}

@media (hover: hover) {
  .am-live-card__link:hover .am-live-card__media img {
    transform: scale(1.025);
    filter: brightness(1.04);
  }

  .am-live-card__link:hover .am-live-card__name {
    color: var(--btn-bg-act);
  }

  .am-live-chat__cta:hover {
    background: var(--btn-bg-act);
    color: #111;
  }
}

@media (min-width: 768px) and (max-width: 940px) {
  .am-live-chat__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .am-live-chat-placement {
    margin: 20px 0 30px;
  }

  .am-live-chat-ad {
    margin: 18px auto;
  }

  .am-live-chat-placement .am-live-chat {
    margin: 22px 0;
  }

  .am-live-chat {
    margin: 24px 0 30px;
  }

  .am-live-chat__heading {
    margin-bottom: 14px;
  }

  .am-live-chat__title {
    font-size: 19px;
  }

  .am-live-chat__list {
    display: flex;
    gap: 10px;
    margin: 0 -10px;
    padding: 0 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .am-live-chat__list::-webkit-scrollbar {
    display: none;
  }

  .am-live-card {
    flex: 0 0 clamp(132px, 40vw, 164px);
    padding: 0;
    scroll-snap-align: start;
  }

  .am-live-card__media {
    aspect-ratio: 9 / 16;
    border-radius: 6px;
  }

  .am-live-card__name {
    margin-bottom: 5px;
  }

  .am-live-card__meta {
    gap: 8px;
  }

  .am-live-card__meta-item:nth-child(n + 2) {
    display: none;
  }

  .am-live-chat__footer {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-live-card__media img,
  .am-live-card__name,
  .am-live-chat__cta {
    transition: none;
  }
}

/* Emplacements de remplacement des widgets webcam. Le namespace am-cam reste
   volontairement distinct du grand bloc ArabMales Chat ci-dessus. */
.am-cam-surface[hidden] {
  display: none !important;
}

.am-cam-sidebar-host,
.am-cam-slot,
.am-cam-surface,
.am-cam-surface *,
.am-cam-slot * {
  box-sizing: border-box;
}

.am-cam-sidebar-host {
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding-bottom: 40px;
}

.am-cam-slot {
  position: relative;
  width: 100%;
  min-width: 0;
}

.am-cam-slot--top {
  height: 130px;
  min-height: 130px;
  overflow: hidden;
}

.am-cam-slot--sidebar {
  height: 100%;
  min-height: 320px;
}

.am-cam-primary {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.am-cam-primary--top {
  height: 130px;
}

.am-cam-primary--sidebar {
  height: 100%;
  min-height: 320px;
}

.am-cam-surface {
  width: 100%;
  min-width: 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(219, 86, 11, .18), transparent 36%),
    linear-gradient(135deg, #171717, #0c0c0c);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  font-family: Arial, Helvetica, sans-serif;
}

.am-cam-surface a {
  color: inherit;
  text-decoration: none;
}

.am-cam-surface--stories {
  display: grid;
  grid-template-columns: minmax(92px, 118px) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  height: 130px;
  padding: 9px 10px;
  overflow: hidden;
}

.am-cam-stories__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  margin-right: 10px;
  padding: 3px 12px 3px 3px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.am-cam-stories__eyebrow,
.am-cam-side__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff6972;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.am-cam-stories__pulse,
.am-cam-side__pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff3945;
  box-shadow: 0 0 0 4px rgba(255, 57, 69, .16);
}

.am-cam-stories__title {
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.am-cam-stories__hint {
  margin-top: 5px;
  color: #a9a9a9;
  font-size: 10px;
  line-height: 1.2;
}

.am-cam-stories__list {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 5px 3px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.am-cam-stories__list::-webkit-scrollbar {
  display: none;
}

.am-cam-story {
  flex: 0 0 72px;
  min-width: 0;
  scroll-snap-align: start;
}

.am-cam-story__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.am-cam-story__media {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff3845 5%, #db560b 55%, #d4a853 100%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
}

.am-cam-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #111;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  background: #242424;
  transition: transform .2s ease, filter .2s ease;
}

.am-cam-story__dot {
  position: absolute;
  right: 1px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #35c874;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}

.am-cam-story__name {
  display: block;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: #e9e9e9;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-cam-surface--sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 11px;
  overflow: hidden;
}

.am-cam-side__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 1px 1px 10px;
}

.am-cam-side__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f2f2f2;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-cam-side__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(219, 86, 11, .75) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.am-cam-side__list::-webkit-scrollbar {
  width: 5px;
}

.am-cam-side__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
}

.am-cam-side__list::-webkit-scrollbar-thumb {
  background: rgba(219, 86, 11, .75);
  border-radius: 999px;
}

.am-cam-side-card {
  flex: 0 0 auto;
  min-width: 0;
}

.am-cam-side-card__link,
.am-cam-side-card__media {
  display: block;
  min-width: 0;
}

.am-cam-side-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #232323;
  isolation: isolate;
}

.am-cam-side-card__media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .86));
  pointer-events: none;
}

.am-cam-side-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .22s ease, filter .22s ease;
}

.am-cam-side-card__badge {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(196, 24, 35, .94);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 21px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.am-cam-side-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}

.am-cam-side-card__info {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}

.am-cam-side-card__name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-cam-side-card__viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
}

.am-cam-side-card__viewers .svg-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.am-cam-side__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  gap: 7px;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid rgba(219, 86, 11, .82);
  border-radius: 7px;
  background: rgba(219, 86, 11, .13);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease;
}

.am-cam-side__cta .svg-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.am-cam-story__link:focus-visible,
.am-cam-side-card__link:focus-visible,
.am-cam-side__cta:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}

@media (hover: hover) {
  .am-cam-story__link:hover .am-cam-story__media img,
  .am-cam-side-card__link:hover .am-cam-side-card__media img {
    transform: scale(1.04);
    filter: brightness(1.08);
  }

  .am-cam-story__link:hover .am-cam-story__name {
    color: #d4a853;
  }

  .am-cam-side__cta:hover {
    border-color: #db560b;
    background: #db560b;
  }
}

@media (max-width: 600px) {
  .am-cam-surface--stories {
    grid-template-columns: 76px minmax(0, 1fr);
    padding-right: 7px;
    padding-left: 7px;
  }

  .am-cam-stories__intro {
    margin-right: 7px;
    padding-right: 7px;
  }

  .am-cam-stories__title {
    font-size: 12px;
  }

  .am-cam-stories__hint {
    display: none;
  }

  .am-cam-stories__list {
    gap: 9px;
  }

  .am-cam-story {
    flex-basis: 64px;
  }

  .am-cam-story__media {
    width: 62px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-cam-story__media img,
  .am-cam-side-card__media img,
  .am-cam-side__cta {
    transition: none;
  }
}
