:root {
  --primary-clr: #252525;
  --background-clr: #ffffff;
  --accent: rgba(5, 6, 6, 0.3);
  --button-bg: rgba(54, 54, 54, 0.05);
}

* {

  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 12px;
}

body {
  background-color: var(--background-clr);
  color: var(--primary-clr);
  
}

.player-container {
  width: 80%;
  max-width: 1600px; /* Optional: Set a max-width to avoid it getting too large on big screens */
  margin: 0 auto; /* Center the container */
  padding: 10px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}
/* parent */
.player-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  grid-auto-rows: minmax(224px, auto);
  max-width: 1100px; /* Optional: Set a max-width to avoid it getting too large on big screens */
  padding: 1.2rem;
}
.player-content > div {
  border-radius: 2px
}


/* albumn */


.albumcover0 {
  grid-column: 1 / 2;
  grid-row: 1;
  
/*  width: 340px;
  height: auto;
  display: inline-block; */
  margin: 0;
}

.albumcover0 img{
  width: 220px;
  height: 220px;
  border-radius: 8px;
  margin: auto;
}

/* Song title styling */

.music-player {
  display: block;
  word-break: break-all; /* Prevents words from breaking awkwardly */
  padding: 0 8px;  /* Reserve space */
  grid-column: 2 / 4;
  grid-row: 1;
  height: 220px;
  background:linear-gradient(0deg, rgba(238,238,238, 0.3), rgba(238,238,238,0.3)), url(https://github.com/ucho-thedestroyer/Io/raw/Backup/docs/top/ETLOcirclelogo-2.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.playin {
  display: inline-block;
  overflow: hidden;
  box-sizing: border-box;
}

.music-player .playin h1.blocktitle {
  padding-top: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2px 0;
  line-height: 1.4;
  white-space: nowrap;   
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 183px;   /* responsive */
  text-align: start;
  padding-right: 4px; /* Add some space on the right to prevent cutting off */
  
}

.blocktitle2 {
  font-size: 1.3rem; /* Adjust to make it look nice alongside the title */
}

.blocktitle3 {
  font-size:1.1rem; 
  padding:3px;
}

/* Optional: Controls styling for a better layout */

.controls button {
  font-size: 2px; /* Doubles the size of the button */
  margin: 2px;
  width: 64px;
  padding: 14px 10px; /* Increase padding for bigger buttons */
  border-radius: 30%;
  background-color: #333333;
  border: none;
  text-align: center;
  cursor: pointer;
  color: #fdffee;
}

/* Play button style */
.controls .play-pause-btn {
  background-color: #B33638; /* et red */
  color: #fdffee;
}

/* Optional: Add a hover effect */
.controls button:hover {
  background-color: rgba(54, 54, 54, 0.1);
}

.play-pause-btn:hover {
  background-color: #cc0000; /* Darker red on hover */
  color: #333333;
}

/* Optional: Set width and padding for the audio progress range slider */
#progress {
  width: 73%;
  margin: 6px 0;
  background-color: rgba(54, 54, 54, 0.8);
}
input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 73%;

  /* Hides the slider so custom styles can be added */
  background: transparent; 
  border-color: transparent;
  color: transparent;
}

input[type="range"]::-webkit-slider-thumb {
   /*custom styles*/
   background-color: #FFEC60;
}
input[type="range"]::-moz-range-thumb {
   background-color: #FFEC60;
}
/* 
input[type=range]::-webkit-slider-runnable-track {
  cursor: pointer;
  background: rgba(54, 54, 54, 0.3);
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background:rgba(54, 54, 54, 0.3);
}
*/
input[type=range]::-moz-range-track {
  
  background: #333;
}

input[type=range]::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: rgba(54, 54, 54, 0.3);
}
input[type=range]:focus::-ms-fill-lower {
  background: rgba(54, 54, 54, 0.3);
}
input[type=range]::-ms-fill-upper {
  background: #999;
}
input[type=range]:focus::-ms-fill-upper {
  background: #999;
}
  
