/* 科飞工具库 — 方案一：白底便签卡片网格 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #000;
}

.logo {
  flex-shrink: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
}

.header-search {
  flex: 1;
  max-width: 28rem;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9375rem;
}

.header-search input:disabled {
  background: #fafafa;
  color: #666;
  cursor: not-allowed;
}

.header-search input:focus {
  outline: 1px solid #000;
  outline-offset: 0;
}

.header-fav {
  flex-shrink: 0;
  font-size: 0.9375rem;
  color: #666;
  user-select: none;
}

.header-fav:hover {
  color: #000;
  text-decoration: none;
}

.header-fav.is-current {
  color: #000;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.header-nav a {
  color: #666;
}

.header-nav a:hover {
  color: #000;
  text-decoration: none;
}

.header-nav a.is-current {
  color: #000;
  font-weight: 600;
}

.header-music-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: #666;
  cursor: pointer;
}

.header-music-btn:hover {
  color: #000;
}

.header-fav-count {
  font-variant-numeric: tabular-nums;
}

/* —— 主内容 —— */
main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* —— Hero —— */
.hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid #000;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  font-size: 1.125rem;
  color: #666;
}

/* —— 分类块 —— */
.category-block {
  margin-bottom: 2.75rem;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #000;
}

.category-header h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #000;
}

.category-toggle {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: #666;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-toggle:hover {
  background: #f7f7f7;
  color: #000;
}

.category-body.is-collapsed {
  display: none;
}

/* —— 对话 AI：头部 / 其他 分区 —— */
.chat-groups {
  border: 1px solid #1a1a1a;
  padding: 1rem 0.75rem 0.5rem;
  background: #fff;
}

.subgroup {
  margin-bottom: 1.5rem;
}

.subgroup:last-child {
  margin-bottom: 0.25rem;
}

.host-pick-intro {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #000;
  background: #fafafa;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.bundle-note {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.875rem;
  color: #444;
}

.host-pick-groups .subgroup-title {
  border-left: 3px solid #000;
  padding-left: 0.5rem;
}

.item-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: middle;
  border: 1px solid #000;
  background: #fff;
}

.detail-install {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #999;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.subgroup-title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eee;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.06em;
}

.subgroup[data-subgroup="head"] .item-list {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

/* —— 便签卡片网格（保留 .item-row + data-cat） —— */
.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0.25rem 0.5rem 0.5rem;
  list-style: none;
}

.item-row {
  display: flex;
  flex-direction: column;
  min-height: 9.5rem;
  padding: 1rem 1rem 0.75rem;
  background: #fafafa;
  border: 1px solid #1a1a1a;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.item-row:nth-child(6n + 1) {
  transform: rotate(-1.4deg);
}

.item-row:nth-child(6n + 2) {
  transform: rotate(1.1deg);
}

.item-row:nth-child(6n + 3) {
  transform: rotate(-0.6deg);
}

.item-row:nth-child(6n + 4) {
  transform: rotate(1.3deg);
}

.item-row:nth-child(6n + 5) {
  transform: rotate(-1deg);
}

.item-row:nth-child(6n + 6) {
  transform: rotate(0.7deg);
}

.item-row:hover {
  transform: rotate(0deg) translateY(-2px);
  background: #f7f7f7;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.1);
}

