.video-player {
    width: 100%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 14px;    
    margin-bottom: 35px;
    font-family: IranSans, sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
}

    .video-player video {
        width: 100%;
        height: 100%;
        display: block;
        background: #000;
        object-fit: contain;
        cursor: pointer;
    }

.audio-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #222;
    flex-grow: 1;
}


.audio-player video {
    display: none;
}

.controls {
    padding: 10px;
    background: rgba(15,15,15,0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
    .controls a {
        text-decoration: none;
        color: white;
        font-size: 20px;
        padding: 10px 15px;
        display: inline-block;
        transition: transform 0.1s;
    }
        
        .controls a:active {
            transform: scale(1.2);
        }
.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background: #333;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

    button:hover {
        background: #555;
    }

.time-display {
    color: #fff;
    font-size: 13px;
    min-width: 100px;
    text-align: center;
}

.volume-slider {
    width: 100px;
    height: 30px;
}
.progress-container {
    width: 100%;
    height: 8px;
    background: #444;
    position: relative;
    border-radius: 5px;
    margin-bottom: 7px;
    cursor: pointer;
}

.buffered-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #888;
    border-radius: 5px;
    width: 0%;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #00bcd4;
    border-radius: 5px;
    width: 0%;
}
