* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    min-height: 0;
    font-family: 'Fira Sans';
}

.main {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    position: relative;
}

.main > * {
    grid-area: 1 / 1;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-panel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-left: 2%;
    padding-right: 2%;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.5s linear;
}

.top-panel > img:not(.logo) {
    height: 2.4em;
}

.logo {
    height: 2.9em;
}

a:has(.logo) {
    margin-right: auto;
    line-height: 0px;
}

@media (max-width: 900px) {
    .top-panel {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

.content-container {
    height: 100%;
    z-index: 100;
    background-color: #020202d1;
    backdrop-filter: blur(15px);
    display: grid;
    grid-template-rows: fit-content(100px) 1fr;
}

.aside-section {
    width: 100%;
    background-color: #4d4d4d94;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .aside-section {
        margin-bottom: 5px;
    }
}

.aside-stack {
    display: grid;
    height: 100%;
    overflow: hidden;
}

.radio-open {
    grid-template-columns: 100% 0% 0% 0%;
}

.playlist-open {
    grid-template-columns: -0% 100% 0% 0%;
}

.search-open {
    grid-template-columns: -0% -0% 100% 0%;
}

.artist-open {
    grid-template-columns: -0% -0% -0% 100%;
}

.aside-page {
    padding-top: 15px;
    padding-left: 10px;
    padding-right: 6px;
    display: grid;
    overflow-x: hidden;
    grid-template-rows: auto 1fr;
    padding-bottom: 5px;
}

@media (max-width: 900px) {
    .aside-page {
        padding-top: 10px;
        padding-left: 7px;
        padding-right: 6px;
    }
}

.content {
    display: grid;
    color: #ffffff;
}

.ct-layout {
    grid-template-columns: 100% 0% 0%;
}

.ct-layout-open {
    grid-template-columns: 70% 28% 2%;
}

@media (max-width: 1600px) {
    .ct-layout-open {
        grid-template-columns: 60% 38% 2%;
    }
}

@media (max-width: 900px) {
    .ct-layout-open {
        grid-template-columns: 0.25% 99.5% 0.25%;
    }
}

.current-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.current-hide {
}

body {
    color: #aaa;
    background-color: #1C1C1C;
}

body {
    font-size: 20px;
}

@media (max-width: 900px) {
    .current-hide {
        visibility: hidden;
    }
    body {
        font-size: 18px;
    }
}

.hide-item {
    visibility: hidden;
    overflow: hidden;
}

.hide-item-n {
    visibility: hidden;
    display: none;
}

.playlist-element {
    display: grid;
    grid-template-columns: auto 50px 1fr auto;
    align-items: center;
    padding: 4px;
    border-radius: 7px;
}

.playlist-element > .entry-num {
    margin-right: 10px;
}

.playlist-element:hover {
    transition: .5s ease;
    background-color: #4d4d4d94;
}

.playable-element {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    padding: 4px;
    border-radius: 7px;
}

.playable-element:hover {
    transition: .5s ease;
    background-color: #4d4d4d94;
}

.playable-element-artist {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 5px;
    border-radius: 7px;
}

.playable-element-artist:hover {
    transition: .5s ease;
    background-color: #4d4d4d94;
}

.album-element {
    display: grid;
    grid-template-columns: 50px auto;
    align-items: center;
}

.playlist {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 5px;
}

.playlist:hover {
    transition: .5s ease;
    background-color: #4d4d4d94;
}

.artist-only {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 8px;
}

.artist-page {
    grid-template-columns: 0% 100%;
}

.artist-not-page {
    grid-template-columns: 100% 0%;
}

.not-sel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.not-sel-icon {
    width: 96px;
}

.artist-res-page {
    display: grid;
    grid-template-rows: auto 1fr;
}

.blured-bg {
    width: 100%;
    height: 100%;
}

.song-art-container {
    display: grid;
}

.song-art {
    grid-area: 1 / 1;
    display: block;
    object-fit: cover;
    margin-inline: auto;
    border-radius: 7px;
    box-shadow: 0px 4px 10px #0000003c;
}

.song-art {
    width: min(70vw, 300px);
    height: min(60vh, 300px);
}

.song-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ecc-first {
    padding: 0 5px;
}

.scc-extra {
    width: 102%;
}

.play-button {
    width: 38px;
}

.control-button {
    width: 20px;
}

.skip-button {
    width: 30px;
}

.control-button-disabled {
    filter: grayscale(100%) brightness(60%);
    pointer-events: none;
}

@media (max-height: 600px) {
    .song-art {
        width: min(70vw, 300px);
        height: min(40vh, 300px);
    }
}

.song-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-width: 350px;
    width: min(70vw, 300px);
}

