@media only screen and (min-width: 600px) {

    #search-max {
        display: none;
        z-index: 10;
    }
    

    #search-max .search-searchbar {
        position: fixed;
        height: 62px;
        width: calc(100% - 150px);
        top: 0;
        left: 0;
        right: 0;
        margin: auto;
        margin-top: 1px;
        margin-left: 150px;
        z-index: 11;
        display: flex;
    }
    #search-max .search-searchbar > .input {
        display: flex;
        margin: auto;
        position: relative;
        border-radius: 50px;
        border: solid;
        overflow: hidden;
    }
    #search-max .search-searchbar > .close-icon {
        margin-block: auto;
        font-size: 24px;
        border-radius: 5px;
        margin-inline: 20px;
        cursor: pointer;
        /* padding: 2px; */

    }
    #search-max .search-searchbar > .input > span:first-of-type {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        margin: auto;
        height: fit-content;
        padding: 8px;
        padding-left: 12px;
        font-size: 24px;
    }
    #search-max .search-searchbar > .input > span:last-of-type {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        height: fit-content;
        padding-block: 2px;
        padding-inline: 8px;
        font-size: 24px;
        border-left: 2px solid #a5a9b4;
        cursor: pointer;
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    }
    #search-max .search-searchbar > .input > input {
        /* border-radius: 50px; */
        font-size: 14px;
        font-family: var(--font-1);
        font-weight: 500;
        padding-block: 8px;
        padding-inline: 45px;
        min-width: 400px;
        outline: none;
        border: none;
        border-radius: 50px;
        transition: width 0.5s;
        
    }
    #search-max .search-searchbar > .input > input:focus {
        /* border-bottom:  2px solid var(--theme-color) !important; */
        border:  2px solid var(--text-dark) !important;
    }
    #search-max .search-searchbar > .suggest {
        position: fixed;
        display: none;
        padding: 0;
        z-index: 10;
        height: 150px;
        translate: 0;
        margin-top: 5px;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    #search-max .search-searchbar > .input > input::-webkit-search-cancel-button {
        display: none;
    }

    #search-max .search-searchbar > .suggest::-webkit-scrollbar {
        background: transparent;
        width: 10px;
        top: 15px;
    }
    #search-max .search-searchbar > .suggest::-webkit-scrollbar-thumb {
        background: rgba(104,104,104,0.5);
        border-radius: 3px;
    }
    #search-max .search-searchbar > .suggest::-webkit-scrollbar-thumb:hover {
        background: rgba(154,154,154,0.5);
        cursor: grabbing;
    }

    #search-max .search-searchbar > .suggest > p {
        font-size: 12px;
        padding: 5px;
        margin: 0;
        width: auto;
        position: sticky;
        top: 0;
    }
    #search-max .search-searchbar > .suggest > section {
        padding-inline: 5px;
        padding-bottom: 5px;
    }
    #search-max .search-searchbar > .suggest > section > div {
        display: flex;
        border-radius: 5px;
        padding: 8px;      
        cursor: pointer;
    }
    #search-max .search-searchbar > .suggest > section > div > p {
        font-size: 14px;
        margin-block: auto;
        font-weight: 400;
    }
    #search-max .search-searchbar > .suggest > section > div > p > strong {
        font-weight: 700 !important;
    }
    #search-max .search-searchbar > .suggest > section > div > span {
        font-size: 18px;
        margin-left: auto;
        margin-block: auto;
    }
    
    #search-max .search-body {
        position: fixed;
        top: 64px;
        right: 0;
        height: calc(100% - 64px);
        z-index: 10;
        overflow: auto;
        transition: all 0.2s;
    }

    #search-max .search-body .filter {
        position: sticky;
        width: auto;
        top: 0;
        padding-block: 10px;
        padding-inline: 5px;
        
    }
    #search-max .search-body .filter button {
        border-radius: 50px;
        border: none;
        font-family: var(--font-1);
        font-size: 14px;
        cursor: pointer;
        font-weight: 500;
        padding-block: 5px;
        padding-inline: 15px;
        margin-inline: 5px;
        background: var(--theme-color);
        
    }
    
    #search-max .search-body .filter button.selected {
        background: #ffffff !important;
        color: #000000 !important;
        font-weight: 700;
    }


    #search-max .search-body section {
        margin: 15px;
    }
    #search-max .search-body section > p {
        font-size: 18px;
        font-weight: 700;
        margin-block: 10px;
    }

    #search-max .search-body section.top-result {
        width: auto;
    }

    #search-max .search-body section.top-result > div {
        width: 100%;
        height: 200px;
        max-width: 500px;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 120px auto 80px;
        grid-template-rows: 120px auto 80px;
        background: rgb(10,10,10);

    }
    #search-max .search-body section.top-result > div:hover {
        background: rgb(15,15,15);
        transition: all 0.5s;
    }
    #search-max .search-body section.top-result > div:hover > div:nth-of-type(3) > button {
        translate: 0;
        opacity: 1;
        transition: all 1s;
    }

    #search-max .search-body section.top-result > div > div:nth-of-type(1) {
        grid-column: 1/2;
        grid-row: 1/2;
        display: flex;
        padding: 10px;
        /* background: yellow; */
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(1) > .img {
        width: 100%;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(1) > .img > .match {
        width: 100%;
        height: 100%;
        display: flex;
        margin: 0;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(1) > .img > .match > div:nth-of-type(2) {
        translate: -35px 35px;
    }

    #search-max .search-body section.top-result > div > div:nth-of-type(2) {
        grid-column: 1/3;
        grid-row: 2/4;
        padding-inline: 15px;
        padding-top: 0;
        overflow: hidden;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > p {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div {
        display: flex;
        margin-block: auto;
        position: relative;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div > span {
        display: flex;
        
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div > span > .img {
        height: 24px;
        margin-right: 8px;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div > span > span.material-symbols-outlined {
        font-size: 24px;
        margin-right: 8px;
        
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div p {
        font-size: 14px;
        margin-block: auto;
        text-wrap: nowrap;
    }

    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div > span.seperator {
        font-size: 6px;
        margin-inline: 10px;
        margin-block: auto;
        position: relative;
        background: transparent;
        z-index: 5;
        
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    }

    #search-max .search-body section.top-result > div > div:nth-of-type(2) > div > span.seperator::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        background: #a5a9b4;
        border-radius: 50%;
        opacity: 0.3;
        scale: 1.5;
        z-index: 1;
    }    


    #search-max .search-body section.top-result > div > div:nth-of-type(3) {
        grid-column: 3/4;
        grid-row: 3/4;
        padding: 12px;
        /* background: blue; */
        
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(3) > button {
        border-radius: 50%;
        border: none;
        aspect-ratio: 1;
        background: var(--theme-color);
        display: flex;
        justify-content: center;
        margin: auto;
        padding: 5px;
        height: 100%;
        border-bottom: 2px outset var(--theme-color);
        border-right: 2px outset var(--theme-color);
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        cursor: pointer;
        translate: 0 10px;
        opacity: 0;
        transition: all 1s;
    }
    #search-max .search-body section.top-result > div > div:nth-of-type(3) > button > span {
        font-size: 28px;
        color: #000000;
        margin: auto;
        font-weight: 900;

        font-variation-settings:
        'FILL' 1,
        'wght' 700,
        'GRAD' 0,
        'opsz' 48;
    }


    #search-max .search-body section.result-related {
        width: auto;
    }

    #search-max .search-body section.result-related > .body > div {
        display: flex;
        border-radius: 10px;
        padding: 4px;
    }
    #search-max .search-body section.result-related > .body > div:hover {
        background: rgb(10,10,10);
    }

    #search-max .search-body section.result-related > .body > div > .img {
        /* height: 48px;
        aspect-ratio: 1; */
        margin-block: auto;
        margin: 5px;

    }
    #search-max .search-body section.result-related > .body > div > div {
        margin-block: auto;
        margin-left: 10px;
    }
    
    #search-max .search-body section.result-related > .body > div > div > p {
        font-size: 14px;
        margin-block: 0;
    }
    #search-max .search-body section.result-related > .body > div > div > div {
        display: flex;
        overflow: hidden;
        font-size: 12px;
        margin-block: 0;
    }
    
    #search-max .search-body section.result-related > .body > div > div > div span {
        display: flex;
    }
    #search-max .search-body section.result-related > .body > div > div > div .img {
        /* aspect-ratio: 1;
        height: 18px; */
        margin-right: 5px;

    }
    #search-max .search-body section.result-related > .body > div > div > div p {
        font-size: 12px;
        margin-block: auto;
    }

    #search-max .search-body section.result-related > .body > div > div > div span.material-symbols-outlined {
        font-size: 18px;
        margin-right: 5px;

        /* font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24; */
    }

    #search-max .search-body section.result-related > .body > div > div > div span.seperator {
        font-size: 6px;
        margin-inline: 10px;
        margin-block: auto;
        position: relative;
        background: transparent;
        z-index: 5;
        
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    }
    #search-max .search-body section.result-related > .body > div > div > div span.seperator::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        background: #a5a9b4;
        border-radius: 50%;
        opacity: 0.3;
        scale: 1.5;
        z-index: 1;
    }
    /* #search-max .search-body .best-match > .main {
        border-radius: 10px;
        aspect-ratio: 5/2;
        width: 350px;
        display: grid;
        grid-template-columns: repeat(10, 10%);
        grid-template-rows: repeat(4, 25%);
    }

    #search-max .search-body .best-match > .main .image {
        grid-column: 1/4;
        grid-row: 1/4;
        padding: 10px;
    }
    #search-max .search-body .best-match > .main .image img{
        aspect-ratio: 1;
        width: 100%;
        background: #ffffff;
        border-radius: 50%;


    }



    #search-max .search-body .best-match > .main .name {
        grid-column: 4/10;
        grid-row: 1/4;
    }
    #search-max .search-body .best-match > .main .btn {
        grid-column: 8/11;
        grid-row: 2/5;
        padding: 10px;
        display: flex;
    }
    #search-max .search-body .best-match > .main .btn button {
        border-radius: 50%;
        border: none;
        aspect-ratio: 1;
        background: var(--theme-color);
        display: flex;
        justify-content: center;
        margin: auto;
        padding: 5px;
        height: 70%;
        border-bottom: 2px outset var(--theme-color);
        border-right: 2px outset var(--theme-color);
        cursor: pointer;
    }
    #search-max .search-body .best-match > .main .btn button span {
        font-size: 28px;
        color: #000000;
        margin: auto;
        font-weight: 900;

        font-variation-settings:
        'FILL' 0,
        'wght' 700,
        'GRAD' 0,
        'opsz' 48
        ;



    } */


    
    @media only screen and (min-width: 1025px) {
        #search-max .search-body {
            width: calc(100% - 250px);
        }

        #search-max .search-body .tier-1 {
            display: flex;
        }
        #search-max .search-body section.top-result,
        #search-max .search-body section.result-related {
            width: 50%;
        }

    }

    @media only screen and (max-width: 1025px) {
        #search-max .search-body {
            width: calc(100% - 72px);
        }

        #search-max .search-searchbar {
            width: calc(100% - 200px);
            margin-left: 200px;

        }

        #search-max .search-searchbar > div > input {
            min-width: 300px;
        }

        #search-max .search-body .tier-1 {
            display: block;
        }

    }
}

