/* ==========================================================================
   1. GLOBAL SYSTEM CANVAS & THEME VARIABLES
   ========================================================================== */
:root {
  /* Default Colorway Initialization */
  --casing-base-1: #e04b88;
  --casing-base-2: #8a1c4e;
  --display-accent: #ffb3d1;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Navigation Tabs */
.device-switch-row {
  align-self: flex-end;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.device-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  padding: 4px 8px;
}

.device-btn.active {
  color: #ff6600;
  font-weight: bold;
}

/* ==========================================================================
   2. EXTENDED INDIE COLOR PICKER ARRAY
   ========================================================================== */
.color-picker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  max-width: 700px;
}

.color-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover { 
  transform: scale(1.1); 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Individual Palettes */
.color-circle.black { background: linear-gradient(135deg, #444, #111); }
.color-circle.silver { background: linear-gradient(135deg, #ffffff, #999999); }
.color-circle.gold { background: linear-gradient(135deg, #ffd700, #b8860b); }
.color-circle.pink { background: linear-gradient(135deg, #ff79c6, #bd93f9); }
.color-circle.red { background: linear-gradient(135deg, #ff4444, #880000); }
.color-circle.teal { background: linear-gradient(135deg, #00f2fe, #4facfe); }
.color-circle.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.color-circle.lime { background: linear-gradient(135deg, #a3e635, #4d7c0f); }
.color-circle.orange { background: linear-gradient(135deg, #fb923c, #c2410c); }
.color-circle.purple { background: linear-gradient(135deg, #c084fc, #6b21a8); }

/* ==========================================================================
   3. HORIZONTAL CHASSIS PHOTO-REALISTIC GEOMETRY
   ========================================================================== */
.player-container {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
  max-width: 850px;
}

#walkman-capsule {
  position: relative;
  width: 530px;
  height: 165px;
  border-radius: 85px 40px 40px 85px;
  
  /* Multi-Stop Gradient simulating overhead studio lighting wrapping around a curved tube */
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.2) 0%, 
    var(--casing-base-1) 12%, 
    var(--casing-base-2) 65%, 
    rgba(0,0,0,0.4) 100%
  );
  background-color: var(--casing-base-1);
  
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  padding-left: 40px;
  box-sizing: border-box;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;

  /* Photorealistic 3D Specular Layering shadows */
  box-shadow: 
    inset 0 4px 0 rgba(255, 255, 255, 0.65), 
    inset 0 16px 20px rgba(255, 255, 255, 0.3),
    inset 0 -12px 25px rgba(0, 0, 0, 0.55),
    0 18px 30px rgba(0, 0, 0, 0.28),
    0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Molded Translucent AERO Text Overlay style */
.brand-logo {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.18);
  text-shadow: -1px -1px 1px rgba(0,0,0,0.3), 1px 1px 1px rgba(255,255,255,0.2);
  user-select: none;
  margin-right: 25px;
}

/* ==========================================================================
   4. CHROMIUM HARDWARE DIALS & METALLIC SHUTTLE KNOB
   ========================================================================== */
.hardware-controls-deck {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Secondary Playlist Trigger Strip */
.playlist-hardware-btn {
  width: 18px;
  height: 42px;
  background: linear-gradient(90deg, #999 0%, #e8e8e8 30%, #fff 50%, #d2d2d2 75%, #777 100%);
  border: 1px solid #444;
  border-radius: 2px;
  margin-right: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, -2px 3px 6px rgba(0,0,0,0.25);
}

/* Metallic Mechanical Junction Ring */
.metallic-neck-ring {
  width: 12px;
  height: 105px;
  background: linear-gradient(180deg, #444 0%, #fff 15%, #999 45%, #fff 65%, #555 85%, #222 100%);
  border-top: 1px solid #555;
  border-bottom: 1px solid #444;
}

/* Primary Jog Shuttle Selector Cylinder */
.jog-shuttle-dial {
  width: 52px;
  height: 105px;
  background: linear-gradient(180deg, #666 0%, #dedede 14%, #fff 22%, #999 50%, #fff 72%, #cecece 84%, #444 100%);
  border: 1px solid #444;
  border-left: none;
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset -2px 0 5px rgba(0,0,0,0.2), 5px 8px 18px rgba(0,0,0,0.25);
}

/* Machine-pressed friction lines on metallic cap */
.jog-shuttle-dial::before {
  content: '';
  position: absolute;
  top: 15%; left: 30%; width: 4px; height: 70%;
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
  border-right: 1px solid rgba(255,255,255,0.4);
  box-shadow: 12px 0 rgba(0,0,0,0.3), 13px 0 rgba(255,255,255,0.4), 24px 0 rgba(0,0,0,0.3), 25px 0 rgba(255,255,255,0.4);
}

.jog-shuttle-dial:active { filter: brightness(0.92); }

/* ==========================================================================
   5. WEBPAGE CANVAS CONTROL TEXT PLACEMENT
   ========================================================================== */
.canvas-hardware-guide {
  font-family: sans-serif;
  color: #444444;
  font-size: 13px;
  max-width: 240px;
  line-height: 1.5;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.guide-line { margin: 4px 0; }

/* ==========================================================================
   6. FLOATING OLED MATRIX PANEL DESIGN
   ========================================================================== */
#oled-screen {
  width: 235px;
  height: 95px;
  background: rgba(4, 8, 12, 0.95);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.95);
  overflow: hidden;
  position: relative;
}

/* Playing Mode styles */
.playback-display {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

#album-art {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
}

.song-metadata {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--display-accent);
  font-family: monospace;
}

.song-metadata p { margin: 1px 0; font-size: 11px; }
#song-title { font-weight: bold; font-size: 13px; color: #ffffff; }

/* Screensaver configurations */
.screensaver-container {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  display: none;
}

#oled-screen.paused-state .playback-display { display: none; }
#oled-screen.paused-state .screensaver-container { display: block; }

.bubble {
  position: absolute;
  bottom: -25px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: floatUp 4s infinite linear;
}
.b1 { width: 12px; height: 12px; left: 15%; animation-duration: 3.8s; }
.b2 { width: 20px; height: 20px; left: 45%; animation-duration: 5.2s; animation-delay: 0.8s; }
.b3 { width: 9px; height: 9px; left: 75%; animation-duration: 3s; animation-delay: 0.4s; }
.b4 { width: 15px; height: 15px; left: 60%; animation-duration: 4.5s; animation-delay: 1.5s; }

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-125px); opacity: 0; }
}

/* ==========================================================================
   7. BASE ATTACHMENTS (INPUT TRACK REGIONS)
   ========================================================================== */
.input-deck {
  width: 100%;
  max-width: 650px;
  border-top: 1px solid #000000;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

#audio-url-input {
  flex-grow: 1;
  border: none;
  border-bottom: 1px solid #666;
  outline: none;
  font-size: 13px;
  padding: 2px;
}

.or-divider { font-weight: bold; color: #999; font-size: 11px; }
#audio-upload { font-size: 12px; max-width: 170px; }
.footer-disclaimer { margin-top: auto; font-size: 10px; color: #999; padding-top: 40px; }
#audio-engine {
  width: 100%;
  margin-top: 15px;
  display: block;
  opacity: 0.85;
}
