/* ============================================================
   FISHING GALLERY PRO - Video Player Stylesheet
   ============================================================ */

/* ---- VIDEO GRID ---- */
.fgp-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.fgp-video-card {
  background: var(--fgp-glass-bg, rgba(255,255,255,0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--fgp-glass-border, rgba(255,255,255,0.18));
  border-radius: var(--fgp-radius, 16px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  cursor: pointer;
}

.fgp-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,212,255,0.2), 0 8px 32px rgba(0,0,0,0.5);
  border-color: rgba(0,212,255,0.35);
}

.fgp-video-thumb-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #0d1f3c;
  overflow: hidden;
}

.fgp-video-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fgp-video-card:hover .fgp-video-thumb-wrap img {
  transform: scale(1.06);
}

/* Play button overlay */
.fgp-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
  z-index: 2;
}

.fgp-video-card:hover .fgp-video-play-overlay {
  background: rgba(0,30,60,0.5);
}

.fgp-play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,212,255,0.9);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: fgpPulse 2s ease-in-out infinite;
}

.fgp-video-card:hover .fgp-play-btn {
  background: var(--fgp-accent3, #ff6b35);
  transform: scale(1.12);
  animation: none;
}

.fgp-play-btn svg {
  width: 24px; height: 24px;
  fill: #fff;
  margin-left: 4px;
}

/* Duration badge */
.fgp-video-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  font-family: monospace;
}

/* Type badge (YouTube, Vimeo, etc.) */
.fgp-video-type-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 3;
  letter-spacing: 0.05em;
}

.fgp-badge-youtube  { background: #ff0000; color: #fff; }
.fgp-badge-vimeo    { background: #1ab7ea; color: #fff; }
.fgp-badge-hosted   { background: var(--fgp-accent, #00d4ff); color: #0a1628; }

/* Card body */
.fgp-video-card-body {
  padding: 16px;
}

.fgp-video-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.fgp-video-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SINGLE VIDEO PLAYER
   ============================================================ */
.fgp-single-video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.fgp-video-player-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--fgp-radius, 16px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
}

.fgp-video-player-frame iframe,
.fgp-video-player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--fgp-radius, 16px);
}

/* Custom video controls */
.fgp-custom-video-controls {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-radius: 0 0 var(--fgp-radius, 16px) var(--fgp-radius, 16px);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fgp-ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.fgp-ctrl-btn:hover {
  background: var(--fgp-accent, #00d4ff);
  border-color: var(--fgp-accent, #00d4ff);
  color: #0a1628;
}

.fgp-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  min-width: 80px;
}

.fgp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fgp-accent, #00d4ff), #00ffcc);
  border-radius: 2px;
  transition: width 0.1s linear;
  width: 0%;
}

.fgp-progress-bar:hover .fgp-progress-fill { height: 6px; }

.fgp-time-display {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-family: monospace;
  white-space: nowrap;
}

.fgp-volume-slider {
  width: 70px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
}

.fgp-volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fgp-accent, #00d4ff);
  cursor: pointer;
}

/* ============================================================
   VIDEO PLAYLIST
   ============================================================ */
.fgp-video-playlist-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.fgp-playlist-main {
  position: sticky;
  top: 20px;
}

.fgp-playlist-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fgp-playlist-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fgp-playlist-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.fgp-playlist-sidebar {
  background: var(--fgp-glass-bg, rgba(255,255,255,0.08));
  backdrop-filter: blur(12px);
  border: 1px solid var(--fgp-glass-border, rgba(255,255,255,0.18));
  border-radius: var(--fgp-radius, 16px);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.fgp-playlist-items {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.4) transparent;
}

.fgp-playlist-items::-webkit-scrollbar { width: 4px; }
.fgp-playlist-items::-webkit-scrollbar-track { background: transparent; }
.fgp-playlist-items::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.4); border-radius: 2px; }

.fgp-playlist-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
}

.fgp-playlist-item:hover {
  background: rgba(0,212,255,0.08);
}

.fgp-playlist-item.fgp-playing {
  background: rgba(0,212,255,0.12);
  border-left: 3px solid var(--fgp-accent, #00d4ff);
}

.fgp-playlist-item-thumb {
  width: 80px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
}

.fgp-playlist-item-thumb-wrap {
  position: relative;
  width: 80px; height: 52px;
  flex-shrink: 0;
}

.fgp-playlist-item-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.fgp-playlist-item-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.fgp-playlist-item:hover .fgp-playlist-item-play,
.fgp-playlist-item.fgp-playing .fgp-playlist-item-play {
  opacity: 1;
}

.fgp-playlist-item-play svg {
  width: 16px; height: 16px;
  fill: #fff;
}

.fgp-playlist-item-info {
  flex: 1;
  min-width: 0;
}

.fgp-playlist-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.fgp-playlist-item-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   VIDEO LIGHTBOX (for video cards)
   ============================================================ */
.fgp-video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,12,28,0.97);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
}

.fgp-video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.fgp-video-lb-container {
  width: min(900px, 92vw);
  animation: fgpLbIn 0.4s ease both;
}

.fgp-video-lb-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s;
  z-index: 10;
}

.fgp-video-lb-close:hover {
  background: #e74c3c;
  transform: rotate(90deg) scale(1.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .fgp-video-playlist-wrapper {
    grid-template-columns: 1fr;
  }
  .fgp-playlist-main { position: static; }
  .fgp-playlist-sidebar { max-height: 300px; }
}

@media (max-width: 600px) {
  .fgp-videos-grid { grid-template-columns: 1fr; }
  .fgp-custom-video-controls { padding: 8px 10px; gap: 8px; }
  .fgp-volume-slider { width: 50px; }
}
