@font-face {
      font-family: 'Fredoka_bold';
      src: url('https://www.chtitegalaxie.fr:28/static/fonts/fredoka/Fredoka-Bold.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
}

.icon-pause {
    background-image: url('illustrations/pause.png');
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
}

.icon-play {
    background-image: url('illustrations/play.png');
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
}

audio {
    position: relative;
    z-index: 1;
}

.audio-player {
  left: 48.49%;
  top: 50%;
  padding: 10px;
  background-color: rgba(33, 9, 65, 0.6);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: absolute;
  justify-content: space-between;
  transform: translate(-50%, -50%);
  display: flex;
  margin-top: 60px;
  margin-bottom: 60px;
  margin-left: 50px;
  margin-right: 50px;

  box-shadow:
  0 0 10px rgb(100, 30, 200),
  0 0 20px rgb(100, 30, 200),
  0 0 40px rgb(100, 30, 200),
  0 0 80px rgb(100, 30, 200),
  0 0 160px rgb(100, 30, 200);
 
}

.album-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    margin-left: 15px;
}

.album-art {
    width: 120px !important;
    height: 120px !important;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 10px;
    position: right;
}


.song-title {
    font-family: 'Fredoka_bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px !important;
    color: white;
    margin: 10px 0;
}

.offline-message {
    color: red;
    font-weight: bold;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.control-btn {
    background-color: rgba(158, 157, 155, 0.65); 
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.control-btn:hover {
    background-color: #34495e;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}
.a, .b {
    width: auto;
}
.volume-slider {
    position: absolute;
    right: 4%; 
    bottom: 6%;
    width: auto;
    max-width: 50%; 
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1dd1a1 0%, #5f27cd 100%);
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    margin-left: 9%;
}

.volume-slider:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 40%, #2c3e50 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #5f27cd;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background-color: #1dd1a1;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 40%, #2c3e50 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #5f27cd;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background-color: #1dd1a1;
}

.volume-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.artist-name {
    font-style: italic;
    color: white;
    font-size: 1em;
    margin-top: 5px;
}

.ckoi {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10; 
}

.home {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(10, 25, 50, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10; 
}

.ckoi:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 990px) {
    .ckoi {
        font-size: 1em;
        top: 82%;
        right: 41%;
    }

    .home {
        top: 9%;
        left: 3px;
        position: absolute;
    }

    .audio-player {
        left: 50%;
        position: absolute;
    }

    .audio-player {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }
      
}