.clip {
    cursor: copy;
}

.song-artist {
    font-size: 17px;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0.7;
    width: min(70vw, 300px);
}

.aside-song-art {
    display: inline-block;
    object-fit: cover;
    width: min(70vw, 2.5em);
    height: min(60vh, 2.5em);
    margin-inline: auto;
    border-radius: 7px;
    box-shadow: 0px 4px 10px #0000003c;
}

.loader {
    background: linear-gradient(90deg, #fff0 33%, #ffffff1c 50%,#fff0 66%);
    background-size: 300% 100%;
    animation: l1 1s infinite linear;
}
@keyframes l1 {
    0% {background-position: right}
}

.aside-element-title {
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    padding-left: 20px;
    font-size: 0.8em;
}

.aside-element-title.clickable {
    opacity: 0.6;
}

.aside-title {
    padding-bottom: 10px;
}

.aside-title:not(.modal-title):not(.playlists-title) {
    padding-left: 10px;
}

@media (max-width: 900px) {
    .aside-element-title {
        padding-left: 10px;
    }

    .aside-title {
        padding-bottom: 5px;
    }
    .aside-title:not(.modal-title):not(.playlists-title) {
        padding-left: 5px;
    }
}

.clickable:hover {
    cursor: pointer;
    transition: .5s ease;
    color: #b7b7b5;
    text-decoration: underline;
}

a {
    color: black;
    text-decoration: none;
}

.title-pad {
    padding-left: 10px;
}

.not-title {
    text-align: center;
}

.simple-container {
    max-width: 675px;
    margin: 0 auto;
    padding-top: 70px;
    padding-bottom: 20px;
}

.simple-print {
    fill: white;
    stroke: white;
}
.simple-print svg {
    height: 100%;
}

.simple-close {
    color: white;
    border-color: white;
}

.simple-ext-info {
    border-top: 1px solid #aaa;
}

p {
    font-size: 0.8em;
}

h1 {
    font-size: 1.5em;
    line-height: 1.6em;
}

h2 {
    font-size: 1em;
    line-height: 1.25em;
}

h3 {
    font-size: 0.8em;
    line-height: 27px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #D8D8D8;
    border-top: 1px solid #D8D8D8;
}

hr {
    height: 1px;
    background-color: #d8d8d8;
    border: none;
    width: 100%;
    margin: 0px;
}

a[href] {
    color: #1e8ad6;
}

a[href]:hover {
    color: #3ba0e6;
}

li {
    line-height: 1.2em;
}

ul {
    list-style-type: none;
}

aside,
[class *= "sidebar"],
[id *= "sidebar"] {
    max-width: 90%;
    margin: 0 auto;
    border: 1px solid lightgrey;
    padding: 5px 15px;
}

input[type=range]{
    background-color: transparent;
    accent-color: #4d4d4d94;
    width: 200px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #ddd;
}

input[type=range]::-moz-range-thumb {
    visibility: hidden;
    width: 1px;
    height: 1px;
}

input[type="range"]::-moz-range-progress {
    background: #4d4d4deb;
    height: 6px;
}

input[type="range"]::-ms-thumb {
    visibility: hidden;
    width: 1px;
    height: 1px;
}

.in {
    width: 100%;
    height: 50px;
    line-height: 30px;
    padding: 0 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    background-color: #4d4d4d94;
    color: #ffffff;
    border-color: #ffffff;
    transition: .5s ease;
}

.in::placeholder {
  color: #ffffff;
}

.in:focus, .in:hover {
    outline: none;
    background-color: #4d4d4d94;
    box-shadow: 0 0 0 5px rgb(255 255 255 / 30%);
}

.in-danger {
    background-color: #d9534f;
    border-color: #d9534f;
}

.in-danger:focus, .in-danger:hover {
    background-color: #df1e18;
}

.in-search {
    width: 100%;
    height: 50px;
    line-height: 30px;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    background-color: #4d4d4d94;
    color: #ffffff;
    border-color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
}

.in-search:focus-within, .in-search:hover {
    transition: .5s ease;
    outline: none;
    background-color: #4d4d4d94;
    box-shadow: 0 0 0 5px rgb(255 255 255 / 30%);
}

.in-search > * {
    height: 50px;
    line-height: 30px;
    padding: 0 1rem;
    outline: none;
    background-color: inherit;
    color: #ffffff;
    border-color: #ffffff;
    border-width: 0;
}

.in-search > select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 0px center;
}

