/* Panneau Admin */
#admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.admin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.admin-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-radius: 12px 12px 0 0;
}

.admin-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.admin-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 30px 0;
    background: #1a1a1a;
}

.admin-tab {
    background: transparent;
    border: none;
    color: #b3b3b3;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: #fff;
}

.admin-tab.active {
    color: #e50914;
    border-bottom-color: #e50914;
    font-weight: 600;
}

/* Tab Content */
.admin-tab-content {
    display: none;
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.admin-tab-content.active {
    display: block;
}

/* Form */
.admin-form {
    max-width: 500px;
}

.admin-form h3 {
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e50914;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #808080;
    font-size: 12px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b3b3b3;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Buttons */
.btn-admin {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-primary:hover {
    background: #b20710;
}

.btn-success {
    background: #46d369;
    color: #fff;
}

.btn-success:hover {
    background: #3bc45f;
}

.btn-danger {
    background: #ffa00a;
    color: #fff;
}

.btn-danger:hover {
    background: #e68f09;
}

.btn-info {
    background: #4facfe;
    color: #fff;
}

.btn-info:hover {
    background: #3a9bdc;
}

.series-desc {
    font-size: 12px;
    color: #808080;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit {
    background: #46d369;
    color: #fff;
}

.btn-delete {
    background: #e50914;
    color: #fff;
}

.btn-edit {
    background: #4facfe;
    color: #fff;
}

/* Edit Modal */
#edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.edit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px 12px 0 0;
}

.edit-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.edit-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.edit-body {
    padding: 20px;
}

.edit-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Series List */
.series-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.series-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    gap: 15px;
}

.series-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.series-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.series-desc {
    font-size: 12px;
    color: #808080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-img {
    font-size: 11px;
    color: #e50914;
    background: rgba(229, 9, 20, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
}

.series-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.series-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.series-category {
    font-size: 12px;
    color: #808080;
}

.series-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Footer */
.admin-footer {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #333;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        width: 95%;
        max-height: 95vh;
    }

    .admin-header,
    .admin-tabs,
    .admin-tab-content,
    .admin-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .admin-footer {
        flex-direction: column;
    }

    .btn-admin {
        width: 100%;
    }
}