.video-grid {
    display: grid;
    /* 비디오 카드는 정보가 많아 더 넓은 공간(280px) 필요 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px;
    padding: 0;
    margin: 0;
}

.video-grid .card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
}

.video-grid .card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.image-wrapper {
    position: relative; 
    width: 100%; 
    aspect-ratio: 16/9; /* 비디오는 16:9 비율 */
    margin-bottom: 12px;
    border-radius: 8px; 
    overflow: hidden; 
    background-color: var(--gray-light);
}
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.duration-badge {
    position: absolute; 
    bottom: 8px; 
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8); 
    color: #fff;
    padding: 3px 6px; 
    border-radius: 4px;
    font-size: 0.75rem; 
    font-weight: 600; 
    line-height: 1;
}

.video-info {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1rem; 
    font-weight: bold; 
    margin: 0 0 8px 0;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden; 
    line-height: 1.4; 
    height: 2.8em; 
    color: #222;
}

.video-meta {
    font-size: 0.85rem; 
    color: #777; 
    margin: 0 0 10px 0;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.channel-badge { 
    color: var(--primary); 
    font-weight: 600; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.card-tags {
    margin-bottom: 15px; 
    font-size: 0.75rem; 
    color: #888;
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.no-result {
    text-align: center; 
    width: 100%; 
    grid-column: 1 / -1;
    padding: 50px 0; 
    color: #888;
}