.show_card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    flex-shrink: 0;
    position: relative;
    margin: 0 auto;
}

.show_card .addto_list {
    background-color: transparent;
    position: absolute;
    right: 1em;
    bottom: 0.8em;
    width: fit-content;
    height: fit-content;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
    display: flex;
    gap: 0.5em;
    transform: translateX(3em);
}

.show_card .addto_list button {
    background-color: transparent;
    border: none;
    width: 1.5em;
    height: 1.5em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.show_card .addto_list svg {
    fill: rgb(var(--text-color));
    transition: all 0.3s ease;
}

.show_card .addto_list button svg:hover {
    fill: rgb(var(--secondary-color));
}

.show_card .onhover {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(var(--primary-color), 1);
    display: flex;
    flex-direction: column;
    border-radius: 0.5em;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.show_card .onhover .banner_div {
    display: flex;
    width: 100%;
    position: relative;
    height: fit-content;
    max-height: 35%;
    padding: 0 !important;
    margin: 0 !important;
}

.show_card .onhover .banner_div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show_card .onhover .banner_div > div {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(0deg, rgba(var(--primary-color),1) 10%, rgba(var(--primary-color),0) 25%);
    z-index: 1;
}

.show_card .onhover h3 {
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    overflow: hidden;
    font-size: 1em;
    margin: 0.5em 0.5em 0;
}

.show_card .onhover > div {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0 0.8em;
    margin-top: 0.5em;
}

.show_card .onhover p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; 
    line-clamp: 4;
    overflow: hidden;
    font-size: 1em;
    margin: 0;
}

.show_card:hover .onhover {
    opacity: 1;
    pointer-events: auto;
}

.show_card:hover .addto_list {
    opacity: 1;
    transform: translateX(0);
}

.show_card .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5em;
}

.show_card .baseinfo {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

.show_card:hover .baseinfo {
    opacity: 0;
}

.show_card .content img {
    width: 100%;
    aspect-ratio: 10/14;
    object-fit: cover;
    border-radius: 0.5em;
    background-color: rgba(var(--secondary-color),0.3);
}

.show_card .content .baseinfo h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    overflow: hidden;
    font-weight: normal;
    font-size: 1em;
    text-align: left;
    color: rgba(var(--text-color));
    margin: 0;
}

.sub_info {
    display: flex;
    box-sizing: border-box;
    font-size: 0.8em;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(var(--secondary-color));
}

.active_user_content svg {
    fill: rgb(var(--secondary-color)) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .show_card {
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    .show_card {
        max-width: 160px;
    }
    
    .show_card .onhover h3 {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .show_card {
        max-width: 140px;
    }
    
    .show_card .addto_list {
        right: 0.5em;
        bottom: 0.5em;
    }
    
    .show_card .addto_list button {
        width: 1.3em;
        height: 1.3em;
    }
    
    .show_card .onhover h3 {
        font-size: 0.8em;
    }
    
    .show_card .onhover p {
        font-size: 0.75em;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .show_card {
        max-width: 120px;
    }
    

    
    .show_card:hover .baseinfo {
        opacity: 1;
    }
}

/* Touch device adaptations */
@media (hover: none) {

    
    .show_card:hover .baseinfo {
        opacity: 1;
    }
}