/* =========================================
   YOUTUBE PANEL CSS
   ========================================= */

.youtube-panel {
    padding: 0;
}

.youtube-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
}

.youtube-panel-header i {
    font-size: 24px;
}

.youtube-panel-body {
    padding: 16px 0px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Loading */
.youtube-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
    gap: 12px;
}

.youtube-loading i {
    font-size: 32px;
    color: #ff0000;
}

/* Error */
.youtube-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #ef4444;
    text-align: center;
    gap: 12px;
}

.youtube-error i {
    font-size: 32px;
}

/* Video List */
.youtube-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Video Card */
.youtube-video-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    color: inherit;
}

.youtube-video-card:hover {
    background: #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.youtube-video-thumb {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.youtube-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-video-thumb .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.youtube-video-card:hover .play-overlay {
    opacity: 1;
}

.youtube-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.youtube-video-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    margin-top: auto;
}

.youtube-video-meta i {
    font-size: 10px;
}

/* Channel Info */
.youtube-channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.youtube-channel-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.youtube-channel-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.youtube-channel-count {
    font-size: 12px;
    color: #64748b;
}

/* Video Modal */
.youtube-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.youtube-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.youtube-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.youtube-modal-content {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.youtube-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 480px) {
    .youtube-video-card {
        flex-direction: column;
    }

    .youtube-video-thumb {
        width: 100%;
        height: 160px;
    }
}

