.tag-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.tag-tab {
    padding: 0px 20px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-tab:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.tag-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 50px 0;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.play-button img {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

.video-item:hover .play-button {
    opacity: 1;
}

.video-info {
    padding: 15px;
}


.video-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.video-meta span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.no-videos {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    grid-column: 1 / -1;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tag-tabs {
        gap: 8px;
    }
    
    .tag-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .video-description {
        font-size: 13px;
    }
    
    .video-meta {
        font-size: 11px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .video-grid {
        gap: 12px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-info {
        padding: 10px;
    }
}