/* ========== ARTICLE CARD — VERTICAL (standard) ========== */
.article-card {
  background: #0e0a1a;
  height: 425px;
  border: 1px solid rgba(131, 92, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 1rem;
}
.article-card-lg {
  height: 475px;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}
/* img-container inside article card: 16:9 */
.article-card .img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-img-ph {
  width: 100%;
  height: 100%;
  background: #1a1530;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
}

.article-category-badge {
  display: inline-block;
  background: #252b47;
  color: #b6b6d6;
  font-size: 0.85em;
  font-weight: 500;
  padding: 0.28em 0.85em 0.28em 0.7em;
  border-radius: 1em;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #39416b;
  letter-spacing: 0.01em;
  opacity: 0.88;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
  text-align: center;
  width: 100%;
}
.article-category-badge:hover {
  background: #39416b;
  color: #e0e0ff;
  opacity: 1;
}

/* ========== ARTICLE CARD — GRID (arts-card) ========== */
.arts-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.3rem;
  margin-bottom: 2rem;
}
@media (max-width: 960px) { .arts-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .arts-card-grid { grid-template-columns: 1fr; gap: 1rem; } }

.arts-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;

}
/* cover-link trick */
.arts-card-title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.arts-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  /*background: #1c2235;*/
}
.arts-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.arts-card:hover .arts-card-img {
  transition: filter 0.2s ease-in-out;
  /*transform: scale(1.005);*/
  filter: brightness(1.08);
}
.arts-card-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #525870;
  font-size: 2.25rem;
}
.arts-card-img-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 10, 26, 0.75) 0%, transparent 55%);
  pointer-events: none;
}
.arts-card-tag-chip {
  position: absolute;
  bottom: 0.7rem;
  left: 0.75rem;
  display: inline-block;
  background: rgba(14, 10, 26, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.25rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ff3afd;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}
.arts-card-body {
  padding: 0.825rem 0.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.arts-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.arts-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: white;
  transition: color 0.15s;
  margin-bottom: 10px;
}
.arts-card:hover .arts-card-title { 
  color: #ff3afd; 
}
.arts-card-excerpt {
  font-size: 0.95rem;
  color: #a9afbf;
  line-height: 1.6;
  margin: 0;
}
.arts-card-footer {
  display: flex;
  align-items: center;
  /*justify-content: space-between;*/
  gap: 0.5rem;
  flex-wrap: wrap;
  /*padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);*/
}
.arts-card-author-link {
  display: flex;
  align-items: center;
  color: #70768f;
  transition: color 0.15s;
  min-width: 0;
  text-decoration: none;
}
.arts-card-author-link:hover { 
  color: #f0f2fa; 
}
.arts-card-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arts-cs {
  display: inline-flex;
  align-items: center;
  color: #70768f;
  font-size: 0.75rem;
}
.arts-cs i { font-size: 0.65rem; }



/* related-list override — compact horizontal within article-show */
.related-list .arts-card {
  flex-direction: row;
  height: 110px;
}
.related-list .arts-card-img-wrap {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: unset;
  align-self: stretch;
}
.related-list .arts-card-tag-chip,
.related-list .arts-card-img-shade,
.related-list .arts-card-excerpt { 
  display: none; 
}
.related-list .arts-card:hover { 
  transform: translateX(3px); 
}
.related-list .arts-card-body { 
  padding: 0.75rem 1rem; 
  /*gap: 0.4rem; */
}
.related-list .arts-card-title { 
  font-size: 0.9rem; 
}
@media (max-width: 560px) {
  .related-list .arts-card { height: auto; }
  .related-list .arts-card-img-wrap { width: 120px; }
}

/* ========== RELATED LIST ========== */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

