.podcast-archive__header,
.podcast-single__header {
    margin: 40px 0
}

.podcast-layout__content {
    max-width: 73%
}

.podcast-search-form,
.podcast-category-filter {
    width: 100%;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1.5px;
    border-radius: var(--adkh-border-radius);
    border: none;
    z-index: 1;
    perspective: 800px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s ease;
    position: relative;
}


.podcast-search-form::before,
.podcast-search-form::after,
.podcast-category-filter::before,
.podcast-category-filter::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--adkh-border-radius);
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.podcast-search-form::before,
.podcast-category-filter::before {
    background-image: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: rotateY(0deg);
}

.podcast-search-form::after,
.podcast-category-filter::after {
    background-image: linear-gradient(0deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -2;
    transform: rotateY(-90deg);
}

.podcast-search-form:hover::before,
.podcast-category-filter:hover::before {
    transform: rotateY(90deg);
}

.podcast-search-form:hover::after,
.podcast-category-filter:hover::after {
    transform: rotateY(0deg);
}


.podcast-search-input {
    width: 100%;
    height: 60px;
    border-radius: var(--adkh-border-radius);
    padding: 16px;
    border: none;
    background: #fff;
    outline: none;
    font-size: inherit;
    font-family: inherit
}

.list-unstyled {
    width: 100%;
    border-radius: var(--adkh-border-radius);
    padding: 16px;
    border: none;
    background: #fff;
    outline: none;
    font-size: inherit;
    font-family: inherit;
    margin: 0
}

.podcast-search-button {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    color: var(--adkh-primary-color);
    cursor: pointer;
    left: 16px;
    top: 20px
}

.podcast-search-button:hover {
    opacity: .75
}

.section-divider {
    height: 1px;
    border: none;
    background-color: var(--adkh-primary-color)
}

span.badge.bg-secondary {
    color: var(--adkh-primary-color);
    width: 24px;
    height: 24px;
    border: 1px solid var(--adkh-primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    transition: all 300ms ease
}

.podcast-category-filter li {
    font-size: 15px;
    transition: all 300ms ease
}

.podcast-category-filter li a {
    transition: all 300ms ease
}

.podcast-category-filter li:hover a {
    color: var(--adkh-primary-color)
}

.podcast-category-filter li:hover span.badge.bg-secondary {
    background: var(--adkh-primary-color);
    color: #fff
}

.podcast-category-filter h3 {
    font-size: 17px;
    font-weight: 700
}

.podcast-card {
    max-width: 48.3%;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1.5px;
    border-radius: var(--adkh-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s ease;
    perspective: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcast-card::before,
.podcast-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--adkh-border-radius);
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.podcast-card::before {
    background-image: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: rotateY(0deg);
}

.podcast-card::after {
    background-image: linear-gradient(0deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -2;
    transform: rotateY(-90deg);
}

.podcast-card:hover::before {
    transform: rotateY(90deg);
}

.podcast-card:hover::after {
    transform: rotateY(0deg);
}

.podcast-card__inner {
    background: #fff;
    border-radius: var(--adkh-border-radius);
    transition: all .3s ease;
    padding: 20px
}

.podcast-card__image img {
    width: 100%;
    max-height: 134px;
    object-fit: cover;
    height: 100vh;
    border-radius: 16px;
    filter: grayscale(100%);
    transition: filter .3s ease
}

.podcast-card__inner:hover .podcast-card__image img {
    filter: grayscale(0%)
}

.podcast-card__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.podcast-card__title a {
    font-size: 18px;
    font-weight: 700;
    line-height: 25px
}

.podcast-card__readmore {
    background: #fff;
    color: var(--adkh-primary-color);
    border-radius: var(--adkh-button-border-radius);
    font-weight: 600;
    border: 1px solid var(--adkh-primary-color);
    transition: all 300ms ease;
    font-size: 15px;
    font-weight: 500
}

.podcast-card__readmore:hover {
    background: var(--adkh-primary-color);
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--adkh-primary-color)
}

.podcast-card__readmore svg path {
    transition: all 300ms ease
}

.podcast-card__readmore:hover svg path {
    stroke: #fff
}

.podcast-card__share {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    cursor: pointer
}

.podcast-card__share:hover svg {
    opacity: .8
}

.podcast-filters {
    border: 1px solid var(--adkh-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: var(--adkh-button-border-radius);
    position: relative
}

.custom-select {
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--adkh-primary-color)
}

.custom-select .podcast-filters__icon {
    pointer-events: none
}

.custom-select.open .custom-options {
    max-height: 300px;
    min-width: 155px;
    max-width: 155px;
    opacity: 1
}

.custom-options {
    position: absolute;
    top: 115%;
    left: auto;
    right: -1px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    list-style: none;
    padding: 0;
    padding: 10px;
    opacity: 0
}

.custom-options li {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--adkh-body-text-color);
    font-size: 14px;
    border-radius: 8px
}

.custom-options li:hover {
    background-color: var(--e-global-color-accent);
    color: var(--adkh-primary-color)
}

.podcast-container {
    margin: 0 auto;
    margin-top: -186px
}

.single-podcast-thumbnail img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: var(--adkh-border-radius);
    filter: grayscale(100%);
    transition: filter .3s ease
}

.single-podcast-thumbnail:hover img {
    filter: grayscale(0%)
}

.podcast-container .podcast-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-top: 30px !important;
}

