/* PYM player navigation buttons — intentionally mirrors the supplied style. */
.pym-player-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 15px auto !important;
    direction: rtl;
}

.emd_dl_red_darker {
    display: table !important;
    margin: 15px auto !important;
    padding: 6px 20px !important;
    border: 1px solid #B8B8C0 !important;
    border-radius: 8px !important;
    background: #F7F7F8 !important;
    color: #45454F !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
}

a.emd_dl_red_darker,
a.emd_dl_red_darker:visited {
    color: #45454F !important;
    text-decoration: none !important;
}

.emd_dl_red_darker:hover,
.emd_dl_red_darker:focus-visible {
    background: #F0F0F2 !important;
    border-color: #9999A3 !important;
    color: #30303D !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}

.pym-player-nav .emd_dl_red_darker {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 !important;
    cursor: pointer;
    line-height: 1.8;
}

@media (max-width: 600px) {
    a.emd_dl_red_darker {
        transform: scale(0.85) !important;
    }

    .pym-player-nav {
        gap: 2px;
        margin: 10px auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emd_dl_red_darker {
        transition: none !important;
    }
}
