.bs-home-clips {
  --widget-grad-from: #111827;
  --widget-grad-to: #2563eb;
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--design-card-radius, 24px);
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.22);
  isolation: isolate;
}

.bs-home-clips__mesh {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0f172a, #1d4ed8 62%, #7c3aed);
}

.bs-home-clips__content {
  position: relative;
  z-index: 1;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bs-home-clips__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.bs-home-clips__title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.bs-home-clips__subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.bs-home-clips__track-wrap {
  margin: 0 -16px;
}

.bs-home-clips__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 4px;
  -webkit-overflow-scrolling: touch;
}

.bs-home-clips__track::-webkit-scrollbar {
  display: none;
}

.bs-home-clips__card {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  scroll-snap-align: start;
}

.bs-home-clips__card--live {
  cursor: default;
}

.bs-home-clips__card img,
.bs-clip-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bs-clip-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bs-clip-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.bs-home-clips__card.is-playing .bs-clip-caption,
.bs-clip-player.is-playing .bs-clip-caption,
.bs-home-clips__card.is-playing .bs-clip-play,
.bs-clip-player.is-playing .bs-clip-play {
  display: none;
}

.bs-home-clips__card iframe,
.bs-clip-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.bs-unpack-tabs {
  display: none;
}

.bs-unpack-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
}

.bs-unpack-tabs button.is-on {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.bs-unpack {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0 48px;
  box-sizing: border-box;
  grid-column: 1 / -1;
  background: transparent;
  border-top: 0;
  scroll-margin-top: 72px;
  isolation: isolate;
  transform: translateZ(0);
}

.bs-unpack__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.bs-unpack__inner h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-align: center;
}

.bs-unpack__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0058e6;
  margin: 8px 0 6px;
}

.bs-unpack h2 {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.bs-clip-player {
  position: relative;
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  isolation: isolate;
  transform: translateZ(0);
}

.bs-clip-player--live {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.bs-unpack-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 16px 0 0;
  padding: 11px 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.bs-unpack-back:active {
  background: #f1f5f9;
}

.bs-clip-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
}

.bs-clip-thumb {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.bs-clip-thumb.is-on {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.bs-clip-thumb__num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bs-clip-thumb__label {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-desktop-layout .bs-home-clips__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  overflow: visible;
  padding: 0;
}

html.is-desktop-layout .bs-home-clips__track-wrap {
  margin: 0;
}

html.is-desktop-layout .bs-home-clips__card {
  width: auto;
  flex: none;
}

@media (min-width: 960px) {
  .bs-home-clips__title {
    font-size: 26px;
  }

  .bs-clip-player {
    max-width: 280px;
  }
}
