/* Interviews Block Styles */
.interviews-block {
  margin-bottom: 2rem;
}

.interviews-header-wrapper {
  margin-bottom: 1rem;
}

.interviews-header {
  background: linear-gradient(135deg, rgba(112, 44, 249, 1), rgba(112, 44, 249, 0.8));
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 8px;
}

.interviews-title {
  margin: 0;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.interviews-scroll-wrapper {
  position: relative;
  overflow: hidden;
  user-select: none; /* Предотвращаем выделение текста при drag */
}

.interviews-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
  /* Включаем плавный скролл при свайпе на мобильных */
  -webkit-overflow-scrolling: touch;
  /* Поддержка свайпа на touch-устройствах */
  touch-action: pan-x;
  /* Скрываем скролл-бар, но оставляем возможность скролла */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
  /* Улучшаем производительность скролла */
  will-change: scroll-position;
  /* Курсор для drag-to-scroll */
  cursor: grab;
  /* Предотвращаем выделение при drag */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.interviews-scroll-container:active {
  cursor: grabbing;
}

/* Скрываем скролл-бар в WebKit браузерах (Chrome, Safari, Edge) */
.interviews-scroll-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

/* Interview Card - 9:16 Aspect Ratio (Vertical Video/Reels Format) */
.interview-card {
  flex: 0 0 auto;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.interview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.interview-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Thumbnail Wrapper - 9:16 Aspect Ratio */
.interview-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 vertical aspect ratio (height/width = 16/9 = 1.7778) */
  background: #000;
  overflow: hidden;
}

.interview-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.interview-card:hover .interview-thumbnail {
  transform: scale(1.05);
}

.interview-thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 3rem;
}

/* NEW Badge */
.interview-badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
  z-index: 2;
  animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Play Overlay */
.interview-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.interview-card:hover .interview-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.interview-play-overlay i {
  font-size: 1.5rem;
  color: #333;
  margin-left: 4px; /* Offset play icon for visual balance */
}

/* Title Overlay на видео (как у новостей) */
.interview-title-overlay {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.interview-title-on-video {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin: 0;
  padding: 14px 10px 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .interview-card {
    width: 180px;
  }
  
  .interviews-title {
    font-size: 1.1rem;
  }
  
  .interview-title-on-video {
    font-size: 0.75rem;
    padding: 12px 8px 10px;
    line-height: 1.3;
  }
  
  .interview-title-overlay {
    bottom: -1px;
  }
}

@media (max-width: 576px) {
  .interview-card {
    width: 160px;
  }
  
  .interviews-scroll-container {
    gap: 0.75rem;
  }
  
  .interviews-title {
    font-size: 1rem;
  }
  
  .interview-badge-new {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  
  .interview-play-overlay {
    width: 45px;
    height: 45px;
  }
  
  .interview-play-overlay i {
    font-size: 1.1rem;
  }
  
  .interview-title-on-video {
    font-size: 0.7rem;
    padding: 10px 6px 8px;
    line-height: 1.3;
  }
  
  .interview-title-overlay {
    bottom: -1px;
  }
}

/* Interview Modal (Fullscreen like Instagram Stories) */
.interview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interview-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.interview-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.interview-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
}

.interview-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.interview-modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 100px;
}

.interview-modal-video-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  max-height: 711px; /* 9:16 ratio for 400px width */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.interview-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.interview-modal-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Title Overlay with Gradient - чуть выше над плеером */
.interview-modal-title-overlay {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 10001;
  pointer-events: none;
}

.interview-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0;
  padding: 12px 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  border-radius: 8px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Modal Actions - справа от видео */
.interview-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

/* Navigation arrows */
.interview-modal-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.interview-modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) scale(1.1);
}

.interview-modal-nav-up {
  top: 20px;
}

.interview-modal-nav-down {
  bottom: 20px;
}

.interview-modal-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 80px;
  min-height: 80px;
}

.interview-modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

  .interview-modal-action-btn i {
    font-size: 1.1rem;
  }

.interview-modal-like-btn.liked {
  background: rgba(245, 87, 108, 0.8);
  border-color: #f5576c;
}

.interview-modal-like-btn.liked:hover {
  background: rgba(245, 87, 108, 0.9);
}

.interview-modal-like-btn.liked i {
  color: white;
}

.like-count {
  font-weight: 700;
}

@media (max-width: 768px) {
  .interview-modal-title {
    font-size: 1rem;
    padding: 10px 14px;
    bottom: 50px;
  }
  
  .interview-modal-title-overlay {
    bottom: 50px;
  }
  
  .interview-modal-actions {
    gap: 0.75rem;
  }
  
  .interview-modal-action-btn {
    padding: 10px 14px;
    font-size: 0.75rem;
    min-width: 70px;
    min-height: 70px;
  }
  
  .interview-modal-action-btn i {
    font-size: 1rem;
  }
  
  .interview-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .interview-modal-video-wrapper {
    padding: 70px 20px 140px 20px;
    gap: 20px;
    flex-direction: column;
  }
  
  .interview-modal-video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .interview-modal-actions {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 1.25rem;
    justify-content: center;
    width: auto;
  }
  
  .interview-modal-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .interview-modal-nav-up {
    top: 15px;
  }
  
  .interview-modal-nav-down {
    bottom: 15px;
  }
}

@media (max-width: 576px) {
  .interview-modal-title {
    font-size: 0.9rem;
    padding: 8px 12px;
    bottom: 45px;
  }
  
  .interview-modal-title-overlay {
    bottom: 45px;
  }
  
  .interview-modal-actions {
    gap: 0.5rem;
  }
  
  .interview-modal-action-btn {
    padding: 8px 12px;
    font-size: 0.7rem;
    min-width: 60px;
    min-height: 60px;
    gap: 0.3rem;
  }
  
  .interview-modal-action-btn i {
    font-size: 0.9rem;
  }
  
  .interview-modal-video-wrapper {
    padding: 60px 15px 120px 15px;
    gap: 15px;
    flex-direction: column;
  }
  
  .interview-modal-video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .interview-modal-actions {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    width: auto;
  }
  
  .interview-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .interview-modal-nav-up {
    top: 10px;
  }
  
  .interview-modal-nav-down {
    bottom: 10px;
  }
}

