/* 93ie 热榜 — static, dependency-free UI */

:root {
  color-scheme: light;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #eef0ec;
  --surface-3: #e4e7e1;
  --text: #16181d;
  --muted: #4f5866;
  --border: #d9dcd5;
  --border-strong: #b8bdb3;
  --accent: #b3261e;
  --accent-hover: #921c16;
  --accent-contrast: #ffffff;
  --accent-soft: #fbe9e7;
  --focus: #0b57d0;
  --up-bg: #e0f3e7;
  --up-text: #0a5a2f;
  --down-bg: #fde8e5;
  --down-text: #9c1f17;
  --new-bg: #fff1cf;
  --new-text: #674000;
  --flat-bg: #ebedf0;
  --flat-text: #444c58;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.05), 0 10px 30px rgba(20, 24, 31, 0.06);
  --shadow-soft: 0 1px 2px rgba(20, 24, 31, 0.04);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 64px;
  --wrap: 1000px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f15;
  --surface: #141a22;
  --surface-2: #1b222c;
  --surface-3: #252e3a;
  --text: #e9eef5;
  --muted: #b6c0cd;
  --border: #2a333e;
  --border-strong: #3d4856;
  --accent: #ff8d7d;
  --accent-hover: #ffaa9d;
  --accent-contrast: #24100c;
  --accent-soft: #351a15;
  --focus: #8ab4f8;
  --up-bg: #12321f;
  --up-text: #86e0a8;
  --down-bg: #351817;
  --down-text: #ffab9f;
  --new-bg: #35290e;
  --new-text: #ffd27d;
  --flat-bg: #232b35;
  --flat-text: #bdc7d4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Author display rules must not resurrect elements the app hides. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 26rem at 50% -12rem, rgba(179, 38, 30, 0.10), transparent 70%),
    radial-gradient(40rem 20rem at 100% 0, rgba(41, 50, 225, 0.05), transparent 70%);
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(60rem 26rem at 50% -12rem, rgba(255, 141, 125, 0.12), transparent 70%),
    radial-gradient(40rem 20rem at 100% 0, rgba(120, 160, 255, 0.07), transparent 70%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--accent-contrast);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header {
    background: var(--bg);
  }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(179, 38, 30, 0.24);
}

.brand-name {
  font-size: 18px;
}

.brand-sep {
  margin-inline: 2px;
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.updated {
  margin: 0 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn[aria-pressed="true"] {
  color: var(--accent);
}

.icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: block;
}

.icon-btn.is-busy svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 48px 0 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 44em;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  min-height: 52px;
  padding: 0 6px 0 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-soft);
}

.search-icon {
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 0.82;
}

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

.search-kbd {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.search-clear {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.search-clear:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Toolbar / tabs ---------------------------------------------------------- */

.board {
  padding-bottom: 8px;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .toolbar {
    background: var(--bg);
  }
}

.tabs-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tab:hover {
  color: var(--text);
  background: var(--surface-3);
}

.tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

.tab[aria-selected="true"]:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.tab-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: center;
  opacity: 0.85;
}

html[data-theme="dark"] .tab-count {
  background: rgba(255, 255, 255, 0.1);
}

.tab[aria-selected="true"] .tab-count {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

html[data-theme="dark"] .tab[aria-selected="true"] .tab-count {
  background: rgba(0, 0, 0, 0.18);
}

.tab-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.tab-status.is-error {
  background: #d93025;
  box-shadow: 0 0 0 2px var(--surface-2);
}

.tab-status.is-stale {
  background: #c07a00;
  box-shadow: 0 0 0 2px var(--surface-2);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--new-text);
  border-radius: var(--radius-sm);
  background: var(--new-bg);
  color: var(--new-text);
  font-size: 13.5px;
  line-height: 1.6;
}

.notice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--new-text);
  color: var(--new-bg);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.compare-toggle:hover {
  color: var(--text);
}

.compare-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.switch-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.18s ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

.compare-toggle[aria-checked="true"] .switch-track {
  background: var(--accent);
}

.compare-toggle[aria-checked="true"] .switch-thumb {
  transform: translateX(16px);
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 10px;
}

