.popular-hero { display: grid; gap: 18px; }

.live-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.live-summary span {
  padding: 11px 14px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.live-summary strong { color: var(--text); }

.popular-panel,
.popular-info {
  margin-top: 20px;
  padding: clamp(22px, 5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(33, 37, 41, .05);
}

.popular-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.popular-heading h2,
.popular-info h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); }

.period-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 10px;
}

.period-tabs button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.period-tabs button[aria-selected="true"] {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.popular-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ranking;
}

.popular-route {
  counter-increment: ranking;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.popular-route::before {
  content: counter(ranking);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 900;
}

.popular-route h3 { margin: 0; font-size: 19px; }
.popular-route p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.popular-route a { font-weight: 850; text-decoration: none; white-space: nowrap; }

.popular-empty {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  background: var(--primary-soft);
  border: 1px solid #b6d4fe;
  border-radius: 11px;
}

.popular-empty p,
.popular-status { margin: 7px 0 0; color: var(--muted); }
.popular-status { font-size: 13px; }
.popular-info p { line-height: 1.7; }

@media (max-width: 700px) {
  .popular-heading { align-items: stretch; flex-direction: column; }
  .period-tabs { width: 100%; }
  .period-tabs button { flex: 1; padding-inline: 7px; }
  .popular-route { grid-template-columns: 42px minmax(0, 1fr); }
  .popular-route a { grid-column: 2; }
}
