html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101010;
  font-family: Arial, sans-serif;
}

* { box-sizing: border-box; }

.gcam-room-ad {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #f5f5f5;
  background: #151515;
  border: 1px solid #272727;
  position: relative;
}

.gcam-room-ad-blend {
  background: #eaeaea;
  border: 0;
}

.gcam-room-ad-blend .gcam-room-grid {
  background: #eaeaea;
}

.gcam-room-ad-blend .gcam-room-card,
.gcam-room-ad-blend .gcam-room-media {
  background: #eaeaea;
}

.gcam-room-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: var(--gap, 12px);
  padding: var(--pad, 12px);
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.gcam-room-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #090909;
  border: 1px solid rgba(255,255,255,.07);
}

.gcam-room-card:hover img {
  transform: scale(1.025);
}

.gcam-room-media {
  position: absolute;
  inset: 0;
  background: #050505;
}

.gcam-room-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--image-y, 28%);
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.001);
  transition: transform .22s ease;
}

.gcam-room-media::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.52) 48%, rgba(0,0,0,.92) 100%);
}

.gcam-room-live {
  position: absolute;
  left: var(--badge-left, 8px);
  top: var(--badge-top, 8px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--badge-pad, 5px 7px);
  border-radius: 3px;
  background: linear-gradient(180deg, #ff2a32 0%, #d90a13 100%);
  color: #fff;
  font-size: var(--badge-size, 9px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.gcam-room-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-width: 0;
  padding: var(--info-pad, 34px 10px 10px);
  background: linear-gradient(180deg, rgba(8,8,8,0), rgba(8,8,8,.96) 64%);
}

.gcam-room-name {
  color: #fff;
  font-size: var(--name-size, 14px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

.gcam-room-meta {
  margin-top: var(--meta-gap, 5px);
  color: rgba(255,255,255,.72);
  font-size: var(--meta-size, 10px);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

.gcam-room-brand {
  position: absolute;
  right: var(--brand-right, 9px);
  top: var(--brand-top, 8px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-gap, 3px);
  min-width: var(--brand-width, 50px);
  padding: var(--brand-pad, 3px 4px);
  border-radius: 4px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: var(--brand-size, 8px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 7px 18px rgba(0,0,0,.32);
}

.gcam-room-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--brand-icon, 10px);
  height: var(--brand-icon, 10px);
  border-radius: 2px;
  background: #ef3b16;
  color: #fff;
  font-size: calc(var(--brand-icon, 10px) * .68);
  font-weight: 950;
  line-height: 1;
}

.gcam-room-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 14px;
}

.gcam-room-size-300x250 {
  --cols: 2;
  --pad: 6px;
  --gap: 6px;
  --badge-size: 8px;
  --badge-pad: 4px 6px;
  --name-size: 13px;
  --meta-size: 9px;
  --info-pad: 32px 8px 8px;
  --brand-width: 45px;
  --brand-size: 7px;
  --brand-icon: 9px;
  --brand-pad: 2px 3px;
  --brand-top: 7px;
  --brand-right: 7px;
}

.gcam-room-size-300x600 {
  --cols: 1;
  --pad: 8px;
  --gap: 8px;
  --badge-size: 9px;
  --name-size: 15px;
  --meta-size: 10px;
}

.gcam-room-size-161x260 {
  --cols: 1;
  --pad: 0;
  --gap: 0;
  --badge-size: 8px;
  --badge-pad: 4px 6px;
  --name-size: 15px;
  --meta-size: 10px;
}

.gcam-room-size-160x600 {
  --cols: 1;
  --pad: 8px;
  --gap: 8px;
  --badge-size: 8px;
  --badge-pad: 4px 6px;
  --name-size: 13px;
  --meta-size: 9px;
  --brand-width: 52px;
  --brand-size: 8px;
  --brand-icon: 10px;
  --brand-pad: 2px 3px;
}

.gcam-room-size-728x90 {
  --cols: 4;
  --pad: 5px;
  --gap: 5px;
  --badge-size: 7px;
  --badge-pad: 3px 5px;
  --name-size: 11px;
  --meta-size: 8px;
  --meta-gap: 3px;
  --info-pad: 24px 7px 6px;
  --brand-width: 42px;
  --brand-size: 6px;
  --brand-icon: 8px;
  --brand-gap: 2px;
  --brand-pad: 2px 3px;
  --brand-top: 6px;
  --brand-right: 7px;
}

.gcam-room-size-320x50 {
  --cols: 2;
  --pad: 4px;
  --gap: 4px;
  --badge-size: 7px;
  --badge-pad: 3px 5px;
  --name-size: 10px;
  --meta-size: 8px;
  --meta-gap: 2px;
  --info-pad: 18px 6px 5px;
  --brand-width: 40px;
  --brand-size: 6px;
  --brand-icon: 8px;
  --brand-gap: 2px;
  --brand-pad: 2px 3px;
  --brand-top: 5px;
  --brand-right: 6px;
}

.gcam-room-size-900x1600 {
  --cols: 1;
  --pad: 22px;
  --gap: 16px;
  --badge-size: 16px;
  --badge-pad: 9px 12px;
  --name-size: 34px;
  --meta-size: 19px;
  --info-pad: 84px 24px 24px;
  --brand-width: 98px;
  --brand-size: 17px;
  --brand-icon: 22px;
  --brand-pad: 6px 8px;
  --badge-left: 18px;
  --badge-top: 18px;
  --brand-right: 20px;
  --brand-top: 18px;
}

.gcam-room-size-1600x900 {
  --cols: 4;
  --pad: 20px;
  --gap: 14px;
  --badge-size: 13px;
  --badge-pad: 8px 11px;
  --name-size: 27px;
  --meta-size: 16px;
  --info-pad: 70px 20px 20px;
  --brand-width: 92px;
  --brand-size: 15px;
  --brand-icon: 20px;
  --brand-pad: 6px 8px;
  --badge-left: 16px;
  --badge-top: 16px;
  --brand-right: 18px;
  --brand-top: 16px;
}
