.vgs-container {
    padding: 24px;
    background-color: #0c0f1d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
}

/* Featured Player Area */
.vgs-player-outer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vgs-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vgs-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

.vgs-embed-container.changing {
    opacity: 0;
}

.vgs-embed-container iframe,
.vgs-embed-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.vgs-editor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    background: #111;
}

.vgs-player-info {
    padding: 4px 8px;
}

.vgs-main-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.vgs-main-desc {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.5;
}

/* Thumbnails list default (Desktop) */
.vgs-thumbnails-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars on modern browsers for clean touch UI */
.vgs-thumbnails-outer::-webkit-scrollbar {
    display: none;
}
.vgs-thumbnails-outer {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.vgs-thumbnails-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.vgs-thumb-item {
    cursor: pointer;
    user-select: none;
}

.vgs-thumb-card {
    display: flex;
    flex-direction: column;
    background: #151a30;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    overflow: hidden;
    height: 100%;
}

.vgs-thumb-img-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    background-color: #000;
    overflow: hidden;
}

.vgs-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vgs-thumb-item:hover .vgs-thumb-img {
    transform: scale(1.05);
}

.vgs-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: background 0.2s ease;
}

.vgs-play-overlay i,
.vgs-play-overlay svg {
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.vgs-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.vgs-thumb-info {
    padding: 12px;
}

.vgs-thumb-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE LAYOUTS */

/* Tablets */
@media (max-width: 1024px) {
    .vgs-thumbnails-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .vgs-thumb-item {
        flex: 0 0 calc(33.333% - 11px);
        scroll-snap-align: start;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .vgs-container {
        padding: 12px;
    }
    .vgs-thumbnails-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .vgs-thumb-item {
        flex: 0 0 calc(50% - 8px);
        scroll-snap-align: start;
    }
}
