@import url('../fnt/comfortaa.css');

:root {
    --text: #fff;
    --text-hover: #ddd;
    --text-mute: #999;
    --background: #000;
    --background-modal: rgba(0, 0, 0, 0.8);
}

* {
    padding: 0;
    margin: 0;
    outline: 0;
    border: 0;
    box-sizing: border-box;
    font-family: Raleway;
}

::-webkit-scrollbar {
    height: 2px;
    width: 2px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--text-mute);
    border-radius: 8px;

}

::-webkit-scrollbar-corner {
    display: none;
}


html, body, #wrapper {
    height: 100%;
}

body {
    background: var(--background);
    color: var(--text);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: var(--text);
}

/*
----------------------------------------------------------------------- */

#wrapper {
    padding: 16px;
    background: var(--background) url("../img/bg.jpg") no-repeat center fixed;
    background-size: cover;
    opacity: 1;
    transition: opacity 1s;
}

._init #wrapper {
    opacity: 0;
}


/*
----------------------------------------------------------------------- */

header {
    margin-bottom: 16px;
    z-index: 2;
    position: relative;
}

.logo {
    display: block;
    height: 32px;
    background: url("../img/logo.png") no-repeat center;
    background-size: contain;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
    pointer-events: none;
}
._cover #bg {
    opacity: 1;
}
._init #bg {
    opacity: 0 !important;
}
#bg .img {
    width: 100vw;
    height: 100vh;
    opacity: .3;
    background: no-repeat center;
    background-size: cover;
    filter: blur(2px);
    position: absolute;
    top: 0;
    left: 0;
}
/*
----------------------------------------------------------------------- */












#searchContainer {
  position: relative;
  display: inline-block;
}

#searchOptions {
  position: absolute;
  bottom: calc(100% + 5px);
  left: -20%;
  margin: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8); /* Transparent black background */
  backdrop-filter: blur(10px); /* Apply backdrop blur effect */
  list-style-type: none;
  border-radius: 10px;
  border-bottom: none;
  width: auto; /* Adjust the width as needed */
  white-space: nowrap;
  text-align: left;
  z-index: 999; /* Ensure the search options appear on top */
}

#searchOptions li {
  cursor: pointer;
  margin-bottom: 5px;
  display: flex;
  align-items: center;

}

#search {
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 480px) {
  #searchContainer {
    display: block;
  }

  #searchOptions {
    position: absolute; /* Use fixed positioning instead of absolute */
	bottom: calc(100% + 5px);
    margin-top: 10px;
    left: 25%; /* Position the block to the center of the screen */
    transform: translateX(-50%); /* Adjust to horizontally center */
    border: none;
    background-color: rgba(0, 0, 0, 0.8); /* Transparent black background */
    backdrop-filter: blur(10px); /* Apply backdrop blur effect */
    padding: 0;
	width: auto;
  }
}
#searchOptions li img {
  width: 24px; /* Adjust the width as needed */
  height: 24px; /* Adjust the height as needed */
  margin-right: 10px; /* Adjust the spacing between the icon and text */
}












#player {
    width: 100%;
    max-width: 800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 1s 1s;
    z-index: 10;
}

._init #player {
    opacity: 0;
}

#preload {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 1px;
    height: 1px;
}

#cover {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background: var(--background-modal) url("../img/cover.jpg") no-repeat center;
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    /*opacity: .5;*/
    /*transition: .3s;*/
}


#cover .image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: no-repeat center;
    background-size: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
#cover .image.active {
    opacity: 1;
    transform: translateX(0);
}
#cover .image.slide-out {
    opacity: 0;
    transform: translateX(-100%);
}

._cover #cover .image {
    opacity: 1;
}


#history_list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--background-modal);
    padding: 12px 16px;
    opacity: 0;
    transition: opacity .3s;
    overflow-y: auto;
}

._history #history_list {
    opacity: 1;
}

#history_list a {
    /*margin-bottom: 8px;*/
    opacity: .8;
    transition: opacity .3s;
    padding: 4px 0;
    display: block;
}

#history_list a:hover {
    opacity: 1;
    background: url("../img/search.svg") no-repeat right center;
    background-size: 16px;
}