.podcast-meta {
    font-size: 14px;
    font-weight: 400
}

.podcast-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 33px
}

p.podcast-items {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row
}

.social-actions button {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer
}

.social-actions button span {
    transition: all 300ms
}

.social-actions button:hover span {
    color: var(--adkh-secondary-color)
}

.social-actions button svg path {
    transition: all 300ms
}

.social-actions button:hover svg path {
    stroke: var(--adkh-secondary-color)
}

.social-column {
    left: 0;
    top: -60px
}

.dislike-count,
.like-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--adkh-primary-color);
    font-family: 'IRANSansX'
}

.new-posts,
.comments {
    font-size: 24px;
    font-weight: 700
}

.podcast-content {
    min-height: 200px
}

.adlkh-comment-wrapper {
    border-radius: var(--adkh-border-radius);
    background: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1px
}

.comments-wrapper {
    background: #fff;
    border-radius: var(--adkh-border-radius)
}

.comments-wrap {
    padding: 26px
}

.comment-body {
    background: var(--adkh-partially-color);
    padding: 20px;
    border-radius: 12px
}

.comment-body * {
    font-size: 16px;
    font-weight: 400;
    line-height: 30px
}

.comment-header h6 {
    font-size: 18px;
    font-weight: 700
}

.user-role {
    font-size: 16px;
    font-weight: 400;
    color: var(--adkh-primary-color)
}

.comment-reply-link span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--adkh-secondary-color);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px
}

form.custom-comment-form {
    border-radius: var(--adkh-border-radius);
    background: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    padding: 1px
}

.custom-comment-form-wrapper {
    background: #fff;
    width: 100%;
    border-radius: var(--adkh-border-radius)
}

.custom-comment-form-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

textarea[name="comment"] {
    width: calc(100% - 30px);
    min-width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    border-radius: 12px;
    background: var(--adkh-partially-color);
    min-height: 140px;
    padding: 15px;
    border: none;
    outline: none;
    font-family: 'IRANSansX';
    font-size: 15px;
    font-weight: 400
}

#comment_phone,
#author {
    width: calc(100% - 30px);
    border-radius: 12px;
    background: var(--adkh-partially-color);
    height: 50px;
    padding: 0 15px;
    border: none;
    outline: none;
    font-family: 'IRANSansX';
    font-size: 15px;
    font-weight: 400
}

#cancel-reply {
    font-family: 'IRANSansX';
    color: var(--adkh-primary-color);
    background: none;
    border: none;
    cursor: pointer
}

.comment-phone-wrapper,
.author-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.comment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative
}

.comment-wrapper button {
    font-family: 'IRANSansX';
    background: transparent;
    border: 1px solid var(--adkh-primary-color);
    border-radius: var(--adkh-button-border-radius);
    height: 40px;
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    bottom: 15px;
    left: 15px;
    color: var(--adkh-primary-color);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.children {
    padding-right: 20px
}

.avatar.avatar-57.photo {
    border-radius: 10px
}

.copy-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, .75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 10
}

.copy-toast.show {
    opacity: 1
}

.podcast-content-header__title {
    display: none;
}

