/* ============================================================
   X-Reels - Feed Stylesheet
   TikTok-inspired dark mode, 9:16 vertical feed
   ============================================================ */

:root {
  --vs-bg:        #0d0b14;
  --vs-bg-soft:   #16131f;
  --vs-bg-card:   #1a1726;
  --vs-border:    #2a2638;
  --vs-text:      #e7e7ea;
  --vs-text-mute: #8b86a0;
  --vs-primary:   #FE2C55;
  --vs-accent:    #25F4EE;
  --vs-radius:    14px;
  --vs-sidebar-w: 240px;
  --vs-topbar-h:  56px;
  --vs-bottomnav-h: 60px;
  --vs-player-max-h: calc(100vh - 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.vs-feed-body {
  background: var(--vs-bg);
  color: var(--vs-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

/* ===== Sidebar (desktop) ===== */
.vs-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--vs-sidebar-w);
  background: var(--vs-bg-soft);
  border-right: 1px solid var(--vs-border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.vs-logo a { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; }
.vs-logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 18px;
  box-shadow: 0 4px 18px rgba(254,44,85,.35);
}
.vs-logo-mark-sm { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
img.vs-logo-mark { object-fit: cover; padding: 0; }
.vs-nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vs-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--vs-text-mute);
  transition: background .15s, color .15s;
  font-size: 14.5px;
  font-weight: 500;
}
.vs-nav-item i { width: 20px; text-align: center; font-size: 16px; }
.vs-nav-item:hover { background: rgba(255,255,255,.04); color: var(--vs-text); }
.vs-nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(254,44,85,.18), rgba(37,244,238,.04)); }
.vs-nav-item.active::before {
  content: ""; position: absolute; left: 0; width: 3px; height: 22px;
  background: var(--vs-primary); border-radius: 0 3px 3px 0;
  transform: translateY(-1px);
}
.vs-nav-item { position: relative; }
.vs-nav-divider { height: 1px; background: var(--vs-border); margin: 14px 0; }
.vs-nav-label { font-size: 12px; color: var(--vs-text-mute); text-transform: uppercase; letter-spacing: .08em; padding: 0 14px; margin-bottom: 6px; }
.vs-sidebar-footer { display: flex; gap: 14px; padding: 14px 14px 0; border-top: 1px solid var(--vs-border); }
.vs-sidebar-footer a { width: 32px; height: 32px; border-radius: 8px; background: var(--vs-bg-card); display: inline-flex; align-items: center; justify-content: center; color: var(--vs-text-mute); }
.vs-sidebar-footer a:hover { background: var(--vs-primary); color: #fff; }

.vs-sidebar-close {
  display: none;
  position: absolute; top: 18px; right: 14px;
  font-size: 22px; color: var(--vs-text-mute);
}
.vs-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }

/* Mobile sidebar transform */
@media (max-width: 991.98px) {
  .vs-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  .vs-sidebar.open { transform: translateX(0); }
  .vs-sidebar.open .vs-sidebar-close { display: block; }
  .vs-sidebar-overlay.open { display: block; }
}

/* ===== Top bar (mobile) ===== */
.vs-topbar {
  position: sticky; top: 0;
  height: var(--vs-topbar-h);
  background: rgba(13,11,20,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vs-border);
  align-items: center; justify-content: space-between;
  padding: 0 14px;
  z-index: 50;
  flex: 0 0 auto;
}
@media (max-width: 991.98px) {
  .vs-topbar { display: flex; }
}
.vs-topbar-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: #fff; }
.vs-menu-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--vs-text);
  font-size: 18px;
}
.vs-menu-btn:hover { background: var(--vs-bg-card); }

/* ===== Search bar ===== */
.vs-search-wrap {
  position: sticky; top: var(--vs-topbar-h); z-index: 40;
  padding: 10px 14px;
  background: rgba(13,11,20,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vs-border);
}
.vs-search-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--vs-bg-card);
  border: 1px solid var(--vs-border);
  border-radius: 30px;
  padding: 6px 6px 6px 16px;
}
.vs-search-form > i { color: var(--vs-text-mute); font-size: 14px; }
.vs-search-form input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--vs-text);
  font-size: 15px; padding: 6px 0;
}
.vs-search-btn {
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-accent));
  color: #fff; font-weight: 600; padding: 8px 18px; border-radius: 30px;
}

