.player {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  height: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
  display: grid;
  margin: 130px auto;
}

.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.image-container img {
  max-width: 100%;
  border-radius: 10px;
  width: 315px;
  height: 316px;
}

.track-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

#trackName {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #004563;
  font-size: 1rem;
}

#trackTime {
  flex: 0 0 auto;
  text-align: right;
  color: #004563;
}

input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  height: 5px;
  border-radius: 5px;
  outline: none;
  margin-bottom: 20px;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #004563;
  border-radius: 50%;
  cursor: pointer;
}

.controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.playlist {
  width: 100%;
  margin-top: 20px;
}

#playlistContainer {
  width: 100%;
  margin-top: 10px;
  max-height: 200px; /* Ajusta esta altura según sea necesario */
  overflow-y: auto;
}

#playlistContainer.hidden {
  display: none;
}

#profesorSelect,
#claseSelect,
#leccionSelect {
  width: 96%;
  padding: 5px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

#trackList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#trackList li {
  padding: 5px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  text-align: right;
  color: red;
  margin-right: 1rem;
}

#trackList li:hover {
  background-color: #f0f0f0;
}

#trackList li.active {
  background-color: #e6cd7b;
  color: #000;
  border-radius: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
  .player {
    padding: 10px;
  }

  .buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .buttons i {
    margin: 5px;
  }

  .track-info {
    flex-direction: column;
    align-items: center;
  }

  #trackName,
  #trackTime {
    text-align: center;
    margin-bottom: 5px;
  }
}

.hidden {
  display: none;
}

.message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  font-size: 16px;
}

.iconos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 1rem;
  gap: 3rem;
}

.icono-contenedor {
  position: relative;
  display: inline-block;
}

.icono-hover,
.icono-hover2 {
  display: none;
  position: absolute;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: max-content;
  top: 0;
  left: 0;
  margin-top: -10px;
  margin-left: 20px;
}

.icono-hover2 {
  margin-left: -9rem;
}

.iconos-img {
  width: max-content;
  height: auto;
  transition: transform 0.3s ease;
}

.icono-contenedor:hover .icono-hover {
  display: block;
}

.icono-contenedor:hover .icono-hover2 {
  display: block;
}

.icono-contenedor:hover .iconos-img {
  transform: scale(1.1);
}

/* PDF */
header {
  background-color: #000000;
  color: #ffffff;
  padding: 1rem;
  text-align: center;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
}

header,
main,
#search-container,
#search-bar,
#search-icon{
  display: none;
}

.book {
  border: 1px solid #000000;
  border-radius: 5px;
  margin: 1rem;
  padding: 1rem;
  width: 300px;
  text-align: center;
  background-color: #f9f9f9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.book h3 {
  margin: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.book a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
}

.book a:hover {
  background-color: #333333;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #000000;
  color: #ffffff;
  margin-top: 2rem;
}

#search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
}

#search-bar {
  padding: 0.5rem;
  width: 300px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

#search-icon {
  margin-left: -40px;
  padding: 0.5rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#search-icon i {
  font-size: 20px;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

@media (max-width: 768px) {
  .book {
    width: 100%;
    margin: 1rem 0;
  }

  #search-bar {
    width: 250px;
  }
}