html, body {
  margin: 0;
  height: 100%;
  background: #050816;
  color: #eef4ff;
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  overflow: hidden;
}
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  color: #fff;
  background: transparent;
}
input {
  font-family: inherit;
  font-size: 16px;
}
.app {
  height: 100%;
  background: #0a1230;
  background: -webkit-linear-gradient(top, #0a1230 0%, #1a0a3a 55%, #0b1024 100%);
  background: linear-gradient(180deg, #0a1230 0%, #1a0a3a 55%, #0b1024 100%);
}
.topbar {
  height: 86px;
  padding: 8px 14px 6px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.top-left { float: left; width: 78%; }
.top-right { float: right; width: 22%; text-align: right; padding-top: 18px; }
.nowline {
  display: block;
  font-size: 15px;
  color: #d7e6ff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctrl-row { white-space: nowrap; }
.pill, .icon-btn {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(20, 28, 70, 0.72);
  border: 1px solid rgba(160, 190, 255, 0.25);
  font-size: 14px;
}
.icon-btn { min-width: 28px; padding: 6px 8px; }
.pill.on { background: #3d6dff; }
.badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 10px;
  background: #ff3b4a;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.vip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f5c242;
  color: #5a2a00;
  font-weight: 700;
  font-size: 13px;
}
.wifi { margin-left: 8px; color: #9ec0ff; font-size: 12px; }
.main {
  height: 58%;
  padding: 8px 12px 0;
  overflow: hidden;
}
.stage {
  position: relative;
  float: left;
  width: 46%;
  height: 100%;
  background: #000;
  overflow: hidden;
}
#player {
  width: 100%;
  height: 100%;
  background: #000;
}
.idle {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  text-align: center;
  padding-top: 22%;
  color: #89a;
  font-size: 28px;
  background: #000;
}
.qrbox {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 92px;
  text-align: center;
  background: rgba(0,0,0,0.55);
  padding: 6px;
}
.qr {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  font-size: 9px;
  word-break: break-all;
  padding: 4px;
  line-height: 1.2;
}
.qr-cap { color: #fff; font-size: 12px; margin-top: 4px; }
.side {
  float: left;
  width: 54%;
  height: 100%;
  padding-left: 10px;
  overflow: hidden;
}
.home-side { height: 100%; }
.tile {
  display: block;
  width: 62%;
  height: 46%;
  margin-bottom: 8px;
  border-radius: 10px;
  text-align: left;
  padding: 18px 16px;
  font-size: 28px;
  font-weight: 700;
  position: relative;
}
.tile-name {
  background: #6b2adf;
  background: -webkit-linear-gradient(left, #6b2adf, #c14bff);
  background: linear-gradient(90deg, #6b2adf, #c14bff);
}
.tile-star {
  background: #2a4bff;
  background: -webkit-linear-gradient(left, #2a4bff, #6a3dff);
  background: linear-gradient(90deg, #2a4bff, #6a3dff);
}
.tile-ico {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  margin-right: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  font-size: 18px;
  vertical-align: middle;
}
.banner {
  position: absolute;
  right: 14px;
  top: 102px;
  width: 18%;
  height: 54%;
  border-radius: 10px;
  background: #ff8a3d;
  background: -webkit-linear-gradient(top, #ff8a3d, #ff4d6d);
  background: linear-gradient(180deg, #ff8a3d, #ff4d6d);
  padding: 16px 10px;
  text-align: center;
}
.banner-title { font-size: 22px; font-weight: 800; letter-spacing: 4px; }
.banner-sub { margin-top: 12px; font-size: 12px; opacity: 0.9; }
.panel {
  height: 100%;
  background: rgba(18, 24, 70, 0.82);
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.panel-head { color: #dce7ff; font-size: 16px; margin-bottom: 8px; }
.back { margin-right: 8px; color: #9ec0ff; }
.search-row { margin-bottom: 8px; }
.search-row input {
  width: 78%;
  height: 36px;
  border: 1px solid #3a4d88;
  background: #10183a;
  color: #fff;
  padding: 0 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.search-row button {
  width: 18%;
  height: 36px;
  margin-left: 2%;
  background: #3d6dff;
  border-radius: 4px;
  vertical-align: middle;
}
.list {
  height: 78%;
  overflow: auto;
}
.item {
  overflow: hidden;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.item .idx { float: left; width: 36px; color: #8ab; }
.item .meta { float: left; width: 62%; }
.item .meta b { display: block; font-size: 16px; }
.item .meta span { color: #9ab; font-size: 12px; }
.item .ops { float: right; }
.op {
  display: inline-block;
  padding: 5px 10px;
  margin-left: 4px;
  background: #2e6bff;
  border-radius: 4px;
  font-size: 13px;
}
.op.alt { background: #5a4b16; }
.op.danger { background: #8a2430; }
.op.ok { background: #1f8a5a; }
.hint { color: #8aa; padding: 16px 8px; }
.set-list { height: 88%; overflow: auto; }
.set-card {
  background: rgba(40, 50, 140, 0.55);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.set-card h4 { margin: 0 0 4px; font-size: 18px; }
.set-card p { margin: 0; color: #b8c6e6; font-size: 13px; }
.set-card .go {
  float: right;
  padding: 6px 14px;
  background: rgba(80, 110, 220, 0.8);
  border-radius: 6px;
}
.dock {
  height: 22%;
  padding: 8px 12px 0;
  overflow: hidden;
}
.dock-tile {
  float: left;
  width: 18.4%;
  height: 88%;
  margin-right: 2%;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
}
.dock-tile:last-child { margin-right: 0; }
.t-hot { background: #f6c031; color: #4a2a00; }
.t-cat { background: #b44bff; }
.t-local { background: #3aa0ff; }
.t-often { background: #ff7ad9; }
.t-fav { background: #ff6b9a; }
.footer {
  height: 8%;
  padding: 6px 12px;
  overflow: hidden;
  line-height: 28px;
}
.foot-btn {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  border-radius: 16px;
  background: rgba(20, 28, 70, 0.75);
  border: 1px solid rgba(160, 190, 255, 0.2);
  font-size: 13px;
}
.foot-btn.voice { background: #3d2a88; }
.foot-hint { color: #8aa4c8; font-size: 12px; }
.foot-right { float: right; }
.toast-msg {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 280px;
  margin-left: -140px;
  background: #111827;
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  text-align: center;
  display: none;
  z-index: 20;
}
.hide { display: none; }
body.player-only .side,
body.player-only .dock,
body.player-only .footer,
body.player-only .qrbox { display: none; }
body.player-only .stage { width: 100%; }
body.player-only .main { height: 86%; }
body.listening #btnVoice { background: #c0392b; }
