/* 重置浏览器默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(99, 102, 241, 0.14), transparent 62%),
    radial-gradient(900px 520px at 88% 112%, rgba(225, 60, 90, 0.09), transparent 62%),
    radial-gradient(800px 480px at 6% 108%, rgba(56, 189, 248, 0.07), transparent 60%),
    #12121c;
  background-attachment: fixed;
  color: #eee;
  font-family: "LXGW WenKai", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  padding: 24px 24px 40px;
}

header {
  max-width: 1400px;
  margin: 0 auto 20px;
  text-align: center;
}

h1 {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 18px;
  font-family: "Great Vibes", "LXGW WenKai", cursive;
  background: linear-gradient(120deg, #f5f5fa 25%, #a5b4fc 65%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.25;
}

/* 模式切换 */
.tabs {
  display: inline-flex;
  gap: 8px;
  background: #1e1e2e;
  padding: 5px;
  border-radius: 12px;
}

.tab {
  border: none;
  background: transparent;
  color: #9a9ab0;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab:hover {
  color: #ddd;
}

.tab.active {
  background: linear-gradient(135deg, #f5f5fa, #dde0f8);
  color: #12121c;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(245, 245, 250, 0.18);
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: #6f6f88;
}

/* 布局：左侧固定卡片 + 右侧全屏居中 */
.layout {
  display: block;
}

.sidebar {
  position: fixed;
  left: 12.5vw;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  width: 240px;
  z-index: 10;
}

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, rgba(46, 46, 76, 0.92), rgba(26, 26, 44, 0.95));
  border: 1px solid rgba(165, 180, 252, 0.14);
  border-radius: 20px;
  padding: 36px 18px;
  text-align: center;
  text-decoration: none;
  color: #eee;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(165, 180, 252, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.12);
}