.listing-box {
    overflow-x: hidden;
    overflow-y: auto;
}

.search-listing {
    margin-top: 20px;
}

.elements-box {
    overflow-x: visible;
    overflow-y: visible;
}

.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #4d4d4df7;
    color: #ffffff;
    text-align: center;
    border-radius: 60px;
    padding: 16px;
    position: fixed;
    z-index: 102;
    left: 50%;
    transform: translate(-50%, 0%);
    bottom: 30px;
    font-size: 0.8em;
}

.toast-show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.nav-button {
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
}

@media (hover: hover) {
    .nav-button:hover {
        transition: all 0.5s linear;
        background: #4d4d4d94;
    }
}

.nav-dir {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center; 
    background: #4d4d4d94;
}

.nav-dir > img {
    height: 1.6em;
}

.nav-dir:hover {
    transition: all 0.5s linear;
    background: none;
}

.nav-dir-selected {
    background: none;
}

.nav-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.page-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.player-progress {
    line-height: 1em;
    width: 100%;
}

input[type="range"].player-progress-bar {
    width: 100%;
}

.player-progress-vals {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.player-progress-vals > p {
    font-size: 0.7em;
    opacity: 0.7;
}

.player-controls {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.playlists-title {
    display: flex;
    gap: 20px;
    align-items: center;
}

.round-button {
    padding: 8px;
    border-radius: 50px;
    background: #4d4d4d94;
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

@media (hover: hover) {
    .round-button:hover {
        transition: all 0.5s linear;
        background: #2d2b2b94;
    }
}

.playlist-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.playlist-song {
    display: grid;
    grid-template-columns: auto 50px 1fr auto;
    align-items: center;
    padding: 4px;
    border-radius: 7px;
}

.playlist-song:hover {
    transition: .5s ease;
    background-color: #4d4d4d94;
}

.entry-num {
    font-size: .66em;
    width: 4ch;
    text-align: center;
}

.playlist-song > .entry-num {
    margin-right: 10px;
}

@media (max-width: 900px) {
    .playlist-song > .entry-num {
        margin-right: 4px;
    }
}

.cd-element {
    text-align: left;
    padding-left: 10px;
    padding-top: 10px;
}

.song-controls {
    display: flex;
    gap: 2px;
}

.song-button {
    width: 32px;
    padding: 5px;
    border-radius: 50px;
    background: #4d4d4d94;
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

@media (hover: hover) {
    .song-button:hover {
        transition: all 0.5s linear;
        background: #2d2b2b94;
    }
}

.modal-playlist-name {
    padding-left: 0px;
}

.modal-playlist:hover {
    transition: .5s ease;
    background-color: #424242f7;
}

.queue-page {
    display: flex;
    flex-direction: column;
}

.radio-mini {
    display: flex;
    flex-direction: row;
    background-color: #4d4d4d94;
    margin-top: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: fit-content;
}

.radio-mini-player {
    display: grid;
    grid-template-columns: auto 50px 1fr auto;
    align-items: center;
    padding: 4px;
    border-radius: 7px;
    width: 100%;
}

.radio-mini-player > .entry-num {
    margin-right: 10px;
}


.radio-mini-live {
    position: relative;
    display: inline-block;
}

.radio-mini-live>img {
    display: block;
}

.radio-mini-live>span {
    position: absolute;
    top: -10px;
    right: -7px;
    font-size: 14px;
}

