.model-hotboard {
  position: fixed;
  z-index: 1200;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 24px));
  max-height: min(64vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #202523;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(23, 42, 32, .18);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.model-hotboard[hidden], .model-hotboard__reopen[hidden] { display: none; }
.model-hotboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid #e8eeea;
}
.model-hotboard__header > div { display: flex; align-items: baseline; gap: 9px; }
.model-hotboard__header strong { font-size: 15px; }
.model-hotboard__header span, .model-hotboard__footer { color: #69736d; font-size: 11px; }
.model-hotboard__collapse {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #47534c;
  background: #f1f5f2;
  font: 22px/1 system-ui, sans-serif;
  cursor: pointer;
}
.model-hotboard__body { min-height: 60px; overflow: auto; overscroll-behavior: contain; }
.model-hotboard__loading, .model-hotboard__empty { margin: 0; padding: 22px 14px; color: #69736d; text-align: center; }
.model-hotboard__list { margin: 0; padding: 0; list-style: none; }
.model-hotboard__item { padding: 11px 14px 10px; border-bottom: 1px solid #edf1ee; }
.model-hotboard__item:last-child { border-bottom: 0; }
.model-hotboard__item-top { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.model-hotboard__rank { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: #59645e; background: #edf1ee; font-size: 11px; font-weight: 700; }
.model-hotboard__rank.is-top { color: #fff; background: #27835d; }
.model-hotboard__name { overflow: hidden; color: #202523; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.model-hotboard__heat { color: #597067; font-size: 11px; white-space: nowrap; }
.model-hotboard__metrics { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0 30px; color: #68736d; font-size: 11px; }
.model-hotboard__footer { padding: 9px 14px; border-top: 1px solid #e8eeea; }
.model-hotboard__reopen {
  position: fixed;
  z-index: 1200;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #216d4e;
  border-radius: 7px;
  color: #fff;
  background: #27835d;
  box-shadow: 0 5px 18px rgba(23, 42, 32, .2);
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}
@media (max-width: 480px) {
  .model-hotboard { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: min(350px, calc(100vw - 24px)); max-height: 58vh; }
  .model-hotboard__reopen { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
