.bg-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -6;
  overflow: hidden;
  background-image: radial-gradient(var(--stroke2) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.blob { display: none !important; }
.stars { display: none !important; }
.noise { display: none !important; }
.cursor-glow { display: none !important; }

.bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8 !important;
  z-index: 1;
}

html.bg-motion-off .bg-particles { opacity: 0 !important; }

.float-panel {
  padding: 22px;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.mini-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  transform: translateZ(12px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.badge-btn {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.badge-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.05);
  color: var(--cyan);
}

.badge-btn:active { transform: translateY(0) scale(.98); }

.spark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
}

.server-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow2);
  transform: translateZ(18px);
  animation: floaty 6.5s var(--ease) infinite alternate;
  will-change: transform;
}

.server-visual {
  height: 0;
  padding-top: 56.25%;
  background: url("https://www.cyucloud.cn/img/banners/fp.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.player-card {
  position: relative;
  overflow: hidden;
}

#tiltCard { margin-bottom: 42px; }

.music-player {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow2);
}

.music-player iframe {
  width: 100%;
  display: block;
  border: 0 !important;
  background: transparent !important;
  opacity: 1;
}

.scanline { display: none; }
.glare { display: none; }

.server-meta {
  padding: 14px;
  display: grid;
  gap: 10px;
  position: relative;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row strong {
  color: var(--text);
  font-weight: 900;
  letter-spacing: .2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.chip.highlight {
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.08);
  color: var(--cyan);
}

.radio-shell {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow2);
  padding: 14px;
}

.radio-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radio-meta { min-width: 0; }

.radio-title {
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.radio-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.rbtn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  box-shadow: var(--shadow2);
}

.rbtn:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  border-color: var(--cyan);
  color: var(--cyan);
}

.rbtn:active { transform: translateY(0) scale(.98); }

.rbtn.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #FFFFFF;
}

.rbtn.primary:hover {
  background: #009BD6;
  border-color: #009BD6;
  color: #FFFFFF;
}

.radio-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.time {
  font-size: 12px;
  color: var(--muted);
  width: 42px;
  text-align: center;
  flex: 0 0 auto;
  font-weight: 600;
}

.seek {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: var(--stroke2);
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--cyan) var(--p, 0%), var(--stroke2) var(--p, 0%));
  transition: height .18s var(--ease);
}

.seek:hover { height: 10px; }

.seek::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #FFFFFF;
  background: var(--cyan);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform .18s var(--ease);
}

.seek:active::-webkit-slider-thumb { transform: scale(1.15); }

.seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #FFFFFF;
  background: var(--cyan);
}

.radio-bottom {
  position: relative;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vol {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vol-btn {
  width: 40px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow2);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.vol-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.05);
}

.vol-btn:active { transform: translateY(0) scale(.98); }

.vol-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .18s var(--ease);
}

.vol-btn:hover svg { stroke: var(--cyan); }

.vol-pill {
  flex: 1;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
}

.seek-vol { height: 6px; }

.vol-btn .mute-x { opacity: 0; }
.vol-btn.muted .wave { opacity: 0; }
.vol-btn.muted .mute-x { opacity: 1; }

.radio-bottom .hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.server-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  cursor: pointer;
  min-width: 0;
  flex: 1 1 160px;
  outline: none;
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.server-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 174, 239, 0.1);
  border-color: var(--cyan);
}

.server-tab.active {
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.04);
}

.server-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cyan);
}

.server-addr {
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-weight: 700;
}

.server-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .server-tabs { margin-bottom: 12px; }
  .server-tab { flex: 1 1 100%; }
}

.status-form { display: grid; gap: 12px; }

.status-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  box-shadow: none;
  transition: border-color 0.2s;
}

.status-input:focus-within {
  border-color: var(--cyan);
  background: #FFFFFF;
}

.status-input input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}

.status-input input::placeholder { color: var(--soft); font-weight: 500; }

.status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-actions .btn { flex: 1 1 180px; }

.status-hint {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-msg {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.status-msg.ok { color: var(--cyan); }
.status-msg.err { color: #FF6B6B; }

.status-result { display: grid; gap: 14px; }

.status-kv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kv {
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  padding: 14px;
}

.kv span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kv b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--cyan);
}

.status-list {
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  padding: 14px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.list-head b { font-size: 14px; color: var(--text); font-weight: 800; }
.list-head .muted { font-size: 12px; color: var(--muted); font-weight: 500; }

.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 52px;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.player-pill i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  display: inline-block;
}

.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.player-grid .empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 4px;
  font-weight: 500;
}

@media (max-width: 920px) {
  .status-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.history-panel {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.history-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.dot-peak { background: var(--cyan); }
.dot-avg { background: var(--stroke2); }

.history-canvas {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  box-shadow: none;
  display: block;
  background: var(--panel);
}

.history-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.history-meta-item {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-meta-label { font-weight: 700; color: var(--text); }
.history-meta-value { color: var(--cyan); font-weight: 600; }

@media (max-width: 768px) {
  .history-canvas { height: 200px; }
  .history-head { flex-direction: column; align-items: flex-start; }
}

.glass *, .panel *, .card *, .shot *, .server-card * { min-width: 0; }
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

.kv b, .kv strong, .meta-row strong, .theme-title, .badge, .chip, .pill {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

.kv .break, .version-text, .motd-text { overflow-wrap: anywhere; word-break: break-word; }
.player-pill, .player-item, .player-tag { max-width: 100%; min-width: 0; }

.player-pill span, .player-item span, .player-tag span {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.list-scroll {
  max-height: 180px;
  overflow: auto;
  padding-right: 6px;
}

.list-scroll::-webkit-scrollbar { width: 6px; }
.list-scroll::-webkit-scrollbar-thumb {
  background: var(--stroke2);
  border-radius: 4px;
}
.list-scroll::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

#btnPlay svg { display: block; }
#btnPlay svg * { fill: currentColor; }