
/* 搜索与筛选控件样式 */
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}
.search-box {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 250px;
}
.search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  flex: 1;
  box-shadow: none;
  -webkit-appearance: none;
}
html[data-theme="dark"] .search-input {
  background-color: #444;
  border-color: #666;
  color: #fff;
}
.search-input:focus {
  outline: none;
  border-color: #42b983;
  box-shadow: 0 0 0 2px rgba(66, 185, 131, 0.2);
}
.search-btn {
  padding: 8px 16px;
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
}
.search-btn:hover {
  background-color: #359e75;
}
.filter-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}
.custom-select {
  flex: 1;
  min-width: 150px;
}

/* 分页控件样式 */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 15px 0;
  min-width: 150px;
  justify-content: center;
  margin: auto;
  width: auto;
}
.pagination button {
  padding: 4px 10px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
html[data-theme="dark"] .pagination button {
  background-color: #444;
  border-color: #666;
  color: #ccc;
}
.pagination button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pagination button:hover:not(:disabled) {
  background-color: #f5f5f5;
}
html[data-theme="dark"] .pagination button:hover:not(:disabled) {
  background-color: #555;
}
.page-info {
  padding: 0 5px;
  white-space: nowrap;
}
html[data-theme="dark"] .page-info {
  color: #ccc;
}

/* 结果统计样式 */
.results-stats {
  margin-bottom: 20px;
  font-size: 14px;
}
html[data-theme="light"] .results-stats {
  color: #666;
}
html[data-theme="dark"] .results-stats {
  color: #aaa;
}

/* 音乐列表与卡片样式 */
.music-list {
  display: grid;
  gap: 20px;
}
.music-card {
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}
html[data-theme="light"] .music-card {
  background-color: white;
  border: 1px solid #eee;
}
html[data-theme="dark"] .music-card {
  background-color: #333;
  border: 1px solid #555;
}
.music-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.music-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
}
html[data-theme="light"] .music-title {
  color: #333;
}
html[data-theme="dark"] .music-title {
  color: #ccc;
}
.in-game-location {
  margin-bottom: 10px;
}

/* 游戏内位置样式：每个位置为独立块 */
.in-game-location .location-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.in-game-location .location-item {
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
}
html[data-theme="light"] .in-game-location .location-item {
  background-color: #f8f9fa;
}
html[data-theme="dark"] .in-game-location .location-item {
  background-color: #444;
}

/* 基础信息样式 */
.music-basic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}
.music-item {
  display: flex;
  flex-wrap: wrap;
}
.label {
  font-weight: bold;
  margin-right: 8px;
}
html[data-theme="light"] .label {
  color: #555;
}
html[data-theme="dark"] .label {
  color: #aaa;
}
html[data-theme="light"] .value {
  color: #333;
}
html[data-theme="dark"] .value {
  color: #ccc;
}

/* 音乐平台链接样式 */
.music-platforms {
  margin-bottom: 15px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}
.platform-links a {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
html[data-theme="light"] .platform-links a {
  color: #2c3e50;
  background-color: #f5f5f5;
}
html[data-theme="dark"] .platform-links a {
  color: #ccc;
  background-color: #555;
}
.platform-links a.disabled {
  cursor: not-allowed;
}
html[data-theme="light"] .platform-links a.disabled {
  color: #999;
  background-color: #f9f9f9;
}
html[data-theme="dark"] .platform-links a.disabled {
  color: #888;
  background-color: #4a4a4a;
}
.platform-links a:not(.disabled):hover {
  text-decoration: underline;
}
html[data-theme="light"] .platform-links a:not(.disabled):hover {
  background-color: #e9e9e9;
}
html[data-theme="dark"] .platform-links a:not(.disabled):hover {
  background-color: #666;
}

/* 次要信息样式 */
.music-secondary-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.toggle-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
html[data-theme="light"] .toggle-btn {
  background-color: #f0f0f0;
  color: #555;
}
html[data-theme="dark"] .toggle-btn {
  background-color: #555;
  color: #ddd;
}
.toggle-btn:hover {
  opacity: 0.9;
}
.secondary-details {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}
html[data-theme="light"] .secondary-details {
  background-color: #f5f5f5;
}
html[data-theme="dark"] .secondary-details {
  background-color: #444;
}
.secondary-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.secondary-name {
  font-weight: 500;
  margin-right: 8px;
  min-width: 100px;
}
html[data-theme="light"] .secondary-name {
  color: #666;
}
html[data-theme="dark"] .secondary-name {
  color: #bbb;
}
.secondary-value {
  color: #444;
}
html[data-theme="dark"] .secondary-value {
  color: #ccc;
}

/* 状态提示样式 */
.no-results, .loading, .error {
  text-align: center;
  padding: 50px 20px;
  font-size: 18px;
}
html[data-theme="light"] .no-results {
  color: #888;
}
html[data-theme="dark"] .no-results {
  color: #aaa;
}
html[data-theme="light"] .loading {
  color: #666;
}
html[data-theme="dark"] .loading {
  color: #bbb;
}
.error {
  color: #dc3545;
}

/* 响应式样式：适配小屏幕设备 */
@media (max-width: 768px) {
.search-controls {
    flex-direction: column;
    align-items: stretch;
}
.search-box {
    width: 100%;
    min-width: auto;
}
.pagination-controls {
    flex-direction: column;
    align-items: stretch;
}
.music-basic {
    grid-template-columns: 1fr;
}
.pagination {
    width: 100%;
}
}

