/* ==========================================================================
   气泡音乐 — mobile-first home
   Sticky channel tabs, soft search field, editorial cover cards, compact
   song rows, album grid and a fixed bottom tab bar. Loaded on home only.
   ========================================================================== */

html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body.home-kugou {
  margin: 0;
  background: #fff !important;
  color: #171717 !important;
  font-family: "Manrope", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.home-kugou .music_app {
  min-height: 100vh;
  padding-top: 0 !important;
  background: #fff !important;
  color: #171717 !important;
  display: flex;
  flex-direction: column;
}

body.home-kugou .ma_container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

body.home-kugou #container_content {
  min-height: 0;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

body.home-kugou #main-header,
body.home-kugou #bar_loading,
body.home-kugou .ma_footer,
body.home-kugou .ma_sidebar,
body.home-kugou .ma_player {
  display: none !important;
}

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

.kh-home {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #171717;
}

.kh-home a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.kh-home a:hover {
  color: inherit;
}

.kh-home img {
  display: block;
}

.kh-home button {
  font-family: inherit;
}

.kh-main {
  width: 100%;
  flex: 1 0 auto;
}

.kh-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   Channel tabs
   -------------------------------------------------------------------------- */
.kh-tabbar {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f1f2f4;
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
}

.kh-tabbar-inner {
  height: 52px;
  padding: 0 10px;
  display: flex;
  align-items: stretch;
}

.kh-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kh-tabs::-webkit-scrollbar {
  display: none;
}

.kh-tab {
  position: relative;
  height: 100%;
  padding: 0 7px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: #5a5e66 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.kh-tab:hover {
  color: #16181c !important;
}

.kh-tab.is-active {
  color: #111318 !important;
  font-weight: 800;
}

.kh-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 17px;
  height: 3px;
  margin-left: -8.5px;
  border-radius: 99px;
  background: #2f6bff;
}

.kh-tab-shuffle {
  padding-left: 4px;
  color: #111318 !important;
  font-weight: 800;
}

.kh-tab-shuffle em {
  margin-left: 3px;
  padding: 2px 3px;
  border: 1px solid #ffd8c7;
  border-radius: 4px;
  background: #fff2eb;
  color: #f26b2e;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.kh-menu {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.kh-menu summary {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #25282e;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.kh-menu summary::-webkit-details-marker {
  display: none;
}

.kh-menu summary:hover,
.kh-menu[open] summary {
  background: #f2f4f7;
}

.kh-menu summary svg {
  width: 21px;
  height: 21px;
}

.kh-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  width: 174px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eceef2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20, 25, 40, 0.15);
}

.kh-menu-panel a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #353941 !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.kh-menu-panel a:hover {
  background: #f5f7fa;
  color: #111 !important;
}

.kh-menu-panel .kh-menu-lang {
  margin-top: 4px;
  border-top: 1px solid #f0f2f5;
  border-radius: 0 0 9px 9px;
  color: #2f6bff !important;
}

/* --------------------------------------------------------------------------
   Search + greeting
   -------------------------------------------------------------------------- */
.kh-search-row {
  padding: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.kh-search {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f5f7;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.kh-search:focus-within {
  border-color: #c9d8ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}

.kh-search > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #878c95;
}

.kh-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1a1c20;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.kh-search input::placeholder {
  color: #9b9fa7;
  opacity: 1;
}

.kh-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.kh-free-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf3ff;
  color: #2f6bff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kh-free-btn:hover {
  background: #e1ecff;
}

.kh-lang {
  display: none;
  flex: 0 0 auto;
  padding: 8px 0 8px 2px;
  color: #9a9ea6 !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kh-greeting {
  padding: 5px 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.kh-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #f2f7ed;
  border: 1px solid #e8efe2;
}

.kh-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-greeting-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kh-greeting-copy strong {
  overflow: hidden;
  color: #1c1e22;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-greeting-copy > span {
  overflow: hidden;
  color: #9a9ea6;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-login {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #33373e !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.kh-login:hover {
  border-color: #cfd6e0;
  background: #f8f9fb;
}

/* --------------------------------------------------------------------------
   Daily member perk
   -------------------------------------------------------------------------- */
.kh-daily {
  position: relative;
  margin: 0 0 16px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
}

.kh-daily::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -36px;
  z-index: -1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.08);
}

