/* ===== Video Playlist Layout ===== */

.fjp-playlist-wrapper {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Main Video Player Section */
.fjp-playlist-main {
    flex: 2;
    min-width: 0;
}

.fjp-playlist-player {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fjp-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.fjp-main-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.fjp-player-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.fjp-player-info:hover {
    background: #f5f5f5;
}

.fjp-player-info:hover .fjp-player-title,
.fjp-player-info:hover .fjp-player-author {
    color: #0073aa;
}

.fjp-player-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fjp-player-title:hover {
    color: #0073aa;
}

.fjp-player-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fjp-player-author {
    font-size: 13px;
    color: #666;
}

.fjp-player-author strong {
    color: #333;
    font-weight: 600;
}

/* Playlist Sidebar */
.fjp-playlist-sidebar {
    max-height: 500px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fjp-playlist-title {
    padding-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #f5f5f5;
}

.fjp-playlist-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Playlist Item */
.fjp-playlist-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.fjp-playlist-item:hover {
    background: #f9f9f9;
}

.fjp-playlist-item.active {
    background: #e7f3ff;
    border-left-color: #0073aa;
}

.fjp-playlist-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    background-color: #e0e0e0;
}

.fjp-playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fjp-playlist-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f5f5 25%, #e0e0e0 25%, #e0e0e0 50%, #f5f5f5 50%, #f5f5f5 75%, #e0e0e0 75%);
    background-size: 8px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.fjp-playlist-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fjp-playlist-item-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fjp-playlist-item-author {
    margin: 0;
    font-size: 11px;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar styling */
.fjp-playlist-list::-webkit-scrollbar {
    width: 6px;
}

.fjp-playlist-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fjp-playlist-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.fjp-playlist-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .fjp-playlist-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .fjp-playlist-sidebar {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .fjp-playlist-wrapper {
        padding: 15px;
        gap: 15px;
    }
    
    .fjp-player-wrapper {
        margin-bottom: 10px;
    }
    
    .fjp-playlist-sidebar {
        max-height: 250px;
    }
    
    .fjp-player-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fjp-playlist-wrapper {
        padding: 12px;
        gap: 10px;
        border-radius: 6px;
    }
    
    .fjp-playlist-item-title {
        font-size: 11px;
    }
    
    .fjp-playlist-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* No items message */
.fjp-no-items {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

.fjp-no-items {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}