/* Tutorial page */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.video-player-wrapper:hover {
    box-shadow: 0 20px 25px -5px rgba(var(--bs-primary-rgb), 0.3);
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.playlist-header {
    background-color: var(--bs-primary);
    color: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.playlist-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background-color: var(--gray-100);
}

.playlist-item.current-video {
    background-color: var(--indigo-50);
    border-color: var(--indigo-200);
}

.thumbnail-container {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.playing-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(79, 70, 229, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}
