.toplist-page {
  --toplist-accent: #3a6ea5;
  --toplist-accent-soft: rgba(58, 110, 165, 0.12);
  --toplist-border: rgba(113, 128, 150, 0.25);
  --toplist-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.toplist-page .toplist-hero {
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--toplist-border);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--toplist-accent-soft), transparent 65%);
  margin-bottom: 1.25rem;
}

.toplist-page .toplist-hero__title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.toplist-page .toplist-hero__desc {
  color: var(--sec-text-color);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

.toplist-page .toplist-days {
  display: grid;
  gap: 0.75rem;
}

.toplist-page details.toplist-day {
  border: 1px solid var(--toplist-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--board-bg-color);
  box-shadow: var(--toplist-shadow);
}

.toplist-page details.toplist-day[open] {
  border-color: rgba(58, 110, 165, 0.35);
}

.toplist-page .toplist-day > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.02);
}

html[data-user-color-scheme='dark'] .toplist-page .toplist-day > summary {
  background: rgba(255, 255, 255, 0.04);
}

.toplist-page .toplist-day > summary::-webkit-details-marker {
  display: none;
}

.toplist-page .toplist-day__left {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.toplist-page .toplist-day__date {
  font-weight: 800;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.4;
  white-space: nowrap;
}

.toplist-page .toplist-day__meta {
  color: var(--sec-text-color);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toplist-page .toplist-day__badge {
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: var(--toplist-accent);
  background: var(--toplist-accent-soft);
  border: 1px solid rgba(58, 110, 165, 0.25);
  white-space: nowrap;
}

html[data-user-color-scheme='dark'] .toplist-page {
  --toplist-border: rgba(160, 174, 192, 0.22);
  --toplist-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  --toplist-accent-soft: rgba(88, 158, 220, 0.16);
  --toplist-accent: #6bb6ff;
}

.toplist-page .toplist-day__body {
  padding: 1rem 1rem 1.2rem 1rem;
}

.toplist-page .toplist-entry {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--toplist-border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.015);
}

html[data-user-color-scheme='dark'] .toplist-page .toplist-entry {
  background: rgba(255, 255, 255, 0.03);
}

.toplist-page .toplist-entry + .toplist-entry {
  margin-top: 0.75rem;
}

.toplist-page .toplist-entry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.toplist-page .toplist-entry__title {
  margin: 0;
  font-weight: 800;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

.toplist-page .toplist-entry__sub {
  color: var(--sec-text-color);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: nowrap;
}

.toplist-page .toplist-entry__content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-color);
}

.toplist-page .toplist-entry__content h1,
.toplist-page .toplist-entry__content h2,
.toplist-page .toplist-entry__content h3 {
  margin-top: 1rem;
}

.toplist-page .toplist-entry__content ol {
  padding-left: 1.25rem;
}

.toplist-page .toplist-entry__content a {
  color: var(--toplist-accent);
}

.toplist-page .toplist-entry__content a:hover {
  color: var(--link-hover-color);
}

@media (max-width: 767px) {
  .toplist-page .toplist-day > summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .toplist-page .toplist-entry__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