.profile-bg {
  position: absolute;
  inset: 0;
  background-image: var(--profile-bg-img);
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.profile-card > *:not(.profile-bg) {
  position: relative;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #2e2e48;
  display: block;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-sub {
  font-size: 13px;
  color: #b9b9cd;
  margin-bottom: 22px;
  line-height: 1.7;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
}

.profile-stats .stat {
  text-align: center;
}

.profile-stats .stat-num {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.profile-stats .stat-label {
  font-size: 11px;
  color: #8a8aa3;
  margin-top: 3px;
}

.profile-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f5f5fa, #e0e3f9);
  color: #12121c;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.profile-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.content {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.content .view {
  width: 100%;
  flex-direction: column;
  align-items: center;
}

/* 视图切换 */
.view {
  display: none;
}

.view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============ 随机歌墙（正方形网格） ============ */
.heart-wrap {
  margin-top: 8px;
}

.heart-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.heart-grid .cover {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.heart-grid .cover:hover {
  transform: scale(1.15);
  z-index: 3;
  border-color: rgba(165, 180, 252, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(99, 102, 241, 0.22);
}

.heart-grid .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heart-grid .cover .num {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  pointer-events: none;
}

/* 心形空洞占位（不再使用） */
.cell-empty {
  display: none;
}

/* 控制按钮 */
.controls {
  text-align: center;
  margin-top: 24px;
}

.btn {
  background: linear-gradient(135deg, #f5f5fa, #dde0f8);
  color: #12121c;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
}

.btn:active {
  transform: translateY(0);
}

/* ============ 歌手 TOP20 墙 ============ */
.wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.cover {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(160deg, #26263c, #1a1a2c);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
  text-decoration: none;
}

.cover:hover {
  transform: scale(1.08);
  z-index: 2;
  border-color: rgba(165, 180, 252, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.18);
}

.cover img {
  transition: transform 0.3s ease;
}

.cover:hover img {
  transform: scale(1.06);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #33334e;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #44445f;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* 封面加载失败：灰底 + 文字 */
.cover.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2c2c46, #1c1c30);
}

.cover .cover-text {
  font-size: 12px;
  color: #b9b9cd;
  text-align: center;
  padding: 6px;
  line-height: 1.4;
  word-break: break-all;
  pointer-events: none;
}

/* 百叶窗翻面条 */
.cover .blind {
  position: absolute;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  transform-origin: top;
  z-index: 2;
  pointer-events: none;
}

/* ============ 右侧：大家都在听 ============ */
.right-sidebar {
  position: fixed;
  right: 12.5vw;
  transform: translateX(50%) translateY(-50%);
  top: 50%;
  width: 260px;
  z-index: 10;
}

.trending-card {
  background: linear-gradient(165deg, rgba(40, 40, 64, 0.92), rgba(24, 24, 40, 0.95));
  border: 1px solid rgba(165, 180, 252, 0.12);
  border-radius: 20px;
  padding: 22px 14px;
  text-align: center;
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.trending-title {
  font-size: 17px;
  font-weight: 700;
  color: #f5f5fa;
  letter-spacing: 1px;
  margin-bottom: 14px;
  flex: 0 0 auto;
  background: linear-gradient(120deg, #f5f5fa 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.trending-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a55 transparent;
}

.trending-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, transform 0.15s;
}

.trending-row:hover {
  background: #2a2a40;
  transform: translateX(3px);
}

.trending-row img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 42px;
  background: #2e2e48;
}

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

.trending-name {
  font-size: 13px;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-singer {
  font-size: 11px;
  color: #8a8aa3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-row.no-img {
  justify-content: center;
  background: #33334a;
  min-height: 42px;
}

.trending-row.no-img .cover-text {
  font-size: 11px;
  color: #b9b9cd;
  pointer-events: none;
  word-break: break-all;
  line-height: 1.3;
  text-align: center;
  padding: 4px;
}

.trending-empty {
  color: #6f6f88;
  font-size: 12px;
  line-height: 1.7;
  padding: 30px 10px;
}

/* ============ 点击封面弹窗：要推荐这首吗？ ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: linear-gradient(165deg, #26263e, #18182a);
  border: 1px solid rgba(165, 180, 252, 0.22);
  border-radius: 20px;
  padding: 34px 30px 26px;
  width: 340px;
  max-width: calc(100vw - 48px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 44px rgba(99, 102, 241, 0.14);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal-mask.show .modal {
  transform: translateY(0) scale(1);
}

.modal-question {
  font-size: 20px;
  font-weight: 700;
  color: #f5f5fa;
  letter-spacing: 1px;
}

.modal-song {
  margin-top: 10px;
  font-size: 13px;
  color: #9a9ab0;
  line-height: 1.6;
  min-height: 1.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.modal-btns .btn {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  box-shadow: none;
}

.modal-btns .btn-jump {
  background: linear-gradient(135deg, #f5f5fa, #dde0f8);
  color: #12121c;
}

.modal-btns .btn-jump:hover {
  background: linear-gradient(135deg, #ffffff, #e8eafc);
}

.modal-btns .btn-like {
  background: rgba(225, 60, 90, 0.14);
  color: #ff7b97;
}

.modal-btns .btn-like:hover {
  background: rgba(225, 60, 90, 0.28);
}

.modal-btns .btn-like.liked {
  background: #e13c5a;
  color: #fff;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(12, 12, 22, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cover .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover:hover .info {
  opacity: 1;
}

/* ============ 随机歌手 spotlight ============ */
.singer-spotlight {
  max-width: 560px;
  margin: 20px auto 0;
  background: linear-gradient(165deg, rgba(42, 42, 66, 0.92), rgba(24, 24, 40, 0.95));
  border: 1px solid rgba(165, 180, 252, 0.14);
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(10px);
}

.singer-spotlight .avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
  border: 3px solid rgba(165, 180, 252, 0.35);
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 30px rgba(99, 102, 241, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}

.singer-spotlight .avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.28);
}

.singer-spotlight .s-name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  cursor: pointer;
}

/* 无头像时名字更突出居中 */
.singer-spotlight.no-avatar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.singer-spotlight.no-avatar .s-name {
  font-size: 40px;
}

.singer-spotlight .s-count {
  font-size: 16px;
  color: #9a9ab0;
  margin-bottom: 20px;
}

.singer-spotlight .s-tags {
  font-size: 15px;
  color: #6f6f88;
  line-height: 1.8;
  max-height: 5.4em;
  overflow: hidden;
}

/* ============ 歌手详情 ============ */
.detail-head {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-top: 64px;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn-back {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 20;
}

.detail-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(165, 180, 252, 0.3);
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #2e2e48;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(99, 102, 241, 0.14);
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-sub {
  font-size: 13px;
  color: #9a9ab0;
}

.detail-desc {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #b9b9cd;
  text-align: center;
  padding: 0 12px;
}

.detail-wall {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 歌曲横条 */
.song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #ddd;
  transition: background 0.15s;
}

.song-row:hover {
  background: linear-gradient(90deg, rgba(42, 42, 66, 0.9), rgba(30, 30, 48, 0.9));
  color: #fff;
}

.row-idx {
  flex: 0 0 28px;
  font-size: 13px;
  color: #6f6f88;
  text-align: right;
}

.row-name {
  flex: 0 0 auto;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-album {
  flex: 1;
  font-size: 12px;
  color: #8a8aa3;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 移动端适配（<=900px） ============ */
@media (max-width: 900px) {
  body {
    padding: 14px 10px 32px;
  }

  h1 {
    font-size: 32px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
  }

  /* 英文标题在小屏上缩小 */
  @media (max-width: 480px) {
    h1 {
      font-size: 26px;
    }
  }

  .tabs {
    width: 100%;
    justify-content: center;
  }

  .tab {
    flex: 1;
    max-width: 120px;
    padding: 10px 8px;
    font-size: 13px;
  }

  /* 布局改为纵向流式 */
  .layout {
    display: flex;
    flex-direction: column;
  }

  /* 左侧名片：从固定浮动改为顶部横排卡片 */
  .sidebar {
    position: static;
    transform: none;
    width: 100%;
    order: 1;
    margin-bottom: 14px;
  }

  .profile-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    margin: 0;
    flex: 0 0 56px;
    border-width: 2px;
  }

  .profile-info {
    flex: 1;
    min-width: 0;
    position: relative;
  }

  .profile-name {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .profile-sub {
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .profile-stats {
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 0;
  }

  .profile-stats .stat-num {
    font-size: 15px;
  }

  .profile-stats .stat-label {
    font-size: 10px;
  }

  .profile-btn {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  /* 主内容 */
  .content {
    min-height: auto;
    padding: 8px 0 16px;
    order: 2;
  }

  /* 右侧大家都在听：移到主内容下方，横滑列表 */
  .right-sidebar {
    position: static;
    transform: none;
    width: 100%;
    order: 3;
    margin-top: 14px;
  }

  .trending-card {
    max-height: none;
    border-radius: 16px;
    padding: 16px 12px;
  }

  .trending-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .trending-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .trending-row {
    flex: 0 0 110px;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: #1a1a2c;
    border-radius: 12px;
    text-align: center;
  }

  .trending-row img {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 10px;
  }

  .trending-info {
    width: 100%;
  }

  .trending-name {
    font-size: 12px;
  }

  .trending-singer {
    font-size: 10px;
  }

  .trending-empty {
    width: 100%;
    padding: 20px 10px;
  }

  /* 网格更紧凑 */
  .heart-grid {
    gap: 5px;
    max-width: 100%;
  }

  .wall {
    gap: 8px;
    max-width: 100%;
  }

  .controls {
    margin-top: 18px;
  }

  .btn {
    padding: 13px 28px;
    font-size: 14px;
  }

  /* 弹窗 */
  .modal {
    width: calc(100vw - 40px);
    padding: 28px 22px 22px;
    border-radius: 18px;
  }

  .modal-question {
    font-size: 18px;
  }

  .modal-btns {
    gap: 10px;
    margin-top: 22px;
  }

  .modal-btns .btn {
    padding: 13px 0;
  }

  /* 随机歌手 */
  .singer-spotlight {
    max-width: 100%;
    padding: 28px 18px;
    border-radius: 18px;
    margin-top: 12px;
  }

  .singer-spotlight .avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 18px;
  }

  .singer-spotlight .s-name {
    font-size: 25px;
  }

  .singer-spotlight .s-tags {
    font-size: 13px;
  }

  /* 歌手详情 */
  .detail-head {
    padding-top: 56px;
    max-width: 100%;
  }

  .detail-avatar {
    width: 88px;
    height: 88px;
  }

  .detail-title {
    font-size: 20px;
  }

  .detail-desc {
    max-width: 100%;
    font-size: 13px;
    padding: 0 4px;
  }

  .detail-wall {
    max-width: 100%;
  }

  .song-row {
    padding: 12px 10px;
  }

  .row-name {
    font-size: 13px;
  }

  .row-album {
    font-size: 11px;
  }
}

/* 超小屏（<=380px）进一步压缩 */
@media (max-width: 380px) {
  .profile-card {
    flex-wrap: wrap;
  }

  .profile-btn {
    width: 100%;
    text-align: center;
  }

  .profile-stats {
    gap: 10px;
  }

  .trending-row {
    flex-basis: 100px;
  }
}

/* ============ 聚焦模式：点击放大居中 ============ */
.heart-grid .cover {
  transition: transform 0.25s ease, box-shadow 0.2s ease, border-color 0.2s;
  will-change: transform;
}

.heart-grid .cover.focused {
  z-index: 60;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.35);
  border-color: rgba(165, 180, 252, 0.65);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
  cursor: default;
}

/* 聚焦时其他封面缩小变暗 */
.heart-grid.focusing .cover:not(.focused) {
  transform: scale(0.55);
  opacity: 0.35;
  filter: blur(1px) saturate(0.7);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s, filter 0.4s;
}

/* 底部操作条 */
.focus-bar {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(165deg, rgba(40, 40, 64, 0.96), rgba(22, 22, 38, 0.98));
  border: 1px solid rgba(165, 180, 252, 0.25);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(12px);
  max-width: calc(100vw - 32px);
  animation: focusBarIn 0.3s ease;
}

@keyframes focusBarIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.focus-title {
  min-width: 0;
  max-width: 260px;
  text-align: left;
}

.focus-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-singer {
  font-size: 12px;
  color: #9a9ab0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-bar .btn {
  padding: 14px 30px;
  font-size: 15px;
  box-shadow: none;
  flex: 0 0 auto;
}

.focus-jump {
  background: linear-gradient(135deg, #f5f5fa, #dde0f8);
  color: #12121c;
}

.focus-like {
  background: rgba(225, 60, 90, 0.14);
  color: #ff7b97;
  min-width: 64px;
}

.focus-like.liked {
  background: #e13c5a;
  color: #fff;
}

.focus-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.focus-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* 移动端：操作条收紧 */
@media (max-width: 900px) {
  .focus-bar {
    bottom: 18px;
    padding: 12px 16px;
    gap: 10px;
    width: calc(100vw - 24px);
    justify-content: space-between;
  }

  .focus-title {
    max-width: 34vw;
  }

  .focus-name {
    font-size: 14px;
  }

  .focus-bar .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ============ 红心 hover 提示 ============ */
.focus-like,
.modal-btns .btn-like {
  position: relative;
}

/* 提示气泡 */
.focus-like::after,
.modal-btns .btn-like::after {
  content: "要向他人推荐这首吗？";
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 14, 28, 0.97);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #f5f5fa;
  font-size: 12px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 90;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* 小箭头 */
.focus-like::before,
.modal-btns .btn-like::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(165, 180, 252, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 90;
  pointer-events: none;
}

.focus-like:hover::after,
.modal-btns .btn-like:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.focus-like:hover::before,
.modal-btns .btn-like:hover::before {
  opacity: 1;
}

/* ============ 提建议留言 ============ */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(165, 180, 252, 0.35);
  background: linear-gradient(135deg, #2e2e4e, #1c1c34);
  color: #f5f5fa;
  font-size: 22px;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(99, 102, 241, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 32px rgba(99, 102, 241, 0.35);
}

.feedback-modal {
  width: 380px;
}

.feedback-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #8a8aa3;
}

.feedback-input {
  width: 100%;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a40;
  background: rgba(14, 14, 28, 0.7);
  color: #eee;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-input:focus {
  border-color: rgba(165, 180, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.feedback-textarea {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a40;
  background: rgba(14, 14, 28, 0.7);
  color: #eee;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-textarea:focus {
  border-color: rgba(165, 180, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.feedback-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.feedback-btns .btn {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  box-shadow: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #b9b9cd;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.feedback-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(16, 16, 32, 0.96);
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #f5f5fa;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 95;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.feedback-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 移动端：按钮缩小 */
@media (max-width: 900px) {
  .fab {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .feedback-modal {
    width: calc(100vw - 40px);
  }
}
