/* Video Player Container */
.elp-video-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Main Player */
.elp-main-player {
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.elp-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.elp-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Info */
.elp-video-info {
    padding: 20px;
    background: #fff;
}

.elp-video-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.elp-video-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Playlist */
.elp-playlist {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.elp-playlist-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.elp-playlist-grid {
    display: grid;
    gap: 20px;
}

.elp-playlist-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.elp-playlist-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.elp-playlist-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Playlist Item */
.elp-playlist-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.elp-playlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.elp-playlist-item.active {
    border: 2px solid #0073aa;
    transform: scale(1.02);
}

.elp-playlist-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: #ddd;
}

.elp-playlist-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.elp-playlist-item:hover .elp-play-button {
    background: #0073aa;
}

.elp-play-button .dashicons {
    color: #fff;
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.elp-playlist-info {
    padding: 15px;
}

.elp-playlist-video-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Loading State */
.elp-player-wrapper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: elp-spin 1s linear infinite;
}

@keyframes elp-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .elp-playlist-grid.columns-3,
    .elp-playlist-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .elp-video-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .elp-playlist-grid.columns-2,
    .elp-playlist-grid.columns-3,
    .elp-playlist-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .elp-video-title {
        font-size: 18px;
    }
}