/* SlideCity Spotlight */
.scsp-theme {
  --sc-card: var(--fcom-primary-bg, #ffffff);
  --sc-text: var(--fcom-primary-text, #19283a);
  --sc-text2: var(--fcom-secondary-text, #525866);
  --sc-text3: var(--fcom-text-off, #8a8f98);
  --sc-accent: var(--fcom-text-link, #9b51e0);
  --sc-btn: var(--fcom-primary-button, #8d4acc);
  --sc-field: #f6f7f9;
  --sc-field-line: #dcdfe4;
  --sc-soft: #f2f3f6;
  --sc-soft-line: #e3e6eb;
  --sc-ph: #eceef1;
  --sc-dash: #cfd3da;
  --sc-pill-line: #dcdfe4;
  --sc-pill-on-bg: #19283a;
  --sc-pill-on-tx: #ffffff;
  --sc-line-soft: #eceef1;
  --sc-dot: #c9cdd4;
  --sc-handle: #d0d4da;
  --sc-seg-on: #ffffff;
  --sc-sheet: #ffffff;
  --sc-state: #f3eefa;
  --sc-art: #efe6fa;
  --sc-art-line: #e0d0f5;
  --sc-toast-bg: #19283a;
  --sc-toast-tx: #ffffff;
  --sc-bad: #e5484d;
  --sc-ease: cubic-bezier(.22, .61, .36, 1);
}
html.dark .scsp-theme {
  --sc-field: #0f0f0f;
  --sc-field-line: #2e2e2e;
  --sc-soft: #1e1e1e;
  --sc-soft-line: #2a2a2a;
  --sc-ph: #1e1e1e;
  --sc-dash: #353535;
  --sc-pill-line: #2e2e2e;
  --sc-pill-on-bg: #f2f2f2;
  --sc-pill-on-tx: #141414;
  --sc-line-soft: #242424;
  --sc-dot: #4a4a4a;
  --sc-handle: #3a3a3a;
  --sc-seg-on: #2a2a2a;
  --sc-sheet: #171717;
  --sc-state: #1e1a25;
  --sc-art: #2a1d3d;
  --sc-art-line: #3d2a5a;
  --sc-toast-bg: #f2f2f2;
  --sc-toast-tx: #141414;
  --sc-bad: #ff6369;
}

html.scsp-lock { overflow: hidden; }

/* ---------- Base ---------- */
.scsp-theme, .scsp-theme * { box-sizing: border-box; }
.scsp-theme { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.scsp-theme button { font-family: inherit; letter-spacing: normal; text-transform: none; margin: 0; -webkit-tap-highlight-color: transparent; }
.scsp-theme [hidden] { display: none !important; }
.scsp-theme .scsp-ico { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.scsp-theme .scsp-ico svg, .scsp-theme .scsp-iconbtn svg, .scsp-theme .scsp-arrow svg, .scsp-theme .scsp-lb-btn svg { width: 100%; height: 100%; display: block; }

.scsp { display: flex; flex-direction: column; gap: 12px; color: var(--sc-text); }
.scsp.scsp--wide { gap: 20px; }
.scsp-theme .scsp-card { background: var(--sc-card); border-radius: 8px; overflow: hidden; position: relative; }
.scsp-theme .scsp-msg { padding: 28px 20px; text-align: center; color: var(--sc-text2); font-size: 15px; }

/* ---------- Buttons ---------- */
.scsp-theme .scsp-btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease, opacity .15s ease;
}
.scsp-theme .scsp-btn:active { transform: scale(.98); }
.scsp-theme .scsp-btn:focus-visible, .scsp-theme .scsp-link:focus-visible, .scsp-theme .scsp-pill:focus-visible,
.scsp-theme .scsp-slide:focus-visible, .scsp-theme .scsp-tile:focus-visible, .scsp-theme .scsp-prompt:focus-visible,
.scsp-theme .scsp-drop:focus-visible, .scsp-theme .scsp-seg-btn:focus-visible, .scsp-theme .scsp-dot:focus-visible,
.scsp-theme .scsp-iconbtn:focus-visible, .scsp-theme .scsp-poster:focus-visible {
  outline: 2px solid var(--sc-accent); outline-offset: 2px;
}
.scsp-theme .scsp-btn--soft { background: var(--sc-soft); color: var(--sc-text); box-shadow: inset 0 0 0 1px var(--sc-soft-line); }
.scsp-theme .scsp-btn--soft:hover { box-shadow: inset 0 0 0 1px var(--sc-dash); }
.scsp-theme .scsp-btn--soft .scsp-ico { width: 15px; height: 15px; color: var(--sc-text2); }
.scsp-theme .scsp-btn--primary {
  background: var(--sc-btn); color: #fff;
}
.scsp-theme .scsp-btn--primary:hover { filter: brightness(1.06); }
.scsp-theme .scsp-btn--lg { height: 48px; padding: 0 26px; border-radius: 12px; font-size: 16px; letter-spacing: -.1px; }
.scsp-theme .scsp-btn--block { width: 100%; height: 50px; border-radius: 12px; font-size: 16px; }
.scsp-theme .scsp-btn--pill { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--sc-soft); color: var(--sc-text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--sc-soft-line); }
.scsp-theme .scsp-btn--danger { background: #d93a3a; color: #fff; }
.scsp-theme .scsp-btn:disabled { cursor: default; opacity: .5; box-shadow: none; transform: none; filter: none; }
.scsp-theme .scsp-btn--primary.is-loading:disabled { opacity: .7; }
.scsp-theme .scsp-link { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--sc-accent); font-size: 14px; font-weight: 600; line-height: 1.4; }
.scsp-theme .scsp-link--muted { color: var(--sc-text2); font-weight: 500; }
.scsp-theme .scsp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.scsp-theme .scsp-iconbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--sc-text2); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 12px; }
.scsp-theme .scsp-iconbtn:hover { background: var(--sc-soft); }

/* ---------- Owner bits ---------- */
.scsp-theme .scsp-ownerbar { display: flex; justify-content: flex-end; }
.scsp-theme .scsp-prompt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left; cursor: pointer;
  border-radius: 8px; border: 1.5px dashed var(--sc-dash); background: transparent; color: var(--sc-text); font-size: 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.scsp-theme .scsp-prompt:hover { border-color: var(--sc-accent); }
.scsp-theme .scsp-prompt-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sc-soft); color: var(--sc-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 11px; }
.scsp-theme .scsp-prompt-ico svg { width: 100%; height: 100%; }
.scsp-theme .scsp-prompt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scsp-theme .scsp-prompt-txt strong { font-size: 15px; font-weight: 600; color: var(--sc-text); }
.scsp-theme .scsp-prompt-txt span { font-size: 13px; line-height: 1.4; color: var(--sc-text2); }
.scsp-theme .scsp-prompt-chev { width: 18px; height: 18px; color: var(--sc-text3); flex-shrink: 0; }
.scsp-theme .scsp-prompt-chev svg { width: 100%; height: 100%; }

/* Empty state */
.scsp-theme .scsp-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: max(440px, calc(100svh - 430px)); padding: 40px 28px;
}
.scsp-theme .scsp-empty-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.scsp-theme .scsp-empty-art { display: flex; gap: 8px; align-items: flex-end; }
.scsp-theme .scsp-empty-card { border-radius: 8px; background: var(--sc-soft); border: 1px solid var(--sc-soft-line); }
.scsp-theme .scsp-empty-card--l, .scsp-theme .scsp-empty-card--r { width: 44px; height: 56px; }
.scsp-theme .scsp-empty-card--l { transform: rotate(-8deg) translateY(4px); }
.scsp-theme .scsp-empty-card--r { transform: rotate(8deg) translateY(4px); }
.scsp-theme .scsp-empty-card--m { width: 64px; height: 80px; border-radius: 10px; background: var(--sc-art); border-color: var(--sc-art-line); display: flex; align-items: center; justify-content: center; color: var(--sc-accent); }
.scsp-theme .scsp-empty-card--m svg { width: 26px; height: 26px; }
.scsp-theme .scsp-empty-title { margin: 26px 0 0; padding: 0; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.3px; color: var(--sc-text); text-wrap: balance; }
.scsp-theme .scsp-empty-text { margin: 10px auto 0; max-width: 300px; text-wrap: balance; font-size: 15px; line-height: 1.5; color: var(--sc-text2); }
.scsp-theme .scsp-empty .scsp-btn--lg { margin-top: 24px; }
.scsp-theme .scsp-empty-note { margin: 16px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sc-text3); }
.scsp-theme .scsp-empty-note .scsp-ico { width: 14px; height: 14px; }

/* Skeleton */
.scsp-theme .scsp-skel { display: flex; flex-direction: column; gap: inherit; }
.scsp-theme .scsp-skel-rig { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.scsp-theme .scsp-shimmer {
  background: linear-gradient(90deg, var(--sc-ph) 25%, var(--sc-soft-line) 37%, var(--sc-ph) 63%);
  background-size: 400% 100%; animation: scsp-sh 1.4s ease infinite;
}
.scsp-theme .scsp-shimmer--line { width: 40%; height: 18px; border-radius: 6px; }
.scsp-theme .scsp-shimmer--slide { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; }
.scsp--wide .scsp-shimmer--slide { width: min(100%, 512px, 57.6vh); margin: 0 auto; }
@keyframes scsp-sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Featured video ---------- */
.scsp-theme .scsp-media { position: relative; width: 100%; }
.scsp-theme .scsp-media > [hidden] { display: none !important; }
.scsp-theme .scsp-plain { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.scsp-theme .scsp-statebox { position: relative; aspect-ratio: 16 / 9; background: var(--sc-state); }
.scsp-theme .scsp-ytbox { position: relative; aspect-ratio: var(--scsp-r, 16 / 9); background: #000; overflow: hidden; }
@media (min-width: 769px) { .scsp-theme .scsp-ytbox { aspect-ratio: 16 / 9; } }
.scsp-theme .scsp-ytframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: #000; }
.scsp-theme .scsp-poster { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #0d0d0d; cursor: pointer; overflow: hidden; transition: none; will-change: opacity; }
.scsp-theme .scsp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scsp-theme .scsp-poster.is-through { pointer-events: none; }
.scsp-theme .scsp-ytguard { position: absolute; display: none; pointer-events: auto; cursor: pointer; }
.scsp-theme .scsp-poster.is-through:not(.is-off) .scsp-ytguard { display: block; }
.scsp-theme .scsp-ytguard--top { left: 0; right: 0; top: 0; height: max(64px, 22%); }
.scsp-theme .scsp-ytguard--logo { right: 0; bottom: 0; width: 150px; height: max(60px, 18%); }
/* Soft fade into YouTube; coming back is instant (thumbnail stays locked). */
.scsp-theme .scsp-poster.is-off { opacity: 0; pointer-events: none; transition: opacity .7s cubic-bezier(.45, 0, .55, 1) .06s; }
/* Same as FluentPlayer's centre play button in the feed (incl. its 2.5px right / -4px top margins). */
.scsp-theme .scsp-play {
  position: absolute; left: calc(50% - 1.25px); top: calc(50% - 2px); width: 56px; height: 56px; padding: 12px; box-sizing: border-box; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border-radius: 12px;
  color: #e2e2e2; background: rgba(0, 0, 0, .52); box-shadow: 0 4px 8px rgba(82, 82, 82, .08); transition: transform .2s;
}
.scsp-theme .scsp-play svg { width: 32px; height: 32px; }
@media (hover: hover) and (pointer: fine) { .scsp-theme .scsp-yt:hover .scsp-play { transform: translate(-50%, -50%) scale(1.02); } }
@media (max-width: 768px) { .scsp-theme .scsp-play { width: 48px; height: 48px; padding: 10px; border-radius: 10px; } .scsp-theme .scsp-play svg { width: 26px; height: 26px; } }
@media (max-width: 480px) { .scsp-theme .scsp-play { width: 44px; height: 44px; padding: 8px; } .scsp-theme .scsp-play svg { width: 24px; height: 24px; } }
.scsp-theme .scsp-yt-badge { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .2px; color: #fff; background: rgba(0, 0, 0, .6); padding: 3px 7px; border-radius: 5px; }
.scsp-theme .scsp-video-meta { padding: 14px 16px 16px; }
.scsp--wide .scsp-video-meta { padding: 16px 20px 18px; }
.scsp-theme .scsp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sc-accent); line-height: 1.3; }
.scsp-theme .scsp-caption { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--sc-text); opacity: .92; }
.scsp-theme .scsp-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--sc-text2); }
.scsp-theme .scsp-state strong { font-size: 16px; font-weight: 600; color: var(--sc-text); }
.scsp-theme .scsp-state .scsp-btn { margin-top: 10px; }
.scsp-theme .scsp-state-ico { width: 30px; height: 30px; margin-bottom: 6px; }
.scsp-theme .scsp-state-ico svg { width: 100%; height: 100%; }
.scsp-theme .is-bad { color: var(--sc-bad); }
.scsp-theme .scsp-spinner { width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; border: 2.5px solid rgba(155, 81, 224, .22); border-top-color: var(--sc-accent); animation: scsp-spin .9s linear infinite; }
@keyframes scsp-spin { to { transform: rotate(360deg); } }

/* ---------- My rig ---------- */
.scsp-theme .scsp-rig { padding: 16px 0 18px; }
.scsp-theme .scsp-rig-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; row-gap: 12px; padding: 0 16px; }
.scsp-theme .scsp-h2 { margin: 0; padding: 0; font-size: 18px; line-height: 1.2; font-weight: 650; letter-spacing: -.2px; color: var(--sc-text); }
.scsp-theme .scsp-count { font-size: 13px; color: var(--sc-text3); font-variant-numeric: tabular-nums; }
.scsp-theme .scsp-pills { order: 3; flex: 0 0 calc(100% + 32px); display: flex; gap: 6px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.scsp-theme .scsp-pills::-webkit-scrollbar { display: none; }
.scsp-theme .scsp-pills.is-over { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.scsp-theme .scsp-pills.is-over.at-end { -webkit-mask-image: none; mask-image: none; }
.scsp-theme .scsp-pill {
  flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--sc-pill-line); background: transparent; color: var(--sc-text2); font-size: 14px; font-weight: 500; line-height: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.scsp-theme .scsp-pill:hover { color: var(--sc-text); }
.scsp-theme .scsp-pill.is-on { background: var(--sc-pill-on-bg); border-color: var(--sc-pill-on-bg); color: var(--sc-pill-on-tx); font-weight: 600; }
.scsp-theme .scsp-item { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 16px 0; min-height: 44px; transition: opacity .22s ease; }
.scsp-theme .scsp-item > .scsp-count { display: none; flex-shrink: 0; }
.scsp-theme .scsp-item-txt { min-width: 0; transition: opacity .22s ease; }
.scsp-theme .scsp-item-txt.is-fading { opacity: 0; transition-duration: .12s; }
.scsp-theme .scsp-item-title { margin: 0; padding: 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.2px; color: var(--sc-text); }
.scsp-theme .scsp-item-note { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--sc-text2); }

.scsp--wide .scsp-rig { padding: 20px 0 22px; }
.scsp--wide .scsp-rig-head { padding: 0 20px; align-items: center; flex-wrap: nowrap; gap: 16px; }
.scsp--wide .scsp-rig-head > .scsp-count { display: none; }
.scsp--wide .scsp-pills { order: 0; flex: 0 1 auto; margin: 0; padding: 0; }
.scsp--wide .scsp-item { padding: 20px 20px 0; min-height: 52px; }
.scsp--wide .scsp-item > .scsp-count { display: block; }
.scsp--wide .scsp-item-title { font-size: 18px; }

.scsp-theme .scsp-carousel { position: relative; margin-top: 12px; transition: opacity .22s ease; }
.scsp--wide .scsp-carousel { margin-top: 14px; }
.scsp-theme .scsp-rig.is-swapping .scsp-item, .scsp-theme .scsp-rig.is-swapping .scsp-carousel { opacity: 0; transition-duration: .14s; }
.scsp-theme .scsp-viewport { overflow: hidden; touch-action: pan-y; outline: none; }
.scsp-theme .scsp-track { display: flex; transition: transform .46s var(--sc-ease); will-change: transform; }
.scsp-theme .scsp-track.no-anim { transition: none; }
.scsp-theme .scsp-slide {
  position: relative; flex: 0 0 auto; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--sc-ph); user-select: none; -webkit-user-select: none;
}
.scsp-theme .scsp-slide.is-on { cursor: zoom-in; }
.scsp-theme .scsp-carousel.is-dragging .scsp-slide { cursor: grabbing; }
.scsp-theme .scsp-slide img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; -webkit-user-drag: none; }
.scsp-theme .scsp-slide img.is-loaded { opacity: 1; }
.scsp-theme .scsp-arrow {
  position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 11px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #ededed;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(20, 20, 20, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.scsp-theme .scsp-arrow--l { left: 28px; }
.scsp-theme .scsp-arrow--r { right: 28px; }
.scsp--wide .scsp-arrow--l { left: var(--scsp-ax, 32px); }
.scsp--wide .scsp-arrow--r { right: var(--scsp-ax, 32px); }
.scsp-theme .scsp-carousel:hover .scsp-arrow, .scsp-theme .scsp-arrow:focus-visible { opacity: 1; }
.scsp-theme .scsp-arrow:hover { transform: scale(1.06); }
@media (hover: none) { .scsp-theme .scsp-arrow { display: none; } }
.scsp-theme .scsp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.scsp--wide .scsp-dots { margin-top: 18px; }
.scsp-theme .scsp-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--sc-dot); cursor: pointer; transition: width .26s ease, background-color .26s ease; }
.scsp-theme .scsp-dot.is-on { width: 18px; background: var(--sc-text); }

