/* ============ video-page.css — صفحه جزئیات ویدئو ============ */

/* ---------- پلیر ویدئو ---------- */
.vp-player {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
}
.vp-player__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
}
.vp-player__screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
}
.vp-player__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted-foreground, #a8a29e);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 22px;
}
.vp-player__placeholder i {
  font-size: 52px;
  opacity: 0.4;
}
.vp-player__placeholder p {
  font-size: 0.95rem;
}
.vp-player__placeholder .btn {
  margin-top: 6px;
}

/* ---------- هیرو ویدئو ---------- */
.vp-hero {
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--glass-bg, rgba(41, 37, 36, 0.45));
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.vp-hero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vp-hero__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}
.vp-hero__artists {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--neon-red, #ff2d2d);
  font-weight: 600;
}
.vp-hero__actions {
  flex-shrink: 0;
}
.vp-hero__stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------- گرید توضیحات + ویدئوهای مرتبط ---------- */
.vp-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 24px;
}

/* ---------- توضیحات ---------- */
.vp-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted-foreground, #d6d3d1);
  margin-bottom: 20px;
}
.vp-info-list {
  margin-bottom: 0;
}

/* ---------- ویدئوهای مرتبط (ستون کناری) ---------- */
.vp-related-sidebar {
  padding: 20px;
  border-radius: 18px;
  background: var(--glass-bg, rgba(41, 37, 36, 0.45));
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  align-self: flex-start;
}
.vp-related-sidebar .glass-box__title {
  font-size: 1rem;
}

.vp-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* کارت ویدئو مرتبط (افقی کوچک) */
.vp-rcard {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(245, 245, 244, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.vp-rcard:hover {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(255, 70, 70, 0.3);
  transform: translateX(-4px);
}
.vp-rcard__thumb {
  width: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.vp-rcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vp-rcard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.vp-rcard__title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vp-rcard__artist {
  font-size: 0.75rem;
  color: var(--muted-foreground, #d6d3d1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vp-rcard__meta {
  font-size: 0.7rem;
  color: var(--muted-foreground, #a8a29e);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vp-rcard__meta i {
  font-size: 0.65rem;
}
.vp-rcard.is-current {
  background: rgba(185, 28, 28, 0.2);
  border-color: rgba(255, 70, 70, 0.5);
}

/* ========== ریسپانسیو ========== */
@media (max-width: 1024px) {
  .vp-grid {
    grid-template-columns: 1fr 280px;
  }
  .vp-rcard__thumb {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .vp-grid {
    grid-template-columns: 1fr;
  }
  .vp-related-sidebar {
    order: -1;
  }
  .vp-related-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
  }
  .vp-rcard {
    flex-direction: column;
    min-width: 180px;
    flex-shrink: 0;
  }
  .vp-rcard__thumb {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .vp-hero__title {
    font-size: 1.25rem;
  }
  .vp-hero__artists {
    font-size: 0.9rem;
  }
  .vp-hero {
    padding: 16px 18px;
  }
  .vp-player__screen {
    border-radius: 16px;
  }
  .vp-player__screen video {
    border-radius: 16px;
  }
  .vp-player__placeholder {
    border-radius: 16px;
  }
}
