﻿#custom-audio-player {
    /* Main RTL setting */
    direction: rtl;
    background-color: #1a1a1a;
    border: 1px solid #c00000;
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Arial', 'Simplified Arabic', sans-serif; /* Added common Arabic font */
    max-width: 550px;
    text-align: right; /* Ensure any internal text defaults to right-aligned */
    margin-bottom: 10px;
	margin-right:15px;
}

#player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    /* This line is crucial for RTL: it reverses the order of elements */
    flex-direction: row-reverse;
}

#play-pause-btn {
    background-color: #c00000;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.2s;
    /* In LTR, the time display is on the right. In RTL, it should be on the left of the button/progress bar.
        This is handled by flex-direction: row-reverse; on #player-controls */
}

    #play-pause-btn:hover {
        background-color: #ff3333;
    }

#progress-container {
    flex-grow: 1;
    height: 6px;
    background-color: #444;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

#progress-bar {
    height: 100%;
    /* In RTL, the progress bar should fill from the RIGHT */
    width: 0%;
    background-color: #c00000;
    border-radius: 3px;
    /* Start the progress bar from the right edge */
    float: left;
}

#time-display {
    color: #f0f0f0;
    font-size: 0.9em;
}

/* --- Sponsorship Styling --- */
#sponsor-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #444;
    /* Reversing flex direction here too, so text is on the right and logo is on the left */
    flex-direction: row-reverse;
    justify-content: flex-end; /* Align content to the right */
}

#sponsor-text {
    color: #ccc;
    font-size: 16px;
    /* Adjusted margin for RTL: space after the text */
    margin-left: 5px;
    margin-right: 0;
    font-family: 'Droid Arabic Kufi',Tahoma !important;
    font-weight: 400
}

#sponsor-logo {
    max-height: 35px;
    max-width: 80px;
    border-radius: 3px;
    margin: 0 !important
}