/* ---------- Lightbox ---------- */
.scsp-lb { position: fixed; inset: 0; z-index: 100005; color: #fff; opacity: 0; transition: opacity .22s ease; }
.scsp-lb.is-open { opacity: 1; }
.scsp-lb .scsp-lb-bg { position: absolute; inset: 0; background: #000; opacity: var(--scsp-lb-a, 1); }
.scsp-lb .scsp-lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px 20px; transition: opacity .2s ease; }
.scsp-lb .scsp-lb-count { font-size: 14px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.scsp-lb .scsp-lb-btn { width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .15s ease; }
.scsp-lb .scsp-lb-btn:hover { background: rgba(255, 255, 255, .18); }
.scsp-lb .scsp-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.scsp-lb .scsp-lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.scsp-lb .scsp-lb-track { display: flex; height: 100%; transition: transform .42s var(--sc-ease); }
.scsp-lb .scsp-lb-track.no-anim { transition: none; }
.scsp-lb .scsp-lb-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top) + 64px) 16px calc(env(safe-area-inset-bottom) + 100px); }
.scsp-lb .scsp-lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transform: scale(.97); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.scsp-lb.is-open .scsp-lb-slide img { transform: none; }
.scsp-lb .scsp-lb-prev, .scsp-lb .scsp-lb-next { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.scsp-lb .scsp-lb-prev { left: 20px; }
.scsp-lb .scsp-lb-next { right: 20px; }
@media (hover: none) { .scsp-lb .scsp-lb-prev, .scsp-lb .scsp-lb-next { display: none; } }
.scsp-lb .scsp-lb-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 20px calc(env(safe-area-inset-bottom) + 24px); text-align: center; pointer-events: none; transition: opacity .2s ease; }
.scsp-lb .scsp-lb-title { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.scsp-lb .scsp-lb-note { margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.scsp-lb.is-dragging .scsp-lb-top, .scsp-lb.is-dragging .scsp-lb-cap { opacity: .4; }
@media (min-width: 768px) { .scsp-lb .scsp-lb-slide { padding: 72px 96px 112px; } }

/* ---------- Edit sheet ---------- */
.scsp-modal { position: fixed; inset: 0; z-index: 100000; --scsp-gap: max(44px, calc(env(safe-area-inset-top) + 14px)); }
.scsp-modal.kb-open { --scsp-gap: max(10px, calc(env(safe-area-inset-top) + 6px)); }
.scsp-modal .scsp-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .32s ease; }
.scsp-modal .scsp-under { display: none; position: absolute; left: 0; right: 0; top: calc(var(--scsp-vvtop, 0px) + var(--scsp-vvh, 100%) - 1px); height: 100vh; background: var(--sc-sheet); }
.scsp-modal.kb-open .scsp-under { display: block; }
.scsp-modal.is-open .scsp-backdrop { opacity: 1; }
.scsp-sheet {
  position: absolute; left: 0; right: 0; top: calc(var(--scsp-vvtop, 0px) + var(--scsp-gap)); height: calc(var(--scsp-vvh, 100%) - var(--scsp-gap));
  display: flex; flex-direction: column; overflow: hidden; color: var(--sc-text);
  background: var(--sc-sheet); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  transform: translate3d(0, 100%, 0); transition: transform .42s cubic-bezier(.32, .72, 0, 1), top .25s ease, height .25s ease;
}
.scsp-sheet.is-open { transform: translate3d(0, 0, 0); }
.scsp-sheet.no-anim { transition: none; }
.scsp-sheet .scsp-handle { display: flex; justify-content: center; padding: 8px 0 2px; touch-action: none; cursor: grab; flex-shrink: 0; }
.scsp-sheet .scsp-handle span { width: 38px; height: 5px; border-radius: 3px; background: var(--sc-handle); }
.scsp-sheet .scsp-sheet-head { height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; border-bottom: 1px solid var(--sc-line-soft); }
.scsp-sheet .scsp-sheet-head h1 { margin: 0; padding: 0; font-size: 17px; line-height: 1.2; font-weight: 650; letter-spacing: -.2px; color: var(--sc-text); }
.scsp-sheet .scsp-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 16px 28px; }
.scsp-sheet .scsp-sheet-foot { flex-shrink: 0; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--sc-line-soft); background: var(--sc-sheet); }
.scsp-modal.kb-open .scsp-sheet-foot { padding-bottom: 12px; }
@media (min-width: 768px) {
  .scsp-sheet {
    left: 50%; right: auto; top: 50%; width: 560px; height: auto; max-height: min(86vh, 920px); border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45); opacity: 0; transform: translate3d(-50%, -48%, 0) scale(.98);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
  }
  .scsp-sheet.is-open { opacity: 1; transform: translate3d(-50%, -50%, 0); }
  .scsp-sheet .scsp-handle { display: none; }
  .scsp-sheet .scsp-sheet-head { padding: 0 8px 0 20px; height: 56px; }
  .scsp-sheet .scsp-sheet-body { padding: 22px 20px 28px; }
  .scsp-sheet .scsp-sheet-foot { padding: 14px 20px; }
}

