.window {
  border: 2px solid #cc0000;
  box-shadow: 0 0 4px #ff3333, 0 0 12px #cc0000, 0 0 30px #800000;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  position: absolute;
  backdrop-filter: blur(4px);
  background-color: #1a1a1a;
  z-index: 100;
  overflow: hidden;
  /* Added: clips any content that tries to escape */
}

.container {
  text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  /* Crucial: includes padding in width calculation */
  overflow: hidden;
  /* Prevents spillover */
}

.windowheader {
  width: 100%;
  display: flex;
  align-items: center;
  cursor: grab;
  justify-content: space-between;
  padding: 8px;
  box-sizing: border-box;
  border-bottom: 1px solid #333;
}

.headertext {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 12px;
  border-radius: 16px;
  flex: 1;
  text-align: center;
}

.closebutton {
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-color: #cc2828;
  border-radius: 50%;
  border: solid 1px rgba(139, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 6px;
  text-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
}

.desktop-icon {
  text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.desktop-icon:hover {
  opacity: 0.8;
}

.desktop-icon.selected {
  background-color: rgba(204, 0, 0, 0.3);
  border-radius: 12px;
  padding: 8px;
  border: 2px solid #cc0000;
}

.selected {
  margin: 1px;
  color: #ff000079;
  font-weight: 700;
  background-color: rgba(204, 0, 0, 0.2);
  padding: 12px;
  border-radius: 16px;
}

.clock {
  position: absolute;
  top: 50%;
  /* Center vertically */
  left: 50%;
  transform: translate(-50%, -50%);
  /* Perfectly center the clock */
  z-index: 0;
  /* Keep this low so windows can go over it */
  pointer-events: none;
  /* Prevents the clock from interfering with clicks */
  opacity: 0.5;
  /* Optional: makes it look more like a background element */
  user-select: none;
  /* Prevents accidental highlighting */
  font-size: 100px;
  color: #ff0000;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
}


.music-player {
  width: 400px;
  background-color: #1a1a1a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 35px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 30px;
}

nav .circle {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: #cc0000;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
}

.music-img {
  width: 220px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 8px solid #cc0000;
  box-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
}

.music-player h1 {
  color: #000000;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
}

.music-player p {
  color: #000000;
  margin-bottom: 20px;
  font-size: 10px;
  text-shadow: 0 0 5px #cc0000, 0 0 15px #cc0000;
}

#progress {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ffffff; /* Default background */
    border-radius: 4px;
    cursor: pointer;
    margin: 40px 0;
    transition: background 0.1s; /* Smooth color transition */
}

/* The thumb (the circle you drag) */
#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #cc0000;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
}
/* Hide scrollbars */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}
