body {
  background-color: #2d2d2d;
  color: #ffc266;
  font-family: "Roboto", sans-serif;
  font-size: 32px; /* Increased font size for better readability */
}

.controls {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #373737;
}

#myProgress {
  width: 90%; /* Adjusted width for mobile */
  background-color: #d9d9f2;
  cursor: pointer;
  border-radius: 10px;
  margin-left: 31px;
}

#myBar {
  width: 0%;
  height: 8px; /* Increased height for better visibility */
  background-color: #ffc266;
  border-radius: 10px;
}

.logo {
  fill: red;
}

.btn-action {
  cursor: pointer;
  padding-top: 15px; /* Increased padding for easier tapping */
  width: 40px; /* Increased width for better touch target */
}

.btn-ctn,
.infos-ctn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.infos-ctn {
  padding-top: 30px; /* Increased padding for better spacing */
}

.btn-ctn > div {
  padding: 10px; /* Increased padding for better touch target */
  margin-top: 25px; /* Increased margin for better spacing */
  margin-bottom: 25px; /* Increased margin for better spacing */
}

.infos-ctn > div {
  margin-bottom: 12px; /* Increased margin for better spacing */
  color: #ffc266;
}

.first-btn {
  margin-left: 5px; /* Increased margin for better spacing */
}

.duration {
  margin-left: 90px; /* Increased margin for better spacing */
}

.title {
  margin-left: 70px; /* Increased margin for better spacing */
  width: 250px; /* Increased width for better readability */
  text-align: center;
}

.player-ctn {
  position: -webkit-sticky;
  position: sticky;
  top: 27px; /* Height of header (11px) + padding (16px) */
  z-index: 1000;
  background-color: #373737;
}

.playlist-track-ctn {
  display: flex;
  background-color: #464646;
  margin-top: 5px; /* Increased margin for better spacing */
  border-radius: 8px; /* Increased border radius for smoother edges */
  cursor: pointer;
}
.playlist-track-ctn:last-child {
  /*border: 1px solid #ffc266; */
}

.playlist-track-ctn > div {
  margin: 15px; /* Increased margin for better spacing */
}
.playlist-info-track {
  width: 80%;
}
.playlist-info-track,
.playlist-duration {
  padding-top: 10px; /* Increased padding for better spacing */
  padding-bottom: 10px; /* Increased padding for better spacing */
  color: #e9cc95;
  font-size: 18px; /* Increased font size for better readability */
  pointer-events: none;
}
.playlist-ctn {
  overflow-y: auto; /* Makes the playlist container scrollable */
  max-height: calc(
    100vh - 150px
  ); /* Adjust the max-height accordingly to your player-ctn's height */
  padding-top: 1rem; /* Adds some space between the player controls and the playlist */
}
.active-track {
  background: #4d4d4d;
  color: #ffc266 !important;
  font-weight: bold;
}

.active-track > .playlist-info-track,
.active-track > .playlist-duration,
.active-track > .playlist-btn-play {
  color: #ffc266 !important;
}

.playlist-btn-play {
  pointer-events: none;
  padding-top: 10px; /* Increased padding for better spacing */
  padding-bottom: 10px; /* Increased padding for better spacing */
}
.fas {
  color: #ffc266;
  font-size: 24px; /* Increased font size for better visibility */
}

/* Media Queries */
@media only screen and (max-device-width: 700px) and (orientation: portrait) {
  /* Adjust styles for mobile screens */
  .player-ctn {
    margin-top: 21px;
    width: 98%;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #373737;
  }

  .playlist-track-ctn {
    padding: 20px;
    margin: 10px 0;
  }

  .playlist-info-track {
    font-size: 32px !important;
    line-height: 1.2;
    width: 70%;
    padding-top: 29px;
    padding-left: 28px;
  }

  .playlist-duration {
    font-size: 24px !important;
    line-height: 1.2;
    padding-top: 35px;
  }

  body {
    font-size: 61px;
  }

  .btn-ctn > div {
    padding: 25px;
    margin: 23px;
  }

  .fas {
    font-size: 32px;
  }

  .playlist-ctn {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-top: 2rem;
  }

  .title {
    font-size: 33px;
    margin-left: 20px;
    width: 55%;
  }

  .timer, .duration {
    font-size: 24px;
  }
}

/* Additional iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  .playlist-info-track {
    font-size: 32px !important;
  }
  
  .playlist-track-ctn {
    min-height: 60px;
  }
}

.site-header {
  /* background-color: #373737; */
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  box-sizing: border-box;
  margin-left: 15px;
  padding-top: 14px;
}

.site-header h1 {
  color: #ffc266;
  font-size: 23px !important;
  margin: 0;
  padding: 0;
  font-weight: normal;
  line-height: 1;
  font-family: "Roboto", sans-serif;
  text-transform: none;
  letter-spacing: normal;
  margin-right: 48px;
}
