.sobae-video-reel-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home .entry-content > .sobae-video-reel-shell {
  margin-block: 0 !important;
}

.sobae-video-reel {
  --sobae-video-ink: #111;
  --sobae-video-muted: #666;
  --sobae-video-line: #e8e8e8;
  --sobae-video-accent: #111;
  --sobae-video-sans: var(--sobae-font-sans);
  position: relative;
  scroll-margin-top: 96px;
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  border-top: 1px solid var(--sobae-video-line);
  background: #fff;
  color: var(--sobae-video-ink);
}

.sobae-video-reel__inner {
  display: grid;
  width: min(1760px, calc(100% - 48px));
  margin: 0 auto;
  gap: 28px;
}

.sobae-video-reel__head {
  display: block;
  text-align: center;
}

.sobae-video-reel__copy {
  max-width: 760px;
  margin: 0 auto;
}

.sobae-video-reel__eyebrow {
  margin: 0 0 12px;
  color: var(--sobae-video-ink);
  font-family: var(--sobae-video-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sobae-video-reel__title {
  margin: 0;
  color: var(--sobae-video-ink);
  font-family: var(--sobae-font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}

.sobae-video-reel__sub {
  margin: 14px 0 0;
  color: var(--sobae-video-muted);
  font-family: var(--sobae-video-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.sobae-video-reel__navigation {
  display: contents;
}

.sobae-video-reel__wrap {
  position: relative;
  min-width: 0;
}

.sobae-video-reel__track {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 14px 0 20px;
  overflow-x: auto;
  perspective: 1200px;
  perspective-origin: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sobae-video-reel__track::-webkit-scrollbar {
  display: none;
}

.sobae-video-reel__track.is-enhanced {
  scroll-snap-type: none;
}

.sobae-video-reel__track:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--sobae-video-ink);
}

.sobae-video-card {
  position: relative;
  z-index: 1;
  flex: 0 0 calc((100% - 80px) / 5);
  width: calc((100% - 80px) / 5);
  min-width: 0;
  scroll-snap-align: start;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.sobae-video-card.is-focused {
  z-index: 2;
  transform: translateY(-6px);
}

.sobae-video-card.is-clone {
  pointer-events: none;
}

.sobae-video-card__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1ef;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
  transition: box-shadow 240ms ease;
}

.sobae-video-card.is-focused .sobae-video-card__frame {
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.18);
}

.sobae-video-card__frame::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 38%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
  opacity: 0;
  transition: opacity 180ms ease;
}

.sobae-video-card.is-playing .sobae-video-card__frame::after,
.sobae-video-card__frame:focus-within::after {
  opacity: 1;
}

.sobae-video-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.015);
  transition: transform 220ms ease, filter 220ms ease;
}

.sobae-video-card.is-focused .sobae-video-card__video {
  filter: saturate(1.08) contrast(1.025);
}

.sobae-video-card__controls {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.sobae-video-card.is-focused .sobae-video-card__controls,
.sobae-video-card__frame:focus-within .sobae-video-card__controls {
  opacity: 1;
  pointer-events: auto;
}

.sobae-video-control,
.sobae-video-card__play,
.sobae-video-reel__arrow,
.sobae-video-modal__close,
.sobae-video-modal__nav,
.sobae-video-modal__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.sobae-video-control,
.sobae-video-card__play {
  border: 0;
  color: #fff;
}

.sobae-video-control {
  width: 44px;
  min-width: 44px;
  height: 44px;
  background: rgba(17, 17, 17, 0.72);
}

.sobae-video-control:hover,
.sobae-video-control:focus-visible {
  background: #111;
}

.sobae-video-control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sobae-video-card__play {
  position: absolute;
  z-index: 3;
  top: auto;
  right: auto;
  bottom: 14px;
  left: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(17, 17, 17, 0.68);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.sobae-video-card__play:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
  transform: none;
}

.sobae-video-card.is-playing .sobae-video-card__play {
  bottom: 14px;
  left: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: none;
}

.sobae-video-card.is-playing .sobae-video-card__play:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
  transform: none;
}

