.live-search-container {
    /* رنگ پس زمینه تیره مشابه تصویر */
    border-radius: 15px;
    font-family: inherit; /* فونت دلخواه خود را جایگزین کنید */
    display: flex;
    flex-direction: column;
}

.search-input-group {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 30px auto;
}

.search-input-group input {
    width: 100%;
    border: 2px solid var(--bs-info);
    color: #fff;
    padding: 1rem 4rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    /* رنگ بنفش هاور/فوکوس */
}

.search-input-group .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary);
    font-size: 1.2rem;
}

.search-input-group .clear-icon, 
.search-input-group .spinner-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

/* بخش نتایج */
.search-results-wrapper {
    background-color: #1e1e2d;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.results-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2a35;
    padding-bottom: 10px;
}

.results-grid {
    width: 100%;
}

/* ==== ساختار جدید گرید برای نتایج جستجو ==== */
.results-list-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); 
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .results-list-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .results-list-container {
        grid-template-columns: repeat(4, minmax(0, 1fr)); 
    }
}

@media (min-width: 1200px) {
    .results-list-container {
        grid-template-columns: repeat(5, minmax(0, 1fr)); 
    }
}

/* =========================================== */

/* آیتم نتیجه */
.result-item-wrapper {
    width: 100%;
    min-width: 0; /* جلوگیری از بزرگ شدن آیتم فراتر از عرض ستون گرید */
}

.result-item {
    display: flex;
    align-items: center;
    background-color: #1a1a24;
    border-radius: 10px;
    padding: 10px;
    width: 100%; 
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden; /* جلوگیری از خروج محتوا از کادر */
}

.result-item .item-info {
    flex-grow: 1;
    text-align: right;
    padding-left: 10px;
    min-width: 0; /* اجازه می‌دهد متن‌های طولانی کوتاه شوند */
}

.result-item:hover {
    background-color: #252535;
}


.result-item .item-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.5rem;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.result-item .item-subtitle {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item .item-image-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.result-item .item-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* آیکن پلی/ادامه مطلب روی تصویر */
.result-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 61, 255, 0.8); /* رنگ بنفش */
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* استایل‌های بخش فیلتر و Swiper */
.category-filters-wrapper {
    max-width: 100%;
    margin: 0 auto 30px auto;
    overflow: hidden;
    display: inline-block;
    width: auto;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1a1a24;
    color: #a0a0b0;
    border: 1px solid #2a2a35;
    padding: 10px 25px;
    height: 3.3rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #252535;
    color: #fff;
}

.filter-btn.active {
    background-color: #252535;
    border-color: #8b3dff; /* رنگ بنفش برای آیتم فعال */
    color: #fff;
}

.filter-btn i {
    font-size: 16px;
    color: #8b3dff; /* یا می‌توانید از تصاویر SVG رنگی خود استفاده کنید */
}

/* تنظیم عرض اسلایدهای Swiper برای دسته‌بندی‌ها */
.categorySwiper .swiper-slide {
    width: auto !important; /* تا اسلایدها به اندازه محتوایشان جا بگیرند */
}

.singers-section-wrapper {
    margin: 30px 0;
    padding: 15px;
}

.singers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.singers-header .section-title {
    color: #fff;
    font-size: 16px;
}

.singers-header .view-all-link {
    color: #8c8cbe;
    font-size: 12px;
    text-decoration: none;
}

/* ظاهر کارت خواننده */
.singer-card {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* قرارگیری عکس در راست */
    background: #1e1e2d; /* رنگ تیره پس‌زمینه کارت */
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    height: 100%;
    box-sizing: border-box;
}

.singer-card:hover, .singer-card.active {
    background: #2a2a40;
}

.singer-card .singer-name {
    color: #fff;
    margin-right: 15px; /* فاصله از عکس */
    font-size: 14px;
    font-weight: bold;
    max-height: 2rem;
    line-height: 1rem;
}

.singer-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.singer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تنظیم موقعیت کانتینر نقطه‌ها */
.live-search-container .swiper-pagination {
    bottom: -30px !important; /* تنظیم فاصله از پایین */
}

/* ظاهر پایه نقطه‌ها */
.live-search-container .swiper-pagination-bullet {
    background: #9494af; /* رنگ نقطه‌های غیرفعال */
    opacity: 0.5;
    width: 6px;
    height: 6px;
    transition: all 0.3s ease;
}

/* نقطه فعال (سایز و رنگ اصلی) */
.live-search-container .swiper-pagination-bullet-active {
    background: #ffffff; /* رنگ نقطه فعال */
    opacity: 1;
}

.live-search-container .swiper-pagination-bullet-active-next,
.live-search-container .swiper-pagination-bullet-active-prev {
    opacity: 0.7;
}

.live-search-container .swiper-pagination-bullet-active-next-next,
.live-search-container .swiper-pagination-bullet-active-prev-prev {
    opacity: 0.4;
}

/* بخش‌های باقی‌مانده مربوط به ریسپانسیو دکمه‌های فیلتر */
@media (max-width: 480px) {
    .category-filters-wrapper button.filter-btn {
        display: block;
        padding: 0rem 0rem;
        height: 60px;
        width: 60px;
        font-size: 0.7rem;
    }
    
    .category-filters-wrapper button.filter-btn > svg {
        width: 100%;
        height: 32%;
    }
}
