/* --- ISTNIEJĄCE STYLE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: sans-serif;
}

.img-video-container {
    display: flex;
    justify-content: center; /* Środkowanie w poziomie */
    align-items: center; /* Środkowanie w pionie */
    width: 100%;
    height: 100vh; /* Dopasowanie do wysokości okna */
    overflow: hidden; /* Zapobiega wystawaniu wideo */
    background-color: white; /* Ważne przy mix-blend-mode: multiply */
}
.img-video-container video {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
    width: 100%;
    height: 100vh;
    mix-blend-mode: multiply;
}

.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    background-color: black;
    width: 100%;
    max-width: 800px;
}
video {
    width: 100%;
}

/* --- STYLE DLA MODALA --- */
#video-modal {
    display: none; /* Ukryty domyślnie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#video-modal.active {
    display: flex;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
}

/* --- TWOJE STYLE KONTROLEK (Uproszczone dla czytelności) --- */
.video-controls-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    z-index: 100;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}
.video-container:hover .video-controls-container,
.video-container.paused .video-controls-container {
    opacity: 1;
}
.controls {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    align-items: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.controls button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    width: 30px;
}
.timeline-container {
    height: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0 10px;
    flex-grow: 1;
}
.timeline {
    background-color: rgba(100, 100, 100, 0.5);
    height: 3px;
    width: 100%;
    position: relative;
}
.timeline::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: calc(100% - var(--progress-position, 0) * 100%);
    background-color: red;
}

.video-container.paused .pause-icon {
    display: none;
}
.video-container:not(.paused) .play-icon {
    display: none;
}

/* --- TUTORS SECTION --- */
#tutors {
    padding: 50px 0;
}
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.tutorial-item img {
    width: 100%;
    transition: transform 0.3s;
    cursor: pointer;
    border-radius: 8px;
}
.tutorial-item img:hover {
    transform: scale(1.05);
}

/* Ukrywanie elementów zgodnie z Twoim kodem */
.volume-high-icon,
.volume-low-icon,
.volume-muted-icon {
    display: none;
}
.video-container[data-volume-level="high"] .volume-high-icon {
    display: block;
}
.video-container[data-volume-level="low"] .volume-low-icon {
    display: block;
}
.video-container[data-volume-level="muted"] .volume-muted-icon {
    display: block;
}
