@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');


:root {
    /***** bg ****/
    --bg01: linear-gradient(180deg, #22262A 0%, #181A1D 100%);
    --bg02: linear-gradient(135deg, #2F3439, #1D1F23);
    --bg020: linear-gradient(-135deg, #2F3439, #1D1F23);
    --bg3: linear-gradient(135deg, #2C3136, #1D2023);
    --bg04: #040404;

    --border01: #22262A;
    --border02: #16191c;

    /******** box-shadow ****/
    --box-shadow01:
        6px 6px 10px #151618,
        -6px -6px 10px #2c3136,
        inset 2px 2px 6px #33353b,
        inset -3px -3px 6px #151618;
    --box-shadow02:
        -6px -6px 10px #151618,
        6px 6px 10px #2c3136,
        inset 2px 2px 6px #33353b,
        inset -3px -3px 6px #151618;
    --box-shadow020:
        -3px -3px 10px #151618,
        3px 3px 10px #2c3136,
        inset 2px 2px 6px #33353b,
        inset -3px -3px 6px #151618;
    --box-shadow03:
        6px 6px 12px #151618,
        -6px -6px 12px #2c3136,
        inset 2px 2px 6px #33353b,
        inset -3px -3px 6px #151618;
    --box-shadow04:
        inset 2px 2px 3px -2px rgba(167, 169, 171, 0.322),
        inset 0px -1px 1px 0px #4a4c4e;
    --box-shadow05:
        8px 8px 12px #151618,
        -2px -2px 10px #2c3136,
        inset 2px 2px 3px #33353b,
        inset -2px -2px 3px #151618;
    --box-shadow06:
        10px 10px 12px #151618,
        -10px -10px 12px #222529,
        inset 4px 4px 8px #33353b,
        inset -4px -4px 8px #151618;
    --box-shadow07:
        10px 10px 12px #151618,
        -10px -10px 12px #222529,
        inset -4px -4px 8px #33353b,
        inset 4px 4px 8px #151618;
    --box-shadow08:
        4px 4px 8px #151618,
        -3px -3px 8px #2c3136,
        inset 2px 2px 6px #33353b,
        inset -3px -3px 6px #151618;
    --text-color1: #86898c;
    --text-color2: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

html {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg01);
}

body {
    position: relative;
    height: 100%;
    width: 100%;
    font-family: 'Lato', sans-serif;
    background: var(--bg01);
    color: var(--text-color1);
    overflow-y: hidden;
}

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

/* home section */
.home {
    width: 100%;
    height: 100%;
    /* max-height: 90vh; */
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-shadow: var(--box-shadow01);
    border-radius: 20px;
}

/* music player */
.wrapper {
    width: 100%;
    max-width: 900px;
    height: 100%;
    text-align: center;
    padding: 2em;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

header,
.song-timer,
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

header .hdbtn,
.hdbtn {
    background: var(--bg02);
    border: 2px solid var(--border01);
    box-shadow: var(--box-shadow01);
    width: 52px;
    height: 52px;
    line-height: 52px;
    color: #86898c;
    font-size: 22px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hdbtn:active {
    box-shadow: var(--box-shadow02);
}

header h3 {
    text-transform: uppercase;
    font-size: 14px;
    color: #86898c;
}

.player {
    margin-top: 2em;
}

.player .img-area img {
    width: 20vh;
    height: 20vh;
    margin-bottom: 2vh;
    object-fit: cover;
    border: 5px solid var(--border02);
    border-radius: 50%;
    box-shadow: var(--box-shadow03);
}

.player .song-details .name {
    color: #A7A9AB;
    font-size: 1.5rem;
    text-transform: capitalize;
}

.player .song-details .artist {
    color: #7c7d80;
    font-size: 14px;
    text-transform: capitalize;
    padding: 10px 0 20px 0;
}

.nameplaylist {
    white-space: nowrap;
    max-width: 26vh;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis " ...";
}

.audioC {
    margin: 30px 0px 30px 0px;
}

.song-timer {
    margin-bottom: 5px;
}

.song-timer span {
    font-size: .9em;
    color: #7c7d80;
    user-select: none;
    font-weight: 800;
}



[type=range] {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--val) - var(--min))/var(--range));
    --sx: calc(.5*1.5em + var(--ratio)*(100% - 1.5em));
    margin: 0;
    padding: 0;
    width: 21.5em;
    height: 1.5em;
    background: transparent;
    font: 1em/1 arial, sans-serif;
}

[type=range],
[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

[type=range]::-webkit-slider-runnable-track {
    box-sizing: border-box;
    border: none;
    width: 21.5em;
    height: 0.35em;
    border-radius: 50px;
    background: var(--bg04);
    box-shadow: var(--box-shadow04);
}

.js [type=range]::-webkit-slider-runnable-track {
    background: var(--bg04) 0/var(--sx) 100% no-repeat var(--bg04);
}

[type=range]::-moz-range-track {
    box-sizing: border-box;
    border: none;
    width: 21.5em;
    height: 0.55em;
    border-radius: 50px;
    background: var(--bg04);
    box-shadow: var(--box-shadow04);
    cursor: pointer;
}

[type=range]::-ms-track {
    box-sizing: border-box;
    border: none;
    width: 12.5em;
    height: 0.35em;
    border-radius: 50px;
    background: var(--bg04);
    box-shadow: var(--box-shadow04);
    cursor: pointer;
}

[type=range]::-moz-range-progress {
    height: 0.35em;
    border-radius: 50px;
    background: linear-gradient(90deg, #bf2311 0%, #e1530a 80%);
    box-shadow: var(--box-shadow04);
    cursor: pointer;
}

[type=range]::-ms-fill-lower {
    height: 0.25em;
    background: linear-gradient(90deg, #bf2311 0%, #e1530a 80%);
    box-shadow: var(--box-shadow04);
}

[type=range]::-webkit-slider-thumb {
    margin-top: -0.625em;
    box-sizing: border-box;
    border-color: #e1530a;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--bg02);
    box-shadow: var(--box-shadow05);
    border-block-width: 2px;
}

[type=range]::-moz-range-thumb {
    box-sizing: border-box;
    border-color: #e1530a;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--bg02);
    box-shadow: var(--box-shadow05);
    border-block-width: 2px;
}

[type=range]::-ms-thumb {
    margin-top: 0;
    box-sizing: border-box;
    border-color: #e1530a;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--bg02);
    box-shadow: var(--box-shadow05);
    border-block-width: 2px;
}

[type=range]::-ms-tooltip {
    display: none;
}


.controls {
    margin: 30px 8px 5px 8px;
}

.controls .btnC {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--border02);
    transition: all 0.2s ease;
    background: var(--bg03);
    box-shadow: var(--box-shadow06);
    display: block;
}

.btnC:active {
    box-shadow: var(--box-shadow07);
}

.controls .btnC i {
    font-size: 36px;
    user-select: none;
    color: #6a6a6a;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.controls .play-pause {
    width: 80px;
    height: 80px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.controls .play-pause i {
    text-align: center;
    color: #fff;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.7));
}

.controls .play-pause {
    border: 3px solid #ce4b0e;
    box-shadow: none;
    /* box-shadow: 10px 10px 12px #151618,
        -10px -10px 12px #222529,
        inset 4px 4px 8px #e5550b,
        inset -4px -4px 8px #bd2210; */

}

.controls .play-pause:active {
    box-shadow:
        10px 10px 12px #151618,
        -10 -10 12px #222529,
        inset -10px -10px 8px #e5550b,
        inset 10px 10px 8px #bd2210;
}

.controls .play-pause .pause,
.controls .play-pause .play {
    display: none;
}

.controls .play-pause .pause.active,
.controls .play-pause .play.active {
    display: block;
    line-height: 0;
}


.rotate {
    animation: rotation 8s infinite linear;
    transform-origin: center;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.controls1 {
    display: flex;
    justify-content: space-between;
    padding-top: 2.5em;
}

.controls1 .hdbtn {
    width: 38px;
    height: 38px;
    font-size: 18px;
    line-height: 40px;
    box-shadow: var(--box-shadow08);
    transition: all 0.5s ease;
}

.controls1 .hdbtn:active {
    box-shadow: var(--box-shadow020);
}

.controls1 .hdbtn.active {
    box-shadow: var(--box-shadow02);
    border: 2px solid #ce4b0e;
    border-radius: 50%;
    display: block;
}


/* #loop_ , #loop_one , #shuffle{
    display: none;
}
#loop_.active, #loop_one.active, #shuffle.active{
    display: block;
} */


/* playlist card */

/* playlist section */

.playlist {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: -100%;
    /* padding: 30px 0; */
    background: var(--bg01);
    z-index: 3;
    transition: 1s;
    overflow: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.playlist.active {
    right: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.playlist::-webkit-scrollbar {
    display: none;
}
.playlist-top {
    position: sticky;
    top: 0;
    background: var(--bg020);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em 0;
    background: linear-gradient(180deg, rgb(34, 38, 42) 50%, rgb(24, 27, 30) 186%);
    /*  */
    align-items: center;
}

.artist {
    color: #7c7d80;
    font-size: 1.2em;
    text-transform: capitalize;
    padding: 10px 0 20px 0;
}

.play-now {
    display: flex;
    align-items: center;
    justify-content: space-around;
    /*  */
    width: 100%;
}

.play-now .img-area img {
    margin-bottom: 0;
}



.hdbtn:active,
.queue .hdbtn:active {
    box-shadow: var(--box-shadow02);
}

.hdbtn .star {
    display: none;
}

.hdbtn .star.active {
    display: block;
}

.queue .hdbtn {
    width: 40px;
    height: 40px;
    font-size: 17px;
    line-height: 0px;
    box-shadow: var(--box-shadow08);
}

.queue.active .hdbtn {
    border: 3px solid #ce4b0e;
}

.img-area img {
    width: 18vh;
    height: 18vh;
    margin-bottom: 2rem;
    object-fit: cover;
    border: 4px solid var(--border02);
    border-radius: 50%;
    box-shadow: var(--box-shadow03);
}

.playlists-group {
    position: relative;
    width: 100%;
    min-height: 80px;
    height: auto;
    overflow-x: auto;
    padding: 2em 1.6em;
}

.queue {
    display: flex;
    justify-content: space-between;
    /* margin-bottom: .9em; */
    padding: .7em 1em;
    align-items: center;
}

.queue.active {
    background: #0404046b;
    box-shadow: var(--box-shadow05);
    padding: 1.1em 1em .5em 1em;
    border-radius: 20px;
    /* align-items: last baseline; */
}

.queue-info {
    text-align: start;
    line-height: 1em;
    overflow: hidden;
    white-space: nowrap;
    max-width: 26vh;
}

.queue-info .name,
.queue-info .artist {
    font-size: 1em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis " ...";
}

.play-pause {
    color: var(--text-color2);
    border: 3px solid #ce4b0e;
    background: none;
}

.queue .hdbtn .play-pause {
    background: none;
    box-shadow: none;
}

.queue.active .play{
    display: none;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.7));
    transition: all 1s ease-out;
}

.queue .pause{
    display: none;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.7));
    transition: all 1s ease-out;
}

.queue .play.active{
    display: block;
}

.queue.active .pause{
    display: block;
}

.play-pause:active {
    box-shadow:
        10px 10px 12px #151618,
        -10 -10 12px #222529,
        inset -10px -10px 8px #e5550b,
        inset 10px 10px 8px #bd2210;
}

.rotate {
    animation: rotation 8s infinite linear;
    transform-origin: center;
    animation-play-state: paused;
}

.img-area::before {
    content: "";
    position: absolute;
    background: var(--bg02);
    width: 3em;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.rotate.active {
    animation-play-state: running;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

/* add-song section */

.add-song {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    /* padding: 30px 0; */
    background: var(--bg01);
    z-index: 3;
    transition: 1s;
    overflow: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.add-song.active {
    left: 0;
}

.add-song-top {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 3em;
}

.add-song-back {
    position: absolute;
    top: 2.5em;
    left: 1.4em;
}
.add-song-input{
    position: relative;
    width: 100%;
    min-height: 80px;
    height: auto;
    overflow-x: auto;
    padding: 2em 1.6em; 
    gap: 1em;
display: flex;
flex-direction: column;
}
.add-song-body{
    background: #0404046b;
    box-shadow: var(--box-shadow08);
    padding: 1.1em 1em .5em 1em;
    border-radius: 20px;
    margin-bottom: 1em;
    height: 7em;
}

.add-song-set{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-bottom: .5em;
}
.add-song-set .song-name{
    font-size: 1em;
}
.add-song-set .input{
margin-top: .4em;
background: #696969;
border: none;
box-shadow: var(--box-shadow04);
height: 2em;
width: 90%;
border-radius: 20px;
padding: 0 10px;
font-size: 1.2em;
/* color: var(--bg01); */
}
.add-song-set .input:focus{
outline: none;
    border: solid 2px #e1530a;
}


  /*  */
  .file {
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    position: absolute;
  }
  .file-input{
    display: flex;
justify-content: center;
padding: 0 0 2.8em;
  }
  
  .file-input label {
    display: block;
    position: relative;
    width: 85%;
    height: 2.2em;
    border-radius: 25px;
    background: linear-gradient(90deg, #bf2311 0%, #e1530a 80%);
    box-shadow: var(--box-shadow04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform .2s ease-out;
  }
  
  .file-name1, .file-name2{
    position: absolute;
    bottom: -2.2em;
    /* left: 10px; */
    font-size: 0.85rem;
    color: #e1530a;
    margin: 0 auto;
    width: 100%;
  }
  
  input:hover + label,
  input:focus + label {
    border: #bf2311;
    transform: scale(1.02);
  }
  
  /* Adding an outline to the label on focus */
  input:focus + label {
    outline: 1px solid #000;
    outline: -webkit-focus-ring-color auto 2px;
  }

  .add-play-pause{
    color: var(--text-color2);
    border: 3px solid #ce4b0e;
    background: none;
    font-size: 2.5em;
    border-radius: 50%;
    padding: .3em;
    box-shadow: var(--box-shadow06);
  }
  .add-play-pause:active{
    box-shadow: var(--box-shadow02);
  }
  .add-play-pause .icon{
    display: flex;
  }


  /* tost mesage  */
  /* #toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -200px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    color: black;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
  }
  
  #toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.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;}
  }
  .checkicon i{
      font-size: 40px;
      color: #47d764;
  } */
  /* end tost mesage */
/* ==========================================
   ELEGANCKIE POWIADOMIENIA (TOAST)
   ========================================== */
.custom-toast {
    visibility: hidden;
    min-width: 250px;
    background: var(--bg01);
    border: 2px solid var(--border02);
    box-shadow: var(--box-shadow01);
    border-radius: 20px;
    padding: 15px 25px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: -100px; /* Zaczyna poza ekranem */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), visibility 0.5s;
}

.custom-toast.show {
    visibility: visible;
    bottom: 40px; /* Wysuwa się na ekran z efektem sprężynki */
}

.custom-toast .toast-icon {
    font-size: 28px;
    display: flex;
}

.custom-toast .toast-msg {
    color: #A7A9AB;
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================
   WYBÓR IKON PLAYLIST (RADIO BUTTONS)
   ========================================== */

/* Ukrywamy standardowe, brzydkie kółka przeglądarki */
.add-song-set label input[type="radio"] {
    display: none;
}

/* Wygląd ikony przed kliknięciem (wypukła) */
.add-song-set label iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg02);
    box-shadow: var(--box-shadow08);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Wygląd ikony po kliknięciu/zaznaczeniu (wklęsła, świecąca obwódka) */
.add-song-set label input[type="radio"]:checked + iconify-icon {
    /* box-shadow: var(--box-shadow02); */
    border: 2px solid #ce4b0e;
    transform: scale(0.95);
}