.scsp-theme .scsp-sec + .scsp-sec { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sc-line-soft); }
.scsp-theme .scsp-sec-label { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sc-text3); }
.scsp-theme .scsp-seg { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px; border-radius: 10px; background: var(--sc-field); border: 1px solid var(--sc-field-line); }
.scsp-theme .scsp-seg-btn { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--sc-text2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.scsp-theme .scsp-seg-btn.is-on { background: var(--sc-seg-on); color: var(--sc-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.scsp-theme .scsp-pane { margin-top: 12px; }
.scsp-theme .scsp-drop {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; cursor: pointer;
  border: 1.5px dashed var(--sc-dash); border-radius: 12px; background: transparent; color: var(--sc-text); transition: border-color .15s ease, background-color .15s ease;
}
.scsp-theme .scsp-drop:hover, .scsp-theme .scsp-drop.is-over { border-color: var(--sc-accent); background: rgba(155, 81, 224, .05); }
.scsp-theme .scsp-drop-ico { width: 42px; height: 42px; padding: 10px; margin-bottom: 6px; border-radius: 50%; background: var(--sc-soft); color: var(--sc-accent); display: flex; }
.scsp-theme .scsp-drop-ico svg { width: 100%; height: 100%; }
.scsp-theme .scsp-drop strong { font-size: 15px; font-weight: 600; }
.scsp-theme .scsp-drop span:last-child { font-size: 13px; color: var(--sc-text3); }
.scsp-theme .scsp-vcard { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--sc-soft); border: 1px solid var(--sc-soft-line); }
.scsp-theme .scsp-vthumb { width: 112px; height: 63px; flex-shrink: 0; border-radius: 7px; overflow: hidden; background: #1e1a25; color: #8f8f8f; display: flex; align-items: center; justify-content: center; }
.scsp-theme .scsp-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scsp-theme .scsp-vthumb .scsp-ico { width: 24px; height: 24px; }
.scsp-theme .scsp-vcard-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.scsp-theme .scsp-vcard-txt strong { font-size: 14px; font-weight: 600; color: var(--sc-text); }
.scsp-theme .scsp-vcard-txt > span { font-size: 13px; line-height: 1.4; color: var(--sc-text3); }
.scsp-theme .scsp-vcard-txt > span.is-bad { color: var(--sc-bad); }
.scsp-theme .scsp-links { display: flex; gap: 14px; margin-top: 4px; }
.scsp-theme .scsp-progress { height: 4px; margin-top: 6px; border-radius: 2px; overflow: hidden; background: var(--sc-soft-line); }
.scsp-theme .scsp-progress span { display: block; height: 100%; border-radius: 2px; background: var(--sc-accent); transition: width .25s linear; }
.scsp-theme .scsp-ytprev:not(:empty) { margin-top: 10px; }
.scsp-theme .scsp-label { display: block; margin-top: 14px; font-size: 13px; color: var(--sc-text2); }
.scsp-theme .scsp-label span { color: var(--sc-text3); }
.scsp-theme .scsp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scsp-theme .scsp-input {
  display: block; width: 100%; height: 44px; margin: 6px 0 0; padding: 0 12px; border-radius: 10px; outline: none;
  border: 1px solid var(--sc-field-line); background: var(--sc-field); color: var(--sc-text); font-family: inherit; font-size: 16px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.scsp-theme .scsp-input::placeholder { color: var(--sc-text3); opacity: .8; }
.scsp-theme .scsp-input:focus { border-color: var(--sc-accent); box-shadow: 0 0 0 3px rgba(155, 81, 224, .18); }
.scsp-theme .scsp-input.is-bad { border-color: var(--sc-bad); box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); }
@media (min-width: 768px) { .scsp-theme .scsp-input { font-size: 15px; } }
.scsp-theme .scsp-help { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--sc-text3); }
.scsp-theme .scsp-help.is-bad { color: var(--sc-bad); }

.scsp-theme .scsp-cat { margin-top: 16px; }
.scsp-theme .scsp-cat-head { display: flex; align-items: baseline; justify-content: space-between; }
.scsp-theme .scsp-cat-head strong { font-size: 16px; font-weight: 600; color: var(--sc-text); }
.scsp-theme .scsp-cat-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px dashed var(--sc-dash); }
.scsp-theme .scsp-cat-empty strong { display: block; font-size: 16px; font-weight: 600; color: var(--sc-text); }
.scsp-theme .scsp-cat-empty span { display: block; margin-top: 2px; font-size: 13px; color: var(--sc-text3); }
.scsp-theme .scsp-strip { display: flex; gap: 8px; margin: 8px -16px 0; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 768px) { .scsp-theme .scsp-strip { margin: 8px -20px 0; padding: 4px 20px 6px; } }
.scsp-theme .scsp-strip::-webkit-scrollbar { display: none; }
.scsp-theme .scsp-tile {
  position: relative; flex: 0 0 72px; width: 72px; height: 90px; padding: 0; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--sc-soft-line); background: var(--sc-ph); touch-action: pan-x;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .15s ease;
}
.scsp-theme .scsp-tile img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.scsp-theme .scsp-tile img[src=""] { visibility: hidden; }
.scsp-theme .scsp-tile.is-sel { border-color: transparent; box-shadow: 0 0 0 2px var(--sc-accent), 0 0 0 5px rgba(155, 81, 224, .2); }
.scsp-theme .scsp-tile.is-bad::after { content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--sc-bad); box-shadow: 0 0 0 2px var(--sc-sheet); }
.scsp-theme .scsp-tile.is-up img { opacity: .55; }
.scsp-theme .scsp-tile-prog { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(0, 0, 0, .45); }
.scsp-theme .scsp-tile-prog span { display: block; height: 100%; background: #fff; transition: width .2s linear; }
.scsp-theme .scsp-tile--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; border: 1.5px dashed var(--sc-dash); color: var(--sc-text2); font-size: 12px; }
.scsp-theme .scsp-tile--add .scsp-ico { width: 18px; height: 18px; }
.scsp-theme .scsp-tile--add:hover { border-color: var(--sc-accent); color: var(--sc-text); }
.scsp-theme .scsp-tile.is-lifted { z-index: 2; transition: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 2px var(--sc-accent); }
.scsp-theme .scsp-editor { margin-top: 10px; padding: 2px 12px 12px; border-radius: 12px; background: var(--sc-soft); border: 1px solid var(--sc-soft-line); }
.scsp-theme .scsp-editor .scsp-label { margin-top: 12px; }
.scsp-theme .scsp-editor .scsp-input { height: 42px; }
.scsp-theme .scsp-editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.scsp-theme .scsp-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sc-text3); }
.scsp-theme .scsp-hint .scsp-ico { width: 14px; height: 14px; }

