@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

.walkman-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.walkman-body {
  position: relative;
  width: 320px;
  height: 180px;
  background: linear-gradient(145deg, #e8e8e8, #c0c0c0);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  border: 2px solid #b8b8b8;
  overflow: hidden;
}

.walkman-top {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 4px 16px;
  background: linear-gradient(145deg, #d5d5d5, #b0b0b0);
  border-radius: 0 0 8px 8px;
}

.port {
  width: 8px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.headphone-jack {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.walkman-main {
  position: relative;
  padding: 16px;
  height: 100%;
  display: grid;
  grid-template-areas: 
    "lcd lcd controls"
    "branding nav transport"
    "record menu menu";
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.lcd-container {
  grid-area: lcd;
  background: linear-gradient(145deg, #001122, #002244);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 
    inset 0 2px 8px rgba(0,0,0,0.5),
    0 0 16px rgba(0,150,255,0.3);
  border: 2px solid #333;
}

.lcd-screen {
  background: linear-gradient(145deg, #003366, #001a33);
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.2;
  padding: 8px;
  border-radius: 4px;
  min-height: 60px;
  text-shadow: 0 0 4px rgba(0,255,255,0.5);
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00ffff;
  transition: width 0.3s ease;
  box-shadow: 0 0 4px rgba(0,255,255,0.8);
}

.battery-indicator {
  display: flex;
  align-items: center;
}

.battery-shell {
  width: 16px;
  height: 8px;
  border: 1px solid #00ffff;
  border-radius: 1px;
  position: relative;
}

.battery-shell::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 2px;
  width: 1px;
  height: 4px;
  background: #00ffff;
}

.battery-fill {
  height: 100%;
  background: #00ffff;
  transition: width 0.3s ease;
}

.recording-meters {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.meter {
  display: flex;
  align-items: center;
  gap: 2px;
}

.meter-bars {
  display: flex;
  gap: 1px;
}

.meter-bar {
  width: 2px;
  height: 8px;
  background: rgba(0,255,255,0.2);
}

.meter-bar.active {
  background: #00ffff;
  box-shadow: 0 0 2px rgba(0,255,255,0.8);
}

.sony-branding {
  grid-area: branding;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sony-text {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.model-text {
  font-family: 'Orbitron', monospace;
  font-weight: 400;
  font-size: 8px;
  color: #ccc;
  letter-spacing: 1px;
}

.right-controls {
  grid-area: controls;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.control-btn {
  width: 24px;
  height: 16px;
  background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.1s ease;
}

.control-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #fff, #d8d8d8);
}

.control-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hold-switch {
  width: 20px;
  height: 12px;
  background: #666;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  margin-top: 4px;
}

.hold-slider {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.hold-switch.active .hold-slider {
  transform: translateX(10px);
  background: #ff4444;
}

.nav-container {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jog-dial {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #e8e8e8, #c0c0c0);
  border-radius: 50%;
  border: 3px solid #aaa;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.1s ease;
}

.jog-dial:hover {
  background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
}

.jog-dial:active {
  transform: scale(0.95);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
}

.jog-inner {
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, #d0d0d0, #a8a8a8);
  border-radius: 50%;
  border: 1px solid #999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select-btn {
  width: 16px;
  height: 16px;
  background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
  border-radius: 50%;
  border: 1px solid #aaa;
}

.transport-controls {
  grid-area: transport;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.transport-btn {
  width: 28px;
  height: 20px;
  background: linear-gradient(145deg, #e8e8e8, #c0c0c0);
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transport-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
}

.transport-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.transport-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.play-btn {
  color: #0066cc;
}

.stop-btn {
  color: #cc0000;
}

.record-btn {
  grid-area: record;
  width: 24px;
  height: 24px;
  background: linear-gradient(145deg, #ff4444, #cc0000);
  border: 2px solid #aa0000;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.1s ease;
  justify-self: start;
  align-self: center;
}

.record-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #ff6666, #dd0000);
}

.record-btn:active {
  transform: scale(0.9);
}

.record-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.record-btn.recording {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.menu-controls {
  grid-area: menu;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-btn {
  padding: 4px 8px;
  background: linear-gradient(145deg, #e8e8e8, #c0c0c0);
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 8px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.1s ease;
}

.menu-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
}

.menu-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.menu-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.walkman-logo {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Orbitron', monospace;
  font-size: 6px;
  font-weight: 400;
  color: #666;
  letter-spacing: 1px;
}

.footer {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.footer a {
  color: #60a5fa;
  text-decoration: none;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .walkman-body {
    width: 280px;
    height: 160px;
  }
  
  .lcd-screen {
    font-size: 10px;
    min-height: 50px;
  }
  
  .sony-text {
    font-size: 16px;
  }
  
  .jog-dial {
    width: 40px;
    height: 40px;
  }
  
  .jog-inner {
    width: 28px;
    height: 28px;
  }
  
  .select-btn {
    width: 14px;
    height: 14px;
  }
}