.globalSearchRoot {
    position: relative;
}

.movSearch.globalSearchRoot {
    z-index: 250;
}

.globalSearchRoot input {
    padding-right: 2.5rem;
}

.globalSearchClear {
    position: absolute;
    top: 50%;
    right: .65rem;
    height: 1.55rem;
    width: 1.55rem;
    border-radius: 50%;
    border: 1px solid #ffd49a;
    background: #fff8eb;
    color: #ff4500;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 5px 12px rgba(255, 153, 0, .18);
    z-index: 4;
}

.globalSearchRoot.globalSearchHasValue .globalSearchClear {
    display: flex;
}

.globalSearchClear:hover {
    background: #ff4500;
    color: #fff;
    border-color: #ff4500;
}

.globalSearchPanel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    width: min(26rem, 88vw);
    max-height: min(28rem, 70svh);
    overflow-y: auto;
    padding: .55rem;
    border: 1px solid #ffe0a8;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(80, 35, 0, .18);
    display: none;
    z-index: 999;
}

.globalSearchPanel.active {
    display: grid;
    gap: .45rem;
}

.globalSearchResult {
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .45rem;
    min-height: 4.6rem;
    border-radius: .8rem;
    background: #fffdf8;
    border: 1px solid #fff0d1;
    color: #37210c;
}

.globalSearchResult:hover {
    background: #fff6e6;
    border-color: #ff9900;
    transform: translateY(-1px);
}

.globalSearchResult img {
    width: 3.7rem;
    height: 3.7rem;
    object-fit: contain;
    border-radius: .65rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px #ffe9bf;
}

.globalSearchResult span {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.globalSearchResult strong {
    color: #301b0b;
    font-size: .9rem;
    line-height: 1.12;
}

.globalSearchResult small {
    color: #755f4b;
    font-size: .72rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.globalSearchResult em {
    align-self: start;
    padding: .25rem .45rem;
    border-radius: 999px;
    background: #ff9900;
    color: #fff;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.globalSearchMessage {
    padding: .8rem;
    color: #765a38;
    font-size: .85rem;
    font-weight: 800;
    text-align: center;
}

@media(max-width:1200px) {
    .gSCont .globalSearchPanel {
        right: -.5rem;
        width: min(24rem, 90vw);
    }
}

@media(max-width:500px) {
    .movSearch.globalSearchRoot {
        overflow: visible;
    }

    .movSearch .globalSearchClear {
        right: 3.25rem;
    }

    .movSearch .globalSearchPanel {
        left: 0;
        right: 0;
        width: 100%;
        max-height: 68svh;
        border-radius: .9rem;
    }

    .globalSearchResult {
        grid-template-columns: 3.2rem minmax(0, 1fr);
        gap: .6rem;
        min-height: 4.2rem;
    }

    .globalSearchResult img {
        width: 3.2rem;
        height: 3.2rem;
    }

    .globalSearchResult em {
        grid-column: 2;
        justify-self: start;
        align-self: center;
        margin-top: -.15rem;
    }
}
