/* Kontener odtwarzacza */
.uvp-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Wrapper utrzymujący proporcje (600x350 → padding-bottom: 58.33%) */
.uvp-video-wrapper {
    position: relative;
    padding-bottom: 58.33%; /* 350/600 * 100 */
    height: 0;
    overflow: hidden;
}

.uvp-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.uvp-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.uvp-play, .uvp-mute {
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.uvp-play:hover, .uvp-mute:hover {
    background: rgba(0,0,0,0.9);
}

.uvp-error {
    color: white;
    padding: 15px;
    text-align: center;
    background: rgba(255,0,0,0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.uvp-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 200;
}

.uvp-ad-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
}

.uvp-ad-link {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
}

.uvp-close-ad {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 850px) {
    .uvp-container {
        border-radius: 0;
        margin: 10px 0;
    }
    
    .uvp-controls {
        bottom: 5px;
        right: 5px;
    }
    
    .uvp-play, .uvp-mute {
        padding: 6px 10px;
        font-size: 12px;
    }
}