* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#website-wallpaper {
  position: fixed;
  /* NOTE: “Stick all four edges of this element to the edges of the viewport.” */
  inset: 0;
  overflow: hidden;
  z-index: -1;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

#player {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body {
  font-family: "Space Mono", monospace;
}

#clock-container {
  position: fixed;
  bottom: 2.5rem;
  left: 3rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

#time {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.3rem;
}

#date {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

#todo-wrapper {
  position: fixed;
  top: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 10;
  width: 300px;
}

#todo-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
}

#todo-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  width: 0;
  opacity: 0;
  margin-right: -1rem;
  pointer-events: none;
  transition:
    width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    margin 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  padding: 0.2rem 0;
}

#todo-bar:hover #todo-input,
#todo-input:focus {
  width: 250px;
  opacity: 1;
  margin-right: 0;
  pointer-events: auto;
}

#todo-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#todo-input:focus {
  border-bottom-color: rgba(255, 255, 255, 1);
}

#todo-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.2s;
  white-space: nowrap;
}

#todo-toggle:hover {
  color: #fff;
}

#todo-menu {
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 50vh;
  transition:
    opacity 0.3s,
    transform 0.3s;
  transform-origin: top right;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#todo-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
}

.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

#todo-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.9;
}

.icon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: #fff;
}

#todo-list {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  padding-right: 5px;
}

#todo-list li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  opacity: 0.9;
  transition: opacity 0.2s;
  word-break: break-word;
}

#todo-list li.completed .task-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.task-text {
  flex: 1;
  line-height: 1.4;
}

.task-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  transition: color 0.2s;
  font-family: system-ui, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.task-btn:hover {
  color: rgba(255, 255, 255, 1);
}

.task-btn.tick:hover {
  color: #4ade80;
}

.task-btn.delete:hover {
  color: #f87171;
}

#todo-list::-webkit-scrollbar {
  width: 4px;
}
#todo-list::-webkit-scrollbar-track {
  background: transparent;
}
#todo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* Controls & Social Links */
#controls-wrapper {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

#social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.circular-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.circular-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(3px);
}

/* Playback Controls Pill */
#playback-wrapper {
  position: fixed;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 10;
}

.playback-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.playback-pill:hover {
  background: rgba(15, 15, 15, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
}

.playback-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.playback-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.3rem;
  transition: background 0.3s ease;
}

.playback-pill:hover .divider {
  background: rgba(255, 255, 255, 0.3);
}

.volume-container {
  display: flex;
  align-items: center;
}

#volume-slider {
  -webkit-appearance: none;
  width: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  --slider-fill: 100%;
  background: linear-gradient(
    to right,
    #fff var(--slider-fill),
    rgba(255, 255, 255, 0.2) var(--slider-fill)
  );
  height: 3px;
  border-radius: 2px;
  outline: none;
  transition:
    width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    margin 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.volume-container:hover #volume-slider,
#volume-slider:focus {
  width: 60px;
  opacity: 1;
  pointer-events: auto;
  margin: 0 0.4rem 0 0.1rem;
}

#volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin-top: -3.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.25s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
