.t-artists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,255px));
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  padding: 1rem 1.5rem;
  background: linear-gradient(
    to right,
    rgba(180, 205, 255, 0.65) 0%,
    #fff7ed 40%,
    #fff7ed 60%,
    rgba(180, 205, 255, 0.65) 100%
  );
  border-radius: var(--border-radius);
  /*backdrop-filter: blur(5px);*/
}

.artist-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4.4 / 6;
    background: var(--neutral-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-primary);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px 0 30px;     /* Increased bottom padding for button + lift space */
    overflow: visible;       /* IMPORTANT: Allow image to go outside */
    z-index: 1;
}

.artist-box:hover {
    transform: scale(0.97) translateY(8px);
    box-shadow: var(--box-shadow-hover);
    /*background: rgba(180, 205, 255, 0.01);*/
    background: linear-gradient(
      to bottom,
      rgba(180, 205, 255, 0) 0%,
      rgba(180, 205, 255, 0.35) 30%,
      rgba(180, 205, 255, 0.55) 40%,
      rgba(180, 205, 255, 0.20) 70%,
      rgba(180, 205, 255, 0) 100%
    );
    border-top-left-radius: 20px;
}

/* =============== IMAGE CONTAINER =============== */
.art-img {
    position: absolute;
    top: 1.5%;
    left: 2%;
    width: 96%;
    aspect-ratio: 4.6 / 6;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.artist-box:hover .art-img {
    top: -24px;                    /* Nice lift effect */
    transform: scale(0.96);
    /*box-shadow:
     0 2px 3px rgba(0, 0, 0, 0.02),
                0 5px 4px rgba(0, 0, 0, 0.01);*/
}

/* Image itself */
.ar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-top-left-radius: 0;
    transition: border-top-left-radius 0.45s ease;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.05),
                0 10px 10px rgba(255, 255, 255, 0.02);
}

.artist-box:hover .ar-img {
    border-top-left-radius: 20px;
}

/* =============== NAME CONTAINER (.contr) =============== */
.contr {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    text-align: center;
   
}

.artist-box:hover .contr {
    bottom: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 10px rgba(255, 255, 255, 0.55),
    backdrop-filter: blur(3px);
}
.ar-stats{
  display: flex;
  flex-direction: column;
  gap:0;
  }
/* Name */
.ar-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-text);
    margin-bottom: 0.25rem;
    font-family: 'Dancing Script', cursive;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-box:hover .ar-name {
    font-size: 1.4rem;
}

/* =============== BUTTON =============== */
.link {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.link > button {
    opacity: 0;
    transform: translateY(18px);
    padding: 8px 28px;
    background: var(--accent-color);
    color: var(--primary-text);
    border: none;
    border-radius: 50px;
    box-shadow: var(--box-shadow-subtle);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    
    transition: all 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 80ms;
}

.artist-box:hover .link > button {
    opacity: 1;
    transform: translateY(8px);
}

/* Button hover effect */
.artist-box:hover .link > button:hover {
    transform: scale(1.01) translateY(7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

button[disabled] {
    background: var(--cherry-red) !important;
    cursor: not-allowed;
}

@media (min-width: 351px) and (max-width: 690px) {
  .t-artists {
        grid-template-columns: repeat(2, 1fr);
         padding: 1.25rem 1.5rem;
        justify-items: center;
    }
    .link > button {
   padding: 2px 10px;
   border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.contr {
    position: absolute;
    bottom: -15px;
    
}

}
@media (min-width: 691px) and (max-width: 1100px) {
  .t-artists {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
       
    }
}    
    @media (min-width: 1101px) {
      .t-artists {
            grid-template-columns: repeat(4, 1fr);
            justify-content: center;
        }    
}
@media (max-width: 350px) {
  .artist-box {
      max-width: 290px;   /* allow full width on small screens */
      flex: 1 1 290px;

    }
    .t-artists {
        grid-template-columns: 1fr; 
        margin: 0 auto;
      } 
}