/* Main container for the video player and playlist */
.ylv-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #181818;
    color: #fff;
    max-width: 900px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Wrapper to maintain 16:9 aspect ratio for the video player */
.ylv-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.ylv-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Playlist styles */
.ylv-playlist {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

/* Individual playlist item styles */
.ylv-playlist-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.ylv-playlist-item:hover,
.ylv-playlist-item.active {
    background-color: #383838;
}

.ylv-playlist-item img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.ylv-video-info {
    display: flex;
    flex-direction: column;
}

.ylv-video-info .ylv-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* Scrollbar styles for a modern look */
.ylv-playlist::-webkit-scrollbar {
    width: 8px;
}

.ylv-playlist::-webkit-scrollbar-track {
    background: #282828;
}

.ylv-playlist::-webkit-scrollbar-thumb {
    background-color: #555;
}

