
.ytg-container {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.ytg-columns-1 { grid-template-columns: 1fr; }
.ytg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ytg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ytg-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .ytg-columns-2, .ytg-columns-3, .ytg-columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ytg-columns-3, .ytg-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ytg-video-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ytg-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ytg-video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.ytg-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytg-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.ytg-play-button:hover {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.ytg-video-info {
    padding: 15px;
}

.ytg-video-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.ytg-video-channel {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.ytg-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.ytg-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ytg-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.ytg-close:hover {
    opacity: 0.7;
}

#ytg-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#ytg-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ytg-error, .ytg-no-results {
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.ytg-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.ytg-no-results {
    background-color: #fef9e7;
    color: #8a6d3b;
    border-left: 4px solid #f0ad4e;
}
