/* Custom Spotlight overlay styles (pure colors only — no gradients) */

#spotlight {
    background-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
}

/* Hide the stock footer / header / page counter; we use our own */
#spotlight .spl-title,
#spotlight .spl-description,
#spotlight .spl-footer,
#spotlight .spl-header,
#spotlight .spl-page {
    display: none !important;
}
#spotlight .spl-prev,
#spotlight .spl-next {
    display: none !important;
}

/* -------------------------------------------------------------
   Control bar — sits above the thumbnail strip
   ------------------------------------------------------------- */
#spotlight-control-bar {
    position: absolute;
    bottom: 134px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 720px;
    height: 52px;
    background: rgba(40, 44, 60, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 100001;
    box-shadow: 0 8px 28px rgba(20, 26, 48, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: auto;
    color: #fff;
    font-family: 'Noto Serif SC', sans-serif;
}

.control-counter {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.control-center {
    display: flex;
    gap: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.control-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background-color 0.25s, transform 0.25s;
}
.control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}
.control-btn i { font-size: 14px; }

.control-right { display: flex; align-items: center; }

.close-btn-custom {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background-color 0.25s, transform 0.25s;
}
.close-btn-custom:hover {
    background: #ff7875;
    transform: rotate(90deg);
}
.close-btn-custom i { font-size: 16px; }

/* -------------------------------------------------------------
   Thumbnail strip at the bottom
   ------------------------------------------------------------- */
#spotlight-thumbs {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 720px;
    height: 76px;
    background: rgba(40, 44, 60, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 22px rgba(20, 26, 48, 0.18);
    z-index: 100001;
    overflow: hidden;
    pointer-events: auto;
    padding: 8px 0;
}

#spotlight-thumbs .thumbs-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    height: 60px;
    padding: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
#spotlight-thumbs .thumbs-track::-webkit-scrollbar {
    height: 5px;
}
#spotlight-thumbs .thumbs-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.thumb-item {
    flex: 0 0 auto;
    width: 72px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    transition: transform 0.25s, border-color 0.25s;
}
.thumb-item:hover { transform: translateY(-2px); }

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* clicks handled at .thumb-item */
}

.thumb-item.is-current {
    border-color: #ff8a87;
    box-shadow: 0 0 0 2px rgba(255, 138, 135, 0.3);
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    #spotlight-control-bar {
        width: 94%;
        bottom: 116px;
        padding: 0 12px;
        height: 48px;
    }
    .control-counter { font-size: 13px; padding: 3px 10px; }
    .control-btn, .close-btn-custom { width: 34px; height: 34px; }
    .control-btn i { font-size: 13px; }
    .close-btn-custom i { font-size: 14px; }

    #spotlight-thumbs {
        width: 94%;
        height: 64px;
        bottom: 20px;
        padding: 6px 0;
    }
    #spotlight-thumbs .thumbs-track { height: 50px; }
    .thumb-item {
        width: 60px;
        height: 50px;
        border-radius: 6px;
    }
}

@media (max-width: 380px) {
    #spotlight-control-bar { height: 44px; }
    .control-counter { font-size: 12px; }
    .control-btn, .close-btn-custom { width: 32px; height: 32px; }
}
