﻿/* WP3: Videos page (ported from antbeatz-pro/videos.html inline styles). Load after /css/tokens.css, /css/base.css. */
.videos-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  position: relative;
  z-index: var(--z-base);
}

.videos-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero-legacy);
  line-height: 0.9;
  letter-spacing: -3px;
  text-transform: uppercase;
  margin: 18px 0 18px;
  color: var(--ink);
}

.videos-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.videos-sub {
  max-width: 660px;
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--muted);
}

.videos-hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.vstat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}

.vstat-pill strong {
  color: var(--gold);
}

.videos-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.videos-stage {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  position: relative;
  z-index: var(--z-base);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  background: #0d0d11;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.video-card:hover .video-thumb-btn img {
  transform: scale(1.04);
  filter: brightness(0.86);
}

.video-thumb-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.08) 0%, rgba(8, 8, 10, 0.72) 100%);
  pointer-events: none;
}

.video-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(245, 180, 0, 0.42);
  transition: transform var(--dur-fast), background var(--dur-fast);
}

.video-card:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--gold-2);
}

.video-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.video-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  flex: 1 1 auto;
}

.video-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.video-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-metrics .vmetric-comments {
  color: var(--gold-2);
  font-weight: 700;
}

.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.video-watch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.video-watch-btn:hover {
  color: var(--gold-2);
}

.video-ext-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.video-ext-link:hover {
  color: var(--ink);
}

/* YouTube Lightbox Modal â€” Scrollable Body so Description & Comments Never Clip */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.video-overlay[hidden] {
  display: none;
}

.video-modal {
  width: 100%;
  max-width: 960px;
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.85);
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.video-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.video-modal-close {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.video-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal-details {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-stat-chip {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}

.v-stat-chip strong {
  color: var(--gold);
}

.v-section-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.v-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.v-section-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
}

.video-desc-full {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-line;
  word-break: break-word;
  margin: 0;
}

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

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.comment-main {
  min-width: 0;
  flex: 1 1 auto;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 800;
  color: var(--ink);
}

.comment-date,
.comment-likes {
  font-family: var(--font-mono);
  color: var(--muted);
}

.comment-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  word-break: break-word;
}

.comment-replies-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-replies-toggle:hover {
  color: var(--gold-2);
}

.comment-replies-box {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-replies-box[hidden] {
  display: none;
}

.reply-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.reply-avatar {
  width: 26px;
  height: 26px;
}

.comments-empty-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.comments-empty-box code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-2);
  background: rgba(245, 180, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .videos-hero {
    padding: 36px var(--gutter-mobile) 24px;
  }

  .videos-hero h1 {
    letter-spacing: -2px;
  }

  .videos-stage {
    padding: 0 var(--gutter-mobile) 60px;
  }

  .video-modal-details {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-thumb-btn img,
  .video-play-badge {
    transition: none;
  }
}

/* WP3 additions: description block, empty/error states */
.video-desc-full a {
  color: var(--gold-2);
  word-break: break-all;
}

.v-section-block[hidden] {
  display: none;
}

.video-desc-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 0 0;
  cursor: pointer;
}

.video-desc-full.clamped {
  max-height: 9.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.videos-status {
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

body.wp3-modal-open {
  overflow: hidden;
}