.item-name {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.item-review {
  flex: 1;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #666;
  font-style: italic;
  line-height: 1.45;
}

.item-link {
  margin-top: auto;
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.02em;
}

.item-link:hover {
  color: #000;
}

.category-footer {
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.view-all {
  font-size: 0.875rem;
  color: #666;
  cursor: default;
}

.view-all:hover {
  color: #000;
  text-decoration: underline;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.8125rem;
  color: #666;
}

.site-footer a {
  color: #666;
}

.site-footer a:hover {
  color: #000;
}

.hidden {
  display: none !important;
}

.search-empty {
  text-align: center;
  color: #666;
  font-size: 0.9375rem;
  margin: 2rem 0;
}

.page-head {
  margin-bottom: 1.75rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #666;
}

.back-link:hover {
  color: #000;
}

.page-head h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 2rem;
  color: #000;
}

.page-sub {
  margin: 0.5rem 0 0;
  color: #666;
  font-size: 0.9375rem;
}

.fav-empty {
  color: #666;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* —— 详情页 —— */
.detail-card {
  max-width: 40rem;
}

.detail-type {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #666;
  letter-spacing: 0.04em;
}

.detail-title {
  margin: 0 0 1rem;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 2rem;
  color: #000;
  line-height: 1.25;
}

.detail-review {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: #666;
  font-style: italic;
  line-height: 1.5;
}

.detail-body {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-scenario {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #666;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #ddd;
  color: #666;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: #f7f7f7;
  text-decoration: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
}

.btn-primary.is-active {
  background: #fff;
  color: #000;
  border-style: dashed;
}

.btn-outline {
  border-color: #ccc;
}

.action-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
  min-height: 1.25rem;
}

.detail-missing {
  color: #666;
}

.load-error {
  padding: 2rem 0;
  max-width: 32rem;
}

.load-error h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Songti SC", "SimSun", serif;
}

.load-error-tech {
  font-size: 0.75rem;
  color: #999;
  word-break: break-all;
}

/* —— 全站音乐：顶栏下播放条 + 细搜索歌单 —— */
body.has-music-dock {
  padding-top: 0;
}

body.music-dock-open main {
  padding-top: 0.5rem;
}

.music-dock {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid #000;
  background: #f7f7f7;
}

.music-dock.is-active,
.music-dock.is-open {
  display: flex;
}

.music-dock-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
  padding: 0.45rem 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.music-dock.is-playing .music-dock-dot {
  background: #000;
  animation: music-pulse 1.2s ease-in-out infinite;
}

.music-dock-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #000;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}

.music-dock-meta {
  flex: 1;
  min-width: 8rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  overflow: hidden;
}

.music-dock-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-dock-artist {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-dock-time {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.music-dock-btn {
  padding: 0.3rem 0.85rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-shrink: 0;
}

.music-dock-btn:hover {
  background: #333;
}

.music-dock-toggle {
  font-size: 0.8125rem;
  color: #666;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.music-dock-toggle:hover {
  color: #000;
}

.music-dock-panel {
  display: none;
  flex-direction: column;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem 0.65rem;
  box-sizing: border-box;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.music-dock.is-open .music-dock-panel {
  display: flex;
}

.music-kugou-promo {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #000;
  background: linear-gradient(180deg, #fffbe6 0%, #fff 100%);
}

.music-kugou-promo-badge {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #000;
}

.music-kugou-promo-body {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.music-kugou-promo-img {
  flex-shrink: 0;
  width: 5.5rem;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  object-fit: cover;
  object-position: top center;
}

.music-kugou-promo-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #333;
}

.music-kugou-promo-text strong {
  font-size: 0.9375rem;
  color: #000;
}

.music-kugou-promo-link {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
}

.music-kugou-promo-link-alt {
  margin-left: 0.75rem;
  font-weight: 500;
  color: #666;
}

.music-dock-search input {
  width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid #ccc;
  font-size: 0.8125rem;
  margin-top: 0.45rem;
}

.music-dock-search input:focus {
  outline: 1px solid #000;
}

.music-dock-hint {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: #999;
}

.music-dock-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  max-height: 10.5rem;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
}

.music-dock-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.music-dock-track:last-child {
  border-bottom: none;
}

.music-dock-track:hover {
  background: #fafafa;
}

.music-dock-track.is-playing {
  background: #f0f0f0;
}

.music-dock-track.is-missing {
  opacity: 0.55;
}

.track-missing {
  font-size: 0.7rem;
  color: #c00;
}

.music-dock-track .track-play-btn {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid #000;
  background: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.music-dock-track.is-playing .track-play-btn {
  background: #000;
  color: #fff;
}

/* 旧版音乐 UI（保留兼容，已不再注入） */
.music-top-strip {
  border-bottom: 1px solid #000;
  background: #f7f7f7;
}

.music-top-strip.is-hidden {
  display: none;
}

.music-top-strip.is-playing .music-top-dot {
  background: #000;
  animation: music-pulse 1.2s ease-in-out infinite;
}

.music-top-strip.needs-tap .music-top-inner::after {
  content: "（点暂停继续）";
  font-size: 0.75rem;
  color: #666;
  margin-left: 0.35rem;
}

@keyframes music-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.music-top-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.45rem 2rem;
  flex-wrap: wrap;
}

.music-top-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #000;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}

.music-top-meta {
  flex: 1;
  min-width: 8rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  overflow: hidden;
}

.music-top-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-top-artist {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-top-time {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.music-top-btn {
  padding: 0.3rem 0.85rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-shrink: 0;
}

.music-top-btn:hover {
  background: #333;
}

.music-top-link {
  font-size: 0.8125rem;
  color: #666;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.music-top-link:hover {
  color: #000;
}

/* 当前页弹出的歌单面板 */
body.music-panel-open {
  /* 不锁死整页滚动，避免像卡死 */
}

.music-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
}

.music-panel.is-open {
  display: flex;
}

.music-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.music-panel-dialog {
  position: relative;
  width: min(26rem, 94vw);
  max-height: min(32rem, 82vh);
  display: flex;
  flex-direction: column;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 3px 4px 0 #000;
}

.music-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #000;
  background: #f5f5f5;
}

.music-panel-head h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 700;
}

.music-panel-close {
  border: 1px solid #000;
  background: #fff;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.music-panel-search {
  padding: 0.5rem 0.75rem 0;
}

.music-panel-search input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ccc;
  font-size: 0.875rem;
}

.music-panel-search input:focus {
  outline: 1px solid #000;
}

.music-panel-hint {
  margin: 0.35rem 0.75rem 0;
  font-size: 0.75rem;
  color: #999;
}

.music-panel-list {
  margin: 0.5rem 0 0;
  padding: 0 0.75rem 0.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  border-top: none;
}

/* 搜歌弹窗内：去酷狗说明（替代打不开的底部嵌入框） */
.music-play-guide {
  margin: 0.75rem 0 0;
  padding: 0.85rem;
  border: 2px solid #000;
  background: #fffbe6;
}

.music-play-guide.is-hidden {
  display: none;
}

.music-play-guide-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.music-play-guide-song {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.music-play-guide-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #333;
}

.music-play-guide-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.music-play-guide-btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* 右下角可拖动小窗口 */
.music-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 25;
  z-index: 30;
  width: 11.5rem;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 2px 3px 0 #000;
}

.music-float.is-hidden {
  display: none;
}

.music-float.is-collapsed .music-float-body,
.music-float.is-collapsed .music-float-drag {
  display: none;
}

.music-float:not(.is-collapsed) .music-float-restore {
  display: none;
}

.music-float-drag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: #f0f0f0;
  border-bottom: 1px solid #000;
  cursor: grab;
  font-size: 0.75rem;
  user-select: none;
}

