.wp-block-fifty-plus-youtube-embedded {
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
}
.fpbe-yt-inner {
    width: 100%;
}
.fpbe-yt-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 40px;
}
.fpbe-yt-top-left h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}
.fpbe-yt-top-right p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.fpbe-yt-browser {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
}
.fpbe-yt-browser-header {
    background: #f9f9f9;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.fpbe-yt-dots {
    display: flex;
    gap: 6px;
}
.fpbe-yt-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
}
.fpbe-yt-dots span:nth-child(1) { background: #ff5f56; }
.fpbe-yt-dots span:nth-child(2) { background: #ffbd2e; }
.fpbe-yt-dots span:nth-child(3) { background: #27c93f; }

.fpbe-yt-address {
    background: #fff;
    border-radius: 6px;
    padding: 6px 15px;
    font-size: 12px;
    color: #666;
    flex-grow: 1;
    max-width: 300px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
}
.fpbe-yt-browser-body {
    display: flex;
    flex-wrap: wrap;
}
.fpbe-yt-video-area {
    flex: 1.5;
    min-width: 300px;
    position: relative;
    border-right: 1px solid #eaeaea;
}
.fpbe-yt-iframe-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
}
.fpbe-yt-video-titles {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    text-align: left;
}
.fpbe-yt-title-main {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.fpbe-yt-title-sub {
    font-size: 13px;
    opacity: 0.9;
}
.fpbe-yt-meta {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    z-index: 2;
}
.fpbe-yt-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.fpbe-yt-meta-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
}
.fpbe-yt-duration {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    background: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 12px;
}
.fpbe-yt-list-area {
    flex: 1;
    min-width: 280px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.fpbe-yt-list-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}
.fpbe-yt-list {
    flex-grow: 1;
}
.fpbe-yt-list-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.fpbe-yt-list-item:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}
.fpbe-yt-list-num {
    font-size: 16px;
    font-weight: 800;
    color: #f07c55;
    padding-top: 2px;
}
.fpbe-yt-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.fpbe-yt-icon {
    font-size: 14px;
}
.fpbe-yt-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}
.fpbe-yt-item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
.fpbe-yt-btn {
    width: 100%;
    background: #f07c55;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.fpbe-yt-btn:hover {
    background: #e06b44;
}

/* POPUP OVERLAY */
.fpbe-yt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fpbe-yt-popup-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fpbe-popup-fadein 0.3s ease;
    border-top: 6px solid #f07c55;
}
.fpbe-yt-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    color: #164b55;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.fpbe-yt-popup-close:hover {
    background: #f07c55;
    color: #fff;
}
.fpbe-yt-popup-heading {
    font-size: 26px;
    font-weight: 800;
    color: #164b55;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}
.fpbe-yt-popup-form {
    margin-top: 20px;
}
@keyframes fpbe-popup-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .fpbe-yt-top {
        flex-direction: column;
        gap: 15px;
    }
    .fpbe-yt-browser-body {
        flex-direction: column;
    }
    .fpbe-yt-video-area {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    .fpbe-yt-list-area {
        flex: none;
        width: 100%;
        padding: 20px;
    }
}
