/* YouTube Channel Widget */

.ytcw-grid {
    display: grid;
    width: 100%;
}
.ytcw-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ytcw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ytcw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ytcw-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .ytcw-cols-3, .ytcw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ytcw-cols-1, .ytcw-cols-2, .ytcw-cols-3, .ytcw-cols-4 { grid-template-columns: 1fr; }
}

.ytcw-card {
    display: flex;
    flex-direction: column;
    border-radius: 0px !important;
    overflow: hidden;
    background: rgba(0, 0, 0, 0) !important;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.ytcw-thumb-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 16px !important;
}
.ytcw-thumb {
    position: absolute;
    inset: -15% 0;
    width: 100%; 
    height: 100%;
    transform: scale(1.05);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0 !important;
}
.ytcw-card:hover .ytcw-thumb { transform: scale(1.1); }

.ytcw-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.ytcw-card:hover .ytcw-play-overlay { opacity: 1; }
.ytcw-play-overlay svg {
    width: 52px; height: 36px;
    color: #FF0000;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}
.ytcw-card:hover .ytcw-play-overlay svg { transform: scale(1.1); }

.ytcw-card-body {
    padding: 10px 14px 14px;
    flex: 1;
}
.ytcw-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff !important;
    transition: color 0.15s;
}
.ytcw-card:hover .ytcw-title { color: #FF0000; }

.ytcw-placeholder {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: #aaa;
}
.ytcw-placeholder .eicon-youtube { font-size: 36px; display: block; margin-bottom: 8px; color: #FF0000; }
.ytcw-error { color: #c00; font-size: 0.9rem; }
