/* Winamp 2.x Authentic Global Radio Player */

@import url('data:font/woff2;base64,d09GMgABAAAAAAcwAA0AAAAAD9QAAAbbAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACEEBEICoZ4g0ELOAABNgIkA1AEIAWDVAeGGxsLG8muJNnDuNFPHEhLCIBPRVRAaAxQgBGwfZCtAAA=');

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  font-family: 'MS Sans Serif', 'Tahoma', Arial, sans-serif;
  font-size: 8px;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winamp-container {
  position: relative;
  font-family: 'MS Sans Serif', sans-serif;
}

/* Main Winamp Window */
.winamp-main {
  width: 275px;
  height: 116px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 2px outset #c0c0c0;
  border-radius: 0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  font-size: 8px;
}

.winamp-main.windowshade {
  height: 14px;
  overflow: hidden;
}

/* Winamp Title Bar */
.winamp-titlebar {
  height: 14px;
  background: linear-gradient(90deg, #0040ff 0%, #4080ff 50%, #0040ff 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  font-weight: bold;
  font-size: 8px;
  border-bottom: 1px solid #000080;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.winamp-lightning {
  width: 10px;
  height: 10px;
  background: url('/api/retrodiffusion/image/16/16/mc_item?prompt=winamp+lightning+bolt+icon+white&remove_bg=true');
  background-size: contain;
}

.window-title-text {
  font-size: 8px;
  font-weight: bold;
}

.titlebar-controls {
  display: flex;
  gap: 1px;
}

.winamp-button {
  width: 9px;
  height: 9px;
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  font-size: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}

.winamp-button:active {
  border: 1px inset #c0c0c0;
}

.winamp-button.minimize::after { content: '_'; }
.winamp-button.windowshade::after { content: '▲'; }
.winamp-button.close::after { content: '×'; }

/* Display Area */
.winamp-display {
  height: 26px;
  background: #000000;
  margin: 2px 11px;
  border: 1px inset #c0c0c0;
  display: flex;
  align-items: center;
  position: relative;
}

.time-display {
  width: 30px;
  height: 12px;
  background: #000000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px inset #808080;
  margin: 2px;
  text-shadow: 0 0 4px #00ff00;
}

.text-display {
  flex: 1;
  height: 12px;
  background: #000000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border: 1px inset #808080;
  margin: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 0 4px #00ff00;
}

.status-lights {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px;
}

.status-light {
  width: 24px;
  height: 5px;
  background: #000000;
  color: #333;
  font-size: 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px inset #808080;
}

.status-light.active {
  color: #00ff00;
  text-shadow: 0 0 2px #00ff00;
}

/* Visualization Area */
.winamp-visualization {
  height: 16px;
  margin: 2px 11px;
  border: 1px inset #c0c0c0;
  background: #000000;
  cursor: pointer;
  position: relative;
}

.visualization-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Transport Controls */
.winamp-controls {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 2px 11px;
}

.winamp-control-btn {
  width: 23px;
  height: 18px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 1px outset #c0c0c0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  position: relative;
}

.winamp-control-btn:active {
  border: 1px inset #c0c0c0;
  background: linear-gradient(180deg, #a8a8a8 0%, #c0c0c0 50%, #d4d0c8 100%);
}

.winamp-control-btn.prev::after { content: '⏮'; }
.winamp-control-btn.play::after { content: '▶'; }
.winamp-control-btn.pause::after { content: '⏸'; }
.winamp-control-btn.stop::after { content: '⏹'; }
.winamp-control-btn.next::after { content: '⏭'; }
.winamp-control-btn.eject::after { content: '⏏'; }

/* Sliders */
.winamp-sliders {
  height: 13px;
  display: flex;
  margin: 2px 11px;
  gap: 10px;
}

.volume-section, .balance-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slider-label {
  font-size: 6px;
  font-weight: bold;
  color: #000;
  width: 20px;
}

.winamp-slider {
  flex: 1;
  height: 10px;
  background: #808080;
  border: 1px inset #c0c0c0;
  appearance: none;
  cursor: pointer;
}

.winamp-slider::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 10px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 1px outset #c0c0c0;
  cursor: pointer;
}

/* Window Toggle Buttons */
.winamp-window-buttons {
  height: 12px;
  display: flex;
  position: absolute;
  bottom: 2px;
  right: 11px;
  gap: 1px;
}

.window-toggle-btn {
  width: 23px;
  height: 12px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 1px outset #c0c0c0;
  font-size: 6px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

.window-toggle-btn:active,
.window-toggle-btn.active {
  border: 1px inset #c0c0c0;
  background: linear-gradient(180deg, #a8a8a8 0%, #c0c0c0 50%, #d4d0c8 100%);
}

/* Equalizer Window */
.winamp-equalizer {
  position: absolute;
  top: 120px;
  left: 0;
  width: 275px;
  height: 116px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.eq-content {
  padding: 4px 11px;
  height: calc(100% - 22px);
}

.eq-presets {
  height: 16px;
  margin-bottom: 4px;
}

.eq-preset-select {
  width: 100%;
  height: 16px;
  background: white;
  border: 1px inset #c0c0c0;
  font-size: 8px;
}

.eq-bands {
  display: flex;
  gap: 8px;
  height: 70px;
  align-items: end;
}

.eq-band {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.eq-slider {
  width: 16px;
  height: 60px;
  background: #808080;
  border: 1px inset #c0c0c0;
  appearance: none;
  cursor: pointer;
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
}

.eq-frequency {
  font-size: 6px;
  font-weight: bold;
  text-align: center;
}

/* Playlist Window */
.winamp-playlist {
  position: absolute;
  top: 120px;
  left: 290px;
  width: 350px;
  height: 200px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.playlist-content {
  padding: 4px;
  height: calc(100% - 22px);
  display: flex;
  flex-direction: column;
}

.country-selection {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.country-select {
  flex: 1;
  height: 20px;
  background: white;
  border: 1px inset #c0c0c0;
  font-size: 8px;
}

.station-search {
  width: 100px;
  height: 18px;
  background: white;
  border: 1px inset #c0c0c0;
  padding: 1px 4px;
  font-size: 8px;
}

.station-list {
  flex: 1;
  background: #ffffff;
  border: 1px inset #c0c0c0;
  overflow-y: auto;
  padding: 2px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 4px;
  font-size: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.playlist-item:hover {
  background: #e0e0e0;
}

.playlist-item.playing {
  background: #3166ff;
  color: white;
}

.track-number {
  width: 20px;
  color: #666;
  font-family: monospace;
}

.station-icon-small {
  width: 12px;
  height: 12px;
}

.station-name {
  flex: 1;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-info {
  color: #666;
  font-size: 7px;
  width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.playing .station-info {
  color: #ccc;
}

.loading-message {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* About Dialog */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.winamp-about {
  width: 300px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 2px outset #c0c0c0;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
  padding: 12px;
}

.about-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.about-logo {
  width: 48px;
  height: 48px;
}

.about-text h2 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #000080;
}

.about-text p {
  margin: 4px 0;
  font-size: 8px;
  line-height: 1.3;
}

.about-buttons {
  text-align: center;
}

.winamp-dialog-button {
  width: 60px;
  height: 20px;
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 1px outset #c0c0c0;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
}

.winamp-dialog-button:active {
  border: 1px inset #c0c0c0;
  background: linear-gradient(180deg, #a8a8a8 0%, #c0c0c0 50%, #d4d0c8 100%);
}

/* Footer */
.berrry-footer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  opacity: 0.7;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.footer-link:hover {
  text-decoration: underline;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4d0c8 0%, #c0c0c0 50%, #a8a8a8 100%);
  border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  height: 16px;
}

::-webkit-scrollbar-button:active {
  border: 1px inset #c0c0c0;
}

/* Responsive */
@media (max-width: 768px) {
  .winamp-container {
    transform: scale(1.2);
  }
  
  .winamp-playlist {
    position: relative;
    left: 0;
    top: 10px;
    margin: 0 auto;
  }
  
  .winamp-equalizer {
    position: relative;
    left: 0;
    top: 10px;
    margin: 0 auto;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.status-light.active {
  animation: pulse 1s ease-in-out infinite;
}

/* Pixel perfect borders */
* {
  box-sizing: border-box;
}

button, input, select {
  outline: none;
}

button:focus, input:focus, select:focus {
  outline: 1px dotted #000;
}