﻿body[data-page="hot"] .about-main > article.card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="hot"] .about-main > article.card:hover {
  transform: none;
  box-shadow: none;
}

body[data-page="hot"] .about-main > article.card > .card-body {
  padding: 0;
}

body[data-page="hot"] .about-main .prose {
  max-width: none;
}

body[data-page="hot"] main.container.page-wrap {
  padding-top: 8px;
}

body[data-page="hot"] .about-container {
  padding-top: 10px;
  padding-bottom: 20px;
}

body[data-page="hot"] .about-layout {
  margin-top: 10px;
  gap: 12px;
}

.hot-page {
  --hot-text: #e9efff;
  --hot-muted: #98a9c9;
  --hot-accent: #20c6b7;
  --hot-accent-soft: rgba(32, 198, 183, 0.2);
  --hot-danger: #ff6b7c;
  --hot-ok: #2bd08f;
  --hot-warn: #f5b942;
  --hot-panel: rgba(11, 25, 48, 0.86);
  --hot-panel-2: rgba(16, 33, 60, 0.88);
  --hot-surface-2: rgba(23, 42, 72, 0.72);
  --hot-border: rgba(255, 255, 255, 0.12);
  --hot-shadow: none;
  --hot-hover: rgba(255, 255, 255, 0.05);
  --hot-dash: rgba(255, 255, 255, 0.14);
  --hot-side-width: 286px;
  --hot-side-gutter: 0px;
  --hot-content-offset: 0px;
  position: relative;
  display: block;
  color: var(--hot-text);
}

html[data-theme="light"] body[data-page="hot"] .hot-page {
  --hot-text: #142239;
  --hot-muted: #607089;
  --hot-accent: #0ea5a3;
  --hot-accent-soft: rgba(14, 165, 163, 0.16);
  --hot-danger: #dc4f62;
  --hot-ok: #0f9f70;
  --hot-warn: #d79f2f;
  --hot-panel: rgba(248, 252, 255, 0.96);
  --hot-panel-2: rgba(240, 247, 255, 0.94);
  --hot-surface-2: rgba(227, 238, 250, 0.92);
  --hot-border: rgba(26, 49, 84, 0.12);
  --hot-shadow: none;
  --hot-hover: rgba(22, 48, 92, 0.06);
  --hot-dash: rgba(22, 48, 92, 0.16);
}

.hot-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-right: 0;
  transform: none;
  transition: none;
}

.hot-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hot-border);
  border-radius: 20px;
  background:
    radial-gradient(560px 190px at 22% 22%, rgba(255, 140, 52, 0.26), transparent 70%),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--hot-panel-2) 88%, #20140d 12%),
      color-mix(in srgb, var(--hot-panel) 86%, #111d35 14%)
    );
  box-shadow: var(--hot-shadow);
}

.hot-ticker-body {
  padding: 18px 22px;
}

.hot-ticker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hot-ticker-title {
  display: grid;
  gap: 6px;
}

.hot-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hot-accent) 42%, var(--hot-border));
  background: color-mix(in srgb, var(--hot-accent-soft) 86%, transparent);
  color: color-mix(in srgb, var(--hot-accent) 74%, #fff 8%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
}

.hot-title {
  margin: 4px 0 0;
  font-size: clamp(30px, 2.3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hot-subtitle {
  margin: 0;
  color: var(--hot-muted);
  font-size: 15px;
  line-height: 1.35;
}

.hot-ticker-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.hot-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-panel) 90%, transparent);
  color: var(--hot-text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.hot-mini-btn--accent {
  border-color: color-mix(in srgb, var(--hot-accent) 56%, rgba(255, 255, 255, 0.15));
  background: color-mix(in srgb, var(--hot-accent-soft) 74%, transparent);
}

.hot-mini-btn[disabled] {
  opacity: 0.78;
  cursor: wait;
}

html[data-theme="light"] body[data-page="hot"] .hot-ticker {
  background:
    radial-gradient(640px 190px at 22% 22%, rgba(246, 152, 63, 0.2), transparent 72%),
    linear-gradient(160deg, rgba(255, 249, 239, 0.94), rgba(241, 247, 255, 0.96));
}

.hot-loading-dock {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 120px));
  z-index: 58;
  border-radius: 14px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-panel-2) 90%, transparent);
  box-shadow: none;
  padding: 10px 12px;
  display: grid;
  gap: 7px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hot-loading-dock[data-state="hidden"] {
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
}

