/* Interviews Block Styles */
.interviews-block {
  margin-bottom: 2rem;
}

.interviews-header-wrapper {
  margin-bottom: 1rem;
}

.interviews-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(124, 58, 237, 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, компактные превью */
.interview-card {
  flex: 0 0 auto;
  width: 155px;
  background: #fff;
  border-radius: 10px;
  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, #7c3aed 0%, #060c1c 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: 140px;
  }
  
  .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: 128px;
  }
  
  .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);
}

/* Таймлайн сверху — по ширине видео (как в Instagram Stories) */
.interview-modal-timeline {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 90vh * 9 / 16);
  min-width: 180px;
  max-width: 100%;
  z-index: 10001;
  padding: 14px 12px 10px;
  pointer-events: none;
  box-sizing: border-box;
}

.interview-modal-timeline-track {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
}

.interview-timeline-segment {
  flex: 1;
  height: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.interview-timeline-segment-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.interview-modal-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 60px;
}

/* Контейнер 9:16 (вертикальный reel) */
.interview-modal-video-container {
  position: relative;
  width: min(92vw, 90vh * 9 / 16);
  height: min(90vh, 92vw * 16 / 9);
  min-height: 320px;
  min-width: 180px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.interview-modal-video-container #interviewModalVideoPlaceholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.interview-modal-two-wraps {
  position: relative;
}

.interview-modal-two-wraps .interview-modal-video-next-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 0;
}

.interview-modal-two-wraps .interview-modal-video-next-wrap.interview-modal-wrap-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.interview-modal-video-next-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.interview-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Plyr player in modal — заполняет контейнер, скругление */
.interview-modal-video-container #interviewModalVideoPlaceholder .plyr,
.interview-modal-video-container .interview-modal-video-next-wrap .plyr {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}
.interview-modal-video-container .plyr__video-wrapper,
.interview-modal-video-container .plyr__video-embed {
  height: 100%;
}
.interview-modal-video-container .plyr iframe {
  height: 100%;
}
.interview-modal-video-container .plyr--video {
  height: 100%;
}
.interview-modal-video-container .plyr__poster {
  background-size: cover;
}

/* Скрываем нижнюю панель: play, timeline, время, громкость */
.interview-modal-video-container .plyr__controls {
  display: none !important;
}

.interview-modal-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Текст внизу — больше текста */
.interview-modal-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  pointer-events: none;
  padding: 22px 64px 28px 18px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.interview-modal-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.45;
  word-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопки на видео справа — крупнее */
.interview-modal-video-container .interview-modal-actions {
  position: absolute;
  right: 12px;
  bottom: 100px;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  z-index: 10002;
}

/* Кнопки по бокам — предыдущее / следующее видео */
.interview-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.interview-modal-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.interview-modal-nav-prev {
  left: 16px;
}

.interview-modal-nav-next {
  right: 16px;
}

.interview-modal-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.interview-modal-action-btn:hover {
  opacity: 0.95;
  transform: scale(1.08);
}

.interview-modal-action-btn i {
  font-size: 2rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.interview-modal-action-count,
.interview-modal-action-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.interview-modal-like-btn.liked {
  color: #ff2d55;
}

.interview-modal-like-btn.liked i {
  color: #ff2d55;
}

.interview-modal-like-btn.liked:hover {
  color: #ff4d6a;
}

.like-count {
  font-weight: 600;
}

/* Скрыть количество лайков в блоке Intervijas un momenti */
#interviewModalLikeCount,
.interview-modal-actions .like-count {
  display: none !important;
}

@media (max-width: 768px) {
  .interview-modal-title-overlay {
    padding: 18px 52px 22px 14px;
  }
  
  .interview-modal-title {
    font-size: 1.05rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  
  .interview-modal-video-container .interview-modal-actions {
    right: 10px;
    bottom: 90px;
    gap: 20px;
  }
  
  .interview-modal-action-btn i {
    font-size: 1.75rem;
  }
  
  .interview-modal-action-count,
  .interview-modal-action-label {
    font-size: 0.75rem;
  }
  
  .interview-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .interview-modal-timeline {
    width: min(92vw, 90vh * 9 / 16);
    min-width: 180px;
    padding: 12px 10px 8px;
  }
  
  .interview-modal-video-wrapper {
    padding: 70px 20px 140px 20px;
    gap: 20px;
    flex-direction: column;
  }
  
  .interview-modal-video-container {
    width: min(92vw, 90vh * 9 / 16);
    max-width: 100%;
    height: min(90vh, 92vw * 16 / 9);
    margin: 0 auto;
  }
  
  .interview-modal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .interview-modal-nav-prev {
    left: 12px;
  }
  
  .interview-modal-nav-next {
    right: 12px;
  }
}

@media (max-width: 576px) {
  .interview-modal-timeline {
    width: min(92vw, 90vh * 9 / 16);
    min-width: 180px;
    padding: 10px 8px 6px;
  }
  
  .interview-modal-title-overlay {
    padding: 16px 48px 18px 12px;
  }
  
  .interview-modal-title {
    font-size: 1rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .interview-modal-video-container .interview-modal-actions {
    right: 8px;
    bottom: 75px;
    gap: 18px;
  }
  
  .interview-modal-action-btn i {
    font-size: 1.6rem;
  }
  
  .interview-modal-action-count,
  .interview-modal-action-label {
    font-size: 0.7rem;
  }
  
  .interview-modal-video-wrapper {
    padding: 60px 15px 120px 15px;
    gap: 15px;
    flex-direction: column;
  }
  
  .interview-modal-video-container {
    width: min(92vw, 90vh * 9 / 16);
    max-width: 100%;
    height: min(90vh, 92vw * 16 / 9);
    margin: 0 auto;
  }
  
  .interview-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .interview-modal-nav-prev {
    left: 8px;
  }
  
  .interview-modal-nav-next {
    right: 8px;
  }
}

