/* Уникальные стили для suno-pro.html */

.main-content {
   display: grid;
   grid-template-columns: 1.5fr 1fr;
   gap: 24px;
   will-change: grid-template-columns;
}

@media (max-width: 1023px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 0;
  background: #0f0f0f;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.tab {
  flex: 1;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #a0a0a0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.95em;
}

.tab:hover {
  color: #fff;
}

.tab.active {
  background: #fff;
  color: #000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.song-item {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.song-item:hover {
  border-color: #3a3a3a;
}

.song-item-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.song-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  position: relative;
  overflow: hidden;
}

.song-cover::before {
  content: '🎵';
  position: absolute;
  font-size: 2.5em;
  opacity: 0.3;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-item h4 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-meta {
  color: #777;
  font-size: 0.85em;
  margin-bottom: 12px;
  line-height: 1.6;
}

.download-btn, .delete-btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 0.85em;
}

.download-btn {
  background: #fff;
  color: #000;
}

.download-btn:hover {
  background: #a0a0a0;
  transform: translateY(-1px);
}

.delete-btn {
  background: #2a2a2a;
  color: #e0e0e0;
}

.delete-btn:hover {
  background: #3a3a3a;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.clear-history {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  width: auto;
  margin: 0;
  font-weight: 600;
}

.clear-history:hover {
  background: #3a3a3a;
}

.empty-history {
  text-align: center;
  color: #555;
  padding: 60px 20px;
  font-size: 0.95em;
}

.history-count {
  background: #2a2a2a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #a0a0a0;
  font-weight: 600;
}

.history-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #0f0f0f;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.history-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #a0a0a0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9em;
}

.history-tab:hover {
  color: #fff;
}

.history-tab.active {
  background: #fff;
  color: #000;
}

.inspiration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.tag {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.tag.selected {
  background: #fff;
  color: #000;
}

.tag:disabled {
  background: #2a2a2a;
  color: #666;
  cursor: not-allowed;
}


.char-counter {
  font-size: 0.75em;
  color: #777;
  text-align: right;
  margin-top: 4px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

.char-counter.warning {
  color: #ffcc00;
}

.char-counter.error {
  color: #ff4444;
}

@media (max-width: 600px) {
  input, select, textarea, button {
    padding: 12px;
    font-size: 0.95em;
  }

  .history-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Advanced settings sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #2a2a2a;
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-track {
  background: #2a2a2a;
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-track {
  background: #2a2a2a;
  height: 6px;
  border-radius: 3px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

/* Help icons for sliders */
.help-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 50%;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  cursor: help;
  margin-left: 8px;
  line-height: 14px;
  vertical-align: middle;
  transition: all 0.2s ease;
  user-select: none;
}

.help-icon:hover {
  background: #f5f5f5;
  color: #000000;
  border-color: #999999;
}

/* Help tooltips */
.help-tooltip {
  position: fixed;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  white-space: pre-line;
}