.tw-partner-capsule-row {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.tw-partner-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e7e8ee;
  box-shadow: 0 2px 6px rgba(20, 21, 31, 0.04), 0 16px 40px -20px rgba(20, 21, 31, 0.22);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #14151f;
  text-align: left;
}
.tw-partner-capsule.no-photo {
  padding: 4px 16px;
}
.tw-partner-capsule b {
  font-weight: 700;
}

.tw-partner-capsule__av {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #14151f;
}

.tw-partner-capsule__offer {
  color: #3339f1;
}

.tw-partner-earns {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(20, 21, 31, 0.56);
  text-align: center;
}

.tw-partner-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 32px auto 0;
}

.tw-partner-media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d1e2b, #3339f1 140%);
  box-shadow: 0 2px 6px rgba(20, 21, 31, 0.04), 0 16px 40px -20px rgba(20, 21, 31, 0.22);
}
.tw-partner-media__frame::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(180deg, rgba(20, 21, 31, 0.5), rgba(20, 21, 31, 0));
  pointer-events: none;
}
.tw-partner-media__frame.is-playing::after, .tw-partner-media__frame.is-playing .tw-partner-media__cover, .tw-partner-media__frame.is-playing .tw-partner-media__play {
  display: none;
}

.tw-partner-media__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.tw-partner-media__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1), 0px -3px 4px -2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}
.tw-partner-media__play img {
  display: block;
  width: 100%;
  height: 100%;
}
.tw-partner-media__play:hover {
  transform: scale(1.06);
}
.tw-partner-media__play:focus-visible {
  outline: 3px solid #3339f1;
  outline-offset: 3px;
}

.tw-partner-media__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.tw-partner-media__caption {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: rgba(20, 21, 31, 0.72);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tw-partner-media__play {
    transition: none;
  }
}
#hero .tw-partner-capsule__offer {
  color: #3339f1 !important;
}
#hero .tw-partner-earns {
  color: #fff !important;
}
#hero .tw-partner-media__caption {
  color: rgba(255, 255, 255, 0.88) !important;
}
