/* Taktik Bisnis — 9:16 Vertical Video Feed Grid (Anti-Slop 2.0 Compliant) */

.video-section {
  margin-bottom: 56px;
}
.video-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Horizontal TikTok-style snap scroll (Used on Homepage) */
.video-feed-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 16px !important;
  padding: 6px 4px 20px 4px !important;
  margin-top: 16px !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pinch-zoom !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) rgba(255, 255, 255, 0.05);
  cursor: grab;
}

.video-feed-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none !important;
}

.video-feed-scroll::-webkit-scrollbar {
  height: 6px;
}

.video-feed-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.video-feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 999px;
}

.video-feed-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.video-feed-scroll .card-916 {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  scroll-snap-align: start !important;
  box-sizing: border-box !important;
}

/* Mobile: TikTok-style horizontal swipe with card peek */
@media (max-width: 768px) {
  .video-feed-scroll {
    gap: 12px !important;
    padding: 6px 0 16px 0 !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    scrollbar-width: none !important;
  }

  .video-feed-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .video-feed-scroll .card-916 {
    flex: 0 0 74vw !important;
    width: 74vw !important;
    max-width: 275px !important;
    min-width: 220px !important;
    scroll-snap-align: center !important;
    padding: 14px !important;
  }

  .video-feed-scroll .card-916 .card-916-title {
    font-size: 14px !important;
    line-height: 1.32 !important;
  }

  .video-feed-scroll .card-916 .card-916-takeaway {
    font-size: 10.5px !important;
    padding: 5px 7px !important;
    margin-bottom: 8px !important;
  }

  .video-feed-scroll .card-916 .play-btn-circle {
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
  }
}
.card-916 {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.card-916:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
}
.card-916-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.card-916-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, rgba(9, 13, 22, 0.1) 40%, rgba(9, 13, 22, 0.95) 85%);
  z-index: 2;
}
.card-916-head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-916-dur {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.card-916-center {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}
.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.9);
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  transition: transform var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.card-916:hover .play-btn-circle {
  transform: scale(1.08);
  background: var(--accent);
}
.card-916-body {
  position: relative;
  z-index: 3;
}
.card-916-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.card-916-takeaway {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}
.card-916-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.card-916-channels { display: flex; gap: 6px; }
.card-916-channels a {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.card-916-channels a:hover { color: var(--accent); background: rgba(255, 255, 255, 0.2); }
.article-link-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--accent) !important;
  color: #090d16 !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.35) !important;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast) !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.article-link-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.5) !important;
  text-decoration: none !important;
}

.article-link-btn:active {
  transform: translateY(0) !important;
}

/* Archive Page: 2 Columns on Mobile */
@media (max-width: 640px) {
  .video-feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .video-feed-grid .card-916 {
    padding: 10px !important;
    border-radius: var(--radius-lg) !important;
  }

  .video-feed-grid .card-916-dur {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  .video-feed-grid .card-916-head .badge {
    font-size: 8.5px !important;
    padding: 2px 5px !important;
  }

  .video-feed-grid .play-btn-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }

  .video-feed-grid .card-916-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .video-feed-grid .card-916-takeaway {
    font-size: 9px !important;
    line-height: 1.3 !important;
    padding: 3px 5px !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .video-feed-grid .card-916-actions {
    padding-top: 6px !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .video-feed-grid .card-916-channels {
    justify-content: center !important;
  }

  .video-feed-grid .card-916-channels a {
    font-size: 8.5px !important;
    padding: 2px 4px !important;
  }

  .video-feed-grid .article-link-btn {
    width: 100% !important;
    padding: 5px 6px !important;
    font-size: 10px !important;
    text-align: center !important;
  }
}