.kh-daily-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #2f6bff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.24);
}

.kh-daily-icon svg {
  width: 20px;
  height: 20px;
}

.kh-daily-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kh-daily-copy strong {
  color: #17233d;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kh-daily-status {
  overflow: hidden;
  display: -webkit-box;
  color: #75839a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.kh-daily-btn {
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.kh-daily-btn:hover {
  background: #1f5bf0;
  transform: translateY(-1px);
}

.kh-daily-btn:disabled {
  cursor: default;
  transform: none;
}

.kh-daily-btn.is-claimed {
  background: #e7edf6;
  color: #8a97ab;
  box-shadow: none;
}

.kh-daily.is-claimed {
  border-color: #e5ecf8;
  background: linear-gradient(135deg, #f4f8ff 0%, #fbfdff 100%);
}

.kh-daily.is-claimed .kh-daily-icon {
  background: #9db6e3;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Editorial cards
   -------------------------------------------------------------------------- */
.kh-picks {
  margin: 0 -16px;
  padding: 2px 16px 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.kh-picks::-webkit-scrollbar {
  display: none;
}

.kh-pick {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1.04;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(18, 24, 38, 0.09);
  scroll-snap-align: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kh-pick:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.15);
}

.kh-pick::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(100% 80% at 12% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 54%);
  pointer-events: none;
}

.kh-pick-like {
  background: linear-gradient(138deg, #ba876c 0%, #93614a 54%, #684231 100%);
}

.kh-pick-daily {
  background: linear-gradient(138deg, #7e9299 0%, #536b73 55%, #314951 100%);
}

.kh-pick-rank {
  background: linear-gradient(138deg, #ffb65c 0%, #ff9134 52%, #f26e17 100%);
}

.kh-pick-fav {
  background: linear-gradient(138deg, #ffbad2 0%, #ff8bb2 55%, #ff6d9c 100%);
}

.kh-pick-copy {
  position: relative;
  min-width: 0;
  z-index: 3;
  width: 84%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 10px rgba(20, 20, 20, 0.12);
}

.kh-pick-copy b {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.kh-pick-copy small {
  display: block;
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-pick-cover {
  position: absolute;
  right: -5%;
  bottom: -8%;
  z-index: 1;
  width: 64%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transform: rotate(3deg);
}

.kh-pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kh-pick:hover .kh-pick-cover img {
  transform: scale(1.05);
}

.kh-pick-art {
  position: absolute;
  right: 9px;
  bottom: 27px;
  z-index: 1;
  width: 84px;
  color: rgba(255, 255, 255, 0.26);
  text-align: center;
}

.kh-pick-art svg {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
}

.kh-pick-art em {
  display: block;
  margin-top: -3px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.kh-pick-art-heart {
  right: 6px;
  bottom: 31px;
  color: rgba(255, 255, 255, 0.38);
}

.kh-pick-art-heart svg {
  width: 92px;
  height: 92px;
}

.kh-pick-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #16181c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.kh-pick-play svg {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.kh-pick-play-dark svg {
  width: 15px;
  height: 15px;
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.kh-section {
  margin-top: 24px;
}

.kh-sec-head {
  min-height: 28px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kh-sec-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kh-sec-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: #14161a;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.kh-sec-head h2 small {
  color: #9a9ea6;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.kh-pill {
  height: 22px;
  padding: 0 8px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f6bff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.kh-pill svg {
  width: 9px;
  height: 9px;
}

.kh-pill:hover {
  background: #e2ecff;
  color: #1f5bf0 !important;
}

.kh-more {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9a9ea6 !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.kh-more svg {
  width: 18px;
  height: 18px;
}

.kh-more:hover {
  background: #f4f5f7;
  color: #1a1c20 !important;
}

.kh-more-text {
  flex: 0 0 auto;
  color: #9a9ea6 !important;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.kh-more-text:hover {
  color: #2f6bff !important;
}

/* --------------------------------------------------------------------------
   Song rows
   -------------------------------------------------------------------------- */
.kh-songlist {
  display: flex;
  flex-direction: column;
}

.kh-song {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f4f5f7;
}

.kh-song:last-child {
  border-bottom: 0;
}

.kh-song-main {
  min-width: 0;
  flex: 1 1 auto;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17191d !important;
}

.kh-song-cover {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9px;
  background: #f1f2f4;
}

.kh-song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.kh-song-main:hover .kh-song-cover img {
  transform: scale(1.05);
}

.kh-song-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kh-song-title {
  overflow: hidden;
  color: #1a1c20;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-song-main:hover .kh-song-title {
  color: #2f6bff;
}

.kh-song-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9a9ea6;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

.kh-song-artist {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-song-tag {
  padding: 2px 5px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #f0f5ff;
  color: #2f6bff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.kh-duration {
  margin-right: 2px;
  flex: 0 0 auto;
  color: #a3a7ae;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.kh-heart {
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b9bdc4;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.kh-heart svg {
  width: 19px;
  height: 19px;
}

.kh-heart:hover {
  background: #fff0f4;
  color: #ff5b81;
}

/* --------------------------------------------------------------------------
   Albums
   -------------------------------------------------------------------------- */
.kh-albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kh-album {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #17191d !important;
}

.kh-album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f2f4;
}

.kh-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kh-album:hover .kh-album-cover img {
  transform: scale(1.055);
}

.kh-album-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.kh-album-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #17191d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.kh-album-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.kh-album-title {
  margin-top: 7px;
  overflow: hidden;
  color: #1a1c20;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-album-meta {
  margin-top: 2px;
  overflow: hidden;
  color: #9a9ea6;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Playlists
   -------------------------------------------------------------------------- */
.kh-playlists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kh-playlist {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #17191d !important;
}

.kh-playlist-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f2f4;
}

.kh-playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kh-playlist:hover .kh-playlist-cover img {
  transform: scale(1.055);
}

.kh-playlist-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.kh-playlist-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #17191d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.kh-playlist-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.kh-playlist-cover-more {
  border: 1px dashed #cfdcff;
  background: linear-gradient(135deg, #f7faff 0%, #eaf2ff 100%);
  color: #2f6bff;
}

.kh-playlist-cover-more svg {
  width: 27px;
  height: 27px;
}

.kh-playlist-title {
  margin-top: 7px;
  overflow: hidden;
  color: #1a1c20;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-playlist-meta {
  margin-top: 2px;
  overflow: hidden;
  color: #9a9ea6;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Genres
   -------------------------------------------------------------------------- */
.kh-genres {
  padding: 2px 2px 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68px;
  gap: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kh-genres::-webkit-scrollbar {
  display: none;
}

.kh-genre {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #40444b !important;
}

.kh-genre-cover {
  width: 62px;
  height: 62px;
  display: block;
  overflow: hidden;
  border: 1px solid #f0f1f3;
  border-radius: 50%;
  background: #f1f2f4;
}

.kh-genre-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.kh-genre-name {
  width: 100%;
  overflow: hidden;
  color: #4a4e56;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.kh-footer {
  flex: 0 0 auto;
  margin-top: 30px;
  padding: 24px 16px 30px;
  border-top: 1px solid #f1f2f4;
  background: #fff;
  text-align: center;
}

.kh-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kh-footer-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.kh-footer-brand strong {
  color: #2a2d32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.kh-footer p {
  margin: 5px 0 4px;
  color: #a2a6ad;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
}

.kh-footer > span {
  color: #b6b9bf;
  font-size: 9.5px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Fixed mobile tab bar
   -------------------------------------------------------------------------- */
.kh-bottom {
  display: none;
}

@media (max-width: 719px) {
  .kh-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0;
  }

  .kh-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    border-top: 1px solid #f0f1f3;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(1.5) blur(18px);
    backdrop-filter: saturate(1.5) blur(18px);
  }

  .kh-bottom-link {
    appearance: none;
    min-width: 0;
    padding: 3px 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #9a9ea6 !important;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
  }

  .kh-bottom-link svg {
    width: 21px;
    height: 21px;
  }

  .kh-bottom-link.is-active {
    color: #16181c !important;
    font-weight: 700;
  }

  .kh-bottom-link.is-active svg {
    stroke-width: 2;
  }
}

/* --------------------------------------------------------------------------
   Tablet / desktop
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .kh-shell {
    padding: 0 24px;
  }

  .kh-tabbar-inner {
    height: 60px;
    padding: 0 16px;
  }

  .kh-tab {
    padding: 0 11px;
    font-size: 14.5px;
  }

  .kh-tab.is-active::after {
    bottom: 8px;
  }

  .kh-menu summary {
    width: 38px;
    height: 38px;
  }

  .kh-search-row {
    padding: 20px 0 12px;
    gap: 12px;
  }

  .kh-search {
    height: 44px;
    padding: 0 16px;
  }

  .kh-search input {
    font-size: 14px;
  }

  .kh-free-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .kh-lang {
    display: inline-flex;
  }

  .kh-greeting {
    padding: 6px 0 20px;
    gap: 11px;
  }

  .kh-daily {
    margin-bottom: 20px;
    padding: 13px 15px;
    gap: 13px;
    border-radius: 16px;
  }

  .kh-daily-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .kh-daily-icon svg {
    width: 22px;
    height: 22px;
  }

  .kh-daily-copy strong {
    font-size: 13.5px;
  }

  .kh-daily-status {
    font-size: 10.5px;
  }

  .kh-daily-btn {
    min-height: 36px;
    padding: 0 15px;
    font-size: 11px;
  }

  .kh-avatar {
    width: 38px;
    height: 38px;
  }

  .kh-greeting-copy strong {
    font-size: 14px;
  }

  .kh-greeting-copy > span {
    font-size: 11px;
  }

  .kh-login {
    padding: 8px 16px;
    font-size: 11.5px;
  }

  .kh-picks {
    margin: 0;
    padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .kh-pick {
    min-height: 224px;
    aspect-ratio: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .kh-pick-copy {
    width: 80%;
  }

  .kh-pick-copy b {
    font-size: 21px;
  }

  .kh-pick-copy small {
    font-size: 11.5px;
  }

  .kh-pick-cover {
    width: 65%;
    border-radius: 12px;
  }

  .kh-pick-art {
    right: 16px;
    bottom: 35px;
    width: 104px;
  }

  .kh-pick-art svg {
    width: 100px;
    height: 100px;
  }

  .kh-pick-art-heart {
    right: 12px;
    bottom: 40px;
  }

  .kh-pick-art-heart svg {
    width: 112px;
    height: 112px;
  }

  .kh-pick-play {
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
  }

  .kh-pick-play svg {
    width: 14px;
    height: 14px;
  }

  .kh-section {
    margin-top: 36px;
  }

  .kh-sec-head {
    margin-bottom: 13px;
  }

  .kh-sec-head h2 {
    font-size: 24px;
    gap: 8px;
  }

  .kh-sec-head h2 small {
    font-size: 12px;
  }

  .kh-pill {
    height: 25px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .kh-pill svg {
    width: 10px;
    height: 10px;
  }

  .kh-more-text {
    font-size: 11.5px;
  }

  .kh-songlist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }

  .kh-song {
    min-height: 70px;
  }

  .kh-song:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .kh-song-cover {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .kh-song-title {
    font-size: 14.5px;
  }

  .kh-song-meta {
    font-size: 11px;
  }

  .kh-song-tag {
    font-size: 9.5px;
  }

  .kh-heart {
    width: 36px;
    height: 36px;
  }

  .kh-heart svg {
    width: 20px;
    height: 20px;
  }

  .kh-duration {
    font-size: 11px;
  }

  .kh-albums {
    gap: 18px;
  }

  .kh-album-cover {
    border-radius: 14px;
  }

  .kh-album-badge {
    top: 9px;
    left: 9px;
    padding: 3px 6px;
    font-size: 8.5px;
  }

  .kh-album-play {
    right: 9px;
    bottom: 9px;
    width: 30px;
    height: 30px;
  }

  .kh-album-title {
    margin-top: 9px;
    font-size: 14px;
  }

  .kh-album-meta {
    font-size: 11.5px;
  }

  .kh-playlists {
    gap: 18px;
  }

  .kh-playlist-cover {
    border-radius: 14px;
  }

  .kh-playlist-badge {
    top: 9px;
    left: 9px;
    padding: 3px 6px;
    font-size: 8.5px;
  }

  .kh-playlist-play {
    right: 9px;
    bottom: 9px;
    width: 30px;
    height: 30px;
  }

  .kh-playlist-title {
    margin-top: 9px;
    font-size: 14px;
  }

  .kh-playlist-meta {
    font-size: 11.5px;
  }

  .kh-playlist-cover-more svg {
    width: 32px;
    height: 32px;
  }

  .kh-genres {
    padding-bottom: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 8px;
    overflow: visible;
  }

  .kh-genre-cover {
    width: 100%;
    max-width: 76px;
    height: auto;
    aspect-ratio: 1;
  }

  .kh-genre-name {
    font-size: 11.5px;
  }

  .kh-footer {
    margin-top: 38px;
    padding: 28px 24px 36px;
  }

  .kh-footer-brand img {
    width: 26px;
    height: 26px;
  }

  .kh-footer-brand strong {
    font-size: 13px;
  }

  .kh-footer p {
    font-size: 11px;
  }

  .kh-footer > span {
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .kh-pick {
    min-height: 246px;
    padding: 20px;
  }

  .kh-pick-copy b {
    font-size: 22px;
  }

  .kh-sec-head h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-pick,
  .kh-pick-cover img,
  .kh-song-cover img,
  .kh-album-cover img,
  .kh-genre-cover img {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Dark surface
   Layout and spacing stay identical; only the palette flips to the site's
   black / lime night identity.
   -------------------------------------------------------------------------- */
html,
body {
  background: #000 !important;
}

body.home-kugou {
  background: #000 !important;
  color: #f5f5f2 !important;
}

body.home-kugou .music_app {
  background: #000 !important;
  color: #f5f5f2 !important;
}

.kh-home {
  background: #000;
  color: #f5f5f2;
}

.kh-tabbar {
  background: #000;
  border-bottom-color: #1a1a1a;
}

.kh-tab {
  color: #8f8f8b !important;
}

.kh-tab:hover,
.kh-tab.is-active {
  color: #fff !important;
}

.kh-tab.is-active::after {
  background: #d8ff3e;
}

.kh-menu summary {
  color: #ededE8;
}

.kh-menu summary:hover,
.kh-menu[open] summary {
  background: #171717;
}

.kh-menu-panel {
  border-color: #242424;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.kh-menu-panel a {
  color: #d8d8d3 !important;
}

.kh-menu-panel a:hover {
  background: #1b1b1b;
  color: #fff !important;
}

.kh-menu-panel .kh-menu-lang {
  border-top-color: #222;
  color: #d8ff3e !important;
}

.kh-search {
  border-color: #1d1d1d;
  background: #141414;
}

.kh-search:focus-within {
  border-color: rgba(216, 255, 62, 0.5);
  background: #101010;
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.08);
}

.kh-search > svg {
  color: #74746f;
}

.kh-search input {
  color: #f4f4f1;
  caret-color: #d8ff3e;
}

.kh-search input::placeholder {
  color: #696963;
}

.kh-lang {
  color: #777771 !important;
}

.kh-avatar {
  border-color: #262626;
  background: #111;
}

.kh-greeting-copy strong {
  color: #f4f4f0;
}

.kh-greeting-copy > span {
  color: #858580;
}

.kh-login {
  border-color: #2a2a2a;
  background: #0c0c0c;
  color: #e8e8e3 !important;
}

.kh-login:hover {
  border-color: #3a3a3a;
  background: #171717;
}

.kh-daily {
  border-color: rgba(216, 255, 62, 0.18);
  background: linear-gradient(135deg, #12180c 0%, #0b0f08 100%);
}

.kh-daily::after {
  background: rgba(216, 255, 62, 0.07);
}

.kh-daily-icon {
  background: #d8ff3e;
  color: #070807;
  box-shadow: 0 6px 16px rgba(216, 255, 62, 0.16);
}

.kh-daily-copy strong {
  color: #f5f5f1;
}

.kh-daily-status {
  color: #8c8c86;
}

.kh-daily-btn {
  background: #d8ff3e;
  color: #070807;
  box-shadow: 0 6px 16px rgba(216, 255, 62, 0.14);
}

.kh-daily-btn:hover {
  background: #e8ff86;
}

.kh-daily-btn.is-claimed {
  background: #1c1c1c;
  color: #73736e;
}

.kh-daily.is-claimed {
  border-color: #232323;
  background: linear-gradient(135deg, #0e0e0e 0%, #090909 100%);
}

.kh-daily.is-claimed .kh-daily-icon {
  background: #2c2c2c;
  color: #8d8d87;
}

.kh-sec-head h2 {
  color: #f6f6f2;
}

.kh-sec-head h2 small {
  color: #7c7c76;
}

.kh-pill {
  background: rgba(216, 255, 62, 0.1);
  color: #d8ff3e !important;
}

.kh-pill:hover {
  background: rgba(216, 255, 62, 0.17);
  color: #eaff8d !important;
}

.kh-more {
  color: #777771 !important;
}

.kh-more:hover {
  background: #171717;
  color: #fff !important;
}

.kh-more-text {
  color: #777771 !important;
}

.kh-more-text:hover {
  color: #d8ff3e !important;
}

.kh-song {
  border-bottom-color: #191919;
}

.kh-song-cover {
  background: #161616;
}

.kh-song-title {
  color: #f0f0ec;
}

.kh-song-main:hover .kh-song-title {
  color: #d8ff3e;
}

.kh-song-meta {
  color: #858580;
}

.kh-song-tag {
  background: rgba(216, 255, 62, 0.09);
  color: #c9eb4f;
}

.kh-duration {
  color: #65655f;
}

.kh-heart {
  color: #54544f;
}

.kh-heart:hover {
  background: rgba(255, 91, 129, 0.12);
  color: #ff6689;
}

.kh-album {
  color: #ededE8 !important;
}

.kh-album-cover,
.kh-playlist-cover,
.kh-genre-cover {
  background: #161616;
}

.kh-album-title,
.kh-playlist-title {
  color: #efefeb;
}

.kh-album-meta,
.kh-playlist-meta {
  color: #858580;
}

.kh-genre-cover {
  border-color: #222;
}

.kh-genre-name {
  color: #a5a59f;
}

.kh-footer {
  border-top-color: #191919;
  background: #000;
}

.kh-footer-brand strong {
  color: #deded9;
}

.kh-footer p {
  color: #80807a;
}

.kh-footer > span {
  color: #595954;
}

@media (max-width: 719px) {
  .kh-bottom {
    border-top-color: #1b1b1b;
    background: #060606;
  }

  .kh-bottom-link {
    color: #73736d !important;
  }

  .kh-bottom-link.is-active {
    color: #fff !important;
  }
}

/* Production fallback: even if the legacy app shell injects its bar before
   this page boots, the home layout keeps its own bottom navigation. */
body.home-kugou .neon-tabbar,
body.home-kugou #main-header {
  display: none !important;
}
