.middle.threads.index,
.middle.threads.latest,
.middle.threads.past {
  padding: 0;
  gap: 0.5rem;
}

.threadlist {
  display: flex;
  flex-direction: column;
  background: var(--color-content-bg);
  border-radius: 8px;
  overflow: hidden;
}

.threadline {
  display: flex;
  align-items: flex-start; /* Changed from center */
  padding: 0.5rem 0rem;
  border-bottom: 1px solid var(--color-border);
}

.threadline:last-child {
  border-bottom: none;
}

.threadline:hover {
  background-color: #f7f7f7;
}

.rank, .arrow {
  margin-top: 0.15rem;
}

.rank {
  width: 2.5rem;
  text-align: center;
  color: var(--font-color-light);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.arrow {
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--font-color-light);
  transition: fill 0.15s ease;
  cursor: pointer;
}

.arrow-false svg {
  fill: var(--font-color-light);
}

.arrow-true svg {
  fill: var(--color-orange);
}

.arrow-false svg:hover {
  fill: var(--color-orange);
}

.arrow-true svg:hover {
  fill: var(--font-color-light);
}

.thread {
  flex: 1;
  min-width: 0;
}

.thread .top {
  display: flex;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  flex-wrap: wrap;
}

.thread .top .title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--font-color);
  text-decoration: none;
  line-height: 1.4;
  cursor: pointer;
}

.thread .top .title:hover {
  color: var(--color-orange);
}

.thread .top .domain {
  font-size: 0.7rem;
  color: var(--font-color-light);
  flex-shrink: 0;
}

.thread .top .domain a {
  color: var(--font-color-light);
  text-decoration: none;
}

.thread .top .domain a:hover {
  color: var(--color-orange);
}

.thread .top .domain::before {
  content: "(";
}

.thread .top .domain::after {
  content: ")";
}

.thread .bottom {
  display: flex;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--font-color-light);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.thread .bottom > div,
.thread .bottom > span {
  white-space: nowrap;
}

.thread .bottom .points {
  font-weight: 600;
  color: var(--font-color-light);
}

.thread .bottom .author a {
  color: var(--color-link);
  text-decoration: none;
}

.thread .bottom .author a:hover {
  color: var(--color-orange);
}

.thread .bottom .edit a {
  color: var(--font-color-light);
  text-decoration: none;
}

.thread .bottom .edit a:hover {
  color: var(--color-orange);
}

.thread .bottom .report a {
  color: var(--font-color-light);
  text-decoration: none;
}

.thread .bottom .report a:hover {
  color: var(--color-orange);
}

.thread .bottom .comments a {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 500;
}

.thread .bottom .comments a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.thread .bottom .sep {
  color: var(--font-color-light);
  margin: 0 0.1rem;
  user-select: none;
}

.middle.threads.past .further {
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  background: var(--color-content-bg);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--font-color-light);
}

.middle.threads.past .further a {
  color: var(--color-link);
  text-decoration: none;
}

.middle.threads.past .further a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.middle.threads.share {
  padding: 0;
  gap: 0;
}

.middle.threads.share > .thread {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.middle.threads.share .notice {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--font-color-light);
}

.middle.threads.share .notice p {
  margin: 0;
}

.middle.threads.share .notice a {
  color: var(--color-link);
  text-decoration: none;
}

.middle.threads.share .notice a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.continue {
  margin-top: 1rem;
  text-align: center;
}

.continue a {
  display: inline-block;
  color: var(--color-orange);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-orange);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.continue a:hover {
  background: var(--color-orange);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .rank {
    width: 1.5rem; /* Reduced from 2.5rem */
  }
  .arrow {
    width: 1.5rem; /* Reduced from 2.5rem */
  }

  .continue {
    margin-bottom: 1.2rem;
  }
}
