.ab-datemodify {
    margin-top: 10px;
    background: #e1ffee;
    padding: 2px 6px;
    border-radius: 5px;
    color: #2a771a;
    border: 1px solid #a4f494;
    font-size: 15px !important;
}
.ab-datemodify .icon-calendar{
    margin-left: 1px;
    display: inline-block;
}
#videoPlayer video{
    max-width: 100% !important;
}
/*
title box
 */
.ab-title-box {
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.seprator {
    flex: 1;
    height: 1px;
    background: #c8c8c882;
    margin: 0 10px;
}

.ab-title-box > span{
    /*background: #fdfdfd;*/
    border-radius: 6px;
    padding: 4px 8px;
    color: rgba(var(--color-primary),var(--text-alpha));
    display: flex;
}

.ab-title-box span i {
    vertical-align: -2px;
}
#breadcrumbs {
    display: inline-block;
}
.ab--more {
    transition: all 0.3s;
    display: flex;
    align-items: center;
    align-content: center;
}
.ab--more:hover {
    color: rgba(var(--color-cyan),var(--text-alpha)) !important;
}
.ab--more::after {
    content: "\f103";
    font-size: 11px;
    font-family: flaticon !important;
    padding: 0;
    vertical-align: -2px;
    transform: rotate(90deg);
    margin-right: 6px;
}

/*
end title box
 */

.bargozideha {
    display: flex;
    flex-direction: row;
}
.bargozideh-body {
    display: flex;
    flex-wrap: wrap;
}
.bargozideh-body .swiper-slide {
    width: 25%;
}
.bargozideh-body.abrelated .swiper-slide {
    width: 12%;
}
.bargozideha.relatede {
    flex-direction: column !important;
}
.bargozideh.ab40right {
    width: 50%;
}
.bargozideh.ab40left {
    width: 50%;
    margin-right: 15px;
}
.bargozideha .slide-post .name , .ab40mahbob .slide-post .name{
    direction: rtl !important;
    font-size: 16px !important;
    margin-top: 10px !important;
}
.bargozideha .slide-post , .ab40mahbob .slide-post {
    padding-bottom: 20px !important;
}

.bargozideha .slide-post .image .cover {
    backdrop-filter: saturate(180%) blur(3px);
}
.ab-title-box .icon {
    transform: rotate(90deg);
    font-size: 12px;
    margin: 0 5px;
    padding-top: 2px;
}
/*
mahbob
 */
.ab40mahbob .slide-post {
    width: 25%;
}
.ab40mahbob {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px !important;
}
@media only screen and (max-width:800px){
    .bargozideha {
        flex-direction: column;
    }
    .bargozideh.ab40right , .bargozideh.ab40left {
            width: 100%;
        margin-bottom: 10px;
    }
    .bargozideh.ab40left {
        margin-right: 0 !important;
    }
    .bargozideh-body.abrelated .swiper-slide , .ab40mahbob .slide-post{
        width: 25%;
    }
}
@media only screen and (max-width:400px){
    .bargozideh-body .swiper-slide , .bargozideh-body.abrelated .swiper-slide,.ab40mahbob .slide-post {
        width: 50%;
    }
    .bargozideh-body .slide-post, .ab40mahbob .slide-post {
        padding-bottom: 10px !important;
    }
}

/*
Live Search
 */

#search-results {
    position: absolute;
    top: 105%; /* دقیقا زیر فیلد جستجو قرار می‌گیرد */
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* مخفی بودن در ابتدا */
}

#search-results p {
    margin: 0;
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0;
}

#search-results p:last-child {
    border-bottom: none;
}

#search-results p a {
    text-decoration: none;
    color: #333;
}

#search-results .search-item:hover {
    background-color: #f9f9f9;
}

/* نمایش نتایج هنگام تایپ */
#search-results.show {
    display: block;
}

#search-results .search-item {
    display: flex;
    align-items: center;
    padding: 1px 0;
    border-bottom: 1px solid #f0f0f0;
}

#search-results .search-item:last-child {
    border-bottom: none;
}

.search-image {
    width: 50px;
    height: auto;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 2px;
    margin-top: 2px;
}

#search-results .search-item p {
    margin: 0;
}

#search-results .search-item a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    display: flex;
    align-items: center;
        width: 100%;

}

.search-view-all {
    text-align: center;
    padding: 10px;
}

.view-all-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(var(--color-primary),1);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.view-all-button:hover {
    background-color: #005bb5;
}

