body {
  background: #f4f6fb;
  font-family: system-ui, sans-serif;
  padding: 20px;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

h1 {
  margin-top: 0;
}

section {
  margin-bottom: 28px;
}

button {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

button.secondary {
  background: #64748b;
}

button:disabled {
  opacity: .6;
}

#dropZone {
  border: 2px dashed #94a3b8;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 10px;
  color: #475569;
}

#dropZone.drag {
  background: #eef2ff;
  border-color: #4f46e5;
}

.card {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.card b {
  color: #1e293b;
}

#mbDetail .card {
  max-height: 600px;
  overflow-y: auto;
}

#mbDetail .card::-webkit-scrollbar {
  width: 8px;
}

#mbDetail .card::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

#mbDetail .card::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

#mbDetail .card::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.lyrics-card {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.lyrics-card div[style*="white-space"] {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
  font-size: 0.95em;
  color: #1e293b;
}

.lyrics-card div[style*="white-space"]::-webkit-scrollbar {
  width: 6px;
}

.lyrics-card div[style*="white-space"]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

.lyrics-card div[style*="white-space"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.lyrics-card div[style*="white-space"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.small {
  font-size: 12px;
  color: #64748b;
}

.score {
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.score div {
  height: 100%;
}

a {
  color: #2563eb;
  text-decoration: none;
}

pre {
  background: #020617;
  color: #e5e7eb;
  padding: 10px;
  border-radius: 10px;
  max-height: 260px;
  overflow: auto;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
  color: #94a3b8;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close:hover,
.close:focus {
  color: #475569;
}

.setting-group {
  margin-bottom: 25px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
}

.setting-group h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1em;
}

.setting-group label {
  display: block;
  margin-bottom: 12px;
  color: #475569;
}

.setting-group select {
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: white;
}

.setting-group input[type="checkbox"] {
  margin-right: 8px;
}

#saveSettings {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1.05em;
}