#artist {
    margin-bottom: 0px;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    height: 30px;
    overflow: hidden;
    opacity: .5;
    transition: .3s;
    padding: 0 32px;
}

#songtitle {
    margin-bottom: auto;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    height: 60px;
    overflow: hidden;
    opacity: .5;
    transition: .3s;
    padding: 0 32px;
}


._playing #artist {
    opacity: 1;
}

._playing #songtitle {
    opacity: 1;
}

.controls {
    text-align: center;
}

.controls a {
    display: inline-block;
    width: 32px;
    height: 64px;
    background: no-repeat center;
    background-size: 24px;
    margin: 0 8px;
    border-radius: 100%;
    /*opacity: .8;*/
    transition: opacity .3s, background-color .3s;
}

#search {
    background-image: url("../img/search.svg");
}

#history {
    background-image: url("../img/history.svg");
}

#play {
    background-image: url("../img/play.svg");
    background-size: 64px;
    width: 64px;

}

#vk {
    background-image: url("../img/vk.svg");
}

#volume_show {
    background-image: url("../img/volume_max.svg");
}


.controls a:hover {
    /*opacity: 1;*/
}

._media #play {
    opacity: .5 !important;
    background-image: url("../img/wait.svg");
    animation: rotate 3s linear infinite;
}

._playing #play {
    background-image: url("../img/pause.svg");
}

/*
----------------------------------------------------------------------- */

footer {
    position: fixed;
    bottom: 0px;
    left: 5px;
    right: 16px;
    font-size: 80%;
    color: var(--text-mute);
    z-index: 10;

}

footer a {
    color: var(--text-mute);
    transition: color .3s;
}

footer a:hover {
    color: var(--text);
}

footer .copyright {
    float: left;
}

footer .developer {
    float: right;
}

/*
----------------------------------------------------------------------- */
#spectrum {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    opacity: .2;
}


/*
----------------------------------------------------------------------- */
#volume {
    position: absolute;
    bottom: -45px;
    background: #222;
    width: 220px;
    height: 40px;
    left: 50%;
    margin-left: -110px;
    z-index: 20;
    border-radius: 40px;
    padding: 20px 0;
    transition: .3s;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
}

._volume #volume {
    transform: scale(1);
    opacity: 1;
}

#volume .area {
    display: block;
    width: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    cursor: pointer;
    height: 20px;
    margin: -10px 0 0 -50px;
    padding-top: 9px;
}

#volume .volume,
#volume .line {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #111;
}

#volume .volume {
    background: #ddd;
}

#volume .mute,
#volume .value {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    margin: -15px 0 0 0;
    left: 10px;
}

#volume .value {
    left: auto;
    right: 10px;
    font-style: normal;
    line-height: 30px;
    text-align: right;
}

#volume .mute {
    background: url("../img/volume_mute.svg") no-repeat center;
    background-size: 24px;
    cursor: pointer;
}

#volume .slider {
    width: 30px;
    height: 30px;
    position: absolute;
    display: block;
    background: #bbb;
    top: 50%;
    margin: -15px 0 0 45px;
    border-radius: 30px;
    cursor: e-resize;
    left: 100px;
}

#volume .slider.active {
    background: #fff;
}

/*
----------------------------------------------------------------------- */
@-webkit-keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.donate-icon {
	display: block;
	width: 40px;
	height: 40px;
	position: fixed;
	top: 2.5rem;
	right: 2rem;
	background: #cccccc;
	border-radius: 50%;
	transition: 0.5s;
	z-index: 200;
}

@media screen and (max-width: 360px){
	.donate-icon {
		display:;
	}
}

.donate-icon:hover {
	background: #FF0000;
}

.donate-icon__black {
	background: #4e4e4e;
}

.donate-icon:after {
	content: "";
	position: absolute;
	background: url("../img/donate.svg");
	background-size: contain;
	width: 40px;
	height: 40px;
	
}

/*
.donate-icon:hover:after {
	width: 20px;
	height: 20px;
	left: 10px;
	top: 11px;
}
*/

.donate-icon:hover,
.donate-icon:focus {
	animation: pulse 1s;
	box-shadow: 0 0 0 2em rgba(255, 255, 255, 0);
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 var(--hover);
	}
}

.donate-icon {
	--hover: #FF0000;
}


