.lesson-detail-modal {
  max-width: 1100px;
  width: 100%;
  max-height: none;
  overflow-y: visible;
}

.lesson-detail__content {
  padding: 0;
}

.modal__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, 
    rgba(18, 19, 29, 0.98) 0%, 
    rgba(10, 14, 26, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  padding: 28px 32px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal__header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal__close {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modal__close:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
}

.modal__content {
  padding: 32px;
}

.lesson-detail__video-embed {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(139, 92, 246, 0.2),
    0 0 40px rgba(139, 92, 246, 0.15);
  position: relative;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-detail__video-embed:hover {
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(139, 92, 246, 0.3),
    0 0 60px rgba(139, 92, 246, 0.25);
  transform: translateY(-4px) translateZ(0);
}

.lesson-detail__video-embed::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.3) 0%, 
    rgba(6, 182, 212, 0.2) 50%,
    rgba(139, 92, 246, 0.3) 100%
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(20px);
}

.lesson-detail__video-embed:hover::before {
  opacity: 1;
}

.lesson-detail__video-embed iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: none;
}

.lesson-video-progress {
  margin-top: -8px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.05) 100%
  );
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-top: none;
}

.lesson-video-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lesson-video-progress__label {
  font-size: 0.85rem;
  color: rgba(155, 163, 175, 0.9);
  font-weight: 500;
}

.lesson-video-progress__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(155, 163, 175, 0.75);
}

.lesson-video-progress__stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lesson-video-progress__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.lesson-video-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.lesson-video-progress__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.lesson-detail__description {
  margin-bottom: 32px;
  padding: 24px 24px 24px 60px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.05) 0%, 
    rgba(6, 182, 212, 0.03) 100%
  );
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  border-radius: 12px;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.9);
  font-size: 1.05rem;
  white-space: pre-wrap;
  position: relative;
}

.lesson-detail__description::before {
  content: '📖';
  position: absolute;
  left: 20px;
  top: 24px;
  font-size: 1.8rem;
  opacity: 0.7;
}

.lesson-detail__materials {
  margin-top: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lesson-detail__materials h3 {
  margin: 0 0 24px 0;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-detail__materials h3::before {
  content: '📚';
  font-size: 1.5rem;
}

.lesson-materials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lesson-material-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lesson-material-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.lesson-material-item:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15) 0%, 
    rgba(6, 182, 212, 0.1) 100%
  );
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.lesson-material-item:hover::before {
  width: 4px;
}

.lesson-material-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.lesson-material-item__content {
  flex: 1;
  min-width: 0;
}

.lesson-material-item__title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.lesson-material-item__description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(155, 163, 175, 0.85);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-material-item__size {
  font-size: 0.85rem;
  color: rgba(139, 92, 246, 1);
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  flex-shrink: 0;
}

.lesson-detail__actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .lesson-detail-modal {
    max-width: 100%;
  }
  
  .modal__content {
    padding: 20px;
  }
  
  .lesson-detail__video-embed iframe {
    height: 300px;
  }
  
  .lesson-material-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .lesson-material-item__size {
    align-self: flex-start;
  }
}

.lesson-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.lesson-detail__type,
.lesson-detail__duration {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lesson-detail__type {
  color: #06b6d4;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.lesson-detail__type::before {
  content: '🎥';
  font-size: 1rem;
}

.lesson-detail__duration {
  color: #8b5cf6;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.lesson-detail__duration::before {
  content: '⏱️';
  font-size: 1rem;
}

.lesson-detail__description {
  margin-bottom: 24px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.85);
}

.lesson-detail__video {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.lesson-detail__video p {
  margin: 0 0 16px 0;
  color: rgba(248, 250, 252, 0.7);
}

.lesson-detail__actions {
  display: flex;
  justify-content: flex-end;
}
.modal__header-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-progress-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-progress-indicator__text {
  font-size: 0.8rem;
  color: rgba(155, 163, 175, 0.75);
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-progress-indicator__bar {
  flex: 1;
  max-width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.lesson-progress-indicator__fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.lesson-navigation > div:last-child {
  justify-self: end;
}

.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lesson-nav-btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lesson-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .lesson-navigation > div {
    justify-self: stretch !important;
  }
  
  .lesson-navigation button {
    width: 100%;
    justify-content: center;
  }
}