@media screen and (max-width : 768px) {
    .podcast-layout__content {
        max-width: 100%;
    }

    .podcast-card {
        max-width: 100%;
    }

    .custom-select.open .custom-options {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 15px;
    }

    #blog_bg {
        display: none;
    }

    .single-podcast-thumbnail {
        margin-bottom: 20px;
    }

    .podcast-left .podcast-title {
        margin-top: 10px !important;
    }

    .single-podcast-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .podcast-container {
        margin: 0 auto !important;
    }

    .social-column {
        display: none;
    }

    .podcast-content p {
        text-align: justify;
    }

    .comment-body * {
        font-size: 15px;
        text-align: justify;
    }

    .comment-phone-wrapper,
    .author-wrapper {
        width: 100%;
    }
}

@media screen and (max-width : 1024px) and (min-width : 769px) {
    .podcast-layout__content {
        max-width: 100%;
    }

    .podcast-card {
        max-width: auto;
        margin-right: 10px !important;
        margin-bottom: 20px !important;
    }

    .podcast-card__image img {
        max-height: 120px !important;
    }


    #blog_bg {
        width: 100%;
        height: 100%;
    }


}

@media screen and (max-width : 1366px) and (min-width : 1025px) {

    .podcast-card {
        max-width: 31%;
    }

}

.podcast-section .podcast-card {
    max-width: 100%;
}

.podcast-card-inner {
    background: #ffffff;
    /* داخل کارت */
    border-radius: 18px;
    height: 100%;
}

/* ---------- Row layout ---------- */
.podcast-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.podcast-left {
    min-width: calc(100% - 100px);
}

.podcast-right {
    flex: 0 0 auto;
}

/* ---------- Media (avatar + mic) ---------- */
.podcast-avatar {
    position: relative;
    width: 84px;
    height: 84px;
}

.podcast-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.podcast-mic {
    position: absolute;
    right: 0px;
    bottom: -6px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--adkh-primary-color);
    color: #fff;
}

.place-items-center {
    place-items: center;
}



/* ---------- Typography ---------- */
.podcast-left .podcast-title {
    margin: 0 0 .25rem !important;
}

.podcast-title-link {
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
}

.podcast-title-link:hover {
    text-decoration: underline;
}

