#app {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: auto 1fr;
    grid-template-columns: 336px 1fr 336px;
    grid-template-areas: "top top top"
                         "navigation content profile";
}



#top {
    grid-area: top;
    display: grid;
    grid-template-rows: 86px;
    grid-template-columns: 336px 1fr 336px;
    place-items: center;
    border-bottom: 1px solid #E5E7EB;
}

#top .logo {
    height: 31px;
    margin-left: 22px;
    justify-self: start;
    cursor: pointer;
}



#navigation {
    grid-area: navigation;
    display: block;
    padding-top: 9px;
    border-right: 1px solid #E5E7EB;
    border-top: none;
}

#navigation .navigation-item {
    display: flex;
    align-items: center;
    padding: 18px 0 18px 33px;
    cursor: pointer;
}

#navigation .navigation-item svg {
    width: 24px;
    height: 24px;
    margin-right: 14px;
}

#navigation .navigation-item .label {
    font-size: 18px;
    font-weight: 600;
}

#navigation .navigation-item:hover .label {
    text-decoration: underline;
}

#navigation .navigation-item.active svg,
#navigation .navigation-item.active .label {
    color: #007AFF;
}

#navigation .navigation-item.disabled {
    opacity: .5;
    pointer-events: none;
}

#navigation .library {
    display: block;
    padding: 7px 19px 18px 71px
}

#navigation .navigation-item[data-tab="library"] {
    pointer-events: none;
}



#content {
    grid-area: content;
    overflow: scroll;
    overscroll-behavior-x: none;
}

#content::-webkit-scrollbar {
    display: none;
}

#content-loading {
    display: none;
    margin: auto;
}



#profile {
    grid-area: profile;
}



#search-wrap {
    width: 100%;
    padding: 0 40px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 528px;
    height: 55px;
    margin: 0 auto;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
}

.search-bar svg {
    width: 24px;
    height: 24px;
    margin-right: 11px;
    color: #2D3648;
}

.search-bar input {
    width: 100%;
    height: 100%;
    font-size: 14px;
    line-height: 20px;
    border-bottom: none;
}

.search-bar input::placeholder,
.search-bar input::-ms-input-placeholder {
    color: #64748B;
}

.search-bar input:focus {
    outline: none;
}

.search-bar:focus-within {
    border-color: #007AFF;
}

.search-bar:focus-within svg {
    color: #007AFF;
}



#search-results {
    width: 100%;
    max-width: 608px;
    padding: 28px 40px 28px 80px;
    margin: 0 auto;
}

#search-results .result {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

#search-results .result img {
    width: 80px;
    height: 104px;
    margin-right: 15px;
    border-radius: 8px;
}

#search-results .result .title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    padding-bottom: 5px;
}

#search-results .result .description {
    font-size: 16px;
    line-height: 24px;
    padding-left: 1px;
}

#search-results .no-results {
    font-size: 14px;
    font-weight: 400;
    opacity: .5;
    margin: 0 auto;
}



#search-suggestions {
    display: none;
    position: absolute;
    left: 0;
    top: 54px;
    width: 100%;
    padding: 0 13px;
    z-index: 100;
}

#search-suggestions .inner {
    padding: 18px;
    border-radius: 0 0 15px 15px;
    background: white;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.25);
}

#search-suggestions .suggestion {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 9px;
    cursor: pointer;
}

#search-suggestions .suggestion img {
    width: 48px;
    height: 55px;
    margin-right: 17px;
    border-radius: 8px;
}

#search-suggestions .suggestion .title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

#search-suggestions .suggestion:hover {
    text-decoration: underline;
}

#search-suggestions .suggestion:last-child {
    margin-bottom: 0;
}

#search-suggestions .no-results {
    font-size: 14px;
    font-weight: 400;
    opacity: .5;
}



@media only screen and (max-width: 1320px) {

    #app, #top {
        grid-template-columns: 256px 1fr 256px;
    }
}



@media only screen and (max-width: 1120px) {

    #app {
        grid-template-areas: "top top top" "navigation content content";
    }

    #top {
        grid-template-columns: 256px 1fr;
    }

    #top-right {
        display: none;
    }

    #profile {
        display: none;
    }
}



@media only screen and (max-width: 720px) {

    #app {
        grid-template-rows: 1fr auto;
        grid-template-columns: 1fr;
        grid-template-areas: "content"
                             "navigation";
    }

    #content {
        overflow: scroll;
    }

    #top,
    #profile {
        display: none;
    }

    #navigation {
        position: fixed;
        bottom: 0;
        display: grid;
        width: 100%;
        height: 82px;
        padding: 0;
        grid-auto-flow: column;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 5px;
        border-top: 1px solid #E5E7EB;
        border-right: none;
        background: white;
        z-index: 100;
    }

    #navigation .navigation-item {
        display: grid;
        padding: 14px 0 25px;
    }

    #navigation .navigation-item svg {
        margin: 0 auto 5px;
    }

    #navigation .navigation-item .label {
        text-align: center;
        font-weight: 500;
        font-size: 10px;
        line-height: 14px;
        white-space: nowrap;
        overflow: visible;
    }

    #navigation .navigation-item[data-tab="library"] {
        pointer-events: all;
    }

    #navigation .navigation-item:hover .label {
        text-decoration: none;
    }



    #navigation .library {
        display: none;
    }



    .search-bar {
        max-width: unset;
        border-radius: 10px;
    }

    #search-results {
        max-width: unset;
        padding: 0;
    }

    #search-results .result img {
        width: 87px;
    }
}
