.spb-host,
[class*="-col-1"].spb-host {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-bottom: 1rem;
  background: transparent;
  overflow: visible;
}

.spb-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.spb-wrap.is-preview {
  min-height: 450px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.spb-wrap.is-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.spb-ctas {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(280px, calc(100% - 32px));
  padding: 16px;
}

.spb-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  margin: 0;
  border-radius: 6px;
  font-family: var(--simple--font-family, inherit);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.spb-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.spb-btn:active {
  transform: translateY(0);
}

.spb-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.spb-btn--demo {
  color: #fff;
  background: transparent;
  border: 1.5px solid #fff;
}

.spb-btn--demo:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.spb-btn--play {
  color: #fff;
  background: var(--accent-color, #f60);
  border: 1.5px solid var(--accent-color, #f60);
}

.spb-btn--play:hover {
  color: #fff;
  opacity: 0.92;
}

.spb-wrap.is-playing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  overflow: visible;
}

.spb-frame {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.spb-frame iframe,
.spb-frame ._xw {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.spb-play-below {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  flex-shrink: 0;
}

.spb-preloader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.spb-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-left-color: var(--accent-color, #fac85c);
  border-radius: 50%;
  animation: spb-spin 1s linear infinite;
}

@keyframes spb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .spb-wrap.is-preview {
    min-height: 280px;
    height: 280px;
    border-radius: 10px;
  }

  .spb-ctas {
    width: min(240px, calc(100% - 24px));
    gap: 10px;
    padding: 12px;
  }

  .spb-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    border-radius: 5px;
  }

  .spb-frame {
    height: 280px;
    border-radius: 10px;
  }

  .spb-wrap.is-playing {
    gap: 10px;
  }

  .spb-play-below {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .spb-wrap.is-preview {
    min-height: 240px;
    height: 240px;
  }

  .spb-frame {
    height: 240px;
  }

  .spb-ctas {
    width: min(100%, calc(100% - 16px));
  }

  .spb-btn {
    min-height: 40px;
    font-size: 12px;
  }
}