.podcast-excerpt {
    margin: 0 0 .75rem;
    color: #9aa0a6;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

/* ---------- Player shell ---------- */
.podcast-player {
    background: #ffffff;
    border: 1px solid #efe6db;
    border-radius: 999px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons */
.player-btn,
.player-mute {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.player-btn {
    background: #f5eee6;
    color: #ffffff;
}

.player-btn svg path {
    stroke: var(--adkh-primary-color);
}

.player-btn:hover {
    filter: brightness(1.05);
}

.player-mute {
    background: #f5eee6;
    color: #7a6957;
}

.player-mute:hover {
    filter: brightness(1.03);
}

.icon-pause,
.icon-muted {
    display: none;
}

.podcast-player.is-playing .icon-play {
    display: none;
}

.podcast-player.is-playing .icon-pause {
    display: block;
}

.podcast-player.is-muted .icon-volume {
    display: none;
}

.podcast-player.is-muted .icon-muted {
    display: block;
}

/* Time */
.player-time {
    min-width: 60px;
    text-align: center;
    color: #6f675f;
    font-weight: 600;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* ---------- Wave progress (static SVG tiled + clipped progress) ---------- */
/* ---------- Wave progress bar (single SVG background) ---------- */
.player-wave {
    position: relative;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    background-color: #f6f2ec;
    /* رنگ پس‌زمینه‌ی نوار */
    border: 1px dashed #eadfce;
    cursor: pointer;
}

/* Base waveform (خاکستری) */
.player-wave::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='134' height='32' fill='none'><style><![CDATA[.B{opacity:.66}]]></style><g fill='%23676767'><rect y='15' width='2' height='2' rx='1' class='B'/><rect x='6' y='12' width='2' height='8' rx='1' class='B'/><rect x='12' y='9' width='2' height='14' rx='1' class='B'/><rect x='18' y='14' width='2' height='4' rx='1' class='B'/><rect x='24' y='8' width='2' height='16' rx='1' class='B'/><rect x='30' y='9' width='2' height='14' rx='1' class='B'/><rect x='36' y='11' width='2' height='10' rx='1' class='B'/><rect x='42' y='11' width='2' height='10' rx='1' class='B'/><rect x='48' y='11' width='2' height='10' rx='1' class='B'/><rect x='54' y='9' width='2' height='14' rx='1' class='B'/><rect x='60' y='11' width='2' height='10' rx='1' class='B'/><rect x='66' y='8' width='2' height='16' rx='1' class='B'/><rect x='72' y='11' width='2' height='10' rx='1' class='B'/><rect x='78' y='14' width='2' height='4' rx='1' class='B'/><rect x='84' y='15' width='2' height='2' rx='1' class='B'/><rect x='90' y='14' width='2' height='4' rx='1' class='B'/><rect x='96' y='11' width='2' height='10' rx='1' class='B'/><rect x='102' y='8' width='2' height='16' rx='1' class='B'/><rect x='108' y='11' width='2' height='10' rx='1' class='B'/><rect x='114' y='9' width='2' height='14' rx='1' class='B'/><rect x='120' y='14' width='2' height='4' rx='1' class='B'/><rect x='126' y='11' width='2' height='10' rx='1' class='B'/><rect x='132' y='15' width='2' height='2' rx='1' class='B'/></g></svg>");
    background-repeat: repeat-x;
    background-size: 134px 32px;
}

/* Progress waveform (سبز) */
.player-wave::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='134' height='32' fill='none'><style><![CDATA[.B{opacity:.9}]]></style><g fill='%230b5d4b'><rect y='15' width='2' height='2' rx='1' class='B'/><rect x='6' y='12' width='2' height='8' rx='1' class='B'/><rect x='12' y='9' width='2' height='14' rx='1' class='B'/><rect x='18' y='14' width='2' height='4' rx='1' class='B'/><rect x='24' y='8' width='2' height='16' rx='1' class='B'/><rect x='30' y='9' width='2' height='14' rx='1' class='B'/><rect x='36' y='11' width='2' height='10' rx='1' class='B'/><rect x='42' y='11' width='2' height='10' rx='1' class='B'/><rect x='48' y='11' width='2' height='10' rx='1' class='B'/><rect x='54' y='9' width='2' height='14' rx='1' class='B'/><rect x='60' y='11' width='2' height='10' rx='1' class='B'/><rect x='66' y='8' width='2' height='16' rx='1' class='B'/><rect x='72' y='11' width='2' height='10' rx='1' class='B'/><rect x='78' y='14' width='2' height='4' rx='1' class='B'/><rect x='84' y='15' width='2' height='2' rx='1' class='B'/><rect x='90' y='14' width='2' height='4' rx='1' class='B'/><rect x='96' y='11' width='2' height='10' rx='1' class='B'/><rect x='102' y='8' width='2' height='16' rx='1' class='B'/><rect x='108' y='11' width='2' height='10' rx='1' class='B'/><rect x='114' y='9' width='2' height='14' rx='1' class='B'/><rect x='120' y='14' width='2' height='4' rx='1' class='B'/><rect x='126' y='11' width='2' height='10' rx='1' class='B'/><rect x='132' y='15' width='2' height='2' rx='1' class='B'/></g></svg>");
    background-repeat: repeat-x;
    background-size: 134px 32px;
    transition: width 0.2s linear;
}


/* ---------- Accessibility ---------- */
.player-btn:focus-visible,
.player-mute:focus-visible,
.podcast-title-link:focus-visible {
    outline: 3px solid #2a8c75;
    outline-offset: 2px;
    border-radius: 12px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width:576px) {
    .podcast-avatar {
        width: 72px;
        height: 72px;
    }

    .podcast-thumb {
        width: 72px;
        height: 72px;
    }

    .podcast-mic {
        width: 28px;
        height: 28px;
    }

    .player-wave {
        height: 28px;
    }

    .player-wave .wave-base,
    .player-wave .wave-progress {
        background-size: 134px 28px;
    }
}

/* Single-SVG progress bar */
.player-wave {
    position: relative;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    background: #f6f2ec;
    border: 1px dashed #eadfce;
    min-width: calc(100% - 170px);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.podcast-section .podcast-card .player-wave {
    min-width: calc(100% - 170px);
}

/* ریسپانسیو ریز */
@media (max-width:576px) {
    .player-wave {
        height: 28px;
    }
}