/* ===== Feed (vertical snap container) ===== */
.vs-feed {
  margin-left: var(--vs-sidebar-w);
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .vs-feed { margin-left: 0; padding-bottom: var(--vs-bottomnav-h); }
}

.vs-items {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

/* ===== Video card (9:16) ===== */
.vs-item {
  flex: 0 0 100%;
  height: 100%;
  max-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vs-video-card {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.vs-video-shell {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  height: 100%;
  margin: 0 auto;
  background: #000;
}
@media (max-width: 991.98px) {
  .vs-video-card,
  .vs-video-shell {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
  }
}
.vs-aspect-916 {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #000;
  border-radius: var(--vs-radius);
  overflow: hidden;
}
.vs-aspect-916 iframe,
.vs-video-shell iframe,
.vs-video-shell video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

/* DoodStream uses iframe - wrap for safety */
.vs-iframe-wrap {
  position: absolute; inset: 0;
  background: #000;
}
.vs-iframe-wrap iframe,
.vs-iframe-wrap video { width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.vs-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: #000;
}
.vs-video-item:not(.is-loading) .vs-poster { opacity: 0; pointer-events: none; }
.vs-video-item.is-buffering .vs-skeleton { display: none; }
.vs-reel-spin {
  display: none;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  z-index: 5;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: #fff;
  pointer-events: none;
  animation: vsReelSpin .6s linear infinite;
}
.vs-video-item.is-buffering .vs-reel-spin,
body.is-slow-net .vs-video-item.is-loading .vs-reel-spin { display: block; }
@keyframes vsReelSpin { to { transform: rotate(360deg); } }
.vs-video-item.is-buffering .vs-sk-lines { display: none; }
.vs-video-item.is-buffering .vs-info > :not(.vs-sk-lines) { display: block; }
.vs-video-item.is-buffering .vs-action-icon,
.vs-video-item.is-buffering .vs-action-label {
  background: none;
  animation: none;
  color: inherit;
}
.vs-video-item.is-buffering .vs-action-icon i { visibility: visible; }
.vs-video-item.is-buffering .vs-action-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Kerangka pemuatan bergaya Facebook. Kilau yang sama melewati video, judul, dan tombol. */
.vs-skeleton {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: none;
}
.vs-video-item.is-loading .vs-skeleton { display: block; }
.vs-bone,
.vs-video-item.is-loading .vs-action-icon,
.vs-video-item.is-loading .vs-action-label {
  background-color: #3e4042;
  background-image: linear-gradient(90deg, #3e4042 8%, #5c5e60 18%, #3e4042 33%);
  background-size: 800px 100%;
  background-repeat: no-repeat;
  animation: vsFbShimmer 1s linear infinite;
}
.vs-bone-media {
  position: absolute;
  inset: 0;
  background-color: #242526;
  background-image: linear-gradient(90deg, #242526 8%, #3a3c3e 18%, #242526 33%);
}
.vs-sk-lines { display: none; }
.vs-video-item.is-loading .vs-sk-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vs-video-item.is-loading .vs-info > :not(.vs-sk-lines) { display: none; }
.vs-bone-line { height: 14px; border-radius: 7px; }
.vs-bone-line.w1 { width: 92%; }
.vs-bone-line.w2 { width: 64%; }
.vs-bone-line.w3 { width: 34%; height: 12px; }
.vs-video-item.is-loading .vs-action-icon {
  color: transparent;
  backdrop-filter: none;
}
.vs-video-item.is-loading .vs-action-icon i { visibility: hidden; }
.vs-video-item.is-loading .vs-action-label {
  color: transparent;
  text-shadow: none;
  border-radius: 6px;
  min-width: 28px;
}
.vs-video-item.is-loading .vs-action:hover .vs-action-icon {
  background-color: #3e4042;
  transform: none;
}
@keyframes vsFbShimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.vs-iframe-wrap video::-webkit-media-controls,
.vs-iframe-wrap video::-webkit-media-controls-start-playback-button,
.vs-iframe-wrap video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

/* Right-side actions (mobile TikTok style) */
.vs-actions {
  position: absolute;
  right: 12px;
  bottom: 18%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
@media (min-width: 992px) {
  .vs-actions { right: 22px; bottom: 25%; }
}
.vs-action {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff;
  font-size: 12px;
}
.vs-action .vs-action-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform .15s, background .15s;
}
.vs-action:hover .vs-action-icon { background: rgba(254,44,85,.6); transform: scale(1.08); }
.vs-action .vs-action-label { color: rgba(255,255,255,.85); font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vs-action.liked .vs-action-icon { color: var(--vs-primary); }
.vs-action.like-btn .vs-action-icon { font-size: 22px; }

/* Bottom info (over video) */
.vs-info {
  position: absolute;
  left: 12px;
  right: 90px;
  bottom: 16px;
  z-index: 6;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
@media (min-width: 992px) {
  .vs-info { left: 22px; right: 110px; bottom: 22px; }
}
.vs-info-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.vs-info-meta { font-size: 12.5px; color: rgba(255,255,255,.85); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vs-info-meta .cat {
  background: rgba(254,44,85,.18);
  border: 1px solid rgba(254,44,85,.3);
  padding: 2px 10px; border-radius: 12px;
  color: #fff; font-size: 11.5px;
}
.vs-info-desc {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nav arrows (desktop) */
.vs-nav-arrows {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 60;
}
@media (max-width: 991.98px) { .vs-nav-arrows { display: none; } }
.vs-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  transition: background .15s, transform .15s;
}
.vs-arrow:hover { background: var(--vs-primary); transform: scale(1.06); }

/* ===== AD slot ===== */
.vs-item.vs-ad {
  background: linear-gradient(180deg, #0d0b14 0%, #16131f 100%);
  color: var(--vs-text);
  padding: 12px 16px;
  overflow: hidden;
}
.vs-ad-card {
  position: relative;
  width: min(460px, 100%);
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  background: var(--vs-bg-card);
  border: 1px solid var(--vs-border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  padding: 40px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.vs-ad-card > a:not(.vs-ad-cta) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.vs-ad-banner {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.vs-ad-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.vs-ad-html,
.vs-ad-native,
.vs-ad-iframe {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.vs-ad-iframe { height: 100%; }
.vs-ad-label {
  position: absolute; top: 12px; left: 12px;
  background: rgba(254,44,85,.15);
  color: var(--vs-primary);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 5;
  border: 1px solid rgba(254,44,85,.3);
}
.vs-ad-html { padding: 0; text-align: left; }
.vs-ad-iframe { width: 100%; border: 0; border-radius: 12px; }
.vs-ad-cta {
  display: inline-block;
  flex: 0 0 auto;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--vs-primary), var(--vs-accent));
  color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: 600;
}
.vs-ad-native {
  text-align: left;
}
.vs-ad-native h4 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.vs-ad-native p { margin: 0 0 12px; font-size: 13.5px; color: var(--vs-text-mute); }
.vs-ad-skip-hint { flex: 0 0 auto; margin-top: 8px; font-size: 11.5px; color: var(--vs-text-mute); }
.vs-ad-skip-hint i { color: var(--vs-accent); }

/* ===== Loader / Sentinel ===== */
.vs-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: auto;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  z-index: 20;
  pointer-events: none;
}
.vs-sentinel.hidden { display: none; }
.vs-loader { display: inline-flex; gap: 6px; }
.vs-loader div {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vs-primary);
  animation: vs-bounce 1.2s infinite ease-in-out;
}
.vs-loader div:nth-child(2) { animation-delay: .15s; background: var(--vs-accent); }
.vs-loader div:nth-child(3) { animation-delay: .3s; background: var(--vs-primary); }
@keyframes vs-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ===== Empty state ===== */
.vs-empty {
  text-align: center; padding: 80px 20px; color: var(--vs-text-mute);
}
.vs-empty i { font-size: 60px; color: var(--vs-border); margin-bottom: 16px; }
.vs-empty p { font-size: 15px; }

/* ===== Bottom nav (mobile) ===== */
.vs-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--vs-bottomnav-h);
  background: rgba(13,11,20,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--vs-border);
  display: flex; align-items: stretch; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.vs-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--vs-text-mute); font-size: 11px; gap: 3px;
}
.vs-bottom-nav a i { font-size: 18px; }
.vs-bottom-nav a.active { color: #fff; }
.vs-bottom-nav a.active i { color: var(--vs-primary); }

/* ===== Toast ===== */
.vs-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(13,11,20,.96);
  border: 1px solid var(--vs-border);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.vs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vs-toast i { color: var(--vs-accent); margin-right: 6px; }

/* ===== Share Modal ===== */
.vs-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.vs-modal-backdrop[hidden] { display: none; }
.vs-modal {
  background: var(--vs-bg-soft);
  border: 1px solid var(--vs-border);
  border-radius: 18px;
  width: min(420px, 92vw);
  padding: 20px;
}
.vs-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vs-modal-head h6 { margin: 0; font-weight: 700; color: #fff; }
.vs-modal-close { color: var(--vs-text-mute); font-size: 20px; }
.vs-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vs-share-chip {
  background: var(--vs-bg-card);
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  padding: 12px 6px; text-align: center; color: var(--vs-text);
  font-size: 12px;
  transition: background .15s, transform .15s;
}
.vs-share-chip:hover { background: rgba(254,44,85,.15); transform: translateY(-2px); }
.vs-share-chip i { font-size: 22px; display: block; margin-bottom: 6px; }
.vs-share-chip[data-share="whatsapp"] i { color: #25D366; }
.vs-share-chip[data-share="facebook"] i { color: #1877F2; }
.vs-share-chip[data-share="twitter"] i { color: #1DA1F2; }
.vs-share-chip[data-share="telegram"] i { color: #0088CC; }
.vs-share-chip[data-share="copy"] i { color: var(--vs-accent); }
.vs-share-input {
  width: 100%; margin-top: 14px; background: var(--vs-bg-card);
  border: 1px solid var(--vs-border); color: var(--vs-text);
  padding: 10px 14px; border-radius: 10px; font-size: 13px;
  outline: none;
}

/* ===== Watch page (single video) ===== */
body.vs-watch-body {
  background: var(--vs-bg);
  color: var(--vs-text);
  padding: 0; margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}
.vs-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  color: var(--vs-text);
  font-size: 14px;
  border-bottom: 1px solid var(--vs-border);
}
.vs-back-btn:hover { color: var(--vs-primary); }
.vs-watch-wrap {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px;
  align-items: start;
}
@media (max-width: 991.98px) {
  .vs-watch-wrap { grid-template-columns: 1fr; padding: 12px 12px 28px; }
}
.vs-watch-player {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.vs-watch-player .vs-aspect-916 {
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100dvh - 96px) * 16 / 9));
  max-width: none;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #000;
}
.vs-watch-player .vs-aspect-916 iframe,
.vs-watch-player .vs-aspect-916 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}
.vs-watch-info { background: var(--vs-bg-soft); border: 1px solid var(--vs-border); border-radius: 16px; padding: 20px; }
.vs-watch-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 12px; line-height: 1.35; }
.vs-watch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vs-pill {
  background: var(--vs-bg-card); border: 1px solid var(--vs-border);
  padding: 4px 12px; border-radius: 14px;
  font-size: 12px; color: var(--vs-text-mute);
  display: inline-flex; align-items: center; gap: 5px;
}
.vs-pill-cat { color: var(--vs-primary); border-color: rgba(254,44,85,.3); background: rgba(254,44,85,.08); }
.vs-pill-cat:hover { background: rgba(254,44,85,.15); }
.vs-watch-desc { font-size: 13.5px; line-height: 1.6; color: var(--vs-text-mute); margin: 0 0 16px; }
.vs-watch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-action-btn {
  background: var(--vs-bg-card); border: 1px solid var(--vs-border);
  padding: 8px 14px; border-radius: 24px; font-size: 13px; color: var(--vs-text);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .15s;
}
.vs-action-btn:hover { background: var(--vs-primary); color: #fff; }

.vs-related { grid-column: 1 / -1; margin-top: 8px; }
.vs-related-title { color: #fff; font-size: 18px; margin: 0 0 14px; }
.vs-related-title i { color: var(--vs-primary); }
.vs-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
@media (max-width: 991.98px) {
  .vs-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
.vs-related-card { background: var(--vs-bg-soft); border: 1px solid var(--vs-border); border-radius: 12px; overflow: hidden; transition: transform .15s; }
.vs-related-card:hover { transform: translateY(-3px); border-color: var(--vs-primary); }
.vs-related-thumb { position: relative; }
.vs-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.75);
  padding: 2px 8px; border-radius: 8px;
  color: #fff; font-size: 11px;
}
.vs-related-info { padding: 10px 12px; }
.vs-related-info h6 { margin: 0 0 4px; font-size: 13px; color: #fff; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-related-info span { font-size: 11.5px; color: var(--vs-text-mute); }

/* ===== Active video / Pause states ===== */
.vs-item.active .vs-video-card { box-shadow: inset 0 0 0 1px rgba(254,44,85,.0); }

/* Hide native scrollbar but keep functional */
.vs-items::-webkit-scrollbar { width: 0; display: none; }
.vs-items { scrollbar-width: none; -ms-overflow-style: none; }

/* Desktop layout: video card shouldn't fill full width */
@media (min-width: 992px) {
  .vs-items { padding: 0; }
  .vs-item { padding: 0; }
  .vs-video-card { max-width: 480px; margin: 0 auto; }
  .vs-video-shell { max-width: 480px; }
  .vs-aspect-916 { max-width: 480px; }
}

/* First-visit coach: dim the feed, then glide the swipe hint in. Taps still reach the video. */
.vs-scroll-coach {
  position: absolute;
  inset: 0;
  z-index: 26;
  pointer-events: none;
}
.vs-scroll-dim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 12, .62);
  opacity: 0;
  animation: vs-dim-in .65s ease forwards;
}
.vs-scroll-hint {
  position: absolute;
  left: 50%;
  top: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 48px);
  color: #fff;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -36%);
  animation: vs-hint-in .8s cubic-bezier(.16, 1, .3, 1) .62s forwards;
}
.vs-scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 58px;
  overflow: hidden;
}
.vs-scroll-chevrons i {
  font-size: 22px;
  line-height: 1;
  margin-top: -8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
  animation: vs-chevron-up 1.15s ease-in-out infinite;
}
.vs-scroll-chevrons i:first-child { margin-top: 0; }
.vs-scroll-chevrons i:nth-child(2) { animation-delay: .12s; }
.vs-scroll-chevrons i:nth-child(3) { animation-delay: .24s; }
.vs-scroll-hint-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.vs-scroll-coach.is-out { animation: vs-coach-out .45s ease forwards; }
@keyframes vs-dim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes vs-hint-in {
  from { opacity: 0; transform: translate(-50%, -36%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes vs-coach-out {
  to { opacity: 0; }
}
@keyframes vs-chevron-up {
  0% { transform: translateY(12px); opacity: .15; }
  45% { opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}
@media (max-width: 991.98px) {
  .vs-scroll-hint { top: 42%; }
}

.vs-pull-refresh {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 30;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  background: rgba(13,11,20,.35);
}
.vs-pull-refresh.is-ready { border-top-color: var(--vs-accent); }
.vs-pull-refresh.is-spin { animation: vs-pull-spin .7s linear infinite; }
@keyframes vs-pull-spin { to { transform: translateY(22px) rotate(360deg); } }

/* Stagger transitions for ad card */
.vs-ad-card { animation: vs-fadein .35s ease-out; }
@keyframes vs-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
