body, html {
  text-align: center;
  font-family: 'CustomFont', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  min-height: 100vh;
  height: 100vh;
}

.container {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(191, 19, 19, 0.928);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  height: 100vh;
  flex-direction: column;
  background: linear-gradient(to bottom, #f9f9f9, #e1e1e1);
}

.container img {
  width: 22em;
  border-radius: 10px;
  margin-bottom: 5px;
}
.header {
  align-items: left;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* --- TRACK SELECTION STYLES --- */
.track-selection {
  width: 22em;
  max-width: 95vw;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, #f9f9f9, #e1e1e1);
  padding: 25px;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height:270px;
}
.track-selection h2 {
  margin: 8px 0 4px 0;
  font-size: 1.1em;
  line-height: 1.1;
  padding: 8px;
  font-weight: 600;
}
.track-selection:hover {
  transform: translateY(-1px);
}

.track-list {
  list-style-type: decimal !important;
  margin-left: 20px !important;
  padding-left: 25px; /* Reduce left/right padding so decimals align */
  flex: 1 1 0;  
  min-height: 0;
  overflow-y: auto;
  
}

.track-list li {
  margin-bottom: 5px;
  padding:12px;
  /* Remove list-style-type and display here to keep continuous numbering */
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  color: #666;
}

/* --- REST OF YOUR STYLES UNCHANGED --- */
.music-player {
  width: 19.25em;
  max-width: 95vw;
  background: linear-gradient(to bottom, #f9f9f9, #e1e1e1);
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}
.music-player:hover {
  transform: translateY(5px);
}
.player-controls {
  margin-top: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.player-controls button {
  width: 62px;
  background: linear-gradient(to right, #4CAF50, #45a049);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}
.player-controls button:hover {
  background: linear-gradient(to right, #45a049, #4CAF50);
}
button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 10px;
  text-align: center;
}
button:hover {
  background-color: #45a049;
}
.track-info {
  margin-bottom: 20px;
}
.progress-container {
  width: 80%;
  height: 0px;
  background-color: #ccc;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background-color: #4CAF50;
}
#seekSlider {
  width: 80%;
}

ol {
  list-style-type: decimal !important;
  margin-left: 20px !important;
}
.infos {
  margin-top: 8px;
  text-align: left;
}
.infos:hover {
  transform: translateY(1px);
}
.info {
  margin-top: 5px;
  font-size: 10pt;
  color: #766666;
  margin-bottom: 10px;
}

@font-face {
  font-family: 'CustomFont';
  src: url('sad3.ttf') format('truetype');
}

/* --- MOBILE: DO NOT FILL SCREEN WIDTH, KEEP BOXED LOOK --- */
@media (max-width: 600px) {
  html, body {
    min-height: 100vh;
    height: 100vh;
  }
  .container {
    max-width: 100vw;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    justify-content: flex-start;
  }
  .header,
  .music-player {
    position: sticky;
    z-index: 10;
    background: linear-gradient(to bottom, #f9f9f9, #e1e1e1);
  }
  .header {
    top: 0;
  }
  .music-player {
    bottom: 0;
  }
  .track-selection {
    width: 22em;
    max-width: 95vw;
    padding: 8px 0;
    margin: 0 auto 8px auto;
  }
  .track-selection h2 {
    margin: 4px 0 2px 0;
    font-size: 1em;
  }
  .track-list {
    flex: 1 1 0;   
    min-height: 0;
    font-size: 0.97em;
    margin-left: 18px !important;
    list-style-type: decimal !important;
  }
}
