/* ---- Hero ---- */
.hero { text-align: center; padding: 48px 20px 40px; }
.hero h1 { font-size: 28px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.5px; }
@media (min-width: 768px) { .hero h1 { font-size: 42px; } }
.hero p { font-size: 15px; color: var(--text-2); max-width: 560px; margin: 0 auto 28px; }
@media (min-width: 768px) { .hero p { font-size: 17px; } }

/* ---- Example Gallery (masonry grid) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; cursor: pointer;
    background: var(--bg-card);
    aspect-ratio: 3/4;
    transition: var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gi-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 12px; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gallery-item .gi-title { font-size: 13px; font-weight: 600; }
.gallery-item .gi-desc { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.gallery-item .gi-stats { display: flex; align-items: center; gap: 12px; }
.gallery-item .gi-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.gallery-item .gi-stat i { font-size: 13px; }
.gallery-item .gi-stat .bi-heart-fill { color: #FB4E7D; }
.gallery-item .gi-stat .bi-hand-thumbs-up-fill { color: #8B5CF6; }
.gallery-item .gi-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    font-size: 10px; font-weight: 600; color: #8B5CF6;
}

/* ---- Scene Cards (wrapped rows) ---- */
.scene-scroll { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 0 16px; }
.scene-card {
    min-width: 180px; padding: 20px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--bg-card);
    cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.scene-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.scene-card .sc-icon { font-size: 28px; margin-bottom: 10px; }
.scene-card .sc-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.scene-card .sc-desc { font-size: 11px; color: var(--text-2); }

/* Homepage Creative Scenes image cards (scoped to .scene-scroll to avoid create-page clash) */
.scene-scroll .scene-card {
    min-width: 200px; width: 200px; padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
}
.scene-scroll .scene-card .sc-img { height: 130px; overflow: hidden; }
.scene-scroll .scene-card .sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.scene-scroll .scene-card:hover .sc-img img { transform: scale(1.07); }
.scene-scroll .scene-card .sc-ph {
    height: 130px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(236,72,153,0.14));
}
.scene-scroll .scene-card .sc-ph i { font-size: 34px; color: var(--text-3); }
.scene-scroll .scene-card .sc-info { padding: 12px 14px; }

/* Home showcase: video cards + lightbox player */
.gi-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--text-3);
    background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(236,72,153,0.14));
}
.gi-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 2;
}
.gi-play i {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
}
.showcase-empty {
    grid-column: 1 / -1;
    text-align: center; padding: 48px 0; color: var(--text-3);
    font-size: 14px;
}
.showcase-empty i { font-size: 28px; display: block; margin-bottom: 8px; }
.video-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
}
.video-lightbox.show { display: flex; }
/* Media without a src attribute must not occupy a flex slot, otherwise an
   empty <video> box (300x150 default) sits next to the visible image. */
.video-lightbox video:not([src]),
.video-lightbox img:not([src]) { display: none; }
.video-lightbox .vl-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.video-lightbox video {
    position: relative; z-index: 1;
    max-width: 92vw; max-height: 86vh;
    border-radius: 12px; background: #000; outline: none;
}
.video-lightbox img {
    position: relative; z-index: 1;
    max-width: 92vw; max-height: 86vh;
    border-radius: 12px; background: #000; outline: none;
    object-fit: contain;
}
.video-lightbox .vl-close {
    position: absolute; top: 18px; right: 22px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.video-lightbox .vl-close:hover { background: rgba(255,255,255,0.25); }

/* Scene cards with linked video (home showcase) */
.gi-hvideo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; background: #000;
    opacity: 0; transition: opacity 0.35s ease;
    pointer-events: none;
}
.gallery-item.gi-hover-video:hover .gi-hvideo { opacity: 1; }
.gi-autoplay { aspect-ratio: 3/4; }
.gi-autoplay video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; background: #000;
}

/* Scene detail modal (video + thumbnail + use button) */
.scene-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.scene-modal.show { display: flex; }
.scene-modal .vl-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.scene-modal-card {
    position: relative; z-index: 1;
    width: min(880px, 94vw);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.scene-modal .vl-close {
    position: absolute; top: -14px; right: -14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-input); border: 1px solid var(--border); color: var(--text-1);
    font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.scene-modal .vl-close:hover { background: var(--bg-hover, rgba(255,255,255,0.1)); }
.sm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 18px; }
.sm-video-wrap video {
    width: 100%; max-height: 64vh;
    border-radius: 10px; background: #000; outline: none; display: block;
}
.sm-side { display: flex; flex-direction: column; min-width: 0; }
.sm-thumb {
    width: 128px; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border);
}
.sm-name { font-size: 16px; font-weight: 600; margin-top: 12px; }
.sm-desc {
    font-size: 12.5px; color: var(--text-3); line-height: 1.6;
    margin: 8px 0 16px; flex: 1; overflow-y: auto; max-height: 180px;
}
@media (max-width: 768px) {
    .sm-layout { grid-template-columns: 1fr; }
    .sm-side { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
    .sm-thumb { width: 88px; }
    .sm-name { margin-top: 0; font-size: 14px; }
    .sm-desc { display: none; }
    .sm-side .btn { flex: 1; min-width: 140px; }
}