/* استایل آیکون چرخشی لودینگ */
.loading-spinner {
    border: 4px solid #fff;
    border-top: 4px solid #313b78;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 8px;
    left: 10px;
    transform: translateY(-50%);
}

/* انیمیشن چرخش */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 992px) {
    #nav .search .icon-search {
        display: none !important;
    }
    .loading-spinner {
        top: 20px !important;
    }
}

.abheader-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -10px auto 20px;
    flex-wrap: wrap;
}

.abheader-link-box {
    background-color: #f0f4fa;
    padding: 15px;
    width: 155px;
    border-radius: 8px;
    box-shadow: 0 4px 6px #0000001a;
    text-align: center;
    transition: filter 0.3s ease;
    margin-right: 15px;
}
.abheader-link-box:first-child {
    margin-right: 0 !important;
}
.abheader-link-box:hover {
    background: rgba(var(--color-body-d-1),var(--bg-alpha));
}

.ablink-title {
    font-size: 14px;
    font-weight: bold;
    color: #1D3B6C;
    margin-bottom: 8px;
}

.ablink-url {
    font-size: 12px;
    color: #3D5C9B !important;
    text-decoration: none !important;
    word-break: break-all;
    display: block;
}

.abheader-link-box:hover .ablink-url {
    text-decoration: underline !important;
}

.abheader-link-box:hover ~ .abheader-link-box,
.abheader-link-box:hover ~ a,
.abheader-links:hover .abheader-link-box:not(:hover) {
    filter: blur(2px);
}

@media only screen and (max-width:800px) {
    .abheader-links {
        margin: 10px auto 0 !important;
    }
    .abheader-link-box {
        padding: 12px;
        width: 130px;
        margin-right: 15px;
        flex-grow: 1;
    }
}
@media only screen and (max-width:451px) {
    .abheader-link-box:last-child {
        margin-top: 15px;
        margin-right: 0;
    }
}

.icon-aparat {
    width: 56px !important;
    height: 56px !important;
    background: url(aparat.svg) center center no-repeat;
    background-size: 26px;
}
.icon-tiktok {
    width: 56px !important;
    height: 56px !important;
    background: url(tiktok.svg) center center no-repeat;
    background-size: 20px;
}
#footer .social {
    display: flex;
    justify-content: center;
}
/*
images
 */
.wp-caption {
    margin: 0 auto;
}
.wp-caption img {
    margin: 0 auto;
    display: block;
}
.wp-caption-text {
    margin-bottom: 10px;
}
/*
Mobile Scroll
 */
@media (max-width: 800px) {
    .ab40-mob-scroll {
        overflow: hidden;
        margin-left: -1rem;
        margin-right: -0.7rem;
    }
    .ab40-mob-scroll .swiper-slide {
        max-width: 170px !important;
        flex: 0 0 170px !important;
        margin-left: 3px;
    }
    .ab40-mob-scroll .slide-post .name{
        font-size: 14px !important;
    }
    .ab40-mob-scroll .bargozideh-body {
        flex-wrap: nowrap !important;
        padding-bottom: 6px;
        padding-left: 10px;
        overflow-x: scroll;
        overflow-y: hidden;
        margin-bottom: -6px;
    }
}
/*
end
 */



/*
dl box
 */

.tab-name {
    cursor: pointer;
}
.boxdl-ab40 {
    background: rgba(var(--color-body-d-1),var(--bg-alpha));
    width: 100%;
    margin-top: 1px;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 3px;
    margin-bottom: 2em;
    direction: rtl;
    text-align: right;
}

.downloads-titlebox {
    display: flex;
    padding: 7px 12px;
    font-size: 18px;
    color: rgba(var(--color-primary),var(--text-alpha));
    font-weight: bold;
    gap: 10px;
    background: #00000008;
    text-align: right;
    direction: rtl;
    border-radius: 4px;
    margin-top: 50px;
}

.downloads-list {
    background: #0000000a;
    margin: 8px 10px;
    padding: 7px 5px;
    border-radius: 5px;
    display: flex;
}

.downloads-list a {
    min-width: 500px;
    display: inline-block;
    text-align: center;
    background: rgba(var(--color-primary),var(--bg-alpha));
    padding: 11px;
    border-radius: 5px;
    color: rgba(var(--color-body),var(--text-alpha));
     max-width: 100%;
}

.downloads-list-detail {
    padding: 5px;
    display: inline-block;
}

.boxdl-ab40 .quality {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    min-width: 130px;
    text-align: center;
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 5px;
    width: auto;
    margin: 0 3px;
    display: inline-block;
    color: #313131;
}

