/* ============================================================
 * E-med Podcasts — RTL overrides
 * Loaded only when the site locale is right-to-left (is_rtl()).
 * ============================================================ */

/* Roots: flip direction + default alignment for everything inside. */
.emed-pod-single,
.emed-pod-archive {
    direction: rtl;
    text-align: right;
}

.emed-pod-single *,
.emed-pod-archive * {
    direction: rtl;
}

/* ---------- Head / content ---------- */
.emed-pod-head,
.emed-pod-title,
.emed-pod-content,
.emed-pod-terms {
    text-align: right;
}

/* ---------- Sections / bars ---------- */
.emed-pod-section,
.emed-pod-section-bar,
.emed-pod-main {
    text-align: right;
}

/* ---------- Per-item title / description / caption / author ---------- */
.emed-pod-item-title,
.emed-pod-item-desc,
.emed-pod-caption,
.emed-pod-author {
    text-align: right;
}

/* ---------- Playlist ---------- */
.emed-pod-playlist {
    padding: 0;
}

.emed-pod-pl-select,
.emed-pod-pl-meta,
.emed-pod-pl-title,
.emed-pod-pl-excerpt {
    text-align: right;
}

/* ---------- Like button: top-left -> top-right ---------- */
.emed-pod-like {
    left: 12px;
    right: auto;
}

/* Inside the audio player it is static, so no offset needed. */
.emed-pod-audio-player .emed-pod-like {
    left: 21px;
    right: auto;
}

/* ---------- Media control bars + waveform stay LTR ----------
 * Timelines/scrubbers read left->right in every language. */
.emed-pod-controls,
.emed-pod-controls *,
.emed-pod-audio-controls,
.emed-pod-audio-controls *,
.emed-pod-wave {
    direction: ltr;
}

.emed-pod-audio-name {
    text-align: right;
}

/* ---------- Banner overlays ---------- */
.emed-pod-banner-close {
    right: auto;
    left: 4px;
}

.emed-pod-banner-countdown {
    left: auto;
    right: 12px;
}

.emed-pod-banner-skip {
    right: auto;
    left: 12px;
}

/* ---------- Info (lecturers) popup ---------- */
.emed-pod-info-close {
    right: auto;
    left: 10px;
}

.emed-pod-info-box,
.emed-pod-info-body {
    text-align: right;
}

/* ---------- Audio meta ---------- */
.emed-pod-audio-summary,
.emed-pod-audio-item-title,
.emed-pod-audio-item-desc {
    text-align: right;
}

/* ---------- Prev / Next: flip sides ---------- */
.emed-pod-prevnext {
    direction: rtl;
}

.emed-pod-next {
    margin-left: 0;
    margin-right: auto;
}

/* ---------- Share row (under the video) flows RTL automatically ---------- */
.emed-pod-share {
    direction: rtl;
}

/* ---------- Archive (seminars design) ---------- */
.emed-archive-title { text-align: right; }
.emed-archive-filters { direction: rtl; }
/* Chevron on the left is correct for RTL selects; badges sit top-right already. */
.emed-grid .emed_seminars-post__text { text-align: right; }
.emed-grid .emed_seminars-post__read-more { justify-content: flex-start; }
