/* ============================================
   v2/css/videos.css
   استایل لیست ویدئوها + جزئیات ویدئو
   سایت اخبار استقلال — نسخه ۲
   ============================================ */

/* ============================================
   1) Videos List
   ============================================ */
.videos-page {
  padding: 0 12px 20px;
}

/* تب‌های دسته */
.video-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  border-bottom: 2px solid var(--bg);
  margin-bottom: 16px;
}

.video-tabs::-webkit-scrollbar { display: none; }

.video-tab {
  padding: 8px 18px;
  border-radius: 25px;
  font-size: .75rem;
  font-weight: 600;
  color: #5a6a7a;
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
  touch-action: manipulation;
}

.video-tab.active {
  background: var(--primary);
  color: #fff;
}

/* لیست ویدئو */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
  cursor: pointer;
  touch-action: manipulation;
}

.video-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail .play-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  border: 2px solid rgba(255,255,255,.3);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.video-thumbnail .video-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--primary);
  padding: 2px 12px;
  border-radius: 12px;
  font-size: .6rem;
  font-weight: 700;
}

.video-info { padding: 14px 16px; }

.video-info .video-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info .video-desc {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.video-info .video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .65rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 6px;
}

.video-info .video-meta .time-ago {
  color: var(--primary);
  font-weight: 600;
}

.like-btn-video {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  touch-action: manipulation;
}

.like-btn-video.liked { color: var(--danger); }

/* ============================================
   2) Video Detail
   ============================================ */
.video-detail-page {
  display: block;
  padding: 0 0 20px;
}

.video-player-full {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-full video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}

.video-player-full iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  background: #000;
}

.video-player-full .video-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  cursor: pointer;
}

.video-player-full .video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-full .video-thumb-wrapper .big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.25);
  border: 3px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform .3s;
}

.video-player-full .video-thumb-wrapper:hover .big-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-detail-content {
  padding: 16px 12px 0;
}

.video-detail-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
  padding: 0 4px;
}

.video-detail-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: pre-wrap;
  padding: 0 4px;
}

.video-detail-meta {
  display: flex;
  gap: 16px;
  padding: 12px 4px;
  border-top: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
  margin-bottom: 16px;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.video-detail-meta .time-ago {
  color: var(--primary);
  font-weight: 600;
}

.video-detail-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--bg);
  flex-wrap: wrap;
}

.video-detail-actions button {
  background: none;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  touch-action: manipulation;
}

.video-detail-actions .like-btn { color: var(--danger); }
.video-detail-actions .dislike-btn { color: var(--info); }
.video-detail-actions .comment-btn { color: var(--success); }

/* Responsive */
@media (max-width: 380px) {
  .video-thumbnail { height: 180px; }
  .video-detail-title { font-size: 1.05rem; }
  .video-player-full video { max-height: 50vh; }
  .video-player-full iframe { height: 220px; }
  .video-player-full .video-thumb-wrapper { height: 220px; }
}