/* ===== VIDEO GALLERY — tema cantiere professionale ===== */

/* Hero banner */
.vg-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e50 100%);
    padding: 55px 0 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.vg-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: url('/images/hero-pattern.png') repeat;
    opacity: 0.04;
}
.vg-hero h1 {
    font-size: 2.4rem; font-weight: 300;
    letter-spacing: 3px; margin-bottom: 8px;
}
.vg-hero h1 strong { color: #e74c3c; font-weight: 700; }
.vg-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem; letter-spacing: 1px;
    text-transform: uppercase;
}
.vg-hero .vg-badge {
    display: inline-block;
    background: rgba(231,76,60,0.15);
    border: 1px solid rgba(231,76,60,0.4);
    color: #e74c3c;
    padding: 4px 16px; border-radius: 20px;
    font-size: 0.8rem; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 16px;
}

/* Layout principale */
.vg-main { padding: 40px 0 60px; background: #f0f2f5; }

/* Player principale */
.vg-player-wrap {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
}
.vg-player-wrap iframe {
    display: block; width: 100%;
    aspect-ratio: 16/9; border: none;
}
.vg-player-info {
    background: #1a1a2e;
    padding: 20px 24px;
    color: #fff;
}
.vg-player-info h2 {
    font-size: 1.25rem; font-weight: 600;
    margin: 0 0 8px; color: #fff;
}
.vg-player-meta {
    display: flex; gap: 20px;
    flex-wrap: wrap; align-items: center;
}
.vg-player-meta span {
    color: #90a4ae; font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
}
.vg-player-meta span i { color: #e74c3c; }
.vg-player-meta .vg-channel-badge {
    background: #e74c3c;
    color: #fff; padding: 2px 10px;
    border-radius: 3px; font-size: 0.75rem;
    font-weight: 600; letter-spacing: 1px;
}

/* Playlist laterale */
.vg-playlist {
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    height: 100%;
}
.vg-playlist-header {
    background: #e74c3c;
    padding: 14px 18px;
    display: flex; align-items: center;
    gap: 10px;
}
.vg-playlist-header i { color: #fff; font-size: 1.1rem; }
.vg-playlist-header span {
    color: #fff; font-weight: 600;
    font-size: 0.9rem; letter-spacing: 1px;
    text-transform: uppercase;
}
.vg-playlist-header .vg-count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: #fff; padding: 2px 8px;
    border-radius: 10px; font-size: 0.75rem;
}
.vg-playlist-list {
    overflow-y: auto;
    max-height: 480px;
}
/* Scrollbar custom */
.vg-playlist-list::-webkit-scrollbar { width: 4px; }
.vg-playlist-list::-webkit-scrollbar-track { background: #0f1e36; }
.vg-playlist-list::-webkit-scrollbar-thumb {
    background: #e74c3c; border-radius: 2px;
}

.vg-playlist-item {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    text-decoration: none;
}
.vg-playlist-item:hover,
.vg-playlist-item.active {
    background: rgba(231,76,60,0.15);
    text-decoration: none;
}
.vg-playlist-item.active {
    border-left: 3px solid #e74c3c;
}
.vg-thumb-wrap {
    position: relative; flex-shrink: 0;
    width: 100px; height: 56px;
    border-radius: 4px; overflow: hidden;
    background: #000;
}
.vg-thumb-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.vg-thumb-duration {
    position: absolute; bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.85);
    color: #fff; font-size: 0.7rem;
    padding: 1px 5px; border-radius: 2px;
}
.vg-item-info { flex: 1; min-width: 0; }
.vg-item-title {
    color: #ecf0f1; font-size: 0.82rem;
    font-weight: 500; line-height: 1.4;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.vg-item-meta {
    color: #607d8b; font-size: 0.75rem;
    display: flex; gap: 10px;
}
.vg-item-meta i { color: #e74c3c; }

/* Numero corrente */
.vg-item-num {
    color: #37474f; font-size: 0.8rem;
    min-width: 20px; text-align: center;
}
.vg-playlist-item.active .vg-item-num {
    color: #e74c3c;
}

/* Loading / empty */
.vg-loading, .vg-empty {
    text-align: center; padding: 60px 20px;
    color: #90a4ae;
}
.vg-loading i, .vg-empty i {
    font-size: 2.5rem; margin-bottom: 16px;
    display: block;
}

@media (max-width: 768px) {
    .vg-hero h1 { font-size: 1.6rem; }
    .vg-playlist { margin-top: 20px; }
}
