.tnd-cg-widget * {
  box-sizing: border-box;
}

.tnd-cg-widget {
  max-width: 480px;
  margin: 0 auto;
}

.tnd-cg-widget__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.tnd-cg-widget__title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.tnd-cg-widget__subtitle {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}

.tnd-cg-widget__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tnd-cg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.tnd-cg-item__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid #ececec;
  position: relative;
  transition: all 0.2s ease;
}

.tnd-cg-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tnd-cg-item__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: #ff5722;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.tnd-cg-item__label {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tnd-cg-item:hover .tnd-cg-item__img-wrap {
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .tnd-cg-widget__grid {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .tnd-cg-widget__grid {
    gap: 5px;
  }
  .tnd-cg-widget__title {
    font-size: 15px;
  }
  .tnd-cg-widget__subtitle {
    font-size: 12px;
  }
  .tnd-cg-item__label {
    font-size: 10px;
  }
  .tnd-cg-item__badge {
    font-size: 7px;
    padding: 2px 4px;
  }
}
