/* poppins-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/poppins-v20-latin-300.eot'); /* IE9 Compat Modes */
    src: url('../fonts/poppins-v20-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/poppins-v20-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/poppins-v20-latin-300.woff') format('woff'), /* Modern Browsers */
         url('../fonts/poppins-v20-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/poppins-v20-latin-300.svg#Poppins') format('svg'); /* Legacy iOS */
}

/* poppins-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v20-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('../fonts/poppins-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/poppins-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/poppins-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/poppins-v20-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}

/* poppins-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v20-latin-600.eot'); /* IE9 Compat Modes */
    src: url('../fonts/poppins-v20-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/poppins-v20-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/poppins-v20-latin-600.woff') format('woff'), /* Modern Browsers */
         url('../fonts/poppins-v20-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/poppins-v20-latin-600.svg#Poppins') format('svg'); /* Legacy iOS */
}
  
/* poppins-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/poppins-v20-latin-800.eot'); /* IE9 Compat Modes */
    src: url('../fonts/poppins-v20-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/poppins-v20-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/poppins-v20-latin-800.woff') format('woff'), /* Modern Browsers */
         url('../fonts/poppins-v20-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/poppins-v20-latin-800.svg#Poppins') format('svg'); /* Legacy iOS */
}

:root {
    --gema: #E01B22;
    --border: #eae9ee;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f1f1f;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.material-symbols-rounded {
    color: #888;
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.app {
    display: flex;
    width: 100%;
    height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 280px;
    max-width: 280px;
    height: 100%;
    padding: 1rem 1.2rem;
    border-right: 1px solid var(--border);
    background-color: #f9fbfc;
    overflow: hidden;
}

.sidebar.expanded {
    width: 250px;
    box-shadow: 2px 0px 16px rgba(0, 0, 0, .15);
}

.logoWrapper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    width: 65%;
}

.mobileLogo {
    display: none;
    width: 48px;
    margin-bottom: 1rem;
}

