
.stirc{
  --st-card-w:296px;
  --st-card-h:527px;
  --st-gap:24px;
  --st-logo-size:40px;
  width:100%;
  max-width:100%;
  padding:24px 0 10px;
  overflow:hidden;
  box-sizing:border-box;
  font-family:inherit;
}
.stirc *, .stirc *::before, .stirc *::after{box-sizing:border-box}

.stirc-badge{
  width:max-content;
  max-width:calc(100% - 32px);
  margin:0 auto 8px;
  min-height:62px;
  padding:11px 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid #e7e2dc;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:20px;
  line-height:1.2;
  white-space:nowrap;
}
.stirc-badge strong{font-weight:800}
.stirc-badge{text-decoration:none!important}
a.stirc-badge{cursor:pointer;color:#111!important}
a.stirc-badge:hover,a.stirc-badge:focus{color:#111!important;text-decoration:none!important}
.stirc-instagram-icon{width:27px;height:27px;display:inline-grid;place-items:center;color:#d83c74;flex:0 0 auto}
.stirc-instagram-icon svg{width:100%;height:100%;display:block}

.stirc-stage{position:relative;width:100%}
.stirc-track{
  display:flex;
  gap:var(--st-gap);
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  outline:none;
}
.stirc-track::-webkit-scrollbar{display:none}

.stirc-card{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  padding:0;
  margin:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
  position:relative;
  flex:0 0 var(--st-card-w);
  width:var(--st-card-w);
  height:var(--st-card-h);
  overflow:hidden;
  scroll-snap-align:start;
  color:#fff;
  background:#e9e4df;
  isolation:isolate;
}
.stirc-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.stirc-placeholder{
  display:grid;
  place-items:center;
  padding:20px;
  color:#777;
  background:#ececec;
  font-size:14px;
}
.stirc-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.26) 0%,rgba(0,0,0,.02) 26%,rgba(0,0,0,0) 67%,rgba(0,0,0,.38) 100%);
}
.stirc-top{
  position:absolute;
  z-index:2;
  top:18px;
  left:18px;
  right:14px;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.stirc-logo{
  width:var(--st-logo-size);
  height:var(--st-logo-size);
  min-width:var(--st-logo-size);
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  border:2px solid rgba(255,255,255,.92);
  background:#fff;
  flex:0 0 auto;
}
.stirc-logo-placeholder{
  display:grid;
  place-items:center;
  color:#111;
  font-size:9px;
  font-weight:700;
}
.stirc-brand-stack{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.stirc-brand-name{
  display:block;
  color:#fff;
  font-size:21px;
  line-height:1.05;
  font-weight:700;
  text-shadow:0 1px 10px rgba(0,0,0,.32);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.stirc-handle{
  display:block;
  color:rgba(255,255,255,.86);
  font-size:12px;
  line-height:1.1;
  font-weight:500;
  text-shadow:0 1px 8px rgba(0,0,0,.35);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.stirc-views{
  position:absolute;
  z-index:2;
  left:16px;
  bottom:15px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#fff;
  font-size:21px;
  line-height:1;
  font-weight:800;
  text-shadow:0 1px 9px rgba(0,0,0,.3);
}
.stirc-play-icon{
  width:25px;
  height:25px;
  min-width:25px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 6px rgba(0,0,0,.14);
  flex:0 0 auto;
}
.stirc-play-icon svg{
  width:16px;
  height:16px;
  display:block;
  fill:#111;
}
.stirc-views>span:last-child{display:inline-block}

.stirc-arrow{
  position:absolute;
  z-index:10;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  padding:0!important;
  line-height:1!important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#111;
  box-shadow:0 6px 22px rgba(0,0,0,.15);
  cursor:pointer;
}
.stirc-arrow svg{
  width:20px;
  height:20px;
  display:block;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.stirc-prev{left:14px}
.stirc-next{right:14px}
.stirc-prev svg{transform:translateX(-1px)}
.stirc-next svg{transform:translateX(1px)}

/* Instagram-like popup */
.stirc-popup{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.stirc-popup.is-open{display:flex}

.stirc-popup-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(4px);
}

.stirc-popup-card{
  position:relative;
  z-index:2;
  width:480px;
  max-width:96vw;
  height:min(94vh, 860px);
  aspect-ratio:9/16;
  overflow:hidden;
  background:#000;
  box-shadow:0 20px 70px rgba(0,0,0,.45);
}

.stirc-popup-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:#000;
}

.stirc-popup-shade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom,rgba(0,0,0,.34) 0%,rgba(0,0,0,.04) 20%,rgba(0,0,0,0) 65%,rgba(0,0,0,.30) 100%);
}

.stirc-popup-top{
  position:absolute;
  z-index:3;
  top:18px;
  left:17px;
  right:17px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
}

.stirc-popup-profile{
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
}

.stirc-popup-logo{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  background:#fff;
  border:2px solid rgba(255,255,255,.96);
}

.stirc-popup-brand-stack{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}

.stirc-popup-brand{
  color:#fff;
  font-size:19px;
  line-height:1.05;
  font-weight:700;
  text-shadow:0 1px 9px rgba(0,0,0,.4);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stirc-popup-handle{
  color:rgba(255,255,255,.86);
  font-size:11px;
  line-height:1.1;
  font-weight:500;
  text-shadow:0 1px 9px rgba(0,0,0,.4);
}

.stirc-popup-close{
  appearance:none;
  -webkit-appearance:none;
  width:34px;
  height:34px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  filter:drop-shadow(0 1px 5px rgba(0,0,0,.35));
}

.stirc-popup-close svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.3;
  stroke-linecap:round;
}

.stirc-popup-instagram{
  position:absolute;
  z-index:3;
  left:16px;
  right:16px;
  bottom:18px;
  min-height:60px;
  padding:13px 18px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-decoration:none!important;
  font-size:19px;
  line-height:1;
  font-weight:500;
  backdrop-filter:blur(8px);
  box-shadow:0 3px 18px rgba(0,0,0,.14);
}

.stirc-popup-instagram:hover{
  text-decoration:none!important;
  transform:translateY(-1px);
}

.stirc-popup-instagram.is-disabled{display:none}

.stirc-popup-instagram-icon{
  width:23px;
  height:23px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
}

.stirc-popup-instagram-icon svg{width:100%;height:100%}

body.stirc-popup-open{
  overflow:hidden!important;
}

@media(max-width:1024px){
  .stirc{padding-top:20px}
  .stirc-badge{min-height:56px;padding:10px 23px;font-size:18px;margin-bottom:10px}
  .stirc-brand-name{font-size:19px}
  .stirc-views{font-size:18px}
}

@media(max-width:767px){
  .stirc{padding:16px 0 6px}
  .stirc-badge{
    min-height:48px;
    max-width:calc(100% - 24px);
    padding:9px 16px;
    gap:9px;
    font-size:14px;
    white-space:normal;
    text-align:center;
    margin-bottom:10px;
  }
  .stirc-instagram-icon{width:22px;height:22px}
  .stirc-track{padding-left:12px;padding-right:12px}
  .stirc-top{top:14px;left:14px;gap:9px}
  .stirc-brand-name{font-size:17px}
  .stirc-handle{font-size:11px}
  .stirc-views{left:13px;bottom:13px;font-size:17px}
  .stirc-play-icon{width:23px;height:23px;min-width:23px}
  .stirc-play-icon svg{width:14px;height:14px}
  .stirc-arrow{display:none}

  .stirc-popup{
    padding:0;
    align-items:center;
  }

  .stirc-popup-card{
    width:100vw!important;
    max-width:100vw;
    height:100dvh;
    max-height:100dvh;
    aspect-ratio:auto;
    border-radius:0!important;
  }

  .stirc-popup-top{
    top:17px;
    left:16px;
    right:16px;
  }

  .stirc-popup-logo{
    width:40px;
    height:40px;
    min-width:40px;
  }

  .stirc-popup-brand{font-size:18px}
  .stirc-popup-close{width:32px;height:32px}

  .stirc-popup-instagram{
    left:16px;
    right:16px;
    bottom:max(16px, env(safe-area-inset-bottom));
    min-height:58px;
    font-size:18px;
  }
}

@media(prefers-reduced-motion:reduce){
  .stirc-track{scroll-behavior:auto}
}
