/* YouTube Playlist Block Styles */

.youtube-playlist-container {
    max-width: 800px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #21262d;
    border: solid 1px #384455;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.light_theme .playlist-item {
    background: #eff5fa;
    border: solid 1px #C6CDD9;
}

.light_theme .playlist-item:hover {
    background: #e2e8ec;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.playlist-item:hover {
    background: #2d333b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.item-number {
    font-weight: bold;
    font-size: 14px;
    color: #656d76;
    margin-right: 16px;
    min-width: 20px;
    text-align: center;
}

.item-thumbnail {
    position: relative;
    margin-right: 16px;
    flex-shrink: 0;
}

.item-thumbnail img {
    width: 150px !important;
    height: 90px;
    object-fit: cover;
    border-radius: 6px !important;
    margin: 0 !important;
    display: block;
}

.duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px !important;
    font-weight: 600;
    color: #24292f;
    margin: 0 0 6px 0;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-title a {
    color: #fff !important;
    text-decoration: none !important;
    display: block;
}

.light_theme .item-title a {
    color: #1B232F !important;
}

.item-thumbnail a {
    display: block;
    position: relative;
}


/* Live Schedule Block Styles */
.youtube-live-schedule .live-schedule-item {
    position: relative;
}

.live-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ff0000;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.item-schedule {
    font-size: 13px;
    color: #656d76;
    margin-top: 4px;
    font-weight: 500;
    line-height: normal;
}

.light_theme .item-schedule  {
    color: #1B232F !important;
}

.item-channel {
    font-size: 14px;
    color: #656d76;
    margin: 0;
    font-weight: 400;
}

.youtube-playlist-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 16px;
    color: #c53030;
    font-size: 14px;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .playlist-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .item-number {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(0,0,0,0.7);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .item-thumbnail {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .item-thumbnail img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