.notificationButton {
    border: none;
    outline: none;
    background-color: transparent;
    width: 48px;
    height: 48px;
    border-radius: 48px;
    margin-left: auto;
    background-image: url("../img/noti-off.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    cursor: pointer;
    transition: background-color .1s ease;
}

.notificationButton:hover {
    background-color: #ce3c2c15;
}

.notificationButton.active {
    background-image: url("../img/noti-on.svg");
}

.notificationButton.disabled, .notificationButton.disabled:hover {
    background-color: transparent;
    opacity: .5;
    cursor: not-allowed;
}

.sidebarCategory {
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.sidebarPerson {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    background-color: transparent;
    border-radius: 4px;
    border-left: 0px solid var(--gema);
    padding: 4px 12px;
    transition: border .2s cubic-bezier(.47,1.64,.41,.8), background-color .1s ease;
}

.sidebarPerson:hover {
    background-color: #ce3c2c15;
    cursor: pointer;
}

.sidebarPerson:active {
    background-color: #ce3c2c2c;
}

.sidebarPerson .sidebarPersonIcon {
    transition: font-variation-settings .2s ease, color .4s ease;
}

.sidebarPerson.selected {
    border-width: 6px;
    background-color: #ce3c2c0f;
}

.sidebarPerson.selected .sidebarPersonIcon {
    color: var(--gema);
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.sidebarPersonInfo {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.sidebarPersonName {
    font-size: .9rem;
    font-weight: 600;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.sidebarPersonNumber {
    font-size: .75rem;
    margin-top: -2px;
}

.sidebarPersonWrapper {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 75vh;
    overflow-y: auto;
}

.sidebarPersonLoading {
    position: absolute;
    display: none;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, transparent 40%, var(--gema) 50%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    animation: placeholderShimmer 4s infinite linear;
}

.sidebarPerson.loading .sidebarPersonLoading {
    display: block;
}

.contentContainer {
    width: 100%;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.contentContainer.hidden {
    display: none;
}

.artistNameWrapper {
    height: 4rem;
    margin-bottom: 1rem;
}

.selectedArtistName {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

.artistSongResults {
    display: inline-block;
    font-size: .8rem;
}

.artistSongResults.placeholder {
    color: transparent;
    width: 128px;
    height: 1rem;
    margin-top: 4px;
}

@keyframes placeholderShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }   
}

.placeholder {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, #f9f9f9 0%, #eae9ee 50%, #f9f9f9 100%);
    background-size: 200% 100%;
    animation: placeholderShimmer 1s infinite;
}

.placeholderTitle {
    width: 25%;
    height: 1.5rem;
}

.placeholderDesc {
    width: 10%;
    height: 1rem;
    margin-top: 1rem;
}

.placeholderContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    z-index: -1;
}

.placeholderContainer.hidden {
    display: none;
}

.songContainer {
    border-top: 1px solid var(--border);
}

.resultOptionsContainer {
    display: inline-flex;
    margin-top: 2rem;
    gap: 1rem;
}

.resultOptionsContainer.hidden {
    display: none;
}

.searchWrapper {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 32px;
}

.searchInput {
    width: 100%;
    height: 100%;
    padding: .5rem 1rem;
    border: none;
    outline: none;
    background: transparent;
}

.clearSearchButton {
    border: none;
    outline: none;
    background: transparent;
    width: 42px;
    background: url(/img/clear.svg) center/50% no-repeat;
    cursor: pointer;
}

.clearSearchButton.hidden {
    pointer-events: none;
    opacity: 0;
}

.searchButton {
    border: none;
    outline: none;
    background: url("../img/search.svg") center/35% no-repeat var(--border);
    width: 64px;
    border-left: 1px solid var(--border);
    border-radius: 0px 24px 24px 0px;
    transition: background-color .1s ease;
    cursor: pointer;
}

.searchButton:hover {
    background-color: #ccc;
}

.filterButtonWrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    border-radius: 24px;
}

.filterButton {
    appearance: none;
    outline: none;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 24px;
    padding: .5rem 1rem;
    padding-left: 2.5rem;
    transition: background-color .1s ease;
    cursor: pointer;
}

.filterButtonWrapper:hover {
    background-color: var(--border);
}

.filterIcon {
    position: absolute;
    left: 14px;
}

.songResultContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
}

.songWrapper {
    position: relative;
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: auto;
    overflow: hidden;
    transition: background-color .1s ease;
}

.songWrapper:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

.songWrapper.selected .songArtistWrapper {
    grid-template-rows: 1fr;
}

.songWrapper.selected .songArtistExpandArrow {
    transform: rotate(180deg);
}

.songWrapper.hidden {
    display: none;
}

.songWrapper.new {
    border-color: var(--gema);
    outline: 1px solid var(--gema);
    padding-right: 5rem;
}

.newBadge {
    position: absolute;
    display: flex;
    top: 0;
    right: 0;
    background: var(--gema);
    color: white;
    padding: 4px 8px;
    border-radius: 0 0 0 8px;
    font-size: .8rem;
    font-weight: 600;
    transition: background-color .1s ease;
}

.newBadge:hover {
    background-color: #a80b10;
    cursor: pointer;
}

.newBadgeCloseIcon {
    width: 16px;
    margin-left: 0.5rem;
}

.songTitle {
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    margin-bottom: -0.25rem;
}

.songGemaIdWrapper {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.songGemaId {
    color: #888;
    font-size: .75rem;
}

.songInfoWrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: .5rem;
    font-size: .8rem;
    color: #888;
}

.songInfoPair {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.songInfoPairIcon {
    height: 14px;
    margin-right: 4px;
    margin-bottom: 1px;
}

.songInfoPairIcon.wide {
    width: 28px;
}

.songArtistContainer {
    margin-top: 1rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

.songArtistWrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s ease-out;
}

.songArtistScrollWrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.songArtistInfoWrapper {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.songArtistExpandArrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: .5rem;
    background: url("../img/expand.svg") center/100% no-repeat;
    transition: transform .2s ease;
}

.songArtistCount {
    font-size: .8rem;
}

.songArtist {
    display: flex;
    flex-direction: column;
    font-size: .9rem;
}

.songArtist:first-child {
    margin-top: 1rem;
}

.songArtistRole {
    font-size: .8rem;
    color: #888;
}

.sidebarMobileExpander {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.sidebar.expanded .sidebarMobileExpander {
    display: none;
}

.sidebar.expanded ~ .mobileBlur {
    opacity: 1;
    pointer-events: all;
}

.mobileBlur {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    transition: opacity .1s ease;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: rgba(0,0,0,0);
    -webkit-border-radius: 100px;
}

::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, 0.09);
}


::-webkit-scrollbar-thumb:vertical {
    background: rgba(0,0,0,0.5);
    -webkit-border-radius: 100px;
}
::-webkit-scrollbar-thumb:vertical:active {
    background: rgba(0,0,0,0.61);
    -webkit-border-radius: 100px;
}

@media screen and (max-width: 1000px) {
    .logo, .sidebarCategory {
        display: none;
    }
    .mobileLogo, .sidebarMobileExpander {
        display: block;
    }
    .sidebar {
        position: fixed;
        flex-direction: column-reverse;
        top: 0;
        left: 0;
        width: 64px;
        padding: 8px;
        transition: width .2s ease;
        z-index: 100;
    }
    .contentContainer {
        padding: 2rem;
        margin-left: 4rem;
    }
    .sidebarPerson.selected {
        border: none;
        background-color: #ce3c2c2e;
    }
    .sidebarPersonWrapper {
        overflow-y: hidden;
        margin-bottom: auto;
    }
    .sidebar.expanded .sidebarPersonWrapper {
        overflow-y: auto;
    }
    .songWrapper {
        padding: 0.75rem 1.25rem;
    }
    .notificationButton {
        margin: 0;
        opacity: .5;
        transition: opacity .2s ease;
    }
    .sidebar.expanded .notificationButton {
        opacity: 1;
    }
    .resultOptionsContainer {
        flex-direction: column;
        gap: 0.5rem;
    }
}