.tip-container {
  grid-column: 4 / 4;
  grid-row: 1;
  padding-left: 10px; /* Add some padding to prevent the element from shifting */
  font-size: 1.6rem;
}

.tip-container a {
  color: red;
  font-weight: 800;
  font-size: 1.5rem;
}
.tip-container .note {
  text-align: end;
  font-size: 1.1rem;
}



.core {
  width: 78%;
  max-width: 1180px;
  margin: auto;
}
.hot {
  align-items: safe-center;
}

.poll {
  height: 237px; /* Set to a fixed height that fits both initial and updated content */
  overflow: hidden; /* or auto if you want scrollbars */
}


.poll .question{
  height: 40px; /* adjust as needed */
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 40px;
  overflow-y: auto;
    padding: 2px;
    border-bottom: 1px solid #eee;
}

.poll .answers{
    padding: 2.3px;
}

.poll .answers .answer{
        cursor: pointer;
    overflow: hidden;
    border-radius: 1px;
  width: 100%;
  padding-bottom: 4px;
    
}

.poll .answers .answer.selected{
    border: 1px dashed #606a9c;
}

.poll .answers .answer span.percentage_value
{
    text-align: right;
  padding-right: 2px;
    color: #b0050e;
}

.poll .answers .answer span.percentage_bar {
    display: block;
    width: 0%; /* Start from 0 */
    height: 8px;
    background: #191970;
    transition: width 200ms ease-in-out;
    margin-top: 1px;

}



/* playlist button */

.play-btn {
  font-size: 1px;
  align-items: flex-end;
  color: #581845;
}

.tracknumber, .trackname {
  text-align: left;
  
}

.track-label {
  color: #900C3F;
}

.track-id {
  color: onyx;
}

.sendtrack {
  text-align: left;
}

.play-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.divider {
  padding-top: 2px;
  height: 0.2px;
  background-color: pink;
}

.album-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.album {
  display: flex;
  margin-top: 0.8rem;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.album img {
  margin: 2px 4px 10px;
  border-radius: 4px;
}

.album-divider {
  height: 1px;
  background-color: #dfdfdf;
  margin: 4px 0;
}

.mp3player {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp3p {
  display: flex;
  justify-content: space-between;
  align-items: start;
  vertical-align: middle;
  cursor: pointer;
  margin: 2px;
}

.mp3p img {
  margin-right: 10px;
  border-radius: 4px;
}

@keyframes bwPulse {
  0%   { background-color: #eeeeee; color: white; }
  50%  { background-color: #ADBCE1; color: black; }
  100% { background-color: #eeeeee; color: red; }
}
.bw-highlight {
  animation: bwPulse 2s infinite;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
}


/* Make sure it adapts to smaller screens */
@media (max-width: 890px) {
  .player-container {
    width: 94%; /* Slightly larger width for smaller screens */
  }

  .topbar {
    max-width: 800px;
  }

  .bottombar {
     max-width: 800px;
  }
  
.albumcover0 {
  grid-column: 1 / 2;
  grid-row: 1;
  
/*  width: 340px;
  height: auto;
  display: inline-block; */
  margin: 0;
}

/* Song title styling */

.music-player {
  grid-column: 2 / 5;
  grid-row: 1;
}

.playin {
  display: inline-block;
  overflow: hidden;
  box-sizing: border-box;
}

.tip-container {
  grid-column: 1 / 4;
  grid-row: 2;
  
}

  .core {
  width: 94%;
  max-width: 1180px;
  margin: auto;
}

  

}

@media (max-width: 768px) {
  .player-container {
    width: 96%; /* Slightly larger width for smaller screens */
  }
}


/* For very small screens like smartphones in portrait mode */
@media (max-width: 480px) {
  .player-container {
    width: 100%; /* Full width on small screens */
    padding: 10px; /* Reduce padding */
  }
  .controls button {
  font-size: 1.1vw; /* Doubles the size of the button */
  padding: 11px 13px; /* Increase padding for bigger buttons */
  
}

}