.hot-loading-dock[data-state="done"] {
  border-color: color-mix(in srgb, var(--hot-ok) 55%, var(--hot-border));
}

.hot-loading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--hot-muted);
  font-size: 12px;
}

.hot-loading-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hot-loading-right {
  font-variant-numeric: tabular-nums;
}

.hot-loading-track {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hot-panel) 88%, transparent);
  border: 1px solid var(--hot-border);
  overflow: hidden;
}

.hot-loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--hot-accent), color-mix(in srgb, var(--hot-accent) 45%, #8de3ff));
  transition: width 160ms linear;
}

.hot-loading-dock[data-state="done"] .hot-loading-fill {
  background: linear-gradient(90deg, var(--hot-ok), color-mix(in srgb, var(--hot-ok) 40%, #a8ffdb));
}

.hot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-categories .chip {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-panel) 88%, transparent);
  padding: 7px 11px;
  font-size: 12px;
  color: var(--hot-muted);
}

.hot-categories .chip.is-active {
  border-color: color-mix(in srgb, var(--hot-accent) 65%, rgba(255, 255, 255, 0.12));
  color: var(--hot-text);
  background: var(--hot-accent-soft);
}

.hot-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hot-dash);
}

.hot-feed-block {
  padding: 16px 2px 14px;
  border-bottom: 1px solid var(--hot-dash);
}

.hot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.hot-source {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.hot-source-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--hot-border);
  background: var(--hot-surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hot-source-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-source-fallback {
  font-size: 12px;
  font-weight: 800;
  color: color-mix(in srgb, var(--hot-accent) 78%, #fff 6%);
}

.hot-source-main {
  min-width: 0;
}

.hot-source-name {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 740;
  line-height: 1.16;
}

.hot-source-meta {
  margin-top: 6px;
  color: var(--hot-muted);
  font-size: 13px;
}

.hot-source-side {
  text-align: right;
}

.hot-source-order {
  color: color-mix(in srgb, var(--hot-accent) 70%, #fff 8%);
  font-size: 12px;
  font-weight: 700;
}

.hot-source-time {
  color: var(--hot-muted);
  font-size: 12px;
  margin-top: 4px;
}

.hot-item-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
  display: grid;
  gap: 0;
}

.hot-item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease;
}

.hot-item-link:hover {
  background: var(--hot-hover);
  transform: none;
}

.hot-item-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-accent-soft) 72%, transparent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: color-mix(in srgb, var(--hot-accent) 80%, #fff 5%);
  flex-shrink: 0;
}

.hot-item-title {
  flex: 1;
  min-width: 0;
  line-height: 1.42;
  padding-top: 2px;
}

.hot-empty-row {
  padding: 18px 2px;
  color: var(--hot-muted);
  border-bottom: 1px solid var(--hot-dash);
}

.hot-side {
  position: fixed;
  right: 14px;
  top: 84px;
  width: min(var(--hot-side-width), calc(100vw - 20px));
  height: clamp(320px, 52vh, 500px);
  max-height: calc(100vh - 110px);
  border-radius: 24px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-panel) 94%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--hot-shadow);
  z-index: 46;
  overflow: hidden;
  transition: width 220ms ease, height 220ms ease, max-height 220ms ease, opacity 220ms ease;
}

