/* Custom premium player matching image_509c65.png layout */
.falak-tts-wrapper {
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 18px 24px;
    margin: 20px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.falak-tts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Left structural panel */
.falak-tts-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
    gap: 16px;
}

/* Pixel-perfect circular play button wrapper */
.falak-play-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.falak-play-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.falak-play-trigger:active {
    transform: scale(0.95);
}

/* CSS Play / Pause Icon Shapes toggle state handling */
.falak-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #333333;
    margin-left: 3px;
    box-sizing: border-box;
}

.falak-tts-wrapper.playing .falak-play-icon {
    width: 11px;
    height: 13px;
    border-style: double;
    border-width: 0px 0px 0px 11px;
    border-color: #333333;
    margin-left: 0;
}

/* Track description and time sliders block */
.falak-player-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.falak-player-label {
    font-size: 14px;
    color: #4b4a4a;
    font-weight: 500;
    line-height: 1.4;
}

.falak-progress-timeline {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.falak-time-stamp {
    font-size: 12px;
    color: #7c7c7c;
    min-width: 35px;
}

.falak-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Styled HTML5 Timeline Slider Track Input formatting */
.falak-progress-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e2e2;
    outline: none;
    margin: 0;
    cursor: pointer;
}

.falak-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333333;
    cursor: pointer;
    transition: transform 0.1s;
}

.falak-progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.falak-progress-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333333;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.falak-progress-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Right utility control panel layout rules */
.falak-tts-right {
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.falak-utility-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #a0a0a0;
    transition: color 0.2s;
}

.falak-utility-btn:hover {
    color: #333333;
}

/* Specific styling for translation character layout badge icon */
.falak-translate-btn {
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

/* Skip action icon sizing and contextual values layout formatting */
.falak-svg-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.falak-skip-btn {
    position: relative;
}

.falak-skip-num {
    position: absolute;
    font-size: 8px;
    font-weight: 700;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -40%);
    color: currentColor;
}

/* Speed display configuration button ruleset */
.falak-speed-selector {
    background: #e2e2e2;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #4b4a4a;
    border-radius: 12px;
    cursor: pointer;
    min-width: 42px;
    text-align: center;
    transition: background-color 0.2s;
}

.falak-speed-selector:hover {
    background: #d4d4d4;
}

/* Modal text presentation dynamic block visibility triggers */
.falak-translation-hidden {
    display: none !important;
}

/* Mobile responsive formatting logic adjustment rules */
@media (max-width: 480px) {
    .falak-tts-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .falak-tts-right {
        width: 100%;
        justify-content: flex-end;
    }
}