/* style.css */

/* 1. Ustawienia globalne i tło strony */
body {
    background: #000 url('img/background.jpg') no-repeat right top fixed;
    color: #eee;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

/* 2. Główny kontener aplikacji */
.gadestester {
    width: 80%;
    margin: 0 auto; /* Centrowanie kontenera w poziomie */
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* 3. Pasek filtrów i wyszukiwarki */
.filter-bar {
    margin-bottom: 20px;
    padding: 15px 25px;
    background: rgba(35, 35, 35, 0.92) !important;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.filter-bar form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-bar label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Pola formularza Fusion Style */
input[type="text"],
select {
    background-color: #252525 !important;
    color: #fff !important;
    border: 1px solid #1e1e1e !important;
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
select:focus {
    border-color: #3d8ec9 !important;
}

button[type="submit"] {
    background-color: #3d8ec9;
    color: #fff;
    border: 1px solid #1e1e1e;
    border-radius: 2px;
    padding: 6px 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

button[type="submit"]:hover {
    background-color: #4da3e0;
}
/* Link czyszczenia filtrów */
.clear-filters {
    color: #888 !important; /* Jasnoszary, jak w .video-meta */
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.2s;
    margin-left: 10px;
}

.clear-filters:hover {
    color: #fff !important; /* Biały po najechaniu */
}
/* 4. Lista filmów */
.video-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid #333;
    border-radius: 3px;
}

.video-link {
    color: #3d8ec9;
    text-decoration: none;
    transition: color 0.2s;
}

.video-link:hover {
    color: #5fb1ee;
}

.video-item h3 {
    margin: 0 0 5px 0;
    font-weight: 400;
    font-size: 1.4em;
}

.video-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

/* Układ Flexbox: Wideo + Opis */
.video-content-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.video-player {
    flex: 0 0 560px; /* Stała szerokość odtwarzacza */
}

.video-player iframe {
    border: 1px solid #111;
    display: block;
    background: #000;
}

.video-description {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
    min-height: 315px; /* Wyrównanie do wysokości playera */
}

/* 5. Paginacja (Wyśrodkowana) */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    padding-bottom: 10px;
}

#copyright {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 50px;
}

.pagination {
    display: flex;
    gap: 6px;
}

.pagination a {
    color: #eee;
    background: #333;
    border: 1px solid #1e1e1e;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #3d8ec9;
    background: #444;
}

.pagination a.active {
    background: #3d8ec9;
    color: #fff;
    border-color: #1e1e1e;
}

.yt-link {
    color: #ff4b4b; /* Stonowany czerwony */
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-left: auto; /* Przesunięcie linku maksymalnie do prawej strony paska */
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 3px;
    transition: all 0.2s;
}

.yt-link:hover {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}
/* 6. Responsywność (RWD) */
@media screen and (max-width: 1150px) {
    .gadestester {
        width: 100%;
        margin: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .video-content-wrapper {
        flex-direction: column;
    }

    .video-player {
        flex: none;
        width: 100%;
    }

    .video-player iframe {
        width: 100%;
        height: 56.25vw; /* Zachowanie proporcji 16:9 */
    }

    .video-description {
        min-height: 0;
        width: 100%;
    }

    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
    }
}