/* Poem */
.text-poem { padding: 20px; }

/* ===== Music player (dot-matrix / pink neon) ===== */
#music-player {
  margin-top: 36px;
  background:
    radial-gradient(circle, rgba(255, 105, 180, 0.18) 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(180deg, #1a0820 0%, #0a0410 100%);
  border: 1px solid rgba(255, 105, 180, 0.4);
  border-radius: 6px;
  padding: 14px 16px 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 105, 180, 0.08),
    0 0 18px rgba(255, 105, 180, 0.22);
  font-family: 'Pixelify Sans', monospace;
}

#visualizer {
  display: block;
  width: 100%;
  height: 80px;
  border-radius: 3px;
  background:
    radial-gradient(circle, rgba(255, 105, 180, 0.08) 0.8px, transparent 1.2px) 0 0 / 8px 8px,
    #0d0410;
  border: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: inset 0 0 8px rgba(255, 105, 180, 0.18);
}

@font-face {
  font-family: 'PixelMplus12';
  src: url("https://cdn.jsdelivr.net/gh/khanhas/Polybar/@Resources/Fonts/PixelMplus12-Regular.ttf") format("truetype");
  font-display: swap;
}

#music-title {
  margin-top: 10px;
  text-align: center;
  color: #ff9bd0;
  font-family: 'Pixelify Sans', monospace;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 105, 180, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Japanese track names: switch to a pixel font that has CJK glyphs */
#music-title.jp {
  font-family: 'PixelMplus12', 'Pixelify Sans', monospace;
  text-transform: none;
}

#player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

#player-buttons {
  display: flex;
  gap: 6px;
}

#player-buttons button {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  border: 1px solid rgba(255, 105, 180, 0.4);
  background:
    radial-gradient(circle, rgba(255, 105, 180, 0.12) 0.7px, transparent 1.1px) 0 0 / 4px 4px,
    rgba(255, 105, 180, 0.06);
  color: #ff9bd0;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 0 4px rgba(255, 105, 180, 0.12);
}

#player-buttons button svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 2px rgba(255, 105, 180, 0.6));
}

#player-buttons button:hover {
  background: rgba(255, 105, 180, 0.15);
  color: #ffd0e8;
  border-color: rgba(255, 105, 180, 0.7);
  box-shadow:
    inset 0 0 4px rgba(255, 105, 180, 0.25),
    0 0 8px rgba(255, 105, 180, 0.4);
}

#player-buttons button.active {
  background: rgba(255, 105, 180, 0.3);
  color: #fff;
  border-color: #ff69b4;
  box-shadow:
    inset 0 0 6px rgba(255, 105, 180, 0.4),
    0 0 10px rgba(255, 105, 180, 0.65);
}

#volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

#volume-icon {
  color: #ff9bd0;
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  user-select: none;
  text-shadow: 0 0 4px rgba(255, 105, 180, 0.55);
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 8px;
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 105, 180, 0.55) 0,
      rgba(255, 105, 180, 0.55) 2px,
      transparent 2px,
      transparent 6px
    );
  border-radius: 0;
  outline: none;
  cursor: pointer;
  padding: 0;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 14px;
  background: #ff69b4;
  border: none;
  border-radius: 0;
  box-shadow: 0 0 6px rgba(255, 105, 180, 0.9);
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 6px;
  height: 14px;
  background: #ff69b4;
  border: none;
  border-radius: 0;
  box-shadow: 0 0 6px rgba(255, 105, 180, 0.9);
  cursor: pointer;
}
