/* ===== Search Trigger Icon ===== */
.gs-ls-trigger {
    background-color: transparent;
    border: 1px solid #c36;
    border-radius: 50% !important;
    color: #c36;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: 7px 7px 2px !important;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.gs-ls-trigger:hover {
    opacity: 0.7;
}

/* ===== Full-screen Overlay ===== */
.gs-ls-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
    padding: 80px 20px 40px;
}

.gs-ls-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.gs-ls-close {
    position: fixed;
    top: 24px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}

.gs-ls-close:hover {
    opacity: 0.7;
}

.gs-ls-inner {
    width: 100%;
    max-width: 700px;
}

/* ===== Input ===== */
.gs-ls-input-wrap {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding: 10px 0;
    gap: 12px;
    color: #fff;
}

.gs-ls-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 0;
}

.gs-ls-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Results ===== */
.gs-ls-results {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gs-ls-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease;
}

.gs-ls-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gs-ls-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.gs-ls-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gs-ls-result-title {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-ls-result-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.gs-ls-result-extra {
    margin-left: auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    padding-left: 10px;
}

.gs-ls-state {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 12px 8px;
}

/* Lock body scroll while modal open */
body.gs-ls-locked {
    overflow: hidden;
}

@media (max-width: 600px) {
    .gs-ls-overlay {
        padding: 70px 16px 30px;
    }
    .gs-ls-input {
        font-size: 18px;
    }
    .gs-ls-close {
        top: 16px;
        right: 18px;
        font-size: 34px;
    }
}
