/* Video Gallery Styles */
.uph-video-page { background: var(--ast-global-color-4, #f3f4fc); min-height: 100vh; }

.uph-video-hero {
  background: linear-gradient(135deg, #0a0a7a 0%, #1515c8 100%);
  color: #fff; padding: 48px 0 32px;
}
.uph-video-hero a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; }
.uph-video-hero a:hover { color: #fff; }
.uph-video-hero h1 { font-size: 32px; margin: 12px 0 8px; color: #fff; }
.uph-video-hero .meta { color: rgba(255,255,255,.65); font-size: 15px; }

.uph-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Video Grid */
.uph-video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding: 40px 0;
}
@media (max-width: 921px) { .uph-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 544px) { .uph-video-grid { grid-template-columns: 1fr; } }

.uph-video-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s ease;
}
.uph-video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }

.uph-video-thumb { display: block; position: relative; padding-top: 56.25%; overflow: hidden; }
.uph-video-thumb .uph-video-embed,
.uph-video-thumb .uph-video-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.uph-video-thumb .uph-video-embed iframe { width: 100%; height: 100%; }
.uph-video-cover { background-size: cover; background-position: center; background-color: #1515c8; }
.uph-video-placeholder { background: linear-gradient(135deg, #1515c8, #2f2fe0); }

.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: rgba(255,255,255,.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: #1515c8; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: all .3s;
}
.uph-video-card:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); background: #fff; }

.duration {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75);
  color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
}

.uph-video-info { padding: 16px 20px 20px; }
.uph-video-info h2 { font-size: 16px; margin: 0 0 6px; line-height: 1.4; font-family: inherit; }
.uph-video-info h2 a { color: #12122a; text-decoration: none; }
.uph-video-info h2 a:hover { color: #1515c8; }
.uph-video-info p { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

/* Single Video */
.uph-video-single .uph-video-player { margin: 32px 0; }
.uph-video-embed-large { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.uph-video-embed-large iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.duration-badge {
  display: inline-block; background: rgba(255,255,255,.15); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-top: 8px;
}

.uph-video-content { max-width: 800px; margin: 0 auto; }
.uph-video-desc { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 24px; }

.uph-video-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee;
}
.uph-video-nav a {
  color: #1515c8; text-decoration: none; font-weight: 600; font-size: 14px;
}
.uph-video-nav a:hover { text-decoration: underline; }
.uph-video-nav .next { margin-left: auto; text-align: right; }

/* Platform Badges */
.platform-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  color: #fff; z-index: 2; letter-spacing: 0.3px;
}
.platform-badge.youtube { background: #FF0000; }
.platform-badge.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-badge.vimeo { background: #1AB7EA; }

/* Platform Filter Buttons */
.uph-video-filters {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.uph-filter-btn {
  padding: 8px 20px; border-radius: 20px; border: 2px solid #ddd;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 13px;
  transition: all .2s; color: #555;
}
.uph-filter-btn:hover, .uph-filter-btn.active {
  border-color: #1515c8; color: #1515c8; background: #f0f0ff;
}
