/* 收藏列表、热度榜 */
/* 精简 feed 列表（收藏 / 热榜） */
.feed-page { max-width: 720px; margin: 0 auto; }
.feed-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.feed-page-head h1 { margin: 0 0 .25rem; font-size: 1.55rem; }
.feed-page-head .muted { margin: 0; }
.feed-tabs { margin: 0; }
.feed-list {
  display: grid;
  gap: .55rem;
}

/* 热度榜 */
.rank-page { max-width: 680px; margin: 0 auto; }
.rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.rank-kicker {
  margin: 0 0 .2rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.rank-head h1 {
  margin: 0 0 .2rem;
  font-family: var(--display);
  font-size: 1.7rem;
}
.rank-head .muted { margin: 0; font-size: .88rem; }
.rank-days {
  display: inline-flex;
  gap: .3rem;
  padding: .2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.rank-days a {
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
}
.rank-days a.on {
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .rank-days a.on {
  background: var(--accent);
  color: var(--bg);
}
.rank-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.15rem;
}
.rank-cats a {
  padding: .32rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rank-cats a:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
}
.rank-cats a.on {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  font-weight: 650;
}
.rank-groups {
  display: grid;
  gap: 1.15rem;
}
.rank-group {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem 1rem 0.55rem;
  box-shadow: var(--shadow);
}
.rank-group.is-solo { padding-bottom: .75rem; }
.rank-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
}
.rank-group-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.rank-more {
  font-size: .78rem;
  color: var(--accent);
  text-decoration: none;
}
.rank-more:hover { text-decoration: underline; }
.rank-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.rank-item:last-child { border-bottom: 0; }
.rank-n {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-item.is-top .rank-n { color: var(--accent); font-weight: 700; }
.rank-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .15rem;
}
.rank-title {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 860px) {
  .rank-title {
    -webkit-line-clamp: 1;
    white-space: nowrap;
    display: block;
    text-overflow: ellipsis;
  }
}
a.rank-title:hover { color: var(--accent); }
.rank-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  font-size: .72rem;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: .01em;
}
.rank-tag {
  display: inline-flex;
  align-items: center;
  padding: .12rem .42rem;
  border-radius: 999px;
  font-style: normal;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--accent) 88%, var(--ink));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.rank-stat {
  display: inline-flex;
  align-items: baseline;
  gap: .22rem;
  font-variant-numeric: tabular-nums;
}
.rank-stat i {
  font-style: normal;
  font-size: .66rem;
  opacity: .78;
}
.rank-stat b {
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
}
.rank-item.is-top .rank-stat b {
  color: color-mix(in srgb, var(--accent) 55%, var(--ink));
}
.rank-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  flex: 0 0 auto;
}
.feed-row {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feed-row:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 6%, transparent);
  transform: translateY(-1px);
}
.feed-row-main {
  display: flex;
  align-items: stretch;
  gap: .75rem;
  padding: .7rem .85rem;
  color: inherit;
  text-decoration: none;
  min-height: 4.2rem;
}
.feed-rank {
  flex: 0 0 1.6rem;
  align-self: center;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--muted);
  text-align: center;
  line-height: 1;
}
.feed-rank.top { color: var(--accent); }
.feed-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 100% at 20% 0%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 60%),
    linear-gradient(160deg, var(--bg-elev), color-mix(in srgb, var(--bg) 50%, var(--line)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent);
}
.feed-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 36%,
    color-mix(in srgb, var(--accent) 12%, transparent) 46%,
    color-mix(in srgb, var(--bg-elev) 70%, transparent) 50%,
    color-mix(in srgb, var(--accent) 8%, transparent) 54%,
    transparent 64%,
    transparent 100%
  );
  background-size: 240% 100%;
  animation: media-shimmer 1.85s cubic-bezier(.45, .05, .25, 1) infinite;
  pointer-events: none;
  transition: opacity .35s ease;
}
.feed-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  animation: media-breathe 2.6s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .35s ease;
}
.feed-thumb.is-ready::before,
.feed-thumb.is-ready::after { opacity: 0; animation: none; }
.feed-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  filter: saturate(.92);
  transition:
    opacity .55s cubic-bezier(.16, .84, .28, 1),
    transform .55s cubic-bezier(.16, .84, .28, 1),
    filter .55s ease;
}
.feed-thumb-img.loaded {
  opacity: 1;
  transform: none;
  filter: none;
}
.feed-thumb-video {
  display: grid;
  place-items: center;
  background-color: #111827;
  color: #fff;
}
.feed-thumb-video .feed-play {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .feed-thumb::before,
  .feed-thumb::after { animation: none; opacity: .3; }
  .feed-thumb.is-ready::before,
  .feed-thumb.is-ready::after { opacity: 0; }
  .feed-thumb-img { transition: opacity .2s ease; transform: none; filter: none; }
}
.feed-play {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .65rem;
  background: color-mix(in srgb, var(--accent) 85%, #000);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.feed-icon {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: .15rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
}
.feed-quote-mark {
  flex: 0 0 1.4rem;
  font-family: var(--display);
  font-size: 2rem;
  line-height: .85;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  margin-top: .1rem;
}
.feed-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .18rem;
  align-content: center;
}
.feed-body-full { gap: .22rem; }
.feed-cat {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 650;
}
.feed-title {
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-excerpt,
.feed-quote {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-row.is-quote .feed-quote {
  color: var(--ink);
  font-size: .92rem;
  font-family: var(--display);
  -webkit-line-clamp: 3;
}
.feed-url {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-meta {
  font-size: .74rem;
  color: var(--muted);
  margin-top: .1rem;
}

@media (max-width: 560px) {
  .feed-thumb { flex-basis: 56px; width: 56px; height: 56px; }
}