/* Discard confirm */
.scsp-theme .scsp-confirm { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s ease; }
.scsp-theme .scsp-confirm.is-on { opacity: 1; }
.scsp-theme .scsp-confirm-card { width: 100%; max-width: 320px; padding: 22px 20px 20px; text-align: center; border-radius: 14px; background: var(--sc-sheet); border: 1px solid var(--sc-line-soft); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.scsp-theme .scsp-confirm-card h2 { margin: 0; padding: 0; font-size: 17px; font-weight: 650; color: var(--sc-text); }
.scsp-theme .scsp-confirm-card p { margin: 6px 0 18px; font-size: 14px; line-height: 1.45; color: var(--sc-text2); }
.scsp-theme .scsp-confirm-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scsp-theme .scsp-confirm-btns .scsp-btn { height: 42px; }

/* Toast */
.scsp-toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 88px); z-index: 100010; max-width: calc(100vw - 32px);
  padding: 11px 16px; border-radius: 12px; background: var(--sc-toast-bg); color: var(--sc-toast-tx); font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); pointer-events: none; opacity: 0; transform: translate3d(-50%, 10px, 0);
  transition: opacity .25s ease, transform .25s var(--sc-ease);
}
.scsp-toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.scsp-toast.over-sheet { bottom: calc(env(safe-area-inset-bottom) + 92px); }
.scsp-toast.is-bad::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #e5484d; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) {
  .scsp-theme *, .scsp-sheet, .scsp-lb, .scsp-toast { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Several featured videos */
.scsp-theme .scsp-vlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--sc-line-soft); }
.scsp--wide .scsp-vlist { gap: 12px; padding: 16px 20px 20px; }
.scsp-theme .scsp-vitem { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.scsp-theme .scsp-vitem-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sc-ph); color: var(--sc-text3); transition: box-shadow .15s ease; }
.scsp-theme .scsp-vitem-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scsp-theme .scsp-vitem-img .scsp-ico { width: 20px; height: 20px; }
.scsp-theme .scsp-vitem-state { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); padding: 2px 6px; border-radius: 4px; }
.scsp-theme .scsp-vitem-cap { font-size: 13px; line-height: 1.3; color: var(--sc-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.scsp-theme .scsp-vitem.is-on .scsp-vitem-img { box-shadow: 0 0 0 2px var(--sc-accent); }
.scsp-theme .scsp-vitem.is-on .scsp-vitem-cap { color: var(--sc-text); font-weight: 500; }
.scsp-theme .scsp-vitem:hover .scsp-vitem-cap { color: var(--sc-text); }
.scsp-theme .scsp-vitem:focus-visible { outline: none; }
.scsp-theme .scsp-vitem:focus-visible .scsp-vitem-img { box-shadow: 0 0 0 2px var(--sc-accent), 0 0 0 5px rgba(155, 81, 224, .25); }

.scsp-theme .scsp-sec-head { display: flex; align-items: baseline; justify-content: space-between; }
.scsp-theme .scsp-vcards { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.scsp-theme .scsp-vcards:empty { display: none; }
.scsp-theme .scsp-vedit { padding: 10px 12px 12px; border-radius: 12px; background: var(--sc-soft); border: 1px solid var(--sc-soft-line); }
.scsp-theme .scsp-vedit .scsp-vcard { position: relative; padding: 0; border: 0; border-radius: 0; background: transparent; }
.scsp-theme .scsp-vedit .scsp-input { height: 42px; }
.scsp-theme .scsp-vedit > .scsp-input:first-of-type { margin-top: 12px; }
.scsp-theme .scsp-vedit .scsp-label { margin-top: 12px; }
.scsp-theme .scsp-vedit-links { margin-top: 12px; flex-wrap: wrap; }
.scsp-theme .scsp-main-tag { position: absolute; top: 0; right: 0; font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--sc-accent); background: rgba(155, 81, 224, .14); padding: 3px 8px; border-radius: 999px; }
.scsp-theme .scsp-vadd { margin-top: 12px; }
.scsp-theme .scsp-vadd:empty { display: none; }
.scsp-theme .scsp-vadd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scsp-theme .scsp-vadd-row .scsp-btn .scsp-ico { width: 15px; height: 15px; }
.scsp-theme .scsp-vadd-yt { display: block; margin: 12px auto 0; }
.scsp-theme .scsp-picker { margin-top: 12px; }
.scsp-theme .scsp-pick-stage { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.scsp-theme .scsp-pick-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.scsp-theme .scsp-range { display: block; width: 100%; height: 28px; margin: 6px 0 0; accent-color: var(--sc-accent); cursor: pointer; }
.scsp-theme .scsp-pick-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.scsp-theme .scsp-play-ico { display: contents; }
.scsp-theme .scsp-play-wait { display: none; width: 60%; height: 60%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #e2e2e2; animation: scsp-spin .8s linear infinite; box-sizing: border-box; }
.scsp-theme .scsp-poster.is-wait .scsp-play-ico { display: none; }
.scsp-theme .scsp-poster.is-wait .scsp-play-wait { display: block; }
/* Uploads: a stand-in (thumbnail + identical play button) under the feed player until the video
   really plays. The player's loader, poster, paused frame, spinner and bar are hidden until then. */
/* The box keeps one fixed shape and the player fills it. */
.scsp-theme .scsp-fp { position: relative; aspect-ratio: var(--scsp-r, 16 / 9); min-height: 0; background: #000; }
.scsp-theme .scsp-fp:not(:has(.sc-fs-on)) :is(.fluent-player-preview, .player-container, .player-container > div, .fluent-player, .fluent-player-container, media-player) { height: 100% !important; }
.scsp-theme .scsp-fp .scsp-stand { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* The stand-in sits in our own box (same as the YouTube box) under the player, not inside the player, whose
   inner box can be a point off on iPhone. The player's own backgrounds are see-through so it shows. */
/* No overflow clip or z-index on the player's ancestors: on iPhone those trap the fullscreen player in this box. */
.scsp-theme .scsp-fp > .fluent-player-preview { position: relative; }
/* Pin the player to the exact frame (no clip, no z-index: keeps iPhone fullscreen working). */
.scsp-theme .scsp-fp:not(:has(.sc-fs-on)) > .fluent-player-preview { position: absolute; inset: 0; }
.scsp-theme .scsp-fp:not(:has(.sc-fs-on)) :is(.player-container, .player-container > div, .fluent-player, .fluent-player-container) { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.scsp-theme .scsp-fp:not(:has(.sc-fs-on)) media-player { display: block; width: 100% !important; aspect-ratio: auto !important; margin: 0 !important; }
.scsp-theme .scsp-fp .scsp-lock { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 769px) { .scsp-theme .scsp-fp .scsp-lock { object-fit: contain; } }
html.sc-tap .scsp-theme .scsp-fp .scsp-lock { transform: scale(1.012); }
.scsp-theme .scsp-fp :is(.fluent-player, .fluent-player-container) { background: transparent !important; }
.scsp-theme .scsp-fp .fluent-player-container > media-player { position: relative; z-index: 1; }
.scsp-theme .scsp-fp media-player, .scsp-theme .scsp-fp media-provider { background: transparent !important; }
.scsp-theme .scsp-fp .fluent-player-loader { display: none !important; }
.scsp-theme .scsp-fp media-poster { opacity: 0 !important; }
/* Specific enough to beat the site's iPhone rule that shows the paused centre button (else two buttons stack darker). */
html .scsp-theme .scsp-fp:not(.is-playing) .fluent-player media-player :is(video, .fp-media-controls-center, .fp-media-controls-bottom, .fp-media-controls-top, .vds-scrim) { opacity: 0 !important; transition: none !important; }
/* Before the first play our button is the only one shown (the player's sits invisible on top and takes the tap). */
.scsp-theme .scsp-fp.is-waiting .scsp-play-ico { display: none; }
.scsp-theme .scsp-fp.is-waiting .scsp-play-wait { display: block; }
.scsp-theme .scsp-fp.is-waiting .fp-media-controls-center { opacity: 0 !important; }
/* Gone once real frames show (.is-playing), back when switching away or the site resets the video. */
.scsp-theme .scsp-fp.is-playing .scsp-stand, .scsp-theme .scsp-fp:has(.sc-fs-on) .scsp-stand { visibility: hidden; }
