/* Isolated Stylesheet for Homepage Video Component */
#homepage-video-shelf {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px auto 25px auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    clear: both;
}

.video-shelf-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.video-shelf-header h3 {
    margin: 0 0 6px 0;
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
}

.yt-icon-inline {
    color: #ff0000;
    margin-right: 4px;
}

.video-shelf-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Flexbox Symmetrical Grid Mapping */
.video-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video-card {
    flex: 1;
    min-width: 280px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.video-card h4 {
    margin: 12px 0 2px 0;
    font-size: 1rem;
    color: #334155;
    text-align: center;
    font-weight: 600;
}

/* Response 16:9 Aspect Ratio Container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .video-grid-container {
        flex-direction: column;
    }
    .video-card {
        width: 100%;
    }
}
