/* #region UtilityClasses */
/* Custom Utility Classes to Replace Tailwind in Course Video Player */

/* Container Classes */
.container-1170-video {
    max-width: 1170px;
    margin: 0 auto;
}

/* Padding Classes */
.py-8-video {
    padding-top: 32px;
    padding-bottom: 32px;
}

.px-4-video {
    padding-left: 16px;
    padding-right: 16px;
}

/* Margin Classes */
.mb-6-video {
    margin-bottom: 24px;
}

.mb-8-video {
    margin-bottom: 32px;
}

.mb-4-video {
    margin-bottom: 16px;
}

.mb-2-video {
    margin-bottom: 8px;
}

.mt-6-video {
    margin-bottom: 24px;
}

.mx-auto-video {
    margin-left: auto;
    margin-right: auto;
}

/* Typography Classes */
.text-2xl-video {
    font-size: 24px;
}

.text-3xl-video {
    font-size: 30px;
}

.text-xl-video {
    font-size: 20px;
}

.text-lg-video {
    font-size: 18px;
}

.text-sm-video {
    font-size: 14px;
}

.text-base-video {
    font-size: 16px;
}

.font-bold-video {
    font-weight: 700;
}

.text-left-video {
    text-align: left;
}

.text-center-video {
    text-align: center;
}

.text-white-video {
    color: white;
}

.text-gray-700-video {
    color: #374151;
}

.text-gray-500-video {
    color: #6b7280;
}

.leading-relaxed-video {
    line-height: 1.625;
}

/* Layout Classes */
.rounded-lg-video {
    border-radius: 8px;
}

.overflow-hidden-video {
    overflow: hidden;
}

.aspect-video-video {
    aspect-ratio: 16 / 9;
}

.relative-video {
    position: relative;
}

.absolute-video {
    position: absolute;
}

.inset-0-video {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10-video {
    z-index: 10;
}

/* Flexbox Classes */
.flex-video {
    display: flex;
}

.items-center-video {
    align-items: center;
}

.justify-center-video {
    justify-content: center;
}

.flex-col-video {
    flex-direction: column;
}

/* Grid Classes */
.grid-video {
    display: grid;
}

.grid-cols-1-video {
    grid-template-columns: repeat(1, 1fr);
}

.gap-3-video {
    gap: 12px;
}

/* Size Classes */
.w-full-video {
    width: 100%;
}

.h-full-video {
    height: 100%;
}

.w-16-video {
    width: 64px;
}

.h-16-video {
    height: 64px;
}

.w-8-video {
    width: 32px;
}

.h-8-video {
    height: 32px;
}

.w-6-video {
    width: 24px;
}

.h-6-video {
    height: 24px;
}

.w-3-video {
    width: 12px;
}

.h-3-video {
    height: 12px;
}

.max-w-md-video {
    max-width: 448px;
}

/* Background Classes */
.bg-blue-600-video {
    background-color: #2563eb;
}

.bg-white-video {
    background-color: white;
}

.bg-gray-200-video {
    background-color: #e5e7eb;
}

.bg-black-video {
    background-color: black;
}

.bg-opacity-40-video {
    background-color: rgba(0, 0, 0, 0.4);
}

.bg-opacity-10-video {
    background-color: rgba(0, 0, 0, 0.1);
}

.bg-opacity-90-video {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Border Classes */
.border-video {
    border-width: 1px;
}

.border-gray-200-video {
    border-color: #e5e7eb;
}

.rounded-full-video {
    border-radius: 9999px;
}

/* Object Fit */
.object-cover-video {
    object-fit: cover;
}

/* Cursor */
.cursor-pointer-video {
    cursor: pointer;
}

/* Hover States */
.hover-shadow-md-video:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover-opacity-100-video:hover {
    opacity: 1;
}

/* Transition */
.transition-shadow-video {
    transition: box-shadow 0.15s ease-in-out;
}

.transition-opacity-video {
    transition: opacity 0.15s ease-in-out;
}

/* Opacity */
.opacity-0-video {
    opacity: 0;
}

.opacity-50-video {
    opacity: 0.5;
}

/* Responsive Classes */
@media (min-width: 768px) {
    .md-grid-cols-2-video {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg-px-0-video {
        padding-left: 0;
        padding-right: 0;
    }
    
    .lg-text-3xl-video {
        font-size: 30px;
    }
    
    .lg-text-2xl-video {
        font-size: 24px;
    }
    
    .lg-text-xl-video {
        font-size: 20px;
    }
    
    .lg-text-base-video {
        font-size: 16px;
    }
    
    .lg-mb-12-video {
        margin-bottom: 48px;
    }
    
    .lg-mb-6-video {
        margin-bottom: 24px;
    }
}

/* Margin Right */
.mr-1-video {
    margin-right: 4px;
}

/* Padding Y */
.py-12-video {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* #endregion */

/* #region CourseVideoPlayer */

.course-video-page {
    min-height: 60vh;
}

.course-title-section {
    margin-bottom: 1.5rem;
}

.course-main-title {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.3;
    text-align: left;
	
}

.main-video-section {
    margin-bottom: 2rem;
}

.video-player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

#main-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#main-video-player iframe,
#main-video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-main-thumbnail img {
    height: 100%;
}
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.play-button {
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}

.video-info {
    padding: 1rem 0;
}

.video-title {
    color: #1f2937;
    line-height: 1.3;
}

.video-description {
    color: #6b7280;
    line-height: 1.6;
}

.video-playlist-section {
    margin-top: 2rem;
}

.playlist-title {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.video-playlist-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.video-playlist-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.video-playlist-item.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.video-thumb-wrapper {
    position: relative;
    background: #f3f4f6;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumb-wrapper img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    object-position: top center;
}

.video-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.video-item-title {
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item-meta {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.75rem;
}

.no-videos-state {
    padding: 3rem 1rem;
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    z-index: 20;
}

.video-error button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-error button:hover {
    background: #1d4ed8;
}

/* Video Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 15;
}

.video-loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-video-page {
        padding: 1rem 0;
    }
    
    .course-main-title {
        font-size: 24px;
    }
    
    .main-video-section {
        margin-bottom: 1.5rem;
    }
    
    .video-placeholder {
        min-height: 200px;
    }
    
    .video-error {
        padding: 15px;
        font-size: 14px;
    }
    
    .video-error button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .play-button {
        width: 3rem;
        height: 3rem;
    }
    
    .video-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .video-description {
        font-size: 0.875rem;
    }
    
    .playlist-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .video-playlist-item {
        gap: 8px;
        padding: 8px;
    }
    
    .video-thumb-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .video-thumb-wrapper img {
        width: 40px;
        height: 40px;
    }
    
    .video-item-title {
        font-size: 0.8125rem;
    }
    
    .video-item-meta {
        font-size: 0.6875rem;
    }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    .video-placeholder {
        min-height: 400px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 1rem;
    }
    
    .playlist-title {
        font-size: 1.25rem;
    }
    
    .video-playlist-grid {
        gap: 1rem;
    }
}

/* #endregion */ 