* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

.playlist-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.video-player {
    flex: 2;
    background-color: transparent;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.video-player video {
    aspect-ratio: 16/9;
    border-radius: 8px 8px 0 0;
}

.video-player video {
    width: 100%;
    object-fit: contain;
    background-color: #000;
    flex: 0 0 auto;
    border-radius: 8px 8px 0 0;
}

.video-description {
    padding: 10px 15px;
    background-color: #f8f9fa;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    flex: 0 0 auto;
}

.video-description a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.video-description a:hover {
    text-decoration: underline;
}

.video-list {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

.video-list h2 {
    margin-bottom: 20px;
    color: #000;
    font-size: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background-color: #e8e8e8;
    transform: translateX(5px);
}

.playlist-item.active {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.playlist-item .item-number {
    width: 40px;
    height: 40px;
    background-color: #2196f3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.playlist-item.active .item-number {
    background-color: #1976d2;
    box-shadow: 0 0 0 2px #e3f2fd;
}

.playlist-item .item-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #f5f5f5;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.playlist-item .item-info {
    flex: 1;
}

.playlist-item .item-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item .item-duration {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 12px;
    background-color: transparent;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    color: #666;
    text-decoration: underline;
}

.footer .separator {
    margin: 0 10px;
}

/* Global Descriptions */
.global-descriptions {
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    margin-top: 0;
    border-top: 1px solid #e0e0e0;
}

.global-descriptions h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.global-description-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.global-description-item:last-child {
    border-bottom: none;
}

.global-description-item a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.global-description-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playlist-container {
        flex-direction: column;
        height: auto;
    }
    
    .video-player {
        height: 400px;
    }
    
    .video-list {
        max-height: 300px;
    }
    
    .footer {
        padding: 15px;
        font-size: 11px;
    }
    
    .footer .separator {
        margin: 0 8px;
    }
}