.search-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .search-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  #searchInput, #searchType, #searchBtn {
    width: 100%;
  }
}

#searchInput {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

#searchType {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

#searchBtn {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

#searchBtn:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.result-item {
  padding: 1.2rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  transition: all 0.2s;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 特殊显示样式 */
.result-item.special-display {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.05) 100%);
  border-left: 4px solid #00CCBB;
  box-shadow: 0 4px 12px rgba(0,204,187,0.1);
}

.special-display-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.result-content {
  flex: 1;
  margin-right: 1rem;
}

.special-display-content {
  flex: 1;
}

.special-display-images {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.special-display-main-image {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.special-display-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.special-tag {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.3);
}

.special-tag.ip {
  background: transparent;
}

.special-tag.group {
  background: transparent;
}

.special-member-images {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.member-image {
  max-width: 36px;
  max-height: 36px;
  width: auto;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.3);
}

.special-member-info {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  margin-top: 0.3rem;
  text-align: right;
}

.result-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.result-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--accent);
}

.result-artist {
  color: var(--fg-secondary);
  margin-bottom: 0.8rem;
}

.result-album {
  color: #888;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.result-meta-item {
  display: inline-block;
  background: rgba(14, 165, 233, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.result-platform {
  background: rgba(107, 114, 128, 0.2);
}

.result-author {
  background: rgba(16, 185, 129, 0.2);
  max-width: 100%;
  word-break: break-word;
}

.lyric-matches {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.lyric-matches-title {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.lyric-match-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lyric-time {
  color: var(--fg-secondary);
  font-family: monospace;
  font-size: 0.8rem;
  min-width: 40px;
}

.lyric-text {
  flex: 1;
  color: var(--fg-primary);
}

.lyric-text mark {
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
  font-weight: bold;
}

.lyric-more {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  font-style: italic;
  margin-top: 0.3rem;
}

.result-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.result-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.result-link:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.play-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.play-btn:disabled {
  background: #6b7280;
  cursor: not-allowed;
  transform: none;
}

.play-btn svg {
  transition: transform 0.2s;
}

.play-btn:hover svg {
  transform: scale(1.1);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--fg-secondary);
}

.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
