.input-images{
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.image-uploader{
    min-height:10rem;
    border:1px solid #c990ea; /* Neon green border */
    background: #111111;
    position:relative
}
.image-uploader.drag-over{background-color:#f3f3f3}
.image-uploader input[type="file"] {
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.image-uploader .uploaded{
    padding:.5rem;
    line-height:0;
/*    border: solid 1px black;*/
}
.image-uploader .uploaded .uploaded-image{
    display:inline-block;
    width:calc(16.6666667% - 1rem);
    padding-bottom:calc(16.6666667% - 1rem);
    height:0;
    position:relative;
    margin:.5rem;
    background:#222222;
    cursor:default
}
.image-uploader .uploaded .uploaded-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute
}
.image-uploader .uploaded .uploaded-image .delete-image{
    display:none;
    cursor:pointer;
    position:absolute;
    top:.2rem;
    right:.2rem;
    border-radius:50%;
    padding:.3rem;
    background-color:rgba(201,144,234,0.5); /* Neon green with transparency */
    -webkit-appearance:none;
    border:none;
}
.image-uploader .uploaded .uploaded-image:hover .delete-image{
    display:block;
}
.image-uploader .uploaded .uploaded-image .delete-image i{
    color:#fff;
    font-size:1.4rem;
}
.switch .option::before {
    width: 72px;
}
.switch .option span {
    padding: 10px 10px;
}
.text{
    color: #c990ea; /* Red text */
}
ul.switchul{
	background-color: #111111;
	border: 2px solid #c990ea;
	border-radius: 15px;
	position: relative;
	z-index: 1;
	list-style: none;
	width: 112px;
	padding: 0px;
}
ul.switchul > li{
	display: inline-flex;
	border-radius: 14px;
	background-color: #000000;
	height: 100%;
	width: 52px;
	box-sizing: border-box;
	position: relative;
	left: 0;
	top: 0;
	padding: 10px;
	color: #c990ea;
}
ul.switchul > li.style_select{
	background-color: #c990ea;
	color: #000000;
}
ul.switchul > li > a:link,
ul.switchul > li > a:visited,
ul.switchul > li > a:hover,
ul.switchul > li > a:active{
	color: #c990ea;
}
.filter {
    display: flex;
    align-items: center;  /* Changed from flex-start to center */
    flex-wrap: wrap;
    color: #ffffff;
    width: 100%;
}

.filter label {
    margin-right: 15px;  /* Increased from 10px to 15px for better spacing */
    margin-bottom: 0;    /* Removed bottom margin since we're centering */
    display: inline-flex; /* Changed from inline-block to inline-flex */
    align-items: center;  /* Center the label text vertically */
    height: 38px;        /* Match the height of filter buttons (padding + border) */
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.enroll-btn,
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #c990ea;
    border-radius: 4px;
    background: #111111;
    color: #c990ea;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.enroll-btn.active,
.filter-btn.active {
    background: #c990ea;
    color: #000000;
    border-color: #c990ea;
}

.enroll-btn:hover,
.filter-btn:hover {
    background: rgba(201, 144, 234, 0.2);
    color: #c990ea;
    border-color: #c990ea;
}

/* First, disable hover effects on touch devices */
@media (hover: none) {
    .enroll-btn:hover,
    .filter-btn:hover {
        background: #111111;
        color: #c990ea;
        border-color: #c990ea;
    }
}

/* Ensure active state takes precedence and works on all devices */
.enroll-btn.active,
.enroll-btn:active,
.filter-btn.active,
.filter-btn:active {
    background: #c990ea !important;
    color: #000000 !important;
    border-color: #c990ea !important;
}

/* Service button styles */
.service-btn {
    padding: 8px 16px;
    border: 1px solid #c990ea;
    border-radius: 4px;
    background: #111111;
    color: #c990ea;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.service-btn.active {
    background: #c990ea;
    color: #000000;
    border-color: #c990ea;
}

.service-btn:hover {
    background: rgba(255, 167, 198, 0.2);
    color: #c990ea;
    border-color: #c990ea;
}

/* Disable hover effects on touch devices for service buttons */
@media (hover: none) {
    .service-btn:hover {
        background: #111111;
        color: #c990ea;
        border-color: #c990ea;
    }
}

/* Ensure active state takes precedence for service buttons */
.service-btn.active,
.service-btn:active {
    background: #c990ea !important;
    color: #000000 !important;
    border-color: #c990ea !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .enroll-btn, .filter-btn, .service-btn {
        padding: 8px 14px;
        font-size: 15px;
        min-width: 55px;
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter label {
        font-size: 15px;
        margin-right: 10px;
    }
    
    .meme-info .head .t-lg {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .enroll-btn, .filter-btn, .service-btn {
        padding: 7px 12px;
        font-size: 14px;
        min-width: 50px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter label {
        font-size: 14px;
        margin-right: 8px;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .meme-info .head .t-lg {
        font-size: 17px;
    }
}

/* Lazy loading placeholder */
.lazy-bg {
    background-color: #222222;
    background-size: cover;
    background-position: center;
}

/* Carousel watermark */
.carousel-watermark {
    position: absolute;
    bottom: 30px;
    right: 12px;
    text-align: right;
    z-index: 3;
    pointer-events: none;
    line-height: 1.3;
}
.carousel-watermark .watermark-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.carousel-watermark .watermark-url {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) {
    .carousel-watermark {
        bottom: 26px;
        right: 8px;
    }
    .carousel-watermark .watermark-title {
        font-size: 14px;
    }
    .carousel-watermark .watermark-url {
        font-size: 11px;
    }
}

/* Ensure cover images on main listing page show full image without cropping */
.meme-img.lazy-bg {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video play icon overlay */
.img-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.img-container {
    position: relative;
}