/* Enhanced carousel styling for single prominent stream display */
.live-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.live-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Prominent single stream slide - Enhanced responsive layout */
.live-slide-prominent {
  position: relative;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  background: linear-gradient(135deg, #1f2837 0%, #2a3448 100%);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 200px;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Tablet and desktop layout - two columns */
@media (min-width: 768px) {
  .live-slide-prominent {
    flex-direction: row;
    min-height: 280px;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Large desktop - adjust column ratio */
@media (min-width: 1200px) {
  .live-slide-prominent {
    grid-template-columns: 3fr 2fr;
    min-height: 320px;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.live-slide-prominent:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Prominent thumbnail - Left column */
.live-slide-prominent .thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
}

@media (min-width: 768px) {
  .live-slide-prominent .thumb {
    min-height: 280px;
  }
}

@media (min-width: 1200px) {
  .live-slide-prominent .thumb {
    min-height: 320px;
  }
}

.live-slide-prominent .thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 50%);
  z-index: 1;
}

/* Live indicator badge */
.live-slide-prominent .thumb::after {
  content: '● LIVE';
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Prominent metadata - Right column */
.live-slide-prominent .meta {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1;
  grid-row: 2;
  background: rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .live-slide-prominent .meta {
    padding: 30px;
    grid-column: 2;
    grid-row: 1;
    background: transparent;
    align-self: center;
  }
}

@media (min-width: 1200px) {
  .live-slide-prominent .meta {
    padding: 40px;
  }
}

.live-slide-prominent .title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .live-slide-prominent .title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1200px) {
  .live-slide-prominent .title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
}

.live-slide-prominent .channel {
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .live-slide-prominent .channel {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
}

.live-slide-prominent .game-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .live-slide-prominent .game-info {
    gap: 16px;
  }
}

.live-slide-prominent .badge {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
}

.live-slide-prominent .viewers {
  font-size: 0.9rem;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-slide-prominent .viewers::before {
  content: '👁';
  font-size: 0.8rem;
}

/* Stream position indicators */
.stream-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.stream-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.stream-indicator.active {
  background: #007bff;
  transform: scale(1.2);
}

.stream-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Navigation buttons enhancement */
#carousel-prev, #carousel-next {
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#carousel-prev:hover, #carousel-next:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
  transform: scale(1.1);
}

#carousel-prev:disabled, #carousel-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Skeleton styles for prominent layout */
.is-skeleton { 
  animation: pulse 1.4s ease-in-out infinite; 
}

.prominent-thumb-skeleton {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #2a3448;
  border-radius: 0;
  grid-column: 1;
  grid-row: 1;
}

@media (min-width: 768px) {
  .prominent-thumb-skeleton {
    min-height: 280px;
  }
}

@media (min-width: 1200px) {
  .prominent-thumb-skeleton {
    min-height: 320px;
  }
}

.prominent-meta-skeleton {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1;
  grid-row: 2;
  background: rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .prominent-meta-skeleton {
    padding: 30px;
    grid-column: 2;
    grid-row: 1;
    background: transparent;
    align-self: center;
  }
}

@media (min-width: 1200px) {
  .prominent-meta-skeleton {
    padding: 40px;
  }
}

.line-skeleton {
  height: 16px;
  background: #2a3448;
  border-radius: 4px;
  margin-bottom: 8px;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }

@keyframes pulse { 
  0%, 100% { opacity: 0.6; } 
  50% { opacity: 1; } 
}

/* Smooth transitions for stream changes */
.live-slide-prominent.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.live-slide-prominent.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .live-slide-prominent {
    min-height: 300px;
  }
  
  .live-slide-prominent .thumb {
    min-height: 180px;
  }
  
  .live-slide-prominent .title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
  }
  
  .live-slide-prominent .meta {
    padding: 16px;
  }
  
  .live-slide-prominent .channel {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .live-slide-prominent .game-info {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stream-indicators {
    display: none;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .live-slide-prominent {
    min-height: 280px;
  }
  
  .live-slide-prominent .thumb {
    min-height: 160px;
  }
  
  .live-slide-prominent .meta {
    padding: 12px;
  }
  
  .live-slide-prominent .title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .live-slide-prominent .channel {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
}

/* ===== THUMBNAIL CAROUSEL STYLES ===== */

/* Thumbnail carousel container */
.live-carousel-thumbnails {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.live-carousel-thumbnails-track {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.live-carousel-thumbnails-wrapper {
  display: flex;
  transition: transform 0.3s ease;
  gap: 15px;
  width: 100%;
}

/* Individual thumbnail styles */
.live-thumb {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.live-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.live-thumb.active {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Thumbnail image */
.live-thumb .thumb-img {
  width: 100%;
  height: 120px;
  background: #2a3448;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.live-thumb .thumb-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.live-thumb:hover .thumb-img::before {
  opacity: 1;
}

/* Live indicator for thumbnails */
.live-thumb .thumb-img::after {
  content: 'LIVE';
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

/* Thumbnail metadata */
.live-thumb .thumb-meta {
  padding: 12px;
  background: #fff;
}

.live-thumb .thumb-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-thumb .thumb-channel {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0 0 4px;
  font-weight: 500;
}

.live-thumb .thumb-viewers {
  font-size: 0.7rem;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 3px;
}

.live-thumb .thumb-viewers::before {
  content: '\1F441';
  font-size: 0.65rem;
}

/* Thumbnail navigation buttons */
.thumbnail-nav-buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.thumbnail-nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 0.8;
}

.thumbnail-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
  transform: scale(1.1);
}

.thumbnail-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.thumbnail-prev {
  left: -16px;
}

.thumbnail-next {
  right: -16px;
}

/* Responsive thumbnail sizing */
/* Mobile: 2 thumbnails */
@media (max-width: 767px) {
  .live-thumb {
    width: calc(50% - 7.5px);
    min-width: calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
  }
  
  .live-carousel-thumbnails {
    padding: 10px;
    margin-top: 15px;
  }
  
  .live-carousel-thumbnails-wrapper {
    gap: 10px;
  }
  
  .live-thumb .thumb-img {
    height: 100px;
  }
  
  .live-thumb .thumb-meta {
    padding: 8px;
  }
  
  .thumbnail-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
}

/* Tablet: 3 thumbnails */
@media (min-width: 768px) and (max-width: 1199px) {
  .live-thumb {
    width: calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}

/* Desktop: 5 thumbnails */
@media (min-width: 1200px) {
  .live-thumb {
    width: calc(20% - 12px);
    min-width: calc(20% - 12px);
    max-width: calc(20% - 12px);
  }
  
  .live-carousel-thumbnails {
    padding: 20px;
  }
  
  .live-thumb .thumb-img {
    height: 140px;
  }
}

/* Skeleton styles for thumbnails */
.live-thumb.is-skeleton .thumb-img {
  background: #2a3448;
  animation: pulse 1.4s ease-in-out infinite;
}

.live-thumb.is-skeleton .thumb-meta .line-skeleton {
  height: 12px;
  background: #e9ecef;
  border-radius: 3px;
  animation: pulse 1.4s ease-in-out infinite;
}

.w-80 { width: 80%; }
.w-40 { width: 40%; }