html[data-theme="light"] body[data-page="hot"] .hot-side {
  background: color-mix(in srgb, var(--hot-panel) 96%, #fff 4%);
}

.hot-page[data-side="closed"] .hot-side {
  width: 30px;
  height: 86px;
  max-height: 86px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

.hot-side-handle {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 58px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--hot-border);
  background: color-mix(in srgb, var(--hot-panel-2) 92%, transparent);
  color: var(--hot-text);
  letter-spacing: 0.03em;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.hot-page[data-side="closed"] .hot-side-handle {
  width: 30px;
  height: 86px;
  min-width: 30px;
  top: 0;
  right: 0;
  border-radius: 12px;
  background: transparent;
  border-color: color-mix(in srgb, var(--hot-border) 64%, transparent);
  box-shadow: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
}

.hot-side-body {
  padding: 12px;
  padding-top: 48px;
  display: grid;
  gap: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.hot-page[data-side="closed"] .hot-side-body {
  display: none;
}

.hot-side-head {
  display: grid;
  gap: 4px;
}

.hot-side-title {
  font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.hot-side-legend {
  display: none;
}

.hot-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.hot-dot--success {
  background: var(--hot-ok);
}

.hot-dot--failed {
  background: var(--hot-danger);
}

.hot-dot--pending {
  background: var(--hot-warn);
}

.hot-side-list {
  display: grid;
  gap: 0;
  border-top: 1px dashed var(--hot-dash);
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 0;
}

.hot-side-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 2px;
  border-bottom: 1px dashed var(--hot-dash);
}

.hot-side-item:last-child {
  border-bottom: 0;
}

.hot-side-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.hot-side-item.is-success .hot-side-item-dot {
  background: var(--hot-ok);
}

.hot-side-item.is-failed .hot-side-item-dot {
  background: var(--hot-danger);
}

.hot-side-item.is-pending .hot-side-item-dot {
  background: var(--hot-warn);
}

.hot-side-item-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-side-item-latency {
  white-space: nowrap;
  font-size: 12px;
  color: var(--hot-muted);
  font-variant-numeric: tabular-nums;
}

.hot-side-empty {
  color: var(--hot-muted);
  font-size: 12px;
  padding: 12px 0;
}

.hot-side-float {
  display: none;
}

.hot-side-backdrop {
  display: none;
}

@keyframes hot-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1320px) {
  .hot-main {
    transform: none;
    margin-right: 0;
  }

  .hot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  body.hot-side-open {
    overflow: hidden;
  }

  .hot-ticker-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hot-loading-dock {
    width: min(560px, calc(100vw - 20px));
  }

  .hot-side {
    top: auto;
    right: 10px;
    bottom: 64px;
    width: min(var(--hot-side-width), calc(100vw - 20px));
    height: min(50vh, 420px);
    max-height: min(50vh, 420px);
    border-radius: 24px;
    background: color-mix(in srgb, var(--hot-panel) 96%, transparent);
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }

  html[data-theme="light"] body[data-page="hot"] .hot-side {
    background: color-mix(in srgb, var(--hot-panel) 96%, #fff 4%);
  }

  .hot-page[data-side="open"] .hot-side {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hot-page[data-side="closed"] .hot-side {
    width: min(var(--hot-side-width), calc(100vw - 20px));
    height: min(50vh, 420px);
    max-height: min(50vh, 420px);
    border-radius: 24px;
  }

  .hot-page[data-side="open"] .hot-side-body,
  .hot-page[data-side="closed"] .hot-side-body {
    display: grid;
    gap: 10px;
    padding: 12px;
    padding-top: 48px;
  }

  .hot-side-handle {
    writing-mode: horizontal-tb;
    width: 58px;
    min-width: 58px;
    height: 30px;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
  }

  .hot-side-float {
    display: inline-flex;
    position: fixed;
    right: 12px;
    bottom: 16px;
    z-index: 53;
    border-radius: 999px;
    border: 0;
    background: color-mix(in srgb, var(--hot-panel-2) 86%, #0b1f3f 14%);
    color: var(--hot-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: none;
  }

  html[data-theme="light"] body[data-page="hot"] .hot-side-float {
    background: color-mix(in srgb, var(--hot-panel-2) 92%, #fff 8%);
    box-shadow: none;
  }

  .hot-page[data-side="open"] .hot-side-float {
    opacity: 0;
    pointer-events: none;
  }

  .hot-side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .hot-side-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .hot-side-list {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .hot-title {
    font-size: 28px;
  }

  .hot-subtitle {
    font-size: 14px;
  }

  .hot-source-name {
    font-size: 20px;
  }

  .hot-side-title {
    font-size: 22px;
  }

  .hot-side-item-name {
    font-size: 14px;
  }

  .hot-loading-dock {
    top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hot-feed-block,
  .hot-main,
  .hot-loading-fill,
  .hot-loading-dock,
  .hot-side {
    animation: none;
    transition: none;
  }
}
