/* series.css - Stylizacja strony informacji o serialu */
* {
    margin: 0;
    padding: 0;
}
/* Główny kontener */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Kontener serialu */
.series-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Lewa kolumna - Informacje o serialu */
.series-info-column {
    flex: 1;
    min-width: 300px;
    background: #1f1b44;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.series-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.series-meta h1 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 28px;
}

.series-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.episode-count {
    color: #a0a0a0;
    font-size: 14px;
}

.season-tag {
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.season-tag:hover {
    background: #3e8e41;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-tag {
    background: #3a3a6e;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.category-tag:hover {
    background: #2a2a4e;
}

.admin-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.edit-series-btn {
    background: #2196F3;
    color: white;
}

.edit-series-btn:hover {
    background: #0b7dda;
}

.add-episodes-btn {
    background: #ff9800;
    color: white;
}

.add-episodes-btn:hover {
    background: #e68a00;
}

.btn i {
    margin-right: 8px;
}

/* Prawa kolumna - Lista odcinków */
.episodes-column {
    flex: 2;
    min-width: 0;
}

/* Sekcja z zakładkami */
.zakladki-sekcja {
    margin-bottom: 20px;
    background: #1f1b44;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zakladki-sekcja h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
}

.zakladki-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.zakladka {
    padding: 8px 12px;
    background-color: rgb(124, 160, 197);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #000;
    border: none;
}

.zakladka:hover {
    background-color: #dee2e6;
}

.zakladka.aktywna {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Lista odcinków */
.episodes-column h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 20px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    background: #1f1b44;
    border-radius: 8px;
}

.episode-number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    background: #3a3a6e;
    color: white;
    font-size: 16px;
}

.episode-number:hover {
    background-color: #4a4a8e;
    transform: translateY(-2px);
}

.version-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #212529;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .series-container {
        flex-direction: column;
    }

    .episodes-column {
        min-width: 100%;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }
}

/* Scrollbar */
.episodes-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: #1f1b44;
    border-radius: 10px;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}

.episodes-grid::-webkit-scrollbar-thumb:hover {
    background: #3e8e41;
}