/* ============================================================
   hobbys.css – Katzen-Galerie + Retro 2000er Musikplayer
   ============================================================ */

/* --- Katzen-Galerie ------------------------------------------ */
.katzen-intro,
.musik-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.katzen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.katzen-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.katzen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.katzen-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.katzen-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .katzen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .katzen-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RETRO 2000er MUSIC PLAYER (Winamp-Style)
   ============================================================ */

/* Gemeinsamer Container */
#retro-player,
#retro-playlist {
  max-width: 480px;
  margin: 0 auto;
  font-family: 'Courier New', 'Lucida Console', monospace;
}

/* --- PLAYER -------------------------------------------------- */
#retro-player {
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a28 50%, #0e0e18 100%);
  border: 2px solid #555;
  border-radius: 6px;
  padding: 0;
  box-shadow:
    0 0 20px rgba(0, 255, 65, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Titelleiste */
.rp-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #3a3a5a, #2a2a40, #3a3a5a);
  border-bottom: 1px solid #444;
  cursor: default;
  user-select: none;
}
.rp-titlebar-dots {
  display: flex;
  gap: 5px;
}
.rp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.rp-dot--close { background: #ff5f57; }
.rp-dot--min   { background: #ffbd2e; }
.rp-dot--max   { background: #28c840; }
.rp-titlebar-text {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Display-Bereich (LCD-Effekt) */
.rp-display {
  background: #0a0a12;
  margin: 8px;
  border-radius: 4px;
  padding: 10px 12px;
  border: 1px solid #333;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.rp-viz {
  margin-bottom: 8px;
}
.rp-viz canvas {
  width: 100%;
  height: 40px;
  display: block;
  border-radius: 2px;
}

.rp-info {
  margin-bottom: 4px;
}
.rp-song-title {
  color: #00ff41;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-song-artist {
  color: #00cc33;
  font-size: 11px;
  opacity: 0.7;
}

.rp-time {
  color: #00ff41;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
  text-align: right;
  margin-top: 4px;
}
.rp-separator {
  opacity: 0.5;
  margin: 0 2px;
}

/* Fortschrittsbalken */
.rp-progress-container {
  position: relative;
  height: 14px;
  margin: 0 8px 8px;
}

.rp-progress-container progress {
  width: 100%;
  height: 8px;
  position: absolute;
  top: 3px;
  left: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 4px;
  overflow: hidden;
}
.rp-progress-container progress::-webkit-progress-bar {
  background: #1a1a28;
  border-radius: 4px;
  border: 1px solid #333;
}
.rp-progress-container progress::-webkit-progress-value {
  background: linear-gradient(90deg, #00aa2a, #00ff41);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.rp-progress-container progress::-moz-progress-bar {
  background: linear-gradient(90deg, #00aa2a, #00ff41);
  border-radius: 4px;
}

.rp-progress-container input[type="range"] {
  width: 100%;
  height: 14px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Steuerungsbuttons */
.rp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 10px;
}

.rp-btn {
  width: 40px;
  height: 32px;
  background: linear-gradient(180deg, #4a4a5e 0%, #2a2a3e 100%);
  border: 1px solid #666;
  border-radius: 4px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.rp-btn:hover {
  background: linear-gradient(180deg, #5a5a70 0%, #3a3a50 100%);
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}
.rp-btn:active {
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a28 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(1px);
}

.rp-btn--play {
  width: 50px;
  height: 36px;
  font-size: 18px;
  background: linear-gradient(180deg, #5a5a70 0%, #2a2a40 100%);
  border-color: #777;
}

/* Play/Pause-State */
.amplitude-playing .rp-btn--play { color: #00ff41; text-shadow: 0 0 12px rgba(0, 255, 65, 0.8); }

/* Lautstärke */
.rp-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.rp-volume-icon {
  font-size: 14px;
  cursor: default;
}
.rp-volume input[type="range"] {
  width: 80px;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: #1a1a28;
  border: 1px solid #333;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.rp-volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #00ff41, #00aa2a);
  border-radius: 50%;
  border: 1px solid #006615;
  box-shadow: 0 0 4px rgba(0, 255, 65, 0.4);
  cursor: pointer;
}
.rp-volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #00ff41, #00aa2a);
  border-radius: 50%;
  border: 1px solid #006615;
  cursor: pointer;
}

/* Equalizer-Deko (animierte Balken unten) */
.rp-eq-deco {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 4px 12px 8px;
  height: 20px;
}
.rp-eq-bar {
  width: 6px;
  background: linear-gradient(180deg, #00ff41, #005500);
  border-radius: 1px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.rp-eq-bar:nth-child(1)  { animation-duration: 0.7s;  height: 4px; }
.rp-eq-bar:nth-child(2)  { animation-duration: 0.5s;  height: 8px; }
.rp-eq-bar:nth-child(3)  { animation-duration: 0.9s;  height: 6px; }
.rp-eq-bar:nth-child(4)  { animation-duration: 0.6s;  height: 12px; }
.rp-eq-bar:nth-child(5)  { animation-duration: 0.45s; height: 10px; }
.rp-eq-bar:nth-child(6)  { animation-duration: 0.75s; height: 7px; }
.rp-eq-bar:nth-child(7)  { animation-duration: 0.55s; height: 14px; }
.rp-eq-bar:nth-child(8)  { animation-duration: 0.85s; height: 5px; }
.rp-eq-bar:nth-child(9)  { animation-duration: 0.65s; height: 9px; }
.rp-eq-bar:nth-child(10) { animation-duration: 0.5s;  height: 11px; }

@keyframes eq-bounce {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* --- PLAYLIST ------------------------------------------------ */
#retro-playlist {
  margin-top: 4px;
  background: linear-gradient(180deg, #1e1e2e 0%, #141420 100%);
  border: 2px solid #555;
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.rp-playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(90deg, #3a3a5a, #2a2a40);
  border-bottom: 1px solid #444;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.rp-track-count {
  color: #00cc33;
  font-size: 10px;
}

.rp-playlist-body {
  max-height: 320px;
  overflow-y: auto;
}
/* Scrollbar im Retro-Stil */
.rp-playlist-body::-webkit-scrollbar {
  width: 8px;
}
.rp-playlist-body::-webkit-scrollbar-track {
  background: #0e0e18;
}
.rp-playlist-body::-webkit-scrollbar-thumb {
  background: #3a3a5a;
  border-radius: 4px;
}

.rp-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}
.rp-track:last-child { border-bottom: none; }
.rp-track:hover {
  background: rgba(0, 255, 65, 0.05);
}

/* Aktiver Track */
.rp-track--active,
.rp-track.amplitude-active-song-container {
  background: rgba(0, 255, 65, 0.1) !important;
  border-left: 3px solid #00ff41;
}
.rp-track--active .rp-track-title,
.rp-track.amplitude-active-song-container .rp-track-title {
  color: #00ff41;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.rp-track--active .rp-track-play,
.rp-track.amplitude-active-song-container .rp-track-play {
  color: #00ff41;
}

.rp-track-num {
  font-size: 11px;
  color: #555;
  min-width: 20px;
  text-align: right;
  font-weight: bold;
}

.rp-track-cover {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 1px solid #333;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-track-info {
  flex: 1;
  min-width: 0;
}
.rp-track-title {
  display: block;
  font-size: 13px;
  color: #ccc;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-track-artist {
  display: block;
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

.rp-track-duration {
  font-size: 11px;
  color: #555;
  min-width: 36px;
  text-align: right;
}

.rp-track-play {
  font-size: 12px;
  color: #555;
  transition: color 0.15s;
}
.rp-track:hover .rp-track-play {
  color: #00ff41;
}

/* --- RESPONSIVE ---------------------------------------------- */
@media (max-width: 520px) {
  #retro-player,
  #retro-playlist {
    max-width: 100%;
    border-radius: 4px;
  }
  #retro-playlist { border-radius: 0 0 4px 4px; }
  .rp-controls { gap: 4px; flex-wrap: wrap; }
  .rp-volume { margin-left: 4px; }
  .rp-volume input[type="range"] { width: 60px; }
  .rp-track-cover { width: 36px; height: 36px; }
}
