/* ============================================================================
   Listen Buddy screenshot frame + gallery
   ============================================================================ */

/* The screenshot is a real PNG of the plugin. We frame it and let JS
   overlay a randomized track name where the filename appears in the UI. */
.lb-shot {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b0c12;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 30px 60px -20px rgba(0,0,0,0.7),
        0 18px 36px -18px rgba(120,80,200,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.lb-shot:hover {
    transform: perspective(1400px) rotateY(-2deg) rotateX(0deg) scale(1.005);
}
.lb-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* The two overlay tags that mask the original filename in the screenshot.
   Coordinates are calibrated to the 1025x647 PNG.
   Tag 1: under the upload-icon row (filename next to the up-arrow).
   Tag 2: under the playback transport (smaller filename below the scrubber). */
/* (track-name overlays removed) */

/* ----- Hero variant ----- */
.hero-stage-shot {
    /* Override the old aspect-ratio/background that came from .hero-stage */
    aspect-ratio: auto;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}
.hero-stage-shot::before { display: none !important; }
.lb-shot-hero {
    width: 100%;
    transform: perspective(1600px) rotateY(-2deg) rotateX(0.5deg);
}
.lb-shot-hero:hover {
    transform: perspective(1600px) rotateY(-1deg) rotateX(0deg) scale(1.01);
}

/* Widen the hero stage column and let the screenshot grow toward the
   right edge so the GUI text is legible while the headline still
   sits to its left. */
.hero-grid {
    grid-template-columns: 0.85fr 1.4fr !important;
    gap: 56px !important;
    align-items: center;
}
.lb-shot-hero {
    /* GUI shot scales within its column without overflowing left into the headline */
    width: 100%;
    transform: perspective(1600px) rotateY(-2deg) rotateX(0.5deg);
    transform-origin: right center;
}
.lb-shot-hero:hover {
    transform: perspective(1600px) rotateY(-1deg) rotateX(0deg) scale(1.01);
}
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
}

/* ----- Gallery (product section) ----- */
.lb-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Make the gallery larger so analysis text in the screenshot is readable.
       Bumped 25% from 1280px so the screenshot reads cleanly. */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
.lb-gallery-stage {
    position: relative;
}
.lb-shot-gallery {
    transform: none;
}
.lb-shot-gallery:hover {
    transform: scale(1.003);
}
.lb-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(14,14,20,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(229,226,220,0.85);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s, color .2s;
    z-index: 2;
}
.lb-gallery-nav:hover {
    background: rgba(20,20,28,0.92);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}
.lb-gallery-nav svg {
    width: 18px;
    height: 18px;
}
.lb-gallery-nav.prev { left: -14px; }
.lb-gallery-nav.next { right: -14px; }

.lb-gallery-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.lb-gallery-thumb {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #0b0c12;
    cursor: pointer;
    aspect-ratio: 1025 / 647;
    transition: border-color .2s, transform .15s, opacity .2s;
    opacity: 0.55;
}
.lb-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lb-gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.lb-gallery-thumb.is-active {
    opacity: 1;
    border-color: rgba(180, 130, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(180, 130, 255, 0.18);
}

/* Crossfade when changing the gallery image */
.lb-shot-gallery img {
    transition: opacity .25s ease;
}
.lb-shot-gallery.is-swapping img {
    opacity: 0;
}

/* Zoom affordance on the active gallery image */
.lb-shot-gallery[data-gallery-zoom] {
    cursor: zoom-in;
}
.lb-gallery-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(14,14,20,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(229,226,220,0.92);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2;
}
.lb-gallery-zoom-hint svg {
    width: 13px;
    height: 13px;
}
.lb-shot-gallery:hover .lb-gallery-zoom-hint,
.lb-shot-gallery:focus-visible .lb-gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6,6,12,0.86);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    display: grid;
    place-items: center;
    padding: 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}
.lb-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.lb-lightbox {
    visibility: hidden;
}
.lb-lightbox.is-open { visibility: visible; }
.lb-lightbox-stage {
    margin: 0;
    max-width: min(1600px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.97);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.lb-lightbox.is-open .lb-lightbox-stage {
    transform: scale(1);
}
.lb-lightbox-stage img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 60px 120px rgba(0,0,0,0.6),
        0 0 80px rgba(120,80,200,0.18);
    background: #0b0c12;
}
.lb-lightbox-cap {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(229,226,220,0.65);
}
.lb-lightbox-close,
.lb-lightbox-nav {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(20,20,28,0.7);
    color: rgba(229,226,220,0.92);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s;
}
.lb-lightbox-close svg,
.lb-lightbox-nav svg {
    width: 20px;
    height: 20px;
}
.lb-lightbox-close:hover,
.lb-lightbox-nav:hover {
    background: rgba(40,40,56,0.9);
    transform: scale(1.06);
}
.lb-lightbox-close { top: 24px; right: 24px; }
.lb-lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-lightbox-nav.next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 700px) {
    .lb-lightbox { padding: 16px; }
    .lb-lightbox-close { top: 12px; right: 12px; }
    .lb-lightbox-nav.prev { left: 8px; }
    .lb-lightbox-nav.next { right: 8px; }
}

@media (max-width: 700px) {
    .lb-gallery-nav.prev { left: 6px; }
    .lb-gallery-nav.next { right: 6px; }
    .lb-gallery-rail { grid-template-columns: repeat(3, 1fr); }
}
