.api-region {
  position: relative;
  min-height: 120px;
}

.api-state {
  display: flex;
  min-height: 160px;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 32px 20px;
  border: 1px dashed #bfdbfe;
  border-radius: 16px;
  background: #f8fbff;
  color: #475569;
  text-align: center;
  grid-column: 1 / -1;
}

.api-state strong {
  color: #163f7a;
  font-size: 18px;
}

.api-state p {
  margin: 0;
  line-height: 1.7;
}

.api-state button,
.api-retry {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #2f80ed;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.api-state button:focus-visible,
.api-retry:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.3);
  outline-offset: 3px;
}

.api-skeleton {
  overflow: hidden;
  min-height: 190px;
  border-radius: 16px;
  background: linear-gradient(100deg, #eef4fb 20%, #f8fbff 40%, #eef4fb 60%);
  background-size: 200% 100%;
  animation: api-shimmer 1.3s ease-in-out infinite;
}

.form-status {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.6;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: #ecfdf3; color: #166534; }
.form-status.is-error { background: #fff1f2; color: #b42318; }

.message-form button[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.hot-grid .dynamic-detail-link {
  color: #2878df;
  font-weight: 700;
  text-decoration: none;
}

.tab-list button,
.pagination button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.tab-list button {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

.tab-list button:hover,
.tab-list button.is-active {
  color: #2878df;
  background: #eef6ff;
}

.pagination button {
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
}

.pagination button.is-active {
  background: #2f80ed;
  color: #fff;
}

.hot-grid article > a.api-card-cover {
  display: block;
}

.hot-grid article > a.api-card-cover > img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.hot-grid h3 a {
  color: inherit;
  text-decoration: none;
}

@keyframes api-shimmer {
  to { background-position-x: -200%; }
}

@media (prefers-reduced-motion: reduce) {
  .api-skeleton { animation: none; }
}
