/**
 * Video Player Page Styles
 * Apple-inspired embedded video player
 */

.video-player-page {
  min-height: 100vh;
  background: var(--dark);
  padding-top: 70px;
}

/* Player Container */
.player-container {
  background: #000;
  padding: 0;
}

.player-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.loading-player {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.4);
}

.loading-player svg {
  color: var(--blue);
}

.loading-player p {
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Video Info Section */
.video-info-section {
  background: var(--dark);
  padding: 32px 24px;
}

.video-info-container {
  max-width: 1400px;
  margin: 0 auto;
}

.video-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid rgba(255,255,255,0.1);
}

.video-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.01em;
}

.stat-dot {
  color: rgba(255,255,255,0.3);
}

.video-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.youtube-btn {
  background: rgba(255,59,48,0.1);
  border-color: rgba(255,59,48,0.3);
  color: #FF3B30;
}

.youtube-btn:hover {
  background: rgba(255,59,48,0.15);
  border-color: rgba(255,59,48,0.5);
}

.video-description {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.video-description p {
  margin-bottom: 12px;
}

/* Related Videos Section */
.related-videos-section {
  background: var(--dark2);
  padding: 48px 24px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.related-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.related-video-card {
  background: rgba(28,28,30,0.6);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-video-card:hover {
  transform: translateY(-4px);
  border-color: #FF3B30;
  box-shadow: 0 12px 32px rgba(255,59,48,0.3);
}

.related-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.related-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-video-card:hover .related-video-thumb img {
  transform: scale(1.08);
}

.related-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.related-video-info {
  padding: 14px;
}

.related-video-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-video-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 1024px) {
  .video-title {
    font-size: 24px;
  }
  
  .related-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .video-player-page {
    padding-top: 60px;
  }
  
  .video-info-section {
    padding: 24px 16px;
  }
  
  .video-title {
    font-size: 20px;
  }
  
  .video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .video-stats {
    font-size: 13px;
  }
  
  .video-description {
    font-size: 14px;
  }
  
  .related-videos-section {
    padding: 32px 16px;
  }
  
  .section-title {
    font-size: 19px;
    margin-bottom: 20px;
  }
  
  .related-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .action-btn {
    font-size: 13px;
    padding: 9px 16px;
  }
}