.sobae-video-card__play svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sobae-video-card__play .is-play-icon,
.sobae-video-card__play .is-pause-icon {
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.sobae-video-card__play .is-play-icon {
  display: inline-flex;
  transform: translateX(1px);
}

.sobae-video-card__play .is-pause-icon,
.sobae-video-card.is-playing .sobae-video-card__play .is-play-icon {
  display: none;
}

.sobae-video-card.is-playing .sobae-video-card__play .is-pause-icon {
  display: inline-flex;
}

.sobae-video-card__progress {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  opacity: 0;
}

.sobae-video-card.is-playing .sobae-video-card__progress {
  opacity: 1;
}

.sobae-video-card__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sobae-video-accent);
  transform: scaleX(var(--sobae-card-progress, 0));
  transform-origin: left center;
}

.sobae-video-card__product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 0 2px;
  color: inherit;
  text-decoration: none;
}

.sobae-video-card__product img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #f7f7f7;
  object-fit: cover;
}

.sobae-video-card__product > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.sobae-video-card__product strong,
.sobae-video-card__product small {
  font-family: var(--sobae-video-sans);
  letter-spacing: 0;
}

.sobae-video-card__product strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sobae-video-card__product small {
  color: var(--sobae-video-muted);
  font-size: 14px;
  line-height: 1.4;
}

.sobae-video-card__product-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: var(--sobae-video-ink);
  transition: transform 180ms ease;
}

.sobae-video-card__product-arrow svg {
  width: 18px;
  height: 18px;
}

.sobae-video-card__product:hover strong,
.sobae-video-card__product:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sobae-video-card__product:hover .sobae-video-card__product-arrow,
.sobae-video-card__product:focus-visible .sobae-video-card__product-arrow {
  transform: translateX(2px);
}

.sobae-video-reel__arrow {
  position: absolute;
  z-index: 6;
  top: calc(50% - 42px);
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--sobae-video-ink);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  transform: translateY(-50%);
}

.sobae-video-reel__arrow--previous {
  left: -20px;
}

.sobae-video-reel__arrow--next {
  right: -20px;
}

.sobae-video-reel__arrow:hover,
.sobae-video-reel__arrow:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
}

.sobae-video-reel__arrow:disabled,
.sobae-video-modal__nav:disabled {
  cursor: default;
  opacity: 0.32;
}

.sobae-video-reel__arrow:disabled:hover {
  border-color: #d8d8d8;
  background: #fff;
  color: var(--sobae-video-ink);
}

.sobae-video-reel__arrow svg,
.sobae-video-modal__nav svg,
.sobae-video-modal__close svg {
  width: 20px;
  height: 20px;
}

.sobae-video-control:focus-visible,
.sobae-video-card__play:focus-visible,
.sobae-video-reel__arrow:focus-visible,
.sobae-video-modal__close:focus-visible,
.sobae-video-modal__nav:focus-visible,
.sobae-video-modal__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px #111;
}

.sobae-video-modal {
  width: fit-content;
  max-width: calc(100vw - 40px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #111;
}

.sobae-video-modal::backdrop {
  background: rgba(12, 11, 10, 0.9);
  backdrop-filter: blur(10px);
}

.sobae-video-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(320px, 380px);
  width: min(810px, calc(100vw - 80px));
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 60px);
  overflow: visible;
  border-radius: 8px;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.3));
}

.sobae-video-modal__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  background: #050505;
}