.result-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.result-line strong {
  color: var(--text);
  font-weight: 700;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend .badge {
  margin-left: 4px;
}

/* Lists ------------------------------------------------------------------- */

.hot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hot-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  min-height: 68px;
  padding: 11px 20px 11px 16px;
  border-top: 1px solid var(--border);
}

.hot-item:first-child {
  border-top: 0;
}

.hot-item:hover {
  background: var(--surface-2);
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 7px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--surface-2);
}

.hot-item:nth-child(1) .rank {
  background: var(--accent);
  color: var(--accent-contrast);
}

.hot-item:nth-child(2) .rank,
.hot-item:nth-child(3) .rank {
  background: var(--accent-soft);
  color: var(--accent);
}

.item-main {
  min-width: 0;
}

.item-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.item-title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.item-title:visited {
  color: var(--text);
}

.item-title:visited:hover {
  color: var(--accent);
}

.item-title mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: -2px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.heat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.heat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
  transform: rotate(45deg);
}

.heat-label {
  color: var(--muted);
}

.heat-value {
  color: var(--text);
  font-weight: 650;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.source-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--muted));
}

.source-rank {
  color: var(--muted);
  font-size: 11px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge.up {
  background: var(--up-bg);
  color: var(--up-text);
}

.badge.down {
  background: var(--down-bg);
  color: var(--down-text);
}

.badge.new {
  background: var(--new-bg);
  color: var(--new-text);
}

.badge.flat {
  background: var(--flat-bg);
  color: var(--flat-text);
}

/* States ------------------------------------------------------------------ */

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 24px;
}

.state h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.state p {
  max-width: 38em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.button:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.button.primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.state code {
  display: block;
  max-width: 100%;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  text-align: left;
}

/* Health ------------------------------------------------------------------ */

.health {
  margin: 34px 0 10px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.health h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.health-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--muted);
  font-size: 13px;
}

.health-item strong {
  color: var(--text);
  font-weight: 650;
}

.health-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status-ok {
  background: #178a4c;
}

.status-error {
  background: #d93025;
}

.status-empty {
  background: #c07a00;
}

.status-stale {
  background: #c07a00;
}

.status-loading {
  background: var(--border-strong);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.health-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}

.health-note.is-warning {
  color: var(--down-text);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  margin-top: 28px;
  padding: 26px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Toast / noscript -------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(92vw, 460px);
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 14px;
  text-align: center;
}

/* Skeleton ---------------------------------------------------------------- */

.skeleton-list .hot-item {
  pointer-events: none;
}

.skeleton-rank {
  width: 30px;
  height: 30px;
  margin-top: 7px;
  border-radius: 9px;
  background: var(--surface-3);
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-lines {
  display: block;
  width: min(78%, 520px);
  height: 16px;
  margin-top: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 20%, var(--surface-3) 50%, var(--surface-2) 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-lines::after {
  content: "";
  display: block;
  width: 42%;
  height: 11px;
  margin-top: 14px;
  border-radius: 5px;
  background: var(--surface-2);
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .wrap {
    padding-inline: 16px;
  }

  .header-row {
    min-height: 58px;
  }

  .updated {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero {
    padding: 30px 0 16px;
  }

  .lede {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .search {
    max-width: none;
  }

  .search-kbd {
    display: none;
  }

  .toolbar {
    position: static;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .tabs-wrap {
    order: 1;
    width: 100%;
  }

  .compare-toggle {
    order: 2;
    margin-left: auto;
    margin-bottom: 2px;
    font-size: 12.5px;
  }

  .result-row {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
  }

  .legend {
    flex-wrap: wrap;
    white-space: normal;
  }

  .hot-item {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 8px;
    padding: 10px 14px 10px 12px;
  }

  .rank {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 8px;
  }

  .item-title {
    font-size: 15.5px;
  }

  .item-meta {
    gap: 3px 10px;
  }

  .health {
    padding: 16px;
  }

  .health-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px 12px;
  }
}

@media (max-width: 430px) {
  .updated {
    display: none;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .tab {
    padding: 0 12px;
  }

  .item-title {
    font-size: 15px;
  }

  .source-chip {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .search,
  .toolbar,
  .health,
  .site-footer,
  .toast,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hot-list {
    box-shadow: none;
  }
}
