/* FIX175 — Instagram-style Highlights / Stories for Spaceland Home */

body.sp-ios-home{
  --sp175-story-grad:linear-gradient(135deg,#833ab4 0%,#c13584 34%,#e1306c 55%,#fd1d1d 72%,#f77737 88%,#fcaf45 100%);
  --sp175-story-seen:#d8d8dd;
  --sp175-story-bg:#0b0b0d;
}

/* Horizontal stories rail */
body.sp-ios-home .sp-ios-block--highlights{
  position:relative!important;
  overflow:visible!important;
}
body.sp-ios-home .sp-ios-highlights{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:14px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:4px 4px 8px!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
body.sp-ios-home .sp-ios-highlights::-webkit-scrollbar{display:none!important}

body.sp-ios-home .sp-ios-highlight{
  position:relative!important;
  flex:0 0 78px!important;
  width:78px!important;
  min-width:78px!important;
  display:grid!important;
  justify-items:center!important;
  gap:6px!important;
  scroll-snap-align:start!important;
  text-decoration:none!important;
  color:#1d1d1f!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}
body.sp-ios-home .sp-ios-highlight-ring{
  position:relative!important;
  width:70px!important;
  height:70px!important;
  display:grid!important;
  place-items:center!important;
  padding:3px!important;
  border:0!important;
  border-radius:50%!important;
  background:var(--sp175-story-grad)!important;
  box-shadow:none!important;
}
body.sp-ios-home .sp-ios-highlight-ring::after{
  content:"";
  position:absolute;
  inset:3px;
  border:2px solid #fff;
  border-radius:50%;
  pointer-events:none;
  z-index:2;
}
body.sp-ios-home .sp-ios-highlight-core{
  width:64px!important;
  height:64px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:#fff!important;
  font-size:24px!important;
  line-height:1!important;
}
body.sp-ios-home .sp-ios-highlight-core img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
body.sp-ios-home .sp-ios-highlight strong{
  display:-webkit-box!important;
  width:100%!important;
  max-width:78px!important;
  min-height:30px!important;
  margin:0!important;
  overflow:hidden!important;
  color:#242426!important;
  font-size:10.5px!important;
  font-weight:760!important;
  line-height:1.35!important;
  text-align:center!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
body.sp-ios-home .sp-ios-highlight[data-sp175-seen="1"] .sp-ios-highlight-ring{
  background:var(--sp175-story-seen)!important;
}
body.sp-ios-home .sp-ios-highlight:active .sp-ios-highlight-ring{
  transform:scale(.95);
}
body.sp-ios-home .sp-ios-highlight-ring{
  transition:transform .14s ease,filter .18s ease!important;
}
@media (hover:hover){
  body.sp-ios-home .sp-ios-highlight:hover .sp-ios-highlight-ring{
    transform:translateY(-2px) scale(1.025);
    filter:saturate(1.08);
  }
}

/* Full-screen story viewer */
body.sp175-story-open{
  overflow:hidden!important;
}

.sp175-story-viewer[hidden]{display:none!important}
.sp175-story-viewer{
  position:fixed;
  inset:0;
  z-index:2147483200;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
.sp175-story-shell{
  position:relative;
  width:min(100%,430px);
  height:min(92svh,820px);
  max-height:calc(100svh - 20px);
  overflow:hidden;
  border-radius:28px;
  background:#101014;
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  isolation:isolate;
}
.sp175-story-media{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 20%,rgba(255,255,255,.16),transparent 28%),
    linear-gradient(145deg,#20112d 0%,#5c1a5f 38%,#d94d4d 72%,#f9a03f 100%);
}
.sp175-story-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.sp175-story-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.32) 0%,rgba(0,0,0,.04) 28%,rgba(0,0,0,.08) 58%,rgba(0,0,0,.72) 100%);
  pointer-events:none;
}
.sp175-story-fallback{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 18px 60px rgba(0,0,0,.20);
  color:#fff;
  font-size:72px;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.sp175-story-progress{
  position:absolute;
  top:max(12px,env(safe-area-inset-top,0px));
  right:12px;
  left:12px;
  z-index:10;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap:4px;
}
.sp175-story-progress-track{
  height:3px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.35);
}
.sp175-story-progress-fill{
  width:0%;
  height:100%;
  border-radius:inherit;
  background:#fff;
}
.sp175-story-progress-track.is-done .sp175-story-progress-fill{width:100%}
.sp175-story-progress-track.is-active .sp175-story-progress-fill{
  animation:sp175StoryProgress var(--sp175-duration,5s) linear forwards;
}
@keyframes sp175StoryProgress{from{width:0%}to{width:100%}}

.sp175-story-top{
  position:absolute;
  top:30px;
  right:15px;
  left:15px;
  z-index:11;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
}
.sp175-story-avatar{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 38px;
  border:2px solid #fff;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:17px;
}
.sp175-story-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.sp175-story-meta{
  min-width:0;
  flex:1;
}
.sp175-story-meta strong{
  display:block;
  overflow:hidden;
  color:#fff;
  font-size:13px;
  font-weight:850;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.sp175-story-meta small{
  display:block;
  margin-top:1px;
  color:rgba(255,255,255,.76);
  font-size:10px;
}
.sp175-story-close{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.22);
  color:#fff;
  cursor:pointer;
  font-size:25px;
  line-height:1;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.sp175-story-copy{
  position:absolute;
  right:20px;
  bottom:max(28px,env(safe-area-inset-bottom,0px));
  left:20px;
  z-index:9;
  color:#fff;
  text-align:right;
}
.sp175-story-copy h3{
  margin:0 0 6px;
  color:#fff;
  font-size:24px;
  font-weight:950;
  line-height:1.25;
  text-shadow:0 2px 12px rgba(0,0,0,.28);
}
.sp175-story-copy p{
  margin:0 0 15px;
  color:rgba(255,255,255,.86);
  font-size:12px;
  line-height:1.65;
}
.sp175-story-cta{
  display:flex;
  width:100%;
  min-height:48px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  color:#161619!important;
  font-size:13px;
  font-weight:900;
  text-decoration:none!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}

.sp175-story-tap{
  position:absolute;
  top:86px;
  bottom:92px;
  z-index:8;
  width:35%;
  border:0;
  background:transparent;
  cursor:pointer;
  touch-action:manipulation;
}
.sp175-story-prev{right:0}
.sp175-story-next{left:0}

.sp175-story-pause{
  position:absolute;
  top:79px;
  right:35%;
  left:35%;
  bottom:92px;
  z-index:7;
  border:0;
  background:transparent;
}

@media (max-width:699px){
  body.sp-ios-home .sp-ios-highlights{
    gap:10px!important;
    margin-inline:-10px!important;
    padding:3px 10px 8px!important;
  }
  body.sp-ios-home .sp-ios-highlight{
    flex-basis:68px!important;
    width:68px!important;
    min-width:68px!important;
  }
  body.sp-ios-home .sp-ios-highlight-ring{
    width:62px!important;
    height:62px!important;
    padding:3px!important;
  }
  body.sp-ios-home .sp-ios-highlight-core{
    width:56px!important;
    height:56px!important;
    font-size:21px!important;
  }
  body.sp-ios-home .sp-ios-highlight strong{
    max-width:68px!important;
    min-height:27px!important;
    font-size:9px!important;
  }

  .sp175-story-viewer{
    padding:0;
    background:#000;
  }
  .sp175-story-shell{
    width:100%;
    height:100svh;
    max-height:none;
    border-radius:0;
  }
  .sp175-story-copy{
    right:16px;
    left:16px;
    bottom:calc(18px + env(safe-area-inset-bottom,0px));
  }
  .sp175-story-copy h3{font-size:23px}
}

@media (prefers-reduced-motion:reduce){
  .sp175-story-progress-track.is-active .sp175-story-progress-fill{
    animation:none!important;
    width:100%!important;
  }
}
