/* Miniaturki filmow w galerii */
.psoft-pvideo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.psoft-pvideo-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.psoft-pvideo-thumb:hover,
.psoft-pvideo-thumb.active {
    border-color: #24b9d7;
}

.psoft-pvideo-thumb-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.psoft-pvideo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psoft-pvideo-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
}

.psoft-pvideo-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.psoft-pvideo-play-icon svg {
    margin-left: 2px;
}

/* Kontener odtwarzacza - zastepuje glowny obraz */
.psoft-pvideo-player-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.25rem;
}

.psoft-pvideo-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.psoft-pvideo-player-wrapper iframe,
.psoft-pvideo-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.psoft-pvideo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.psoft-pvideo-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Ukrycie glownego obrazu gdy film jest aktywny */
.psoft-pvideo-cover-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .psoft-pvideo-thumb {
        width: 60px;
        height: 60px;
    }
}
