.moyu-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.moyu-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.moyu-hero__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.moyu-hero__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.moyu-search-wrap {
  min-width: min(100%, 240px);
}

.moyu-refresh-btn {
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 10px;
}

.hot-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
  gap: 16px;
}

.hot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hot-card__head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.hot-card__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.hot-card__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-subtle);
}

.hot-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.hot-card__time {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Uniform 8-row default height across every platform card */
.hot-card__list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  min-height: calc(8 * 34px + 16px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hot-card__list--extra {
  min-height: 0;
  padding-top: 0;
}

.hot-card__more {
  border-top: 1px solid var(--border);
}

.hot-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.hot-card__toggle::-webkit-details-marker {
  display: none;
}

.hot-card__toggle:hover {
  color: var(--accent);
  background: var(--surface-subtle);
}

.hot-card__toggle-close {
  display: none;
}

.hot-card__more[open] > .hot-card__toggle .hot-card__toggle-open {
  display: none;
}

.hot-card__more[open] > .hot-card__toggle .hot-card__toggle-close {
  display: inline;
}

.hot-card__chevron {
  flex-shrink: 0;
  @media (prefers-reduced-motion: no-preference) {
    transition: transform var(--dur-fast) var(--ease-out-expo);
  }
}

.hot-card__more[open] > .hot-card__toggle .hot-card__chevron {
  transform: rotate(180deg);
}

.hot-item a {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13.5px;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.hot-item a:hover {
  background: var(--surface-subtle);
  color: var(--accent);
}

.hot-item a:visited {
  color: var(--text-secondary);
}

.hot-skeleton {
  height: calc(8 * 34px + 16px + 86px);
}

.hot-item__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
  flex: 1;
}

.hot-item__rank {
  width: 18px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.hot-item__rank--top {
  color: var(--danger);
}

.hot-item__title {
  min-inline-size: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hot-tag {
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

.hot-tag--hot { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.hot-tag--new { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.hot-tag--up { background: var(--accent-soft); color: var(--accent); }

.hot-item__val {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
