.mfwa-yt-container {
    display: flex;
    flex-wrap: wrap;
    background: #111;
    color: #fff;
    border: 1px solid #222;
    /* NEW: Slightly rounded corners and hidden overflow to maintain the shape */
    border-radius: 8px;
    overflow: hidden;
    /* Optional: Add a subtle shadow for depth */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mfwa-yt-player {
    flex: 2;
    min-width: 320px;
    /* Ensure the player background matches if iframe takes a moment to load */
    background: #000; 
}

.mfwa-iframe-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.mfwa-iframe-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mfwa-yt-sidebar {
    flex: 1;
    min-width: 280px;
    /* Important: match player height on desktop to avoid empty space below list */
    max-height: 500px; 
    display: flex;
    flex-direction: column;
    background: #000;
    border-left: 1px solid #222;
}

.mfwa-sidebar-title {
    background: #d32f2f; /* MFWA Red */
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mfwa-list-wrapper {
    overflow-y: auto;
    height: 100%; /* Fill remaining space */
}

.mfwa-video-item {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mfwa-video-item:hover, .mfwa-video-item.active {
    background: #222;
}

/* Remove border from the last item for a cleaner look */
.mfwa-video-item:last-child {
    border-bottom: none;
}

.mfwa-thumb {
    flex: 0 0 110px; /* Slightly wider for better aspect ratio */
    margin-right: 12px;
    position: relative;
}

.mfwa-thumb img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: slight round on thumbnails too */
    border-radius: 4px;
}

.mfwa-details {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    /* Limit title to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #e0e0e0;
}

.mfwa-video-item.active .mfwa-details {
    color: #fff;
    font-weight: 600;
}

/* Custom Scrollbar for the list */
.mfwa-list-wrapper::-webkit-scrollbar { width: 6px; }
.mfwa-list-wrapper::-webkit-scrollbar-track { background: #111; }
.mfwa-list-wrapper::-webkit-scrollbar-thumb { background: #d32f2f; border-radius: 3px; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .mfwa-yt-container {
        border-radius: 0; /* Often looks better squared on small mobile screens */
        border: none;
    }
    
    .mfwa-yt-sidebar {
        max-height: 400px; /* Limit height on mobile stack */
        border-left: none;
        border-top: 1px solid #222;
    }
}