.sobae-video-modal__media video {
  display: block;
  width: 100%;
  height: min(82vh, 760px);
  min-height: 520px;
  max-height: calc(100vh - 60px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.sobae-video-modal__play {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
}

.sobae-video-modal__play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sobae-video-modal__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px;
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.sobae-video-modal__info img {
  width: 92px;
  height: 92px;
  border-radius: 4px;
  background: #f7f7f7;
  object-fit: cover;
}

.sobae-video-modal__info h3 {
  max-width: 11em;
  margin: 4px 0 0;
  font-family: var(--sobae-font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.sobae-video-modal__price,
.sobae-video-modal__description,
.sobae-video-modal__status {
  margin: 0;
  font-family: var(--sobae-video-sans);
  letter-spacing: 0;
}

.sobae-video-modal__price {
  color: #555;
  font-size: 15px;
}

.sobae-video-modal__description {
  max-width: 34ch;
  color: #5c5d5a;
  font-size: 14px;
  line-height: 1.55;
}

.sobae-video-modal__add {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 13px 22px;
  border: 1px solid #171717;
  border-radius: 2px;
  background: #171717;
  color: #fff;
  font-family: var(--sobae-video-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.sobae-video-modal__add:hover,
.sobae-video-modal__add:focus-visible {
  background: #fff;
  color: #171717;
}

.sobae-video-modal__add:disabled {
  cursor: wait;
  opacity: 0.6;
}

.sobae-video-modal__view {
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--sobae-video-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.sobae-video-modal__status {
  min-height: 20px;
  color: var(--sobae-video-accent);
  font-size: 12px;
  line-height: 1.4;
}

.sobae-video-modal__close,
.sobae-video-modal__nav {
  position: absolute;
  z-index: 4;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.sobae-video-modal__close {
  top: 14px;
  right: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.sobae-video-modal__nav {
  top: 50%;
  width: 48px;
  min-width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.sobae-video-modal__nav--previous {
  left: -24px;
}

.sobae-video-modal__nav--next {
  right: -24px;
}

body.sobae-video-modal-open {
  overflow: hidden;
}

@media (hover: hover) {
  .sobae-video-card:hover {
    z-index: 3;
    transform: translateY(-8px);
  }

  .sobae-video-card:hover .sobae-video-card__frame {
    box-shadow: 0 26px 54px rgba(17, 17, 17, 0.2);
  }

  .sobae-video-card__frame:hover .sobae-video-card__video {
    filter: saturate(1.1) contrast(1.03);
    transform: scale(1.025);
  }
}

@media (max-width: 1199px) {
  .sobae-video-reel {
    padding: 64px 0;
  }

  .sobae-video-reel__inner {
    width: min(1760px, calc(100% - 48px));
  }

  .sobae-video-card {
    flex-basis: calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 899px) {
  .sobae-video-reel__inner {
    width: calc(100% - 48px);
  }

  .sobae-video-card {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 599px) {
  .sobae-video-reel {
    padding: 48px 0;
  }

  .sobae-video-reel__inner {
    width: calc(100% - 40px);
    gap: 24px;
  }

  .sobae-video-reel__head {
    display: contents;
  }

  .sobae-video-reel__copy {
    order: 1;
  }

  .sobae-video-reel__title {
    font-size: 38px;
  }

  .sobae-video-reel__sub {
    font-size: 14px;
  }

  .sobae-video-reel__wrap {
    order: 2;
    margin-right: -20px;
  }

  .sobae-video-reel__navigation {
    position: relative;
    display: flex;
    width: calc(100% - 20px);
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 0;
  }

  .sobae-video-reel__arrow {
    position: static;
    transform: none;
  }

  .sobae-video-reel__track {
    gap: 12px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 18px;
  }

  .sobae-video-card {
    flex-basis: min(344px, calc(100vw - 56px));
    width: min(344px, calc(100vw - 56px));
  }

  .sobae-video-modal {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .sobae-video-modal__card {
    grid-template-columns: minmax(0, 1fr);
    width: min(420px, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    border-radius: 8px;
  }

  .sobae-video-modal__media {
    border-radius: 8px 8px 0 0;
  }

  .sobae-video-modal__media video {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 55vh;
  }

  .sobae-video-modal__info {
    max-height: 40vh;
    padding: 16px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
  }

  .sobae-video-modal__info img {
    width: 62px;
    height: 62px;
  }

  .sobae-video-modal__info h3 {
    font-size: 22px;
  }

  .sobae-video-modal__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobae-video-reel__track {
    scroll-behavior: auto;
  }

  .sobae-video-card__frame::after,
  .sobae-video-card,
  .sobae-video-card__video,
  .sobae-video-card__controls,
  .sobae-video-card__play,
  .sobae-video-card__product-arrow,
  .sobae-video-reel__arrow {
    transition: none;
  }

  .sobae-video-card,
  .sobae-video-card.is-focused {
    transform: none;
  }
}

.editor-styles-wrapper .sobae-video-reel-shell {
  min-height: 180px;
  padding: 50px 24px;
  border: 1px dashed #aaa;
}