body.is-dragging-music-float .music-float-drag {
  cursor: grabbing;
}

.music-float-collapse {
  border: 1px solid #999;
  background: #fff;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 0.75rem;
}

.music-float-body {
  padding: 0.6rem 0.65rem 0.65rem;
}

.music-float-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.music-float-artist {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.7rem;
  color: #666;
}

.music-float-body input[type="range"] {
  width: 100%;
  margin: 0 0 0.5rem;
  accent-color: #000;
}

.music-float-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-float-btn {
  flex: 1;
  padding: 0.35rem 0;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.music-float-link {
  font-size: 0.7rem;
  color: #666;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.music-float-link:hover {
  color: #000;
}

.music-float-restore {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 0;
}

.music-float.is-playing .music-float-restore {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}

/* —— 音乐页 —— */
.hero-compact {
  padding-bottom: 1rem;
}

.music-page main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.music-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.music-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #999;
}

.playlist-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  font-size: 0.9375rem;
}

.playlist-search input:focus {
  outline: 1px solid #000;
  outline-offset: 0;
}

.music-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid #eee;
}

.music-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.music-track:hover {
  background: #fafafa;
}

.music-track.is-playing .track-title {
  font-weight: 700;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  margin: 0;
  font-size: 1rem;
}

.track-artist {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: #666;
}

.track-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  border: 1px solid #ccc;
  color: #666;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.track-play-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid #000;
  background: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
}

.track-kugou-link {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.track-kugou-link:hover {
  color: #000;
  border-color: #000;
  text-decoration: none;
}

.track-play-btn:hover {
  background: #000;
  color: #fff;
}

.music-track.is-playing .track-play-btn {
  background: #000;
  color: #fff;
}

.music-empty {
  padding: 1.25rem 0;
  color: #666;
  text-align: left;
  line-height: 1.6;
  list-style: none;
}

.music-empty-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #999;
}

@media (max-width: 480px) {
  .item-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
  }

  .item-row {
    min-height: 8.5rem;
    padding: 0.875rem;
  }

  .music-page main {
    padding: 0 1rem 2rem;
  }

  .music-top-inner {
    padding: 0.45rem 1rem;
  }

  .music-top-time {
    display: none;
  }

  .music-float {
    width: 10rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
