/* ==========================================================================
   Video Platform CSS - BhaskarPress Pro
   ========================================================================== */

/* Variables */
:root {
  --vp-bg: #f5f5f5;
  --vp-surface: #ffffff;
  --vp-text: #0f0f0f;
  --vp-text-muted: #606060;
  --vp-border: #e5e5e5;
  --vp-primary: #d60000;
  --vp-hover: #f0f0f0;
}

body.dark-mode {
  --vp-bg: #0f0f0f;
  --vp-surface: #212121;
  --vp-text: #f1f1f1;
  --vp-text-muted: #aaaaaa;
  --vp-border: #3d3d3d;
  --vp-hover: #3d3d3d;
}

/* Base Wrapper */
.bh-video-platform {
  background: var(--vp-bg);
  color: var(--vp-text);
  min-height: 100vh;
}

.bh-video-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

/* Single Video Layout */
.bh-sv-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bh-sv-grid {
    grid-template-columns: 1fr;
  }
}

/* Player Area */
.bh-sv-player-wrap {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
.bh-sv-player-wrap iframe, .bh-sv-player-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Thumbnail Overlay for Lazy Load */
.bh-sv-thumb-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.bh-sv-play-btn {
  width: 68px; height: 48px;
  background: rgba(0,0,0,0.8);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.bh-sv-play-btn svg { fill: #fff; width: 32px; height: 32px; }
.bh-sv-thumb-overlay:hover .bh-sv-play-btn { background: #f00; }

/* Video Info */
.bh-sv-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 0 10px;
}
.bh-sv-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}
.bh-sv-stats {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--vp-text-muted);
}
.bh-sv-actions {
  display: flex;
  gap: 10px;
}
.bh-sv-action-btn {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vp-text);
}
.bh-sv-action-btn:hover {
  background: var(--vp-hover);
}

/* Description */
.bh-sv-desc {
  background: var(--vp-surface);
  border-radius: 12px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Recommended Sidebar */
.bh-sv-rec-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}
.bh-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bh-rec-card {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--vp-text);
}
.bh-rec-thumb {
  width: 168px;
  height: 94px;
  border-radius: 8px;
  background: #000;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.bh-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bh-rec-dur {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}
.bh-rec-info h4 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh-rec-meta {
  font-size: 12px;
  color: var(--vp-text-muted);
}

/* Video Hub Archive */
.bh-vh-section { margin-bottom: 40px; }
.bh-vh-section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.bh-vh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bh-vh-card { text-decoration: none; color: var(--vp-text); }
.bh-vh-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.bh-vh-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.bh-vh-card:hover .bh-vh-thumb img { transform: scale(1.05); }

/* Shorts Platform */
.bh-shorts-wrapper {
  background: #000;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.bh-shorts-feed {
  height: 100vh;
  width: 100%;
  max-width: 450px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
}
.bh-shorts-feed::-webkit-scrollbar { display: none; }
.bh-short-item {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #111;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
.bh-short-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bh-short-ui {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bh-short-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.bh-short-btn {
  background: rgba(255,255,255,0.1);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
