.opc-category-stream {
  --opc-category-gap: 18px;
  --opc-category-arrow-space: 46px;
  --opc-category-border: #e3e8ee;
  --opc-category-blue: #0090ff;
  --opc-category-blue-dark: #006fc7;
  --opc-category-blue-light: #35b4ff;
  --opc-category-text: #1f2933;
  --opc-category-ratio: 1 / 1;
  --opc-category-svg-color: #1f2933;
  --opc-category-svg-hover: #0090ff;
  --opc-category-mask-color: #1f2933;
  --opc-category-mask-hover: #0090ff;
  --opc-category-mask-image: none;
  width: 100%;
}

.opc-category-stream,
.opc-category-stream * {
  box-sizing: border-box;
}

.opc-category-stream-preview,
.opc-category-stream-preview * {
  box-sizing: border-box;
}

.opc-category-stream__stage {
  position: relative;
  padding: 0 var(--opc-category-arrow-space);
}

.opc-category-stream__viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.opc-category-stream.is-dragging .opc-category-stream__viewport {
  cursor: grabbing;
}

.opc-category-stream__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.opc-category-stream__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--opc-category-gap) * 4)) / 5);
  gap: var(--opc-category-gap);
  padding: 4px 2px 10px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.44s cubic-bezier(0.25, 0.8, 0.25, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.opc-category-stream.is-dragging .opc-category-stream__track {
  transition: none;
}

.opc-category-stream__item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
  color: var(--opc-category-text);
  text-align: center;
  text-decoration: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.opc-category-stream__item:hover,
.opc-category-stream__item:focus {
  color: var(--opc-category-blue-dark);
  text-decoration: none;
}

.opc-category-stream__media {
  display: block;
  width: 100%;
  aspect-ratio: var(--opc-category-ratio);
  overflow: hidden;
  border: 1px solid var(--opc-category-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  -webkit-user-drag: none;
  backface-visibility: hidden;
  user-select: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.opc-category-stream__item:hover .opc-category-stream__media,
.opc-category-stream__item:focus .opc-category-stream__media {
  border-color: rgba(0, 144, 255, 0.36);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
  transform: translateY(-2px);
}

.opc-category-stream--no-border .opc-category-stream__media,
.opc-category-stream--no-border .opc-category-stream__item:hover .opc-category-stream__media,
.opc-category-stream--no-border .opc-category-stream__item:focus .opc-category-stream__media {
  border-color: transparent;
  box-shadow: none;
}

.opc-category-stream__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #ffffff;
  filter: brightness(1.012) contrast(1.025);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  user-select: none;
}

.opc-category-stream--contain .opc-category-stream__media img {
  object-fit: contain;
}

.opc-category-stream__media--svg,
.opc-category-stream__media--mask {
  display: flex;
  align-items: center;
  justify-content: center;
}

.opc-category-stream__mask {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--opc-category-mask-color);
  -webkit-mask-image: var(--opc-category-mask-image);
  mask-image: var(--opc-category-mask-image);
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.opc-category-stream__item:hover .opc-category-stream__mask,
.opc-category-stream__item:focus .opc-category-stream__mask {
  background: var(--opc-category-mask-hover);
}

.opc-category-stream__svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--opc-category-svg-color, var(--opc-category-mask-color));
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.opc-category-stream__svg svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

.opc-category-stream__svg-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.opc-category-stream__svg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.opc-category-stream__svg svg path:not([fill]),
.opc-category-stream__svg svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.opc-category-stream__svg svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.opc-category-stream__item:hover .opc-category-stream__svg,
.opc-category-stream__item:focus .opc-category-stream__svg {
  color: var(--opc-category-svg-hover, var(--opc-category-mask-hover));
}

.opc-category-stream--ratio-square .opc-category-stream__media {
  --opc-category-ratio: 1 / 1;
}

.opc-category-stream--ratio-landscape .opc-category-stream__media {
  --opc-category-ratio: 4 / 3;
}

.opc-category-stream--ratio-photo .opc-category-stream__media {
  --opc-category-ratio: 3 / 2;
}

.opc-category-stream--ratio-wide .opc-category-stream__media {
  --opc-category-ratio: 16 / 9;
}

.opc-category-stream--ratio-portrait .opc-category-stream__media {
  --opc-category-ratio: 3 / 4;
}

.opc-category-stream--ratio-tall .opc-category-stream__media {
  --opc-category-ratio: 2 / 3;
}

.opc-category-stream__media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.opc-category-stream__label {
  display: block;
  overflow: hidden;
  min-height: 24px;
  padding: 0 4px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-CategoryStream-simpleSlider .opc-category-stream__label,
.opc-category-stream__grid--simpleSlider .opc-category-stream__label {
  display: none;
}

.opc-category-stream__nav {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(0, 144, 255, 0.34);
  border-radius: 6px;
  background: #ffffff;
  color: var(--opc-category-blue-dark);
  box-shadow: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  opacity: 1;
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.opc-category-stream__nav--prev {
  left: 0;
}

.opc-category-stream__nav--next {
  right: 0;
}

.opc-category-stream__nav:hover,
.opc-category-stream__nav:focus {
  border-color: var(--opc-category-blue);
  background: linear-gradient(
    90deg,
    var(--opc-category-blue-dark) 0%,
    var(--opc-category-blue) 62%,
    var(--opc-category-blue-light) 100%
  );
  color: #ffffff;
}

.opc-category-stream__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--opc-category-gap);
}

.opc-category-stream__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--opc-category-border);
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

.opc-category-stream-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--opc-category-border, #e3e8ee);
  border-radius: 8px;
  background: #ffffff;
  color: var(--opc-category-text, #1f2933);
}

.opc-category-stream-preview__stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 126px));
  gap: 18px;
  width: min(460px, 76%);
}

.opc-category-stream-preview__tile {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--opc-category-border, #e3e8ee);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(0, 144, 255, 0.18) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(0, 144, 255, 0.18) 45% 55%, transparent 55%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.opc-category-stream-preview__caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .opc-category-stream {
    --opc-category-gap: 10px;
    --opc-category-arrow-space: 0px;
  }

  .opc-category-stream__stage {
    padding: 0;
  }

  .opc-category-stream__nav {
    display: none;
  }

  .opc-category-stream__item {
    gap: 8px;
  }

  .opc-category-stream__media {
    border-radius: 7px;
  }

  .opc-category-stream__label {
    min-height: 20px;
    font-size: 12px;
  }
}
