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

* { box-sizing: border-box; }

.cb-ad {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #f4f4f4;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 89, 26, .18), transparent 34%),
    linear-gradient(180deg, #171717 0%, #070707 100%);
  border: 1px solid #202020;
  position: relative;
}

.cb-slides,
.cb-slide {
  width: 100%;
  height: 100%;
}

.cb-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .42s ease, transform .42s ease;
}

.cb-slide.active {
  opacity: 1;
  transform: scale(1);
}

.cb-media {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.cb-media::after {
  content: "";
  position: absolute;
  inset: var(--shade-top, 58%) 0 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.50) 46%, rgba(0,0,0,.88) 100%);
}

.cb-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05);
}

.cb-badge {
  position: absolute;
  left: var(--badge-left, 8px);
  top: var(--badge-top, 8px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: var(--badge-pad, 4px 7px);
  border-radius: 999px;
  background: #ff5b21;
  color: #fff;
  font-size: var(--badge-size, 9px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.cb-watchers {
  position: absolute;
  right: var(--watchers-right, 8px);
  top: var(--watchers-top, 8px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - var(--watchers-right, 8px) - var(--badge-left, 8px) - 82px);
  padding: var(--watchers-pad, 4px 7px);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: var(--watchers-size, 9px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  backdrop-filter: blur(4px);
}

.cb-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-width: 0;
  padding: var(--copy-pad, 46px 10px 10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--copy-gap, 5px);
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.cb-kicker {
  color: rgba(255,255,255,.78);
  font-size: var(--kicker-size, 8px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cb-title {
  color: #fff;
  font-size: var(--title-size, 14px);
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-bottom {
  display: block;
  min-height: 0;
  padding-right: calc(var(--cta-min, 70px) + 12px);
}

.cb-meta {
  min-width: 0;
  color: rgba(255,255,255,.78);
  font-size: var(--meta-size, 9px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-cta {
  position: absolute;
  right: var(--cta-right, 10px);
  bottom: var(--cta-bottom, 10px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-pad, 7px 9px);
  min-width: var(--cta-min, 70px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a2e 0%, #ec3b09 100%);
  color: #fff;
  font-size: var(--cta-size, 10px);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(236, 59, 9, .24);
}

.cb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 11px;
  text-align: center;
  padding: 10px;
}

.cb-size-161x260 {
  --shade-top: 60%;
  --copy-pad: 46px 8px 8px;
  --copy-gap: 4px;
  --title-size: 14px;
  --desc-size: 10px;
  --desc-lines: 2;
  --meta-size: 9px;
  --cta-size: 10px;
  --cta-pad: 6px 8px;
  --cta-min: 68px;
  --cta-right: 8px;
  --cta-bottom: 8px;
  --badge-size: 8px;
  --badge-pad: 3px 6px;
  --watchers-size: 8px;
  --watchers-pad: 3px 6px;
}

.cb-size-300x250 {
  --shade-top: 58%;
  --copy-pad: 54px 12px 12px;
  --title-size: 16px;
  --desc-size: 11px;
  --desc-lines: 2;
  --meta-size: 10px;
  --cta-size: 11px;
  --cta-pad: 7px 11px;
  --cta-min: 82px;
  --cta-right: 12px;
  --cta-bottom: 12px;
  --watchers-size: 9px;
}

.cb-size-728x90 {
  --shade-top: 42%;
  --copy-pad: 26px 12px 8px;
  --copy-gap: 3px;
  --title-size: 18px;
  --desc-size: 11px;
  --desc-lines: 1;
  --meta-size: 10px;
  --cta-size: 12px;
  --cta-pad: 9px 16px;
  --cta-min: 104px;
  --cta-right: 12px;
  --cta-bottom: 8px;
  --badge-size: 7px;
  --badge-pad: 3px 5px;
  --watchers-top: 6px;
  --watchers-size: 8px;
  --watchers-pad: 3px 6px;
}

.cb-size-1600x900 {
  --shade-top: 54%;
  --copy-pad: 180px 44px 44px;
  --copy-gap: 18px;
  --kicker-size: 15px;
  --title-size: 64px;
  --desc-size: 24px;
  --desc-line: 1.22;
  --desc-lines: 2;
  --meta-size: 18px;
  --cta-size: 22px;
  --cta-pad: 18px 30px;
  --cta-min: 210px;
  --cta-right: 44px;
  --cta-bottom: 44px;
  --badge-size: 16px;
  --badge-pad: 8px 13px;
  --badge-left: 22px;
  --badge-top: 22px;
  --watchers-right: 28px;
  --watchers-top: 24px;
  --watchers-size: 16px;
  --watchers-pad: 8px 13px;
}

.cb-size-9x16 {
  --shade-top: 58%;
  --copy-pad: 78px 18px 18px;
  --copy-gap: 8px;
  --title-size: 24px;
  --desc-size: 14px;
  --desc-lines: 2;
  --meta-size: 12px;
  --cta-size: 14px;
  --cta-pad: 12px 14px;
  --cta-min: 110px;
  --cta-right: 18px;
  --cta-bottom: 18px;
  --badge-size: 10px;
  --watchers-size: 10px;
}
