.course-list-page {
  min-height: calc(844px - 76px);
  padding: 0 16px 36px;
  background: var(--surface-page);
}

.course-list-intro {
  position: relative;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line-default);
}

.course-list-intro::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--brand-primary);
  content: "";
}

.course-list-intro > span {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 600;
}

.course-list-intro h2 {
  margin: 8px 0 5px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
}

.course-list-intro p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.course-list-intro small {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 10px;
}

.course-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.course-list-card {
  display: grid;
  width: 100%;
  min-height: 142px;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-default);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.course-list-media {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  background: var(--surface-muted);
}

.course-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-list-media em {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink-secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.course-list-media em.active {
  background: var(--brand-primary);
  color: #fff;
}

.course-list-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px 13px 12px;
}

.course-list-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-list-copy > span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink-secondary);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-list-copy > small {
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink-tertiary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-list-copy > b {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand-primary);
  font-size: 11px;
}

.course-list-copy > b svg {
  width: 14px;
  height: 14px;
}

.course-list-state {
  display: grid;
  min-height: 410px;
  place-content: center;
  justify-items: center;
  padding: 32px 18px;
  color: var(--ink-secondary);
  text-align: center;
}

.course-list-state > svg {
  width: 34px;
  height: 34px;
  color: var(--brand-primary);
}

.course-list-state h2 {
  margin: 14px 0 6px;
  color: var(--ink-primary);
  font-family: var(--serif);
  font-size: 18px;
}

.course-list-state p {
  max-width: 250px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.course-list-state button {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid var(--brand-primary);
  border-radius: 6px;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.course-list-loading {
  align-content: start;
  gap: 12px;
  padding: 20px 0;
}

.course-list-loading span {
  display: block;
  width: 100%;
  height: 142px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-muted) 25%, #f8faf9 40%, var(--surface-muted) 58%);
  background-size: 300% 100%;
  animation: course-list-shimmer 1.2s ease-in-out infinite;
}

@keyframes course-list-shimmer {
  to { background-position: -100% 0; }
}

@media (max-width: 359px) {
  .course-list-card {
    grid-template-columns: 106px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-list-loading span {
    animation: none;
  }
}
