/* ===== ARTIST WIDGET: 2 CỘT MOBILE (FIX 1 CỘT) ===== */

/* Grid chính: 2 cột desktop, force 2 cột mobile */
.random-artists-widget.artist-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* Mobile: Giữ 2 cột, gap nhỏ hơn để fit (min-width 320px iPhone) */
@media (max-width: 767px) {
  .random-artists-widget.artist-list {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 cột */
    gap: 8px !important; /* Gap nhỏ hơn */
  }
  
  /* Thu gọn img/padding cho mobile */
  .random-artists-widget .artist-item {
    padding: 8px !important;
  }
  
  .random-artists-widget .artist-item img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .random-artists-widget .artist-item p {
    font-size: 12px !important; /* Name nhỏ hơn */
  }
}

/* Khối artist-item */
.random-artists-widget .artist-item {
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--adv-bg-default, #fff) !important;
  color: var(--adv-txt, #111) !important;
  border: 1px solid var(--adv-border-color, #ddd);
}

/* Hover effect */
.random-artists-widget .artist-item:hover {
  background-color: var(--adv-bg-hover, #f8f8f8) !important;
  transform: translateY(-2px); /* Nâng nhẹ mượt */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Ảnh */
.random-artists-widget .artist-item img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--adv-border-color, #ddd);
}

/* Tên nghệ sĩ (fix underline) */
.random-artists-widget .artist-item a {
  text-decoration: none !important; /* Xóa gạch dưới */
  color: inherit !important;
  transition: color 0.2s ease;
  display: block; /* Full block cho hover */
}

.random-artists-widget .artist-item a:hover {
  color: var(--adv-primary, #f3bafd) !important; /* Tím hover */
}

.random-artists-widget .artist-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Dark mode */
html[data-theme="dark"] .random-artists-widget .artist-item {
  background-color: #1b1b1b !important;
  border-color: #333 !important;
}

html[data-theme="dark"] .random-artists-widget .artist-item img {
  border-color: #555 !important;
}

html[data-theme="dark"] .random-artists-widget .artist-item:hover {
  background-color: #222 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}