@media only screen and (max-width: 600px) {
    #search-min {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        translate: 100%;
        opacity: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        display: none;
        z-index: 15;
        overflow-y: auto;
        transition: all 0.2s;

    }

    #search-min::-webkit-scrollbar {
        width: 5px;
        border-bottom-right-radius: 10px;
        /* background: #98a8b3; */
        padding: 2px;
        
    }
    #search-min::-webkit-scrollbar-thumb {
        background: rgb(104,104,104);
    }

    
    #search-head {
        border-top: none;
        border-left: none;
        border-right: none;
        position: sticky;
        top: -60px;
        z-index: 12;

    }
    #search-header {
        display: flex;
        padding: 10px;
    }
    #search-header > span {
        font-size: 24px;
        margin-block: auto;
        border-radius: 50%;
        padding-block: 8px;
        padding-inline: 5px;
        cursor: pointer;
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    }
    #search-header > p {
        font-size: 18px;
        font-weight: 600;
        margin-block: auto;
        margin-left: 10px;
    }
    #search-header > span:nth-of-type(2) {
        margin-left: auto;
    }
    #search-header > span:nth-of-type(3) {
        display: none;
    }


    #search-searchbar {
        margin-inline: 15px;
        position: relative;
    }
    #search-searchbar > div {
        position: absolute;
        color: black;
        top: 0;
        left: 0;
        height: 38px;
        overflow: hidden;
        font-weight: 700;
        font-size: 24px;
    }
    #search-searchbar > div > div {
        display: flex;
        justify-content: center;
        height: inherit;
        aspect-ratio: 1;
    }
    #search-searchbar > div > div > span {
        margin: auto;
    }
    #search-searchbar > input {
        font-size: 14px;
        font-weight: 500;
        border-radius: 5px;
        padding: 8px;
        padding-inline: 40px;
        font-family: var(--font-1);
        border: none;
        outline: none;
        display: block;
        width: 100%;
    }
    #search-searchbar > input::-webkit-search-cancel-button {
        display: none;
    }


    #search-filter {
        display: flex;
        padding-inline: 10px;
        padding-block: 10px;

    }
    #search-filter > button {
        border-radius: 50px;
        font-size: 12px;
        font-weight: 400;
        padding-block: 4px;
        padding-inline: 12px;
        margin-left: 5px;
        margin-block: auto;
        font-family: var(--font-1);
    }

    #search-filter > button.active {
        background-color: var(--theme-color) !important;
        border: none !important;
        color: black !important;
        font-weight: 700 !important;
    }

    #search-searchbar {
        animation: searchbar linear forwards;
        animation-timeline: scroll();
        animation-range-start: 0;
        animation-range-end: 60px;
    }
    #search-searchbar > input {
        animation: searchbar-input linear forwards;
        animation-timeline: scroll();
        animation-range-start: 0;
        animation-range-end: 60px;
    }
    #search-searchbar > div {
        animation: searchbar-div linear forwards;
        animation-timeline: scroll();
        animation-range-start: 0;
        animation-range-end: 60px;
    }

    @keyframes searchbar {
        to {
            margin-inline: 0;
        }
    }
    @keyframes searchbar-input {
        to {
            border-radius: 0;
            padding-block: 15px;
            padding-inline: 52px;
        }
    }
    @keyframes searchbar-div {
        to {
            height: 52px;
        }
    }


    #search-body {
        height: 100;
        min-height: 100%;
        padding-block: 0;
        padding: 5px;
    }

    #search-body > p {
        font-size: 12px;
        font-weight: 200;
        margin: 0;
        padding-block: 5px;
        padding-inline: 15px;
    }

    #search-body > div {
        display: flex;
        padding-inline: 15px;
        padding-block: 5px;
        border-radius: 10px;
    }
    #search-body > div:hover {
        background-color: rgb(10,10,10);
    }
    #search-body > div > .img {
        margin-block: auto;
        margin: 5px !important;
    }
    #search-body > div > div {
        margin-block: auto;
        margin-left: 10px;
    }
    #search-body > div > div  > p:first-of-type {
        font-size: 14px;
        margin-block: 0;
        font-weight: 500;

    }
    #search-body > div > div > p:last-of-type {
        font-size: 12px;
        margin-block: 0;
        display: flex;
        overflow: hidden;
    }
    #search-body > div > div > p:last-of-type > span {
        display: flex;
    }
    #search-body > div > div > p:last-of-type > span.seperator {
        font-size: 6px;
        margin-inline: 10px;
        margin-block: auto;
        position: relative;
        background: transparent;
        z-index: 5;
        
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    }
    #search-body > div > div > p:last-of-type > span.seperator::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        background: #a5a9b4;
        border-radius: 50%;
        opacity: 0.3;
        scale: 1.5;
        z-index: 1;
    }

    #search-body > div > div > p:last-of-type > span > .img {
        aspect-ratio: 1;
        height: 18px;
    }
    #search-body > div > div > p:last-of-type > span > span {
        font-size: 12px;
        margin-block: auto;
        margin-left: 5px;
        text-wrap: nowrap;
    }
    #search-body > div > div > p:last-of-type > span > span.material-symbols-outlined {
        font-size: 18px;
        margin-block: auto;
    }
    
    #search-body > div > span {
        margin-left: auto;
        margin-block: auto;
        font-size: 18px;
        padding: 5px;
        cursor: pointer;
        font-variation-settings:
        'FILL' 1,
        'wght' 700,
        'GRAD' 0,
        'opsz' 24;
    }

}