.boxdl-ab40 table {
    float: right;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.boxdl-ab40 table thead tr {
    border-bottom: 3px solid #eee;
    background: #444;
}

.boxdl-ab40 table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.boxdl-ab40 table th {
    padding: 10px 10px 15px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.boxdl-ab40 table td {
    padding: 10px 10px 15px;
    text-align: right;
    font-size: 12px;
}

.boxdl-ab40 table .quality {
    background: #a2b6bf;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0px 2px 0px rgba(84, 96, 101, 0.61);
    color: #546065;
    font-size: 11px;
    padding-top: 3px;
}

.boxdl-ab40 table a {
    background: #03A9F4;
    color: #fff;
    padding: 9px 10px;
    border-radius: 4px;
}
.linkdlebox {
    background: linear-gradient(45deg, #0000, #0000000a);
    margin-bottom: .75rem;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 15px;
    color: rgba(var(--color-primary),var(--text-alpha));
    display: flex;
    font-size: 16px;
    margin-top: .75rem;
    font-weight: 500;
    gap: 7px;
    border-radius: 6px;
}
/* ظاهر summary/آکاردئون بدون نیاز به JS */
.boxdl-ab40 details.dlbox-chapter {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.boxdl-ab40 details.dlbox-chapter > summary {
    list-style: none; /* مخفی کردن مثلث پیش‌فرض برخی مرورگرها */
}
.boxdl-ab40 details.dlbox-chapter > summary::-webkit-details-marker { display:none; }

.boxdl-ab40 .linkdlebox {
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, box-shadow .2s ease;
}
.boxdl-ab40 .linkdlebox:hover { background:#e6eefc; }

.boxdl-ab40 details[open] .linkdlebox {
    background:#e6eefc;
    box-shadow: inset 0 0 0 2px rgba(46,58,116,.15);
}
/* چرخش فلش وقتی باز است (اگر آیکونت فونت/اس‌وی‌جی است، همین کافیه) */
.boxdl-ab40 details .icon-arrow-down-sign-to-navigate {
    transition: transform .2s ease;
    transform: rotate(90deg);
}
.boxdl-ab40 details[open] .icon-arrow-down-sign-to-navigate { transform: rotate(0deg); }

.boxdl-footer {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 15px;
}
.boxdl-footer a {
    background: #0000000a;
    padding: 5px 10px;
    border-radius: 4px;
    color: rgba(var(--color-primary),var(--text-alpha));
    font-weight: bold;
    border: 1px solid rgba(var(--color-primary),var(--text-alpha));
}
.boxdl-note {
    background: rgba(var(--color-body),var(--bg-alpha));
    padding: 10px 30px 10px 0;
    display: flex;
    flex-direction: column;
    margin: 8px 10px;
    border-radius: 10px;
    color: rgba(var(--color-primary),var(--text-alpha));
    border: 1px solid #0000001f;
    direction: rtl;
    text-align: right;
}
.boxdl-note li {
    margin-bottom: 4px;
}

/* استایل پایه همه دکمه‌ها */
.downloads-list .quality {
    display: inline-block;
    padding: 6px 14px;
    margin: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
    border: 2px solid transparent;
}

/* هر کلاس با بردر کمی شفاف‌تر از رنگ متن */
.downloads-list .quality.sub-attached {
    background: #ffccd2;
    color: #a60020;
    border: 1px solid rgba(166, 0, 32, 0.6);
}

.downloads-list .quality.no-sub {
    background: #c6f7d0;
    color: #1f5d33;
    border: 1px solid rgba(31, 93, 51, 0.6);
}

.downloads-list .quality.dub {
    background: #b3d8ff;
    color: #003f8c;
    border: 1px solid rgba(0, 63, 140, 0.6);
}

.downloads-list .quality.dub-2h {
    background: #ffe7b3;
    color: #805800;
    border: 1px solid rgba(128, 88, 0, 0.6);
}

.downloads-list .quality.dub-recorded {
    background: #f7c6f0;
    color: #6b005d;
    border: 1px solid rgba(107, 0, 93, 0.6);
}

.downloads-list .quality.dub-exclusive {
    background: #d6c6f7;
    color: #4b0082;
    border: 1px solid rgba(75, 0, 130, 0.6);
}

.downloads-list .quality.dual-lang {
    background: #c6f0f7;
    color: #005d6b;
    border: 1px solid rgba(0, 93, 107, 0.6);
}


.mtop30 {
    margin-top: -30px;
}

@media (max-width: 700px) {
    .downloads-list {
        flex-direction: column;
    }
    .downloads-list a {
        min-width: 200px;